Skip to content

feat: add AI-facing documentation#5340

Draft
sammy200-ui wants to merge 2 commits into
asyncapi:masterfrom
sammy200-ui:docs/add-ai-facing-documentation
Draft

feat: add AI-facing documentation#5340
sammy200-ui wants to merge 2 commits into
asyncapi:masterfrom
sammy200-ui:docs/add-ai-facing-documentation

Conversation

@sammy200-ui
Copy link
Copy Markdown
Contributor

@sammy200-ui sammy200-ui commented Apr 18, 2026

Added Agent.md that AI coding assistants (Cursor, Claude,Copilot) automatically pick up when working in this repo.

LIke I said in the issue itself - CodeRabbit auto-detects AGENTS.md and uses it as review criteria during PR reviews (ref)

There are some more changes that were not discussed in the issue itself, I took some context/References from LLM behavioral guidelines repos forrestchang/andrej-karpathy-skills , CodeRabbit code guidelines docs
Checklist:

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive repository guide describing project setup, structure, and workflows.
    • Documented coding and style conventions (linting, formatting, import ordering, line-length, logging rules) and required developer commands.
    • Specified testing, localization and design-token usage, component/typography conventions, and TypeScript typing practices.
    • Defined contribution and PR requirements plus clear boundaries for files and directories that should not be modified.

Copilot AI review requested due to automatic review settings April 18, 2026 11:58
@github-project-automation github-project-automation Bot moved this to To Be Triaged in Website - Kanban Apr 18, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 18, 2026

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 8f518ac
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/69e374d281d0b50009956925
😎 Deploy Preview https://deploy-preview-5340--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 18, 2026

📝 Walkthrough

Walkthrough

Adds a new repository-root AGENTS.md documenting AI assistant guidelines: project context (Next.js Pages Router, TypeScript strict, Tailwind, MDX), repo layout, contribution workflow, developer commands, enforced code style/import/testing/TypeScript conventions, component/token usage, and protected files/directories. (Documentation-only change.)

Changes

Cohort / File(s) Summary
Repository Documentation
AGENTS.md
New top-level guide for AI coding assistants covering project overview, directory layout, issue-first contribution workflow, PR conventions, developer commands, enforced code-style and import ordering, testing/TypeScript/component conventions, token usage, "Do Not Touch" boundaries, and common mistakes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Poem

