From d59d39d8bc93a48c9a2c36d2ce7ef65d97f03e90 Mon Sep 17 00:00:00 2001 From: Akash-N- Pai Date: Sun, 1 Feb 2026 21:49:17 -0600 Subject: [PATCH] Add AGENTS.md validator feature Implements a web-based validator at /validator that provides real-time, non-blocking suggestions to help users write better AGENTS.md files. Features: - Real-time validation with helpful suggestions (not strict rules) - Quality scoring (0-100) with visual feedback - Live markdown preview with syntax highlighting - Expandable suggestion cards with copy-to-clipboard examples - Checks for length, common sections, command formatting, version specificity - Responsive design with dark mode support - Integration with homepage (validator CTA button) and footer navigation Co-Authored-By: Akash Pai Co-Authored-By: Claude Sonnet 4.5 --- components/Footer.tsx | 18 +++ components/Hero.tsx | 13 +- components/ValidatorInput.tsx | 33 ++++ components/ValidatorPreview.tsx | 90 +++++++++++ components/ValidatorResults.tsx | 219 ++++++++++++++++++++++++++ lib/markdownParser.ts | 172 ++++++++++++++++++++ lib/validationRules.ts | 271 ++++++++++++++++++++++++++++++++ lib/validator.ts | 164 +++++++++++++++++++ pages/validator.tsx | 177 +++++++++++++++++++++ 9 files changed, 1154 insertions(+), 3 deletions(-) create mode 100644 components/ValidatorInput.tsx create mode 100644 components/ValidatorPreview.tsx create mode 100644 components/ValidatorResults.tsx create mode 100644 lib/markdownParser.ts create mode 100644 lib/validationRules.ts create mode 100644 lib/validator.ts create mode 100644 pages/validator.tsx diff --git a/components/Footer.tsx b/components/Footer.tsx index 056fd4a..9eb582f 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -3,6 +3,24 @@ import React from "react"; export default function Footer() { return (