Repository navigation
docs(ai): rewrite .ai readme around a generated catalog - #6788
caseyisonit wants to merge 3 commits into
Conversation
|
📚 Branch Preview Links🔍 Gen1 Visual Regression Test ResultsWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
Deployed to Azure Blob Storage: If the changes are expected, update the |
a5a75cc to
ab90dc1
Compare
ab90dc1 to
2c21422
Compare
2c21422 to
c05fac7
Compare
c05fac7 to
2e92f6f
Compare
2e92f6f to
81b0d21
Compare
81b0d21 to
ff3d237
Compare
ae11e15 to
d19ffc5
Compare
|
@blunteshwar the error comes from rm .cursor/rules/manifest.json
yarn lint:aiPlease don't delete the whole The link warnings for |
Replace the hand-maintained .ai/README.md catalog, which had drifted from the skill and rule frontmatter, with one yarn ai:sync generates. - Rewrite .ai/README.md as a short guide: how sources map to each tool, how to choose between a rule, a skill, and AGENTS.md, how to author and validate each, tool setup (including a Windows fallback), and optional personal MCP and permission setup. The rule and skill catalog is generated between markers from frontmatter, as lists. - Add .ai/ai-system.html, a self-contained, offline visual overview of the system, and link it from AGENTS.md and the README. - Align the contributor docs branch and commit guidance with the branch-naming and conventional-commit skills, and replace the PR template's incomplete commit type list with a commitlint reference.
d19ffc5 to
b3770fb
Compare
Checked locally. It works fine after removing the .cursor/rules/manifest.json |

Description
Replaces the hand-maintained
.ai/README.mdcatalog with one thatyarn ai:syncgenerates from frontmatter..ai/README.md(37.6 KB → 21.6 KB) as a short guide:AGENTS.mdcopilot skill add <repo>/.ai/skills)<!-- ai:catalog:start -->and<!-- ai:catalog:end -->. It's rendered as lists rather than tables so Prettier doesn't pad it.yarn lint:aifails if the catalog drifts from frontmatter. The old hand-written catalog had already drifted, for example with a deadcursor_prompt.mdpath and wrong glob summaries.sync.js.renderCatalog()and the README write moved here from feat(ai): generate copilot and cursor instructions from .ai rules #6785 after review, because this is the layer that adds the markers..ai/skills/or.ai/README.mdhas unstaged changes, and re-stages the README after syncing. Pre-push treats the README as a generated file and blocks the push if the catalog is out of date.yarn lint:ai. The.ai/validators andyarn ai:sync --checknow read files fromgit ls-files(staged new files count) instead of walking the file system. Untracked or ignored local files, such as a Cursor.cursor/rules/manifest.jsoncache or.ai/handoffs/notes, no longer fail the lint. A hand-authored file staged in a generated folder still fails. This came from review feedback on this PR.04_making-a-pull-request.mdnow documents<username>/<type>-<description>[-swc-<issue>]and the full commitlint type list, and links to thebranch-namingandconventional-commitskills. The PR template's commit-type comment listed 7 types and pointed to aPULL_REQUESTS.mdthat doesn't exist. It now cites commitlint.Motivation and context
The README duplicated every skill's frontmatter by hand and had already drifted. Generating the catalog makes drift a lint failure instead of a silent inconsistency. The contributor docs, the PR template, the skills, and commitlint disagreed on branch and commit conventions (plan conflicts C-1 and C-2). Now there's one convention everywhere.
Related issue(s)
Screenshots (if appropriate)
N/A
Author's checklist
yarn lint:aichecks catalog drift.Reviewer's checklist
patch,minor, ormajorfeaturesManual review test cases
The catalog is generated and up to date
yarn ai:sync --check, thenyarn lint:ai.descriptionwithout running the sync, and expectyarn lint:aito fail on.ai/README.md..ai/scripts/sync.js, then rungit push --dry-run. Expect✖ yarn ai:sync updated generated fileslisting.ai/README.md. Revert withgit checkout -- .ai/scripts/sync.js .ai/README.md.yarn lint:aiignores untracked filesecho '{}' > .cursor/rules/manifest.json, thenyarn lint:ai. Expect it to pass.git add .cursor/rules/manifest.json, thenyarn lint:ai. Expect✖ .cursor/rules/manifest.json: hand-authored file in a generated folder.git rm -q --cached .cursor/rules/manifest.json && rm .cursor/rules/manifest.json.Contributor docs render
yarn storybookand open Contributor Docs › Making a pull request.Verified by the author:
yarn lint:aiand Prettier pass. After rebasing ontomain,yarn ai:sync --checkreports 21 generated files up to date, the pre-push hook blocked a simulated stale catalog, andyarn lint:aipassed with an untracked.cursor/rules/manifest.jsonand failed once it was staged. The contributor docs nav script reports no new broken links. The 25 it reports are pre-existing, all in03_project-planning/. Pending host verification: the Storybook render of the contributor docs page.Device review
Accessibility testing checklist
N/A. This PR changes documentation, scripts, and git hooks only. It adds and changes no rendered UI or components.