[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79XBNJCE6AZ27KF07RKPM5G":3,"skill-same:01M79XBNJCE6AZ27KF07RKPM5G":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":39,"updatedAt":40,"install":41,"resources":53},"01M79XBNJCE6AZ27KF07RKPM5G","doc-gen",null,"Documentation generator with three modes: function-level (JSDoc\u002Fdocstrings), module-level (directory READMEs), and API reference (endpoints\u002Fexports). Reads existing project doc style and matches it. Never generates docs that just restate what the signature already says.","mayankjain1815-commits\u002FCITADEL","mayankjain1815-commits","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F234472344?v=4","01M79X9599EWEQTD62DMNTEG7X","Mayank jain","01M79X95AA0KDFTN1Z1A6DQTX1",4,"MIT","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fdoc-gen\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: doc-gen\nlicense: MIT\ndescription: >-\n  Documentation generator with three modes: function-level (JSDoc\u002Fdocstrings),\n  module-level (directory READMEs), and API reference (endpoints\u002Fexports).\n  Reads existing project doc style and matches it. Never generates docs that\n  just restate what the signature already says.\nuser-invocable: true\nauto-trigger: false\ntrigger_keywords:\n  - document\n  - docs\n  - docstring\n  - jsdoc\n  - readme\n  - api docs\nlast-updated: 2026-03-20\n---\n\n# \u002Fdoc-gen — Documentation Generator\n\n## When to Use\n\n- Add JSDoc\u002Fdocstrings to functions in a file or set of files\n- Write a README for a module or directory\n- Document an HTTP API or exported library surface\n\nMode auto-detected from target:\n- **File path** → function-level mode\n- **Directory path** → module-level mode\n- **Route file or API directory** → API reference mode\n- **Explicit override**: `\u002Fdoc-gen --mode function|module|api [target]`\n\n## Commands\n\n| Command | Behavior |\n|---|---|\n| `\u002Fdoc-gen [file]` | Function-level docs for a file |\n| `\u002Fdoc-gen [directory]` | Module-level README for a directory |\n| `\u002Fdoc-gen --api [target]` | API reference for endpoints or exports |\n| `\u002Fdoc-gen --mode [mode] [target]` | Force a specific mode |\n| `\u002Fdoc-gen --dry-run [target]` | Show what would be documented without writing |\n\n## Protocol\n\n### Phase 1: DETECT STYLE\n\n1. Read CLAUDE.md for doc conventions\n2. Search for existing doc comments in the target area — note density, tone, tags used, and line length\n3. Default when no existing docs: JSDoc (`@param`, `@returns`, `@throws`, `@example`) for TS\u002FJS; Google-style for Python; idiomatic format for others\n\nApply detected style consistently across all generated docs.\n\n### Phase 2: ANALYZE TARGET\n\n#### Function-Level Mode\n\nFor each function:\n\n1. Read the full body, not just the signature\n2. Classify:\n   - **Trivial**: simple getters\u002Fsetters, one-line wrappers with obvious names — SKIP\n   - **Non-trivial**: document purpose, parameter semantics (not types — TS has those), return guarantees, throws\u002Ferrors, side effects, non-obvious edge cases, and `@example` when usage is non-obvious\n3. Write using detected style\n\n**Core rule:** every doc must add information beyond what the signature already says. If you cannot, skip it.\n\n#### Module-Level Mode\n\n1. Read all files in the directory (one level deep)\n2. Identify: problem space, key exports, internal files, external dependencies, and what imports this module\n3. README schema: `# {Module Name}` | one-paragraph description | `## Key Exports` table (name, description) | `## Architecture` (only if non-obvious internal structure) | `## Usage` (real import paths) | `## Dependencies` (non-obvious only)\n4. If a README already exists, update rather than replace — preserve sections not covered by your analysis\n\n#### API Reference Mode\n\nFor HTTP endpoints: method + path, description, path\u002Fquery\u002Fbody params (with types), response shape and status codes, errors, auth level, and a curl\u002Ffetch example for non-trivial endpoints.\n\nFor exported libraries: name and kind (function\u002Fclass\u002Fconstant\u002Ftype), description, parameters\u002Fproperties with semantics, return type with guarantees, import and usage example.\n\nStructure as a single reference document with a table of contents.\n\n### Phase 3: WRITE\n\n1. Apply detected style consistently\n2. Function-level: insert doc comments above each function\n3. Module-level: write or update README.md in the target directory\n4. API reference: write to `docs\u002Fapi\u002F` or adjacent to route files\n5. Run typecheck after writing (malformed JSDoc can cause TS errors)\n\n### Phase 4: VERIFY\n\nRe-read every doc comment. For each: \"Does this add information beyond the signature?\" If not, delete it. Check accuracy: parameter names, return types, side effects, and that examples would actually compile\u002Frun.\n\n## Contextual Gates\n\n**Disclosure:** \"Generating documentation for [target]. Source files will be modified.\"\n**Reversibility:** amber — adds JSDoc\u002Fdocstrings to source files; undo with `git checkout` on modified files.\n**Trust gates:**\n- Any: additive doc generation on undocumented functions.\n- Familiar (5+ sessions): rewriting existing docstrings that may discard prior content.\n\n## Quality Gates\n\n- Every doc comment adds information beyond the signature; if not, delete it\n- Docs match actual code behavior — wrong docs are worse than no docs\n- Style matches the project's existing convention throughout\n- No `@param name - The name` filler; omit parameters when their name is self-explanatory\n- Typecheck passes after insertion\n- At least some functions skipped as trivial — if every function was documented, you over-documented\n\n## Exit Protocol\n\n```\n=== Doc-Gen Report ===\nMode: {function-level | module-level | api-reference}\nTarget: {path}\nStyle: {detected style}\nDocumented: {N functions ({M} skipped as trivial) | README.md ({N} exports) | {N} endpoints}\nSkipped: {item}: {reason}\n```\n\n```\n---HANDOFF---\n- Generated {mode} docs for {target}\n- Matched existing {style} convention\n- {what was skipped and why}\n- Reversibility: amber — undo with `git checkout` on modified source files\n---\n```\n","# \u002Fdoc-gen — Documentation Generator\n\n## When to Use\n\n- Add JSDoc\u002Fdocstrings to functions in a file or set of files\n- Write a README for a module or directory\n- Document an HTTP API or exported library surface\n\nMode auto-detected from target:\n- **File path** → function-level mode\n- **Directory path** → module-level mode\n- **Route file or API directory** → API reference mode\n- **Explicit override**: `\u002Fdoc-gen --mode function|module|api [target]`\n\n## Commands\n\n| Command | Behavior |\n|---|---|\n| `\u002Fdoc-gen [file]` | Function-level docs for a file |\n| `\u002Fdoc-gen [directory]` | Module-level README for a directory |\n| `\u002Fdoc-gen --api [target]` | API reference for endpoints or exports |\n| `\u002Fdoc-gen --mode [mode] [target]` | Force a specific mode |\n| `\u002Fdoc-gen --dry-run [target]` | Show what would be documented without writing |\n\n## Protocol\n\n### Phase 1: DETECT STYLE\n\n1. Read CLAUDE.md for doc conventions\n2. Search for existing doc comments in the target area — note density, tone, tags used, and line length\n3. Default when no existing docs: JSDoc (`@param`, `@returns`, `@throws`, `@example`) for TS\u002FJS; Google-style for Python; idiomatic format for others\n\nApply detected style consistently across all generated docs.\n\n### Phase 2: ANALYZE TARGET\n\n#### Function-Level Mode\n\nFor each function:\n\n1. Read the full body, not just the signature\n2. Classify:\n   - **Trivial**: simple getters\u002Fsetters, one-line wrappers with obvious names — SKIP\n   - **Non-trivial**: document purpose, parameter semantics (not types — TS has those), return guarantees, throws\u002Ferrors, side effects, non-obvious edge cases, and `@example` when usage is non-obvious\n3. Write using detected style\n\n**Core rule:** every doc must add information beyond what the signature already says. If you cannot, skip it.\n\n#### Module-Level Mode\n\n1. Read all files in the directory (one level deep)\n2. Identify: problem space, key exports, internal files, external dependencies, and what imports this module\n3. README schema: `# {Module Name}` | one-paragraph description | `## Key Exports` table (name, description) | `## Architecture` (only if non-obvious internal structure) | `## Usage` (real import paths) | `## Dependencies` (non-obvious only)\n4. If a README already exists, update rather than replace — preserve sections not covered by your analysis\n\n#### API Reference Mode\n\nFor HTTP endpoints: method + path, description, path\u002Fquery\u002Fbody params (with types), response shape and status codes, errors, auth level, and a curl\u002Ffetch example for non-trivial endpoints.\n\nFor exported libraries: name and kind (function\u002Fclass\u002Fconstant\u002Ftype), description, parameters\u002Fproperties with semantics, return type with guarantees, import and usage example.\n\nStructure as a single reference document with a table of contents.\n\n### Phase 3: WRITE\n\n1. Apply detected style consistently\n2. Function-level: insert doc comments above each function\n3. Module-level: write or update README.md in the target directory\n4. API reference: write to `docs\u002Fapi\u002F` or adjacent to route files\n5. Run typecheck after writing (malformed JSDoc can cause TS errors)\n\n### Phase 4: VERIFY\n\nRe-read every doc comment. For each: \"Does this add information beyond the signature?\" If not, delete it. Check accuracy: parameter names, return types, side effects, and that examples would actually compile\u002Frun.\n\n## Contextual Gates\n\n**Disclosure:** \"Generating documentation for [target]. Source files will be modified.\"\n**Reversibility:** amber — adds JSDoc\u002Fdocstrings to source files; undo with `git checkout` on modified files.\n**Trust gates:**\n- Any: additive doc generation on undocumented functions.\n- Familiar (5+ sessions): rewriting existing docstrings that may discard prior content.\n\n## Quality Gates\n\n- Every doc comment adds information beyond the signature; if not, delete it\n- Docs match actual code behavior — wrong docs are worse than no docs\n- Style matches the project's existing convention throughout\n- No `@param name - The name` filler; omit parameters when their name is self-explanatory\n- Typecheck passes after insertion\n- At least some functions skipped as trivial — if every function was documented, you over-documented\n\n## Exit Protocol\n\n```\n=== Doc-Gen Report ===\nMode: {function-level | module-level | api-reference}\nTarget: {path}\nStyle: {detected style}\nDocumented: {N functions ({M} skipped as trivial) | README.md ({N} exports) | {N} endpoints}\nSkipped: {item}: {reason}\n```\n\n```\n---HANDOFF---\n- Generated {mode} docs for {target}\n- Matched existing {style} convention\n- {what was skipped and why}\n- Reversibility: amber — undo with `git checkout` on modified source files\n---\n```\n",{"name":5,"license":15,"description":7,"auto-trigger":20,"last-updated":24,"user-invocable":25,"trigger_keywords":26},1773964800000,true,[27,28,29,30,31,32],"document","docs","docstring","jsdoc","readme","api docs","main","49119fa06efc769f502bede04ad99746ac20f021","skills\u002Fdoc-gen",0,"https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits","2nd-yr EEE 📍 Bangalore | Python, C, Java, C# | ML, NLP & Flask backends | Building AI tools that ship 🚀 | Open to hackathons & collabs","2026-11-14 14:46:28",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":25},[43,46,49],{"tool":44,"command":45},"npx","npx skills add mayankjain1815-commits\u002FCITADEL --skill doc-gen",{"tool":47,"command":48},"bunx","bunx skills add mayankjain1815-commits\u002FCITADEL --skill doc-gen",{"tool":50,"command":51},"pnpm","pnpm dlx skills add mayankjain1815-commits\u002FCITADEL --skill doc-gen","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fdoc-gen\u002FSKILL.md",[54,60],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"__benchmarks__\u002Fgenerate-readme.md","REFERENCE","参考文档",783,"https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fdoc-gen\u002F__benchmarks__\u002Fgenerate-readme.md",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"__benchmarks__\u002Fno-source-files.md",802,"https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fdoc-gen\u002F__benchmarks__\u002Fno-source-files.md",[65,72,79,86,93,100],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79XH1DBMXQEF9N0Q6NW7Q5P","workspace","Multi-repo campaign coordinator. Same lifecycle as fleet -- scope claims, discovery relay, wave-based execution -- but the unit of work is a repo, not a file. Coordinates campaigns across repositories with shared context.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fworkspace\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M79XGWJJHSKNTH78TNVX09VK","wiki","Markdown-first knowledge base where the LLM acts as librarian. Ingests raw sources, compiles and interlinks topic files, self-maintains an index. No vector DB or embeddings required -- uses LLM-native navigation over structured markdown up to ~400K words.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fwiki\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M79XGNW2YTFHVMEZGZDEDN43","watch","File sentinel that monitors the working directory for changes and marker comments, then auto-triggers appropriate skills. Poll-based via git diff against the last scan commit. Writes intake items for batch processing and routes marker actions through \u002Fdo. Use for automatic reactions to file changes; do NOT use for one-off inspection or tasks needing human judgment per file.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fwatch\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M79XGHZ0028HDW7SDT186D6Q","verify","Self-test the Citadel hook pipeline from within a live session. Exercises real tool calls (Write, Edit, Bash, Read) and checks that hooks fired, telemetry accumulated, and no errors occurred. Reports HOOK HEALTH: PASS or HOOK HEALTH: FAIL with a per-hook breakdown.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fverify\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M79XGDKHMADJXC27T0FMQAN3","unharness","Remove Citadel from a project. Exports valuable state (campaigns, postmortems, research, backlog, discoveries) to docs\u002Fcitadel\u002F as human-readable markdown, then removes all harness files and hooks. The archive is detected by \u002Fdo setup on re-install and offered for restore.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Funharness\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M79XG81A3RHP2TKKBT5WYEY2","triage","GitHub issue and PR investigator. Pulls open issues\u002FPRs, classifies them, searches the codebase for root cause or reviews contributed code, proposes fixes with file:line references, and optionally implements fixes. Use for investigating GitHub issues and reviewing PRs; do NOT use for general code review unrelated to GitHub issues.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Ftriage\u002FSKILL.md",[],[]]