[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72V5F08XY7C8EF65CP37B6G":3,"skill-same:01M72V5F08XY7C8EF65CP37B6G":46},{"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":24,"commitSha":25,"skillDirectory":5,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M72V5F08XY7C8EF65CP37B6G","index-knowledge",null,"Generate hierarchical AGENTS.md knowledge base for a codebase. Creates root + complexity-scored subdirectory documentation.","roerohan\u002Fskills","roerohan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42958812?v=4","01M72V46MPJK55W3BZ44Y869D1","Rohan Mukherjee","01M72V46N9GPDNRC4RHVRR2YCB",29,"MIT","https:\u002F\u002Fgithub.com\u002Froerohan\u002Fskills\u002Fblob\u002Fmain\u002Findex-knowledge\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: index-knowledge\ndescription: Generate hierarchical AGENTS.md knowledge base for a codebase. Creates root + complexity-scored subdirectory documentation.\n---\n\n# index-knowledge\n\nGenerate hierarchical AGENTS.md files. Root + complexity-scored subdirectories.\n\n## Usage\n\n```\n--create-new   # Read existing → remove all → regenerate from scratch\n--max-depth=2  # Limit directory depth (default: 5)\n```\n\nDefault: Update mode (modify existing + create new where warranted)\n\n---\n\n## Workflow (High-Level)\n\n1. **Discovery + Analysis** (concurrent)\n   - Launch parallel explore agents (multiple Task calls in one message)\n   - Main session: bash structure + LSP codemap + read existing AGENTS.md\n2. **Score & Decide** - Determine AGENTS.md locations from merged findings\n3. **Generate** - Root first, then subdirs in parallel\n4. **Review** - Deduplicate, trim, validate\n\n\u003Ccritical>\n**TodoWrite ALL phases. Mark in_progress → completed in real-time.**\n  \n```\nTodoWrite([\n  { id: \"discovery\", content: \"Fire explore agents + LSP codemap + read existing\", status: \"pending\", priority: \"high\" },\n  { id: \"scoring\", content: \"Score directories, determine locations\", status: \"pending\", priority: \"high\" },\n  { id: \"generate\", content: \"Generate AGENTS.md files (root + subdirs)\", status: \"pending\", priority: \"high\" },\n  { id: \"review\", content: \"Deduplicate, validate, trim\", status: \"pending\", priority: \"medium\" }\n])\n```\n\u003C\u002Fcritical>\n\n---\n\n## Phase 1: Discovery + Analysis (Concurrent)\n\n**Mark \"discovery\" as in_progress.**\n\n### Launch Parallel Explore Agents\n\nMultiple Task calls in a single message execute in parallel. Results return directly.\n\n```\n\u002F\u002F All Task calls in ONE message = parallel execution\n\nTask(\n  description=\"project structure\",\n  subagent_type=\"explore\",\n  prompt=\"Project structure: PREDICT standard patterns for detected language → REPORT deviations only\"\n)\n\nTask(\n  description=\"entry points\",\n  subagent_type=\"explore\",\n  prompt=\"Entry points: FIND main files → REPORT non-standard organization\"\n)\n\nTask(\n  description=\"conventions\",\n  subagent_type=\"explore\",\n  prompt=\"Conventions: FIND config files (.eslintrc, pyproject.toml, .editorconfig) → REPORT project-specific rules\"\n)\n\nTask(\n  description=\"anti-patterns\",\n  subagent_type=\"explore\",\n  prompt=\"Anti-patterns: FIND 'DO NOT', 'NEVER', 'ALWAYS', 'DEPRECATED' comments → LIST forbidden patterns\"\n)\n\nTask(\n  description=\"build\u002Fci\",\n  subagent_type=\"explore\",\n  prompt=\"Build\u002FCI: FIND .github\u002Fworkflows, Makefile → REPORT non-standard patterns\"\n)\n\nTask(\n  description=\"test patterns\",\n  subagent_type=\"explore\",\n  prompt=\"Test patterns: FIND test configs, test structure → REPORT unique conventions\"\n)\n```\n\n\u003Cdynamic-agents>\n**DYNAMIC AGENT SPAWNING**: After bash analysis, spawn ADDITIONAL explore agents based on project scale:\n\n| Factor | Threshold | Additional Agents |\n|--------|-----------|-------------------|\n| **Total files** | >100 | +1 per 100 files |\n| **Total lines** | >10k | +1 per 10k lines |\n| **Directory depth** | ≥4 | +2 for deep exploration |\n| **Large files (>500 lines)** | >10 files | +1 for complexity hotspots |\n| **Monorepo** | detected | +1 per package\u002Fworkspace |\n| **Multiple languages** | >1 | +1 per language |\n\n```bash\n# Measure project scale first\ntotal_files=$(find . -type f -not -path '*\u002Fnode_modules\u002F*' -not -path '*\u002F.git\u002F*' | wc -l)\ntotal_lines=$(find . -type f \\( -name \"*.ts\" -o -name \"*.py\" -o -name \"*.go\" \\) -not -path '*\u002Fnode_modules\u002F*' -exec wc -l {} + 2>\u002Fdev\u002Fnull | tail -1 | awk '{print $1}')\nlarge_files=$(find . -type f \\( -name \"*.ts\" -o -name \"*.py\" \\) -not -path '*\u002Fnode_modules\u002F*' -exec wc -l {} + 2>\u002Fdev\u002Fnull | awk '$1 > 500 {count++} END {print count+0}')\nmax_depth=$(find . -type d -not -path '*\u002Fnode_modules\u002F*' -not -path '*\u002F.git\u002F*' | awk -F\u002F '{print NF}' | sort -rn | head -1)\n```\n\nExample spawning (all in ONE message for parallel execution):\n```\n\u002F\u002F 500 files, 50k lines, depth 6, 15 large files → spawn additional agents\nTask(\n  description=\"large files\",\n  subagent_type=\"explore\",\n  prompt=\"Large file analysis: FIND files >500 lines, REPORT complexity hotspots\"\n)\n\nTask(\n  description=\"deep modules\",\n  subagent_type=\"explore\",\n  prompt=\"Deep modules at depth 4+: FIND hidden patterns, internal conventions\"\n)\n\nTask(\n  description=\"cross-cutting\",\n  subagent_type=\"explore\",\n  prompt=\"Cross-cutting concerns: FIND shared utilities across directories\"\n)\n\u002F\u002F ... more based on calculation\n```\n\u003C\u002Fdynamic-agents>\n\n### Main Session: Concurrent Analysis\n\n**While Task agents execute**, main session does:\n\n#### 1. Bash Structural Analysis\n```bash\n# Directory depth + file counts\nfind . -type d -not -path '*\u002F\\.*' -not -path '*\u002Fnode_modules\u002F*' -not -path '*\u002Fvenv\u002F*' -not -path '*\u002Fdist\u002F*' -not -path '*\u002Fbuild\u002F*' | awk -F\u002F '{print NF-1}' | sort -n | uniq -c\n\n# Files per directory (top 30)\nfind . -type f -not -path '*\u002F\\.*' -not -path '*\u002Fnode_modules\u002F*' | sed 's|\u002F[^\u002F]*$||' | sort | uniq -c | sort -rn | head -30\n\n# Code concentration by extension\nfind . -type f \\( -name \"*.py\" -o -name \"*.ts\" -o -name \"*.tsx\" -o -name \"*.js\" -o -name \"*.go\" -o -name \"*.rs\" \\) -not -path '*\u002Fnode_modules\u002F*' | sed 's|\u002F[^\u002F]*$||' | sort | uniq -c | sort -rn | head -20\n\n# Existing AGENTS.md \u002F CLAUDE.md\nfind . -type f \\( -name \"AGENTS.md\" -o -name \"CLAUDE.md\" \\) -not -path '*\u002Fnode_modules\u002F*' 2>\u002Fdev\u002Fnull\n```\n\n#### 2. Read Existing AGENTS.md\n```\nFor each existing file found:\n  Read(filePath=file)\n  Extract: key insights, conventions, anti-patterns\n  Store in EXISTING_AGENTS map\n```\n\nIf `--create-new`: Read all existing first (preserve context) → then delete all → regenerate.\n\n#### 3. LSP Codemap (if available)\n```\nlsp_servers()  # Check availability\n\n# Entry points (parallel)\nlsp_document_symbols(filePath=\"src\u002Findex.ts\")\nlsp_document_symbols(filePath=\"main.py\")\n\n# Key symbols (parallel)\nlsp_workspace_symbols(filePath=\".\", query=\"class\")\nlsp_workspace_symbols(filePath=\".\", query=\"interface\")\nlsp_workspace_symbols(filePath=\".\", query=\"function\")\n\n# Centrality for top exports\nlsp_find_references(filePath=\"...\", line=X, character=Y)\n```\n\n**LSP Fallback**: If unavailable, rely on explore agents + AST-grep.\n\n**Merge: bash + LSP + existing + Task agent results. Mark \"discovery\" as completed.**\n\n---\n\n## Phase 2: Scoring & Location Decision\n\n**Mark \"scoring\" as in_progress.**\n\n### Scoring Matrix\n\n| Factor | Weight | High Threshold | Source |\n|--------|--------|----------------|--------|\n| File count | 3x | >20 | bash |\n| Subdir count | 2x | >5 | bash |\n| Code ratio | 2x | >70% | bash |\n| Unique patterns | 1x | Has own config | explore |\n| Module boundary | 2x | Has index.ts\u002F__init__.py | bash |\n| Symbol density | 2x | >30 symbols | LSP |\n| Export count | 2x | >10 exports | LSP |\n| Reference centrality | 3x | >20 refs | LSP |\n\n### Decision Rules\n\n| Score | Action |\n|-------|--------|\n| **Root (.)** | ALWAYS create |\n| **>15** | Create AGENTS.md |\n| **8-15** | Create if distinct domain |\n| **\u003C8** | Skip (parent covers) |\n\n### Output\n```\nAGENTS_LOCATIONS = [\n  { path: \".\", type: \"root\" },\n  { path: \"src\u002Fhooks\", score: 18, reason: \"high complexity\" },\n  { path: \"src\u002Fapi\", score: 12, reason: \"distinct domain\" }\n]\n```\n\n**Mark \"scoring\" as completed.**\n\n---\n\n## Phase 3: Generate AGENTS.md\n\n**Mark \"generate\" as in_progress.**\n\n### Root AGENTS.md (Full Treatment)\n\n```markdown\n# PROJECT KNOWLEDGE BASE\n\n**Generated:** {TIMESTAMP}\n**Commit:** {SHORT_SHA}\n**Branch:** {BRANCH}\n\n## OVERVIEW\n{1-2 sentences: what + core stack}\n\n## STRUCTURE\n\\`\\`\\`\n{root}\u002F\n├── {dir}\u002F    # {non-obvious purpose only}\n└── {entry}\n\\`\\`\\`\n\n## WHERE TO LOOK\n| Task | Location | Notes |\n|------|----------|-------|\n\n## CODE MAP\n{From LSP - skip if unavailable or project \u003C10 files}\n\n| Symbol | Type | Location | Refs | Role |\n\n## CONVENTIONS\n{ONLY deviations from standard}\n\n## ANTI-PATTERNS (THIS PROJECT)\n{Explicitly forbidden here}\n\n## UNIQUE STYLES\n{Project-specific}\n\n## COMMANDS\n\\`\\`\\`bash\n{dev\u002Ftest\u002Fbuild}\n\\`\\`\\`\n\n## NOTES\n{Gotchas}\n```\n\n**Quality gates**: 50-150 lines, no generic advice, no obvious info.\n\n### Subdirectory AGENTS.md (Parallel)\n\nLaunch general agents for each location in ONE message (parallel execution):\n\n```\n\u002F\u002F All in single message = parallel\nTask(\n  description=\"AGENTS.md for src\u002Fhooks\",\n  subagent_type=\"general\",\n  prompt=\"Generate AGENTS.md for: src\u002Fhooks\n    - Reason: high complexity\n    - 30-80 lines max\n    - NEVER repeat parent content\n    - Sections: OVERVIEW (1 line), STRUCTURE (if >5 subdirs), WHERE TO LOOK, CONVENTIONS (if different), ANTI-PATTERNS\n    - Write directly to src\u002Fhooks\u002FAGENTS.md\"\n)\n\nTask(\n  description=\"AGENTS.md for src\u002Fapi\",\n  subagent_type=\"general\",\n  prompt=\"Generate AGENTS.md for: src\u002Fapi\n    - Reason: distinct domain\n    - 30-80 lines max\n    - NEVER repeat parent content\n    - Sections: OVERVIEW (1 line), STRUCTURE (if >5 subdirs), WHERE TO LOOK, CONVENTIONS (if different), ANTI-PATTERNS\n    - Write directly to src\u002Fapi\u002FAGENTS.md\"\n)\n\u002F\u002F ... one Task per AGENTS_LOCATIONS entry\n```\n\n**Results return directly. Mark \"generate\" as completed.**\n\n---\n\n## Phase 4: Review & Deduplicate\n\n**Mark \"review\" as in_progress.**\n\nFor each generated file:\n- Remove generic advice\n- Remove parent duplicates\n- Trim to size limits\n- Verify telegraphic style\n\n**Mark \"review\" as completed.**\n\n---\n\n## Final Report\n\n```\n=== index-knowledge Complete ===\n\nMode: {update | create-new}\n\nFiles:\n  ✓ .\u002FAGENTS.md (root, {N} lines)\n  ✓ .\u002Fsrc\u002Fhooks\u002FAGENTS.md ({N} lines)\n\nDirs Analyzed: {N}\nAGENTS.md Created: {N}\nAGENTS.md Updated: {N}\n\nHierarchy:\n  .\u002FAGENTS.md\n  └── src\u002Fhooks\u002FAGENTS.md\n```\n\n---\n\n## Anti-Patterns\n\n- **Static agent count**: MUST vary agents based on project size\u002Fdepth\n- **Sequential execution**: MUST parallel (multiple Task calls in one message)\n- **Ignoring existing**: ALWAYS read existing first, even with --create-new\n- **Over-documenting**: Not every dir needs AGENTS.md\n- **Redundancy**: Child never repeats parent\n- **Generic content**: Remove anything that applies to ALL projects\n- **Verbose style**: Telegraphic or die\n","# index-knowledge\n\nGenerate hierarchical AGENTS.md files. Root + complexity-scored subdirectories.\n\n## Usage\n\n```\n--create-new   # Read existing → remove all → regenerate from scratch\n--max-depth=2  # Limit directory depth (default: 5)\n```\n\nDefault: Update mode (modify existing + create new where warranted)\n\n---\n\n## Workflow (High-Level)\n\n1. **Discovery + Analysis** (concurrent)\n   - Launch parallel explore agents (multiple Task calls in one message)\n   - Main session: bash structure + LSP codemap + read existing AGENTS.md\n2. **Score & Decide** - Determine AGENTS.md locations from merged findings\n3. **Generate** - Root first, then subdirs in parallel\n4. **Review** - Deduplicate, trim, validate\n\n\u003Ccritical>\n**TodoWrite ALL phases. Mark in_progress → completed in real-time.**\n  \n```\nTodoWrite([\n  { id: \"discovery\", content: \"Fire explore agents + LSP codemap + read existing\", status: \"pending\", priority: \"high\" },\n  { id: \"scoring\", content: \"Score directories, determine locations\", status: \"pending\", priority: \"high\" },\n  { id: \"generate\", content: \"Generate AGENTS.md files (root + subdirs)\", status: \"pending\", priority: \"high\" },\n  { id: \"review\", content: \"Deduplicate, validate, trim\", status: \"pending\", priority: \"medium\" }\n])\n```\n\u003C\u002Fcritical>\n\n---\n\n## Phase 1: Discovery + Analysis (Concurrent)\n\n**Mark \"discovery\" as in_progress.**\n\n### Launch Parallel Explore Agents\n\nMultiple Task calls in a single message execute in parallel. Results return directly.\n\n```\n\u002F\u002F All Task calls in ONE message = parallel execution\n\nTask(\n  description=\"project structure\",\n  subagent_type=\"explore\",\n  prompt=\"Project structure: PREDICT standard patterns for detected language → REPORT deviations only\"\n)\n\nTask(\n  description=\"entry points\",\n  subagent_type=\"explore\",\n  prompt=\"Entry points: FIND main files → REPORT non-standard organization\"\n)\n\nTask(\n  description=\"conventions\",\n  subagent_type=\"explore\",\n  prompt=\"Conventions: FIND config files (.eslintrc, pyproject.toml, .editorconfig) → REPORT project-specific rules\"\n)\n\nTask(\n  description=\"anti-patterns\",\n  subagent_type=\"explore\",\n  prompt=\"Anti-patterns: FIND 'DO NOT', 'NEVER', 'ALWAYS', 'DEPRECATED' comments → LIST forbidden patterns\"\n)\n\nTask(\n  description=\"build\u002Fci\",\n  subagent_type=\"explore\",\n  prompt=\"Build\u002FCI: FIND .github\u002Fworkflows, Makefile → REPORT non-standard patterns\"\n)\n\nTask(\n  description=\"test patterns\",\n  subagent_type=\"explore\",\n  prompt=\"Test patterns: FIND test configs, test structure → REPORT unique conventions\"\n)\n```\n\n\u003Cdynamic-agents>\n**DYNAMIC AGENT SPAWNING**: After bash analysis, spawn ADDITIONAL explore agents based on project scale:\n\n| Factor | Threshold | Additional Agents |\n|--------|-----------|-------------------|\n| **Total files** | >100 | +1 per 100 files |\n| **Total lines** | >10k | +1 per 10k lines |\n| **Directory depth** | ≥4 | +2 for deep exploration |\n| **Large files (>500 lines)** | >10 files | +1 for complexity hotspots |\n| **Monorepo** | detected | +1 per package\u002Fworkspace |\n| **Multiple languages** | >1 | +1 per language |\n\n```bash\n# Measure project scale first\ntotal_files=$(find . -type f -not -path '*\u002Fnode_modules\u002F*' -not -path '*\u002F.git\u002F*' | wc -l)\ntotal_lines=$(find . -type f \\( -name \"*.ts\" -o -name \"*.py\" -o -name \"*.go\" \\) -not -path '*\u002Fnode_modules\u002F*' -exec wc -l {} + 2>\u002Fdev\u002Fnull | tail -1 | awk '{print $1}')\nlarge_files=$(find . -type f \\( -name \"*.ts\" -o -name \"*.py\" \\) -not -path '*\u002Fnode_modules\u002F*' -exec wc -l {} + 2>\u002Fdev\u002Fnull | awk '$1 > 500 {count++} END {print count+0}')\nmax_depth=$(find . -type d -not -path '*\u002Fnode_modules\u002F*' -not -path '*\u002F.git\u002F*' | awk -F\u002F '{print NF}' | sort -rn | head -1)\n```\n\nExample spawning (all in ONE message for parallel execution):\n```\n\u002F\u002F 500 files, 50k lines, depth 6, 15 large files → spawn additional agents\nTask(\n  description=\"large files\",\n  subagent_type=\"explore\",\n  prompt=\"Large file analysis: FIND files >500 lines, REPORT complexity hotspots\"\n)\n\nTask(\n  description=\"deep modules\",\n  subagent_type=\"explore\",\n  prompt=\"Deep modules at depth 4+: FIND hidden patterns, internal conventions\"\n)\n\nTask(\n  description=\"cross-cutting\",\n  subagent_type=\"explore\",\n  prompt=\"Cross-cutting concerns: FIND shared utilities across directories\"\n)\n\u002F\u002F ... more based on calculation\n```\n\u003C\u002Fdynamic-agents>\n\n### Main Session: Concurrent Analysis\n\n**While Task agents execute**, main session does:\n\n#### 1. Bash Structural Analysis\n```bash\n# Directory depth + file counts\nfind . -type d -not -path '*\u002F\\.*' -not -path '*\u002Fnode_modules\u002F*' -not -path '*\u002Fvenv\u002F*' -not -path '*\u002Fdist\u002F*' -not -path '*\u002Fbuild\u002F*' | awk -F\u002F '{print NF-1}' | sort -n | uniq -c\n\n# Files per directory (top 30)\nfind . -type f -not -path '*\u002F\\.*' -not -path '*\u002Fnode_modules\u002F*' | sed 's|\u002F[^\u002F]*$||' | sort | uniq -c | sort -rn | head -30\n\n# Code concentration by extension\nfind . -type f \\( -name \"*.py\" -o -name \"*.ts\" -o -name \"*.tsx\" -o -name \"*.js\" -o -name \"*.go\" -o -name \"*.rs\" \\) -not -path '*\u002Fnode_modules\u002F*' | sed 's|\u002F[^\u002F]*$||' | sort | uniq -c | sort -rn | head -20\n\n# Existing AGENTS.md \u002F CLAUDE.md\nfind . -type f \\( -name \"AGENTS.md\" -o -name \"CLAUDE.md\" \\) -not -path '*\u002Fnode_modules\u002F*' 2>\u002Fdev\u002Fnull\n```\n\n#### 2. Read Existing AGENTS.md\n```\nFor each existing file found:\n  Read(filePath=file)\n  Extract: key insights, conventions, anti-patterns\n  Store in EXISTING_AGENTS map\n```\n\nIf `--create-new`: Read all existing first (preserve context) → then delete all → regenerate.\n\n#### 3. LSP Codemap (if available)\n```\nlsp_servers()  # Check availability\n\n# Entry points (parallel)\nlsp_document_symbols(filePath=\"src\u002Findex.ts\")\nlsp_document_symbols(filePath=\"main.py\")\n\n# Key symbols (parallel)\nlsp_workspace_symbols(filePath=\".\", query=\"class\")\nlsp_workspace_symbols(filePath=\".\", query=\"interface\")\nlsp_workspace_symbols(filePath=\".\", query=\"function\")\n\n# Centrality for top exports\nlsp_find_references(filePath=\"...\", line=X, character=Y)\n```\n\n**LSP Fallback**: If unavailable, rely on explore agents + AST-grep.\n\n**Merge: bash + LSP + existing + Task agent results. Mark \"discovery\" as completed.**\n\n---\n\n## Phase 2: Scoring & Location Decision\n\n**Mark \"scoring\" as in_progress.**\n\n### Scoring Matrix\n\n| Factor | Weight | High Threshold | Source |\n|--------|--------|----------------|--------|\n| File count | 3x | >20 | bash |\n| Subdir count | 2x | >5 | bash |\n| Code ratio | 2x | >70% | bash |\n| Unique patterns | 1x | Has own config | explore |\n| Module boundary | 2x | Has index.ts\u002F__init__.py | bash |\n| Symbol density | 2x | >30 symbols | LSP |\n| Export count | 2x | >10 exports | LSP |\n| Reference centrality | 3x | >20 refs | LSP |\n\n### Decision Rules\n\n| Score | Action |\n|-------|--------|\n| **Root (.)** | ALWAYS create |\n| **>15** | Create AGENTS.md |\n| **8-15** | Create if distinct domain |\n| **\u003C8** | Skip (parent covers) |\n\n### Output\n```\nAGENTS_LOCATIONS = [\n  { path: \".\", type: \"root\" },\n  { path: \"src\u002Fhooks\", score: 18, reason: \"high complexity\" },\n  { path: \"src\u002Fapi\", score: 12, reason: \"distinct domain\" }\n]\n```\n\n**Mark \"scoring\" as completed.**\n\n---\n\n## Phase 3: Generate AGENTS.md\n\n**Mark \"generate\" as in_progress.**\n\n### Root AGENTS.md (Full Treatment)\n\n```markdown\n# PROJECT KNOWLEDGE BASE\n\n**Generated:** {TIMESTAMP}\n**Commit:** {SHORT_SHA}\n**Branch:** {BRANCH}\n\n## OVERVIEW\n{1-2 sentences: what + core stack}\n\n## STRUCTURE\n\\`\\`\\`\n{root}\u002F\n├── {dir}\u002F    # {non-obvious purpose only}\n└── {entry}\n\\`\\`\\`\n\n## WHERE TO LOOK\n| Task | Location | Notes |\n|------|----------|-------|\n\n## CODE MAP\n{From LSP - skip if unavailable or project \u003C10 files}\n\n| Symbol | Type | Location | Refs | Role |\n\n## CONVENTIONS\n{ONLY deviations from standard}\n\n## ANTI-PATTERNS (THIS PROJECT)\n{Explicitly forbidden here}\n\n## UNIQUE STYLES\n{Project-specific}\n\n## COMMANDS\n\\`\\`\\`bash\n{dev\u002Ftest\u002Fbuild}\n\\`\\`\\`\n\n## NOTES\n{Gotchas}\n```\n\n**Quality gates**: 50-150 lines, no generic advice, no obvious info.\n\n### Subdirectory AGENTS.md (Parallel)\n\nLaunch general agents for each location in ONE message (parallel execution):\n\n```\n\u002F\u002F All in single message = parallel\nTask(\n  description=\"AGENTS.md for src\u002Fhooks\",\n  subagent_type=\"general\",\n  prompt=\"Generate AGENTS.md for: src\u002Fhooks\n    - Reason: high complexity\n    - 30-80 lines max\n    - NEVER repeat parent content\n    - Sections: OVERVIEW (1 line), STRUCTURE (if >5 subdirs), WHERE TO LOOK, CONVENTIONS (if different), ANTI-PATTERNS\n    - Write directly to src\u002Fhooks\u002FAGENTS.md\"\n)\n\nTask(\n  description=\"AGENTS.md for src\u002Fapi\",\n  subagent_type=\"general\",\n  prompt=\"Generate AGENTS.md for: src\u002Fapi\n    - Reason: distinct domain\n    - 30-80 lines max\n    - NEVER repeat parent content\n    - Sections: OVERVIEW (1 line), STRUCTURE (if >5 subdirs), WHERE TO LOOK, CONVENTIONS (if different), ANTI-PATTERNS\n    - Write directly to src\u002Fapi\u002FAGENTS.md\"\n)\n\u002F\u002F ... one Task per AGENTS_LOCATIONS entry\n```\n\n**Results return directly. Mark \"generate\" as completed.**\n\n---\n\n## Phase 4: Review & Deduplicate\n\n**Mark \"review\" as in_progress.**\n\nFor each generated file:\n- Remove generic advice\n- Remove parent duplicates\n- Trim to size limits\n- Verify telegraphic style\n\n**Mark \"review\" as completed.**\n\n---\n\n## Final Report\n\n```\n=== index-knowledge Complete ===\n\nMode: {update | create-new}\n\nFiles:\n  ✓ .\u002FAGENTS.md (root, {N} lines)\n  ✓ .\u002Fsrc\u002Fhooks\u002FAGENTS.md ({N} lines)\n\nDirs Analyzed: {N}\nAGENTS.md Created: {N}\nAGENTS.md Updated: {N}\n\nHierarchy:\n  .\u002FAGENTS.md\n  └── src\u002Fhooks\u002FAGENTS.md\n```\n\n---\n\n## Anti-Patterns\n\n- **Static agent count**: MUST vary agents based on project size\u002Fdepth\n- **Sequential execution**: MUST parallel (multiple Task calls in one message)\n- **Ignoring existing**: ALWAYS read existing first, even with --create-new\n- **Over-documenting**: Not every dir needs AGENTS.md\n- **Redundancy**: Child never repeats parent\n- **Generic content**: Remove anything that applies to ALL projects\n- **Verbose style**: Telegraphic or die\n",{"name":5,"description":7},"main","171fbdd3085ba76dacd148aa292d0559e8d913eb",1,"https:\u002F\u002Fgithub.com\u002Froerohan\u002Fskills","https:\u002F\u002Fgithub.com\u002Froerohan","https:\u002F\u002Froerohan.com","Engineer at @cloudflare | Founding Engineer at @dyte-in | CTFs | Ex-Tech Head at @csivitu (2020-21).","2026-09-04 18:05:21",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add roerohan\u002Fskills --skill index-knowledge",{"tool":38,"command":39},"bunx","bunx skills add roerohan\u002Fskills --skill index-knowledge",{"tool":41,"command":42},"pnpm","pnpm dlx skills add roerohan\u002Fskills --skill index-knowledge","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froerohan\u002Fskills\u002Fblob\u002Fmain\u002Findex-knowledge\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M72V6EQGTE5K3AP5B5AWJARB","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002Froerohan\u002Fskills\u002Fblob\u002Fmain\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M72V6B7459ZDJMS003D65S02","using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification","https:\u002F\u002Fgithub.com\u002Froerohan\u002Fskills\u002Fblob\u002Fmain\u002Fusing-git-worktrees\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M72V69RJ26MA6Q5RZ07XTG9V","unslop","Cut AI tells from any writing. Must always apply.","https:\u002F\u002Fgithub.com\u002Froerohan\u002Fskills\u002Fblob\u002Fmain\u002Funslop\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M72V66RS1KZVXMB9NGC4RDH1","tmux","Manage long-running commands in the user's current tmux session. Use when starting dev servers, watchers, background logs, or reading\u002Finteracting with named tmux panes.","https:\u002F\u002Fgithub.com\u002Froerohan\u002Fskills\u002Fblob\u002Fmain\u002Ftmux\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M72V643VG4C97V3X764ZW12G","timesharing","Multiplexes one agent's attention across independent long-running external processes while preserving one reasoning context. Use for concurrent tests, builds, servers, watchers, REPLs, benchmarks, downloads, and other latency-bearing shell work; never use it to spawn or substitute subagents.","https:\u002F\u002Fgithub.com\u002Froerohan\u002Fskills\u002Fblob\u002Fmain\u002Ftimesharing\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M72V62CFDFD6SJDA331JEWQ9","teach","Teach the user a new skill or concept, within this workspace.","https:\u002F\u002Fgithub.com\u002Froerohan\u002Fskills\u002Fblob\u002Fmain\u002Fteach\u002FSKILL.md",[],[]]