Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
The skill MUST NOT apply fixes directly. It returns structured data for the orchestrator to decide what to do.
Implementation Details (Reference)
The sections below describe the internal JavaScript implementation for reference only. Agents should follow the Quick Start instructions above using Bash, Read, and Grep tools.
Phase 1: Detect Project Context
Detect project type and find documentation files.
Phase 1.5: Ensure Repo-Map
Before analyzing issues, ensure repo-map is available for accurate symbol detection:
const { ensureRepoMap } = require('../../lib/collectors/docs-patterns');
// Try to get repo-map (will auto-init if ast-grep available)const repoMapStatus = awaitensureRepoMap({
cwd: process.cwd(),
askUser: async (opts) => {
// Use AskUserQuestion toolconst answer = awaitAskUserQuestion({
question: opts.question,
header: opts.header,
options: opts.options
});
return answer;
}
});
if (repoMapStatus.installInstructions) {
// User wants to install ast-grep, show instructionsconsole.log(repoMapStatus.installInstructions);
// Wait for user to confirm installation, then retry
}
// repoMapStatus.available indicates if repo-map can be used// repoMapStatus.fallbackReason explains why if not available
User Interaction (only if ast-grep not installed):
Use AskUserQuestion:
Header: "ast-grep Required"
Question: "ast-grep not found. Install for better doc sync accuracy?"
Options:
"Yes, show instructions" - Display platform-specific install instructions
"No, use regex fallback" - Continue with less accurate regex-based detection
If user declines or repo-map unavailable, the system falls back to regex-based export detection automatically.
{"mode":"report|apply","scope":"recent|all|before-pr|path","context":{"projectType":"javascript|python|rust|go|unknown","docFiles":["README.md","CHANGELOG.md"]},"repoMap":{"available":true,"fallbackReason":null,"stats":{"files":142,"symbols":847}},"discovery":{"changedFilesCount":5,"relatedDocsCount":3,"relatedDocs":[{"doc":"README.md","referencedFile":"src/api.js","referenceTypes":["filename","import"]}]},"issues":[{"type":"outdated-version","severity":"low","doc":"README.md","line":15,"current":"1.0.0","expected":"1.1.0","autoFix":true,"suggestion":"Update version from 1.0.0 to 1.1.0"}],"undocumentedExports":[{"type":"undocumented-export","severity":"low","file":"src/utils.js","name":"formatDate","line":25,"certainty":"MEDIUM","suggestion":"Export 'formatDate' in src/utils.js is not mentioned in any documentation"}],"fixes":[{"file":"README.md","type":"update-version","line":15,"search":"1.0.0","replace":"1.1.0"}],"changelog":{"exists":true,"hasUnreleased":true,"undocumented":["feat: add new feature"],"status":"needs-update|ok"},"summary":{"issueCount":3,"fixableCount":2,"bySeverity":{"high":0,"medium":1,"low":2}}}