🐰 I hopped through lines of rules and tone,
Tailwind tokens, types, and paths well-known,
Imports tidy, tests in place,
A gentle guide to keep the pace,
Hop on — the repo feels like home.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat: add AI-facing documentation' clearly and concisely summarizes the main change—adding AGENTS.md documentation for AI assistants.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@AGENTS.md`:
- Line 36: Replace the incorrect possessive "its" in the contribution guideline
sentence "Open an issue first and get it approved before starting any PR, unless
its a typo or obvious fix" with the contraction "it's" so the line reads "Open
an issue first and get it approved before starting any PR, unless it's a typo or
obvious fix"; update this exact sentence in AGENTS.md to fix the grammar typo.
- Around line 17-32: The fenced code block containing the project directory
listing (the block starting with ``` and lines like "pages/", "components/",
".github/") is missing a language tag which triggers markdownlint MD040; update
the opening fence to include a language (e.g., change ``` to ```text) so the
block is explicitly marked as plain text and the lint rule is satisfied.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 870bb5b8-63b3-4580-96b4-8e59cf8d680b

📥 Commits

Reviewing files that changed from the base of the PR and between a267f1e and c73f71c.

📒 Files selected for processing (1)
  • AGENTS.md

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (a267f1e) to head (8f518ac).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #5340   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines          830       830           
  Branches       159       159           
=========================================
  Hits           830       830           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@asyncapi-bot
Copy link
Copy Markdown
Contributor

asyncapi-bot commented Apr 18, 2026

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 49
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-5340--asyncapi-website.netlify.app/

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an AI-facing guidelines document (AGENTS.md) intended to be automatically consumed by AI coding assistants and CodeRabbit, aligning AI-generated contributions with this repo’s workflow and conventions.

Changes:

  • Introduces AGENTS.md with project overview, structure, workflows, and coding/testing conventions for AI assistants.
  • Documents repo-specific conventions (linting, import sorting, Tailwind tokens, typography components, testing locations).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AGENTS.md Outdated
Comment on lines +112 to +115
- Props interfaces use JSDoc comments on each field
- Data shape interfaces use `I` prefix (e.g. `IBlogPost`, `IHeadProps`)
- Component props use descriptive names (e.g. `HeadingProps`, `ButtonProps`)
- Enum values are used for component variants (see `@/types/`)
Copy link

Copilot AI Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TypeScript conventions here read as strict rules, but they aren’t consistently true across the codebase (e.g., some props interfaces don’t have JSDoc on each field, and some data shapes are exported as type aliases like IBlogPost). Suggest rewording these bullets as recommendations and/or broadening to “types/interfaces” to better match reality.

Suggested change
- Props interfaces use JSDoc comments on each field
- Data shape interfaces use `I` prefix (e.g. `IBlogPost`, `IHeadProps`)
- Component props use descriptive names (e.g. `HeadingProps`, `ButtonProps`)
- Enum values are used for component variants (see `@/types/`)
- Prefer adding JSDoc comments to fields in props types/interfaces
- Data shape types/interfaces often use an `I` prefix (e.g. `IBlogPost`, `IHeadProps`)
- Prefer descriptive names for component props types/interfaces (e.g. `HeadingProps`, `ButtonProps`)
- Enum values are commonly used for component variants (see `@/types/`)

Copilot uses AI. Check for mistakes.
Comment thread AGENTS.md
Comment on lines +45 to +52
```bash
npm install # Install dependencies
npm run dev # Start dev server
npm run build # Production build
npm run lint # Run ESLint
npm test # Run Jest tests
npx cypress run # Run Cypress E2E tests
```
Copy link

Copilot AI Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The repo has a dedicated Netlify edge/functions test script (npm run test:netlify running Deno tests). It would be helpful to include it in either Project Overview (Testing) or the Dev Commands list so contributors run the full suite before opening PRs.

Copilot uses AI. Check for mistakes.
Comment thread AGENTS.md Outdated

## Contribution Workflow

1. **Open an issue first** and get it approved before starting any PR, unless its a typo or obvious fix
Copy link

Copilot AI Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar: "unless its" should be "unless it's" (contraction for "it is").

Suggested change
1. **Open an issue first** and get it approved before starting any PR, unless its a typo or obvious fix
1. **Open an issue first** and get it approved before starting any PR, unless it's a typo or obvious fix

Copilot uses AI. Check for mistakes.
Comment thread AGENTS.md Outdated
Unless explicitly asked:
- `package-lock.json` — only modify through `npm install`
- `.github/workflows/` — CI configuration
- `config/` JSON files — auto-generated data
Copy link

Copilot AI Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The guideline "config/ JSON files — auto-generated data" looks overly broad for this repo; there are config files that are meant to be edited manually (e.g., tools-manual.json, maintainers lists). Consider narrowing this to the specific generated outputs (like tools.json/all-tags.json/posts.json, etc.) so contributors don’t avoid legitimate updates.

Suggested change
- `config/` JSON files — auto-generated data
- Generated config outputs such as `config/tools.json`, `config/all-tags.json`, and `config/posts.json` — auto-generated data; other `config/` JSON files may be manually maintained

Copilot uses AI. Check for mistakes.
@sammy200-ui sammy200-ui force-pushed the docs/add-ai-facing-documentation branch from c73f71c to 4eb9791 Compare April 18, 2026 12:05
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (2)
AGENTS.md (2)

17-17: ⚠️ Potential issue | 🟡 Minor

Add a language tag to the fenced block at Line 17.

The code fence should be explicitly typed (e.g., text) to satisfy markdownlint MD040.

Proposed fix
-```
+```text
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@AGENTS.md` at line 17, The fenced code block composed of triple backticks at
the location shown needs an explicit language tag to satisfy markdownlint MD040;
update the opening fence from ``` to a tagged fence such as ```text (or another
appropriate language) so the block becomes a typed fenced code block; locate the
bare ``` fence in AGENTS.md (the block starting at the shown position) and add
the language identifier to the opening fence.

36-36: ⚠️ Potential issue | 🟡 Minor

Fix contraction typo at Line 36 (itsit's).

Use the contraction form in this sentence for correct grammar.

Proposed fix
-1. **Open an issue first** and get it approved before starting any PR, unless its a typo or obvious fix
+1. **Open an issue first** and get it approved before starting any PR, unless it's a typo or obvious fix
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@AGENTS.md` at line 36, Change the typo in the sentence "Open an issue first
and get it approved before starting any PR, unless its a typo or obvious fix" to
use the contraction "it's"; update the word "its" to "it's" in that sentence
within AGENTS.md so it reads "unless it's a typo or obvious fix".
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@AGENTS.md`:
- Line 17: The fenced code block composed of triple backticks at the location
shown needs an explicit language tag to satisfy markdownlint MD040; update the
opening fence from ``` to a tagged fence such as ```text (or another appropriate
language) so the block becomes a typed fenced code block; locate the bare ```
fence in AGENTS.md (the block starting at the shown position) and add the
language identifier to the opening fence.
- Line 36: Change the typo in the sentence "Open an issue first and get it
approved before starting any PR, unless its a typo or obvious fix" to use the
contraction "it's"; update the word "its" to "it's" in that sentence within
AGENTS.md so it reads "unless it's a typo or obvious fix".

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e425bc23-5110-47ba-a960-f17800e499a7

📥 Commits

Reviewing files that changed from the base of the PR and between c73f71c and 4eb9791.

📒 Files selected for processing (1)
  • AGENTS.md

@sonarqubecloud
Copy link
Copy Markdown

@sammy200-ui sammy200-ui marked this pull request as draft April 18, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Be Triaged

Development

Successfully merging this pull request may close these issues.

3 participants