[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75JX9M9APN21RJ6MY9RC5X9":3,"skill-same:01M75JX9M9APN21RJ6MY9RC5X9":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M75JX9M9APN21RJ6MY9RC5X9","sync-docs",null,"Sync documentation with code. Use when user asks to update docs, check docs, fix stale documentation, update changelog, or after code changes.","agisota\u002Fold-one","agisota","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121413592?v=4","01M75B4BRNT67EC1NDRT8QZEP2","01M75B4BS7QR9VP580MSCPTS3X",3,"MIT","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fsync-docs\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: sync-docs\ndescription: \"Sync documentation with code. Use when user asks to update docs, check docs, fix stale documentation, update changelog, or after code changes.\"\nversion: 5.1.0\nargument-hint: \"[report|apply] [--scope=all|recent|before-pr] [--include-undocumented]\"\nallowed-tools: Bash(git:*), Read, Grep, Glob\n---\n\n# sync-docs\n\nUnified skill for syncing documentation with code state. Combines discovery, analysis, and CHANGELOG update into a single workflow.\n\n## Parse Arguments\n\n```javascript\nconst args = '$ARGUMENTS'.split(' ').filter(Boolean);\nconst mode = args.find(a => ['report', 'apply'].includes(a)) || 'report';\nconst scope = args.find(a => a.startsWith('--scope='))?.split('=')[1] || 'recent';\nconst includeUndocumented = args.includes('--include-undocumented');\n```\n\n## Quick Start - Agent Instructions\n\n**Step 1**: Get changed files (use Bash):\n```bash\n# Recent changes (default scope)\ngit diff --name-only origin\u002Fmain..HEAD 2>\u002Fdev\u002Fnull || git diff --name-only HEAD~5..HEAD\n\n# Or for all files\ngit ls-files '*.md'\n```\n\n**Step 2**: Find docs that reference changed files (use Grep):\n- Search for filenames, function names, class names in `*.md` files\n- Check README.md, CHANGELOG.md, docs\u002F*.md\n\n**Step 3**: Analyze each doc for issues:\n- Version mismatches (compare doc versions to package.json)\n- Removed exports (symbols in docs but not in code)\n- Outdated code examples\n- Import path changes\n\n**Step 4**: Check CHANGELOG:\n- Look for `## [Unreleased]` section\n- Compare recent commit messages to CHANGELOG entries\n\n**Step 5**: If repo-map exists (`{stateDir}\u002Frepo-map.json` - platform state directory):\n- Load it to get accurate export list\n- Find exports not mentioned in any documentation\n- Report as `undocumented-export` issues\n\n## Input\n\nArguments: `[report|apply] [--scope=all|recent|before-pr] [--include-undocumented]`\n\n- **Mode**: `report` (default) or `apply`\n- **Scope**:\n  - `recent` (default): Files changed since last commit to main\n  - `all`: Scan all docs against all code\n  - `before-pr`: Files in current branch, optimized for \u002Fnext-task Phase 11\n- **--include-undocumented**: Find exports not mentioned in any docs (uses repo-map)\n\n## Architecture\n\nThis skill orchestrates all documentation sync operations:\n\n```\nsync-docs skill\n    |-- Phase 1: Detect project context\n    |-- Phase 2: Find related docs (lib\u002Fcollectors\u002Fdocs-patterns)\n    |-- Phase 3: Analyze issues\n    |-- Phase 3.5: Find undocumented exports (repo-map integration)\n    |-- Phase 4: Check CHANGELOG\n    |-- Phase 5: Return structured results\n```\n\nThe skill MUST NOT apply fixes directly. It returns structured data for the orchestrator to decide what to do.\n\n---\n\n## Implementation Details (Reference)\n\nThe sections below describe the internal JavaScript implementation for reference only. Agents should follow the Quick Start instructions above using Bash, Read, and Grep tools.\n\n### Phase 1: Detect Project Context\n\nDetect project type and find documentation files.\n\n### Phase 1.5: Ensure Repo-Map\n\nBefore analyzing issues, ensure repo-map is available for accurate symbol detection:\n\n```javascript\nconst { ensureRepoMap } = require('..\u002F..\u002Flib\u002Fcollectors\u002Fdocs-patterns');\n\n\u002F\u002F Try to get repo-map (will auto-init if ast-grep available)\nconst repoMapStatus = await ensureRepoMap({\n  cwd: process.cwd(),\n  askUser: async (opts) => {\n    \u002F\u002F Use AskUserQuestion tool\n    const answer = await AskUserQuestion({\n      question: opts.question,\n      header: opts.header,\n      options: opts.options\n    });\n    return answer;\n  }\n});\n\nif (repoMapStatus.installInstructions) {\n  \u002F\u002F User wants to install ast-grep, show instructions\n  console.log(repoMapStatus.installInstructions);\n  \u002F\u002F Wait for user to confirm installation, then retry\n}\n\n\u002F\u002F repoMapStatus.available indicates if repo-map can be used\n\u002F\u002F repoMapStatus.fallbackReason explains why if not available\n```\n\n**User Interaction (only if ast-grep not installed):**\n\nUse AskUserQuestion:\n- Header: \"ast-grep Required\"\n- Question: \"ast-grep not found. Install for better doc sync accuracy?\"\n- Options:\n  - \"Yes, show instructions\" - Display platform-specific install instructions\n  - \"No, use regex fallback\" - Continue with less accurate regex-based detection\n\nIf user declines or repo-map unavailable, the system falls back to regex-based export detection automatically.\n\n```javascript\nconst fs = require('fs');\nconst path = require('path');\nconst glob = require('glob');\n\n\u002F\u002F Detect documentation files\nconst docFiles = [];\nconst commonDocs = ['README.md', 'CHANGELOG.md', 'CONTRIBUTING.md', 'docs\u002F**\u002F*.md'];\n\nfor (const pattern of commonDocs) {\n  \u002F\u002F Use glob to find matching files\n  const matches = glob.sync(pattern, { cwd: process.cwd() });\n  docFiles.push(...matches);\n}\n\n\u002F\u002F Detect project type from package.json, Cargo.toml, go.mod, etc.\nlet projectType = 'unknown';\nif (fs.existsSync('package.json')) projectType = 'javascript';\nelse if (fs.existsSync('Cargo.toml')) projectType = 'rust';\nelse if (fs.existsSync('go.mod')) projectType = 'go';\nelse if (fs.existsSync('pyproject.toml') || fs.existsSync('setup.py')) projectType = 'python';\n\nconst context = { docFiles, projectType };\n```\n\nThis phase gathers context about the project without requiring external scripts.\n\n## Phase 2: Find Related Documentation\n\nUse lib\u002Fcollectors\u002Fdocs-patterns to find docs related to changed files:\n\n```javascript\n\u002F\u002F Use relative path from skill directory to plugin lib\n\u002F\u002F Path: skills\u002Fsync-docs\u002F -> ..\u002F..\u002Flib\nconst { collectors } = require('..\u002F..\u002Flib');\nconst docsPatterns = collectors.docsPatterns;\n\n\u002F\u002F Get changed files based on scope\nlet changedFiles;\nif (scope === 'all') {\n  changedFiles = await exec(\"git ls-files '*.js' '*.ts' '*.py' '*.go' '*.rs' '*.java'\");\n} else if (scope === 'before-pr') {\n  changedFiles = await exec(\"git diff --name-only origin\u002Fmain..HEAD\");\n} else {\n  \u002F\u002F recent (default): get the default branch name\n  let base = 'main';\n  try {\n    const { stdout: refOutput } = await exec(\"git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD\");\n    \u002F\u002F Parse \"refs\u002Fremotes\u002Forigin\u002Fbranch-name\" to extract \"branch-name\"\n    const rawBase = refOutput.trim().split('\u002F').pop();\n    \u002F\u002F Sanitize branch name to prevent shell injection (only allow alphanumeric, dash, underscore, dot)\n    if (\u002F^[a-zA-Z0-9._-]+$\u002F.test(rawBase)) {\n      base = rawBase;\n    }\n  } catch (e) {\n    base = 'main'; \u002F\u002F fallback to main if symbolic-ref fails\n  }\n  changedFiles = await exec(`git diff --name-only origin\u002F${base}..HEAD 2>\u002Fdev\u002Fnull || git diff --name-only HEAD~5..HEAD`);\n}\n\n\u002F\u002F Find related docs\nconst relatedDocs = docsPatterns.findRelatedDocs(changedFiles.split('\\n').filter(Boolean), {\n  cwd: process.cwd()\n});\n```\n\n## Phase 3: Analyze Documentation Issues\n\nFor each related doc, check for issues:\n\n```javascript\nconst allIssues = [];\n\nfor (const { doc, referencedFile } of relatedDocs) {\n  const issues = docsPatterns.analyzeDocIssues(doc, referencedFile, {\n    cwd: process.cwd()\n  });\n\n  issues.forEach(issue => {\n    allIssues.push({\n      ...issue,\n      doc,\n      referencedFile\n    });\n  });\n}\n```\n\nIssue types detected:\n- `outdated-version`: Version string doesn't match current\n- `removed-export`: References removed symbol\n- `code-example`: Code example may be outdated\n- `import-path`: Import path changed\n- `undocumented-export`: Export exists in code but not mentioned in any docs (requires repo-map)\n\n## Phase 4: Check CHANGELOG\n\n```javascript\nconst changelogResult = docsPatterns.checkChangelog(changedFiles.split('\\n').filter(Boolean), {\n  cwd: process.cwd()\n});\n\n\u002F\u002F changelogResult contains:\n\u002F\u002F - exists: boolean\n\u002F\u002F - hasUnreleased: boolean\n\u002F\u002F - documented: string[]\n\u002F\u002F - undocumented: string[]\n\u002F\u002F - suggestion: string | null\n```\n\n## Phase 5: Return Structured Results\n\nCombine all results into a single output:\n\n```json\n{\n  \"mode\": \"report|apply\",\n  \"scope\": \"recent|all|before-pr|path\",\n  \"context\": {\n    \"projectType\": \"javascript|python|rust|go|unknown\",\n    \"docFiles\": [\"README.md\", \"CHANGELOG.md\"]\n  },\n  \"repoMap\": {\n    \"available\": true,\n    \"fallbackReason\": null,\n    \"stats\": { \"files\": 142, \"symbols\": 847 }\n  },\n  \"discovery\": {\n    \"changedFilesCount\": 5,\n    \"relatedDocsCount\": 3,\n    \"relatedDocs\": [\n      { \"doc\": \"README.md\", \"referencedFile\": \"src\u002Fapi.js\", \"referenceTypes\": [\"filename\", \"import\"] }\n    ]\n  },\n  \"issues\": [\n    {\n      \"type\": \"outdated-version\",\n      \"severity\": \"low\",\n      \"doc\": \"README.md\",\n      \"line\": 15,\n      \"current\": \"1.0.0\",\n      \"expected\": \"1.1.0\",\n      \"autoFix\": true,\n      \"suggestion\": \"Update version from 1.0.0 to 1.1.0\"\n    }\n  ],\n  \"undocumentedExports\": [\n    {\n      \"type\": \"undocumented-export\",\n      \"severity\": \"low\",\n      \"file\": \"src\u002Futils.js\",\n      \"name\": \"formatDate\",\n      \"line\": 25,\n      \"certainty\": \"MEDIUM\",\n      \"suggestion\": \"Export 'formatDate' in src\u002Futils.js is not mentioned in any documentation\"\n    }\n  ],\n  \"fixes\": [\n    {\n      \"file\": \"README.md\",\n      \"type\": \"update-version\",\n      \"line\": 15,\n      \"search\": \"1.0.0\",\n      \"replace\": \"1.1.0\"\n    }\n  ],\n  \"changelog\": {\n    \"exists\": true,\n    \"hasUnreleased\": true,\n    \"undocumented\": [\"feat: add new feature\"],\n    \"status\": \"needs-update|ok\"\n  },\n  \"summary\": {\n    \"issueCount\": 3,\n    \"fixableCount\": 2,\n    \"bySeverity\": { \"high\": 0, \"medium\": 1, \"low\": 2 }\n  }\n}\n```\n\n## Output Format\n\nOutput the result as JSON between markers:\n\n```\n=== SYNC_DOCS_RESULT ===\n{JSON output}\n=== END_RESULT ===\n```\n\n## Usage by Agents\n\n### sync-docs-agent (standalone \u002Fsync-docs)\n\n```\nSkill: sync-docs\nArgs: report --scope=recent\n```\n\n### \u002Fnext-task Phase 11\n\n```\nSkill: sync-docs\nArgs: apply --scope=before-pr\n```\n\nThe orchestrator receives the structured result and spawns `simple-fixer` if fixes are needed.\n\n## Constraints\n\n1. **Report mode by default** - Never modify files unless explicitly in apply mode\n2. **Structured output** - Always return JSON between markers\n3. **No direct fixes** - Return fix instructions, let orchestrator decide\n4. **Preserve formatting** - Fix suggestions should preserve existing style\n5. **Safe changes only** - Only auto-fixable issues get fix entries\n\n## Error Handling\n\n- **No git**: Exit with error \"Git required for change detection\"\n- **No docs found**: Report empty docFiles, suggest creating README.md\n- **No changed files**: Report scope as \"empty\", suggest using --scope=all\n","# sync-docs\n\nUnified skill for syncing documentation with code state. Combines discovery, analysis, and CHANGELOG update into a single workflow.\n\n## Parse Arguments\n\n```javascript\nconst args = '$ARGUMENTS'.split(' ').filter(Boolean);\nconst mode = args.find(a => ['report', 'apply'].includes(a)) || 'report';\nconst scope = args.find(a => a.startsWith('--scope='))?.split('=')[1] || 'recent';\nconst includeUndocumented = args.includes('--include-undocumented');\n```\n\n## Quick Start - Agent Instructions\n\n**Step 1**: Get changed files (use Bash):\n```bash\n# Recent changes (default scope)\ngit diff --name-only origin\u002Fmain..HEAD 2>\u002Fdev\u002Fnull || git diff --name-only HEAD~5..HEAD\n\n# Or for all files\ngit ls-files '*.md'\n```\n\n**Step 2**: Find docs that reference changed files (use Grep):\n- Search for filenames, function names, class names in `*.md` files\n- Check README.md, CHANGELOG.md, docs\u002F*.md\n\n**Step 3**: Analyze each doc for issues:\n- Version mismatches (compare doc versions to package.json)\n- Removed exports (symbols in docs but not in code)\n- Outdated code examples\n- Import path changes\n\n**Step 4**: Check CHANGELOG:\n- Look for `## [Unreleased]` section\n- Compare recent commit messages to CHANGELOG entries\n\n**Step 5**: If repo-map exists (`{stateDir}\u002Frepo-map.json` - platform state directory):\n- Load it to get accurate export list\n- Find exports not mentioned in any documentation\n- Report as `undocumented-export` issues\n\n## Input\n\nArguments: `[report|apply] [--scope=all|recent|before-pr] [--include-undocumented]`\n\n- **Mode**: `report` (default) or `apply`\n- **Scope**:\n  - `recent` (default): Files changed since last commit to main\n  - `all`: Scan all docs against all code\n  - `before-pr`: Files in current branch, optimized for \u002Fnext-task Phase 11\n- **--include-undocumented**: Find exports not mentioned in any docs (uses repo-map)\n\n## Architecture\n\nThis skill orchestrates all documentation sync operations:\n\n```\nsync-docs skill\n    |-- Phase 1: Detect project context\n    |-- Phase 2: Find related docs (lib\u002Fcollectors\u002Fdocs-patterns)\n    |-- Phase 3: Analyze issues\n    |-- Phase 3.5: Find undocumented exports (repo-map integration)\n    |-- Phase 4: Check CHANGELOG\n    |-- Phase 5: Return structured results\n```\n\nThe skill MUST NOT apply fixes directly. It returns structured data for the orchestrator to decide what to do.\n\n---\n\n## Implementation Details (Reference)\n\nThe sections below describe the internal JavaScript implementation for reference only. Agents should follow the Quick Start instructions above using Bash, Read, and Grep tools.\n\n### Phase 1: Detect Project Context\n\nDetect project type and find documentation files.\n\n### Phase 1.5: Ensure Repo-Map\n\nBefore analyzing issues, ensure repo-map is available for accurate symbol detection:\n\n```javascript\nconst { ensureRepoMap } = require('..\u002F..\u002Flib\u002Fcollectors\u002Fdocs-patterns');\n\n\u002F\u002F Try to get repo-map (will auto-init if ast-grep available)\nconst repoMapStatus = await ensureRepoMap({\n  cwd: process.cwd(),\n  askUser: async (opts) => {\n    \u002F\u002F Use AskUserQuestion tool\n    const answer = await AskUserQuestion({\n      question: opts.question,\n      header: opts.header,\n      options: opts.options\n    });\n    return answer;\n  }\n});\n\nif (repoMapStatus.installInstructions) {\n  \u002F\u002F User wants to install ast-grep, show instructions\n  console.log(repoMapStatus.installInstructions);\n  \u002F\u002F Wait for user to confirm installation, then retry\n}\n\n\u002F\u002F repoMapStatus.available indicates if repo-map can be used\n\u002F\u002F repoMapStatus.fallbackReason explains why if not available\n```\n\n**User Interaction (only if ast-grep not installed):**\n\nUse AskUserQuestion:\n- Header: \"ast-grep Required\"\n- Question: \"ast-grep not found. Install for better doc sync accuracy?\"\n- Options:\n  - \"Yes, show instructions\" - Display platform-specific install instructions\n  - \"No, use regex fallback\" - Continue with less accurate regex-based detection\n\nIf user declines or repo-map unavailable, the system falls back to regex-based export detection automatically.\n\n```javascript\nconst fs = require('fs');\nconst path = require('path');\nconst glob = require('glob');\n\n\u002F\u002F Detect documentation files\nconst docFiles = [];\nconst commonDocs = ['README.md', 'CHANGELOG.md', 'CONTRIBUTING.md', 'docs\u002F**\u002F*.md'];\n\nfor (const pattern of commonDocs) {\n  \u002F\u002F Use glob to find matching files\n  const matches = glob.sync(pattern, { cwd: process.cwd() });\n  docFiles.push(...matches);\n}\n\n\u002F\u002F Detect project type from package.json, Cargo.toml, go.mod, etc.\nlet projectType = 'unknown';\nif (fs.existsSync('package.json')) projectType = 'javascript';\nelse if (fs.existsSync('Cargo.toml')) projectType = 'rust';\nelse if (fs.existsSync('go.mod')) projectType = 'go';\nelse if (fs.existsSync('pyproject.toml') || fs.existsSync('setup.py')) projectType = 'python';\n\nconst context = { docFiles, projectType };\n```\n\nThis phase gathers context about the project without requiring external scripts.\n\n## Phase 2: Find Related Documentation\n\nUse lib\u002Fcollectors\u002Fdocs-patterns to find docs related to changed files:\n\n```javascript\n\u002F\u002F Use relative path from skill directory to plugin lib\n\u002F\u002F Path: skills\u002Fsync-docs\u002F -> ..\u002F..\u002Flib\nconst { collectors } = require('..\u002F..\u002Flib');\nconst docsPatterns = collectors.docsPatterns;\n\n\u002F\u002F Get changed files based on scope\nlet changedFiles;\nif (scope === 'all') {\n  changedFiles = await exec(\"git ls-files '*.js' '*.ts' '*.py' '*.go' '*.rs' '*.java'\");\n} else if (scope === 'before-pr') {\n  changedFiles = await exec(\"git diff --name-only origin\u002Fmain..HEAD\");\n} else {\n  \u002F\u002F recent (default): get the default branch name\n  let base = 'main';\n  try {\n    const { stdout: refOutput } = await exec(\"git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD\");\n    \u002F\u002F Parse \"refs\u002Fremotes\u002Forigin\u002Fbranch-name\" to extract \"branch-name\"\n    const rawBase = refOutput.trim().split('\u002F').pop();\n    \u002F\u002F Sanitize branch name to prevent shell injection (only allow alphanumeric, dash, underscore, dot)\n    if (\u002F^[a-zA-Z0-9._-]+$\u002F.test(rawBase)) {\n      base = rawBase;\n    }\n  } catch (e) {\n    base = 'main'; \u002F\u002F fallback to main if symbolic-ref fails\n  }\n  changedFiles = await exec(`git diff --name-only origin\u002F${base}..HEAD 2>\u002Fdev\u002Fnull || git diff --name-only HEAD~5..HEAD`);\n}\n\n\u002F\u002F Find related docs\nconst relatedDocs = docsPatterns.findRelatedDocs(changedFiles.split('\\n').filter(Boolean), {\n  cwd: process.cwd()\n});\n```\n\n## Phase 3: Analyze Documentation Issues\n\nFor each related doc, check for issues:\n\n```javascript\nconst allIssues = [];\n\nfor (const { doc, referencedFile } of relatedDocs) {\n  const issues = docsPatterns.analyzeDocIssues(doc, referencedFile, {\n    cwd: process.cwd()\n  });\n\n  issues.forEach(issue => {\n    allIssues.push({\n      ...issue,\n      doc,\n      referencedFile\n    });\n  });\n}\n```\n\nIssue types detected:\n- `outdated-version`: Version string doesn't match current\n- `removed-export`: References removed symbol\n- `code-example`: Code example may be outdated\n- `import-path`: Import path changed\n- `undocumented-export`: Export exists in code but not mentioned in any docs (requires repo-map)\n\n## Phase 4: Check CHANGELOG\n\n```javascript\nconst changelogResult = docsPatterns.checkChangelog(changedFiles.split('\\n').filter(Boolean), {\n  cwd: process.cwd()\n});\n\n\u002F\u002F changelogResult contains:\n\u002F\u002F - exists: boolean\n\u002F\u002F - hasUnreleased: boolean\n\u002F\u002F - documented: string[]\n\u002F\u002F - undocumented: string[]\n\u002F\u002F - suggestion: string | null\n```\n\n## Phase 5: Return Structured Results\n\nCombine all results into a single output:\n\n```json\n{\n  \"mode\": \"report|apply\",\n  \"scope\": \"recent|all|before-pr|path\",\n  \"context\": {\n    \"projectType\": \"javascript|python|rust|go|unknown\",\n    \"docFiles\": [\"README.md\", \"CHANGELOG.md\"]\n  },\n  \"repoMap\": {\n    \"available\": true,\n    \"fallbackReason\": null,\n    \"stats\": { \"files\": 142, \"symbols\": 847 }\n  },\n  \"discovery\": {\n    \"changedFilesCount\": 5,\n    \"relatedDocsCount\": 3,\n    \"relatedDocs\": [\n      { \"doc\": \"README.md\", \"referencedFile\": \"src\u002Fapi.js\", \"referenceTypes\": [\"filename\", \"import\"] }\n    ]\n  },\n  \"issues\": [\n    {\n      \"type\": \"outdated-version\",\n      \"severity\": \"low\",\n      \"doc\": \"README.md\",\n      \"line\": 15,\n      \"current\": \"1.0.0\",\n      \"expected\": \"1.1.0\",\n      \"autoFix\": true,\n      \"suggestion\": \"Update version from 1.0.0 to 1.1.0\"\n    }\n  ],\n  \"undocumentedExports\": [\n    {\n      \"type\": \"undocumented-export\",\n      \"severity\": \"low\",\n      \"file\": \"src\u002Futils.js\",\n      \"name\": \"formatDate\",\n      \"line\": 25,\n      \"certainty\": \"MEDIUM\",\n      \"suggestion\": \"Export 'formatDate' in src\u002Futils.js is not mentioned in any documentation\"\n    }\n  ],\n  \"fixes\": [\n    {\n      \"file\": \"README.md\",\n      \"type\": \"update-version\",\n      \"line\": 15,\n      \"search\": \"1.0.0\",\n      \"replace\": \"1.1.0\"\n    }\n  ],\n  \"changelog\": {\n    \"exists\": true,\n    \"hasUnreleased\": true,\n    \"undocumented\": [\"feat: add new feature\"],\n    \"status\": \"needs-update|ok\"\n  },\n  \"summary\": {\n    \"issueCount\": 3,\n    \"fixableCount\": 2,\n    \"bySeverity\": { \"high\": 0, \"medium\": 1, \"low\": 2 }\n  }\n}\n```\n\n## Output Format\n\nOutput the result as JSON between markers:\n\n```\n=== SYNC_DOCS_RESULT ===\n{JSON output}\n=== END_RESULT ===\n```\n\n## Usage by Agents\n\n### sync-docs-agent (standalone \u002Fsync-docs)\n\n```\nSkill: sync-docs\nArgs: report --scope=recent\n```\n\n### \u002Fnext-task Phase 11\n\n```\nSkill: sync-docs\nArgs: apply --scope=before-pr\n```\n\nThe orchestrator receives the structured result and spawns `simple-fixer` if fixes are needed.\n\n## Constraints\n\n1. **Report mode by default** - Never modify files unless explicitly in apply mode\n2. **Structured output** - Always return JSON between markers\n3. **No direct fixes** - Return fix instructions, let orchestrator decide\n4. **Preserve formatting** - Fix suggestions should preserve existing style\n5. **Safe changes only** - Only auto-fixable issues get fix entries\n\n## Error Handling\n\n- **No git**: Exit with error \"Git required for change detection\"\n- **No docs found**: Report empty docFiles, suggest creating README.md\n- **No changed files**: Report scope as \"empty\", suggest using --scope=all\n",{"name":5,"version":23,"description":7,"allowed-tools":24,"argument-hint":25},"5.1.0","Bash(git:*), Read, Grep, Glob","[report|apply] [--scope=all|recent|before-pr] [--include-undocumented]","main","f37de8f681f0c0ca0e0ebab6e5fddf764ca7553d","skills\u002Fsync-docs",1,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one","https:\u002F\u002Fagisota.github.io\u002Fold-one\u002F","https:\u002F\u002Fgithub.com\u002Fagisota","pzd.world","2026-07-04 22:32:06",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add agisota\u002Fold-one --skill sync-docs",{"tool":41,"command":42},"bunx","bunx skills add agisota\u002Fold-one --skill sync-docs",{"tool":44,"command":45},"pnpm","pnpm dlx skills add agisota\u002Fold-one --skill sync-docs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fsync-docs\u002FSKILL.md",true,[],[50,57,64,73,80,87],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M75KRGZWQWE9JDBS6RX42NWV","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M75KRCZHKE0ZYAQFFYHS0YNP","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":68,"licenseFileUrl":69,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M75KR94KYQ30DTE1P9WNDAE0","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M75KR3H13YJ9QHMD49818FA1","yara-rule-authoring","Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyara-rule-authoring\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M75KQMPY8A4Y8XTDD2DT0M9T","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M75KQHNZ0ANZNJGZY6M8MDAK","x-api","X\u002FTwitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-api\u002FSKILL.md",[],[]]