feat(tooling): enforce docs freshness and modernize agent skills - #6756
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview Regeneration policy flipped in Agent skill layout cleanup: large deprecated Reviewed by Cursor Bugbot for commit 3ce4b6c. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThe PR adds read-only generated-documentation freshness enforcement and migrates agent integrations from copied command projections to canonical skill directories.
Confidence Score: 5/5The PR appears safe to merge because no blocking failure remains within the eligible follow-up review scope. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| scripts/generate-docs.ts | Adds an in-memory overlay and final-output comparison so CI can detect stale generated documentation without mutating the checkout. |
| scripts/sync-skills.ts | Replaces copied command projections with Claude directory symlinks and introduces validation and cleanup for generated skill surfaces. |
| scripts/run-audits.ts | Adds documentation freshness checking while renamed check:skills remains covered through automatic check:* discovery. |
| package.json | Exposes the new documentation and skill checks through repository scripts. |
| .husky/pre-commit | Updates canonical-skill synchronization to stage generated Claude skill links. |
| .github/CONTRIBUTING.md | Documents the canonical skill directory and the current Claude and Cursor discovery model. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
Canonical[".agents/skills/name/"] --> Cursor["Cursor direct discovery"]
Canonical --> Sync["scripts/sync-skills.ts"]
Sync --> Claude[".claude/skills/name symlink"]
Sources["Blocks, tools, and triggers"] --> Generator["scripts/generate-docs.ts"]
Generator --> Docs["Generated integration docs"]
Audits["check:audits"] --> SkillCheck["check:skills"]
Audits --> DocsCheck["docs:check"]
SkillCheck --> Claude
DocsCheck --> Docs
Reviews (5): Last reviewed commit: "fix(skills): clean orphaned Claude proje..." | Re-trigger Greptile
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 36e2316. Configure here.
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit ccedbb2. Configure here.
ccedbb2 to
8491532
Compare
|
@cursor review |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 3ce4b6c. Configure here.
Summary
docs:checkmode that detects stale generated integration docs and run it through the existingcheck:auditsCI gate..agents/skills/<name>/SKILL.mdas the canonical skill source, expose complete skill directories to Claude through generated.claude/skills/<name>symlinks, and let Cursor discover.agents/skillsdirectly..claude/commandsprojections, all 36 deprecated.cursor/commandsprojections, and the stale duplicate Cursoradd-hosted-keyskill.skills:checktocheck:skillsso the existing CI audit runner discovers it automatically and continues rejecting stale Claude links or reintroduced command projections.This prevents generated docs and agent-specific skill copies from silently drifting away from their canonical sources.
Type of Change
Testing
bun run agent-stream-docs:generatebun run skills:syncbun run lintbun run apps/sim/scripts/check-block-registry.ts origin/stagingbun run check:audits(28 audits, includingdocs:checkandcheck:skills)bun run check:skillsgit diff --checkChecklist
Screenshots/Videos
Not applicable; this PR only changes developer tooling, generated documentation, and agent configuration.