[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F0GY20C7381PX4267DRDGG":3,"skill-same:01M7F0GY20C7381PX4267DRDGG":58},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7F0GY20C7381PX4267DRDGG","health",null,"Invoke when Claude ignores instructions, behaves inconsistently, hooks malfunction, or MCP servers need auditing. Audits the full six-layer config stack and flags issues by severity. Not for debugging code or reviewing PRs.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fhealth\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: health\ndescription: Invoke when Claude ignores instructions, behaves inconsistently, hooks malfunction, or MCP servers need auditing. Audits the full six-layer config stack and flags issues by severity. Not for debugging code or reviewing PRs.\nmetadata:\n  version: \"3.8.0\"\n---\n\n# Claude Code Configuration Health Audit\n\nPrefix your first line with 🥷 inline, not as its own paragraph.\n\n\nAudit the current project's Claude Code setup with the six-layer framework:\n`CLAUDE.md → rules → skills → hooks → subagents → verifiers`\n\nThe goal is to find violations and identify the misaligned layer, calibrated to project complexity.\n\n**Output language:** Check in order: (1) CLAUDE.md `## Communication` rule (global takes precedence over local); (2) language of the user's recent conversation messages; (3) default English. Apply the detected language to all output.\n\nKeep the user informed of progress through the three steps: data collection, analysis, and synthesis.\n\n## Step 0: Assess project tier\n\nPick tier:\n\n| Tier | Signal | What's expected |\n|------|--------|-----------------|\n| **Simple** | \u003C500 project files, 1 contributor, no CI | CLAUDE.md only; 0–1 skills; no rules\u002F; hooks optional |\n| **Standard** | 500–5K project files, small team or CI present | CLAUDE.md + 1–2 rules files; 2–4 skills; basic hooks |\n| **Complex** | >5K project files, multi-contributor, multi-language, active CI | Full six-layer setup required |\n\n**Apply only the detected tier's requirements.**\n\n\n## Step 1: Collect all data\n\nRun `bash \"${CLAUDE_SKILL_DIR:-$HOME\u002F.agents\u002Fskills\u002Fhealth}\u002Fscripts\u002Fcollect-data.sh\"` to collect all configuration data. The script outputs labeled sections covering: tier metrics, CLAUDE.md (global + local), settings\u002Fhooks\u002FMCP, rules, skill inventory, context budget, conversation history, conversation signals, and skill security content.\n\n## Step 1b: MCP Live Check\n\nAfter the bash block completes, for each MCP server listed in the settings, attempt to call it and verify it actually responds. Do this before launching analysis agents.\n\nFor each server name found in Step 1:\n1. Call any known tool from that server with minimal input (e.g., a search tool with a trivial query, or a list\u002Fread tool on a known path). If no tool name is known, attempt the server's first listed tool with safe default arguments.\n2. If the call succeeds: mark `live=yes`.\n3. If it fails or times out: mark `live=no`, note the error.\n\nRecord the result as a table:\n\n```\nMCP Live Status:\n  server_name    live=yes  (N tools available)\n  other_server   live=no   error: connection refused \u002F tool not found \u002F API key invalid\n```\n\nPass this table to Agent 1 for inclusion in the MCP findings section.\n\n**If API keys are required**: look for relevant env var names in the server config (e.g., `XCRAWL_API_KEY`, `OPENAI_API_KEY`). Do not attempt to validate the key value itself -- just note whether the env var is set: `echo $VAR_NAME | head -c 5` (5 chars only, do not print the full key).\n\n## Gotchas\n\nBefore interpreting Step 1 output, check these known failure modes.\n\n**Data collection silent failures**\n- `jq` not installed: conversation extract and conversation signals print `(unavailable: jq not installed or parse error)`. BEHAVIOR and conversation-based context checks will be empty -- treat as [INSUFFICIENT DATA], not a finding.\n- `python3` not on PATH: all MCP\u002Fhooks\u002FallowedTools sections print `(unavailable)`. Do not flag those areas when the data source itself failed.\n- `settings.local.json` absent: hooks, MCP, and allowedTools all show `(unavailable)`. Normal for projects using global settings only -- not a misconfiguration.\n\n**MEMORY.md path construction**\n- Path built with `sed 's|[\u002F_]|-|g'` on `pwd`. Unusual characters produce the wrong project key. If MEMORY.md shows `(none)` but the user mentions prior sessions, verify the path manually before flagging as [!].\n\n**Conversation extract scope**\n- Only the 2 most recent `.jsonl` files are sampled, skipping the active session. Findings from fewer than 2 files carry low signal, always tag [LOW CONFIDENCE].\n\n**MCP token estimate**\n- Assumes ~25 tools\u002Fserver and ~200 tokens\u002Ftool. Servers with many or few tools cause large over\u002Funder-estimates. Treat as directional, not precise.\n\n**Tier misclassification edge cases**\n- The bash block excludes `node_modules\u002F`, `dist\u002F`, and `build\u002F`, but not all generators. Monorepos with `.next\u002F`, `__pycache__\u002F`, or `.turbo\u002F` output can inflate the file count and trigger COMPLEX tier falsely. Recheck manually if the tier feels wrong.\n\n## Step 2: Analyze with tier-adjusted depth\n\nSummarize what was collected (word counts, skills found, conversation files sampled), confirm the tier, then proceed:\n\n- **SIMPLE:** Analyze locally from Step 1 data. Do not launch subagents. Prioritize core config checks; skip conversation cross-validation unless evidence is obvious.\n- **STANDARD\u002FCOMPLEX:** Launch two subagents in parallel with the collected data pasted inline. Do not pass file paths. Before pasting, replace any credential values (API keys, tokens, passwords) with `[REDACTED]`.\n\n**Fallback:** If either subagent fails (API error, timeout, or empty result), do not abort. Analyze that layer locally from Step 1 data instead and note \"(analyzed locally -- subagent unavailable)\" in the affected section of the report.\n\n### Agent 1 -- Context + Security Audit (uses conversation signals only)\n\nRead `agents\u002Finspector-context.md` from this skill's directory. It specifies which Step 1 sections to paste and the full audit checklist. Paste `CONVERSATION SIGNALS`, not the full `CONVERSATION EXTRACT`, so Agent 1 can inspect enforcement gaps and context pressure without duplicating the heaviest evidence block.\n\n### Agent 2 -- Control + Behavior Audit (uses conversation evidence)\n\nRead `agents\u002Finspector-control.md` from this skill's directory. It specifies which Step 1 sections to paste and the full audit checklist.\n\n## Step 3: Synthesize and present\n\nAggregate the local analysis and any agent outputs into one report:\n\n---\n\n**Health Report: {project} ({tier} tier, {file_count} files)**\n\n### [PASS] Passing\n\nRender a compact table of checks that passed. Include only checks relevant to the detected tier. Limit to 5 rows. Omit rows for checks that have findings.\n\n| Check | Detail |\n|-------|--------|\n| settings.local.json gitignored | ok |\n| No nested CLAUDE.md | ok |\n| Skill security scan | no flags |\n\n### [!] Critical -- fix now\n\nRules violated, missing verification definitions, dangerous allowedTools, MCP overhead >12.5%, required-path `Access denied`, active cache-breakers, and security findings.\n\n### [~] Structural -- fix soon\n\nCLAUDE.md content that belongs elsewhere, missing hooks, oversized skill descriptions, single-layer critical rules, model switching, verifier gaps, subagent permission gaps, and skill structural issues.\n\n### [-] Incremental -- nice to have\n\nNew patterns to add, outdated items to remove, global vs local placement, context hygiene, HANDOFF.md adoption, skill invoke tuning, and provenance issues.\n\n---\n\nIf all three issue sections are empty, output one short line in the output language like: `All relevant checks passed. Nothing to fix.`\n\n## Non-goals\n- Never auto-apply fixes without confirmation.\n- Never apply complex-tier checks to simple projects.\n- Flag issues, do not replace architectural judgment.\n\n\n**Stop condition:** After the report, ask in the output language:\n> \"Should I draft the changes? I can handle each layer separately: global CLAUDE.md \u002F local CLAUDE.md \u002F rules \u002F hooks \u002F skills \u002F MCP.\"\n\nDo not make any edits without explicit confirmation.\n","# Claude Code Configuration Health Audit\n\nPrefix your first line with 🥷 inline, not as its own paragraph.\n\n\nAudit the current project's Claude Code setup with the six-layer framework:\n`CLAUDE.md → rules → skills → hooks → subagents → verifiers`\n\nThe goal is to find violations and identify the misaligned layer, calibrated to project complexity.\n\n**Output language:** Check in order: (1) CLAUDE.md `## Communication` rule (global takes precedence over local); (2) language of the user's recent conversation messages; (3) default English. Apply the detected language to all output.\n\nKeep the user informed of progress through the three steps: data collection, analysis, and synthesis.\n\n## Step 0: Assess project tier\n\nPick tier:\n\n| Tier | Signal | What's expected |\n|------|--------|-----------------|\n| **Simple** | \u003C500 project files, 1 contributor, no CI | CLAUDE.md only; 0–1 skills; no rules\u002F; hooks optional |\n| **Standard** | 500–5K project files, small team or CI present | CLAUDE.md + 1–2 rules files; 2–4 skills; basic hooks |\n| **Complex** | >5K project files, multi-contributor, multi-language, active CI | Full six-layer setup required |\n\n**Apply only the detected tier's requirements.**\n\n\n## Step 1: Collect all data\n\nRun `bash \"${CLAUDE_SKILL_DIR:-$HOME\u002F.agents\u002Fskills\u002Fhealth}\u002Fscripts\u002Fcollect-data.sh\"` to collect all configuration data. The script outputs labeled sections covering: tier metrics, CLAUDE.md (global + local), settings\u002Fhooks\u002FMCP, rules, skill inventory, context budget, conversation history, conversation signals, and skill security content.\n\n## Step 1b: MCP Live Check\n\nAfter the bash block completes, for each MCP server listed in the settings, attempt to call it and verify it actually responds. Do this before launching analysis agents.\n\nFor each server name found in Step 1:\n1. Call any known tool from that server with minimal input (e.g., a search tool with a trivial query, or a list\u002Fread tool on a known path). If no tool name is known, attempt the server's first listed tool with safe default arguments.\n2. If the call succeeds: mark `live=yes`.\n3. If it fails or times out: mark `live=no`, note the error.\n\nRecord the result as a table:\n\n```\nMCP Live Status:\n  server_name    live=yes  (N tools available)\n  other_server   live=no   error: connection refused \u002F tool not found \u002F API key invalid\n```\n\nPass this table to Agent 1 for inclusion in the MCP findings section.\n\n**If API keys are required**: look for relevant env var names in the server config (e.g., `XCRAWL_API_KEY`, `OPENAI_API_KEY`). Do not attempt to validate the key value itself -- just note whether the env var is set: `echo $VAR_NAME | head -c 5` (5 chars only, do not print the full key).\n\n## Gotchas\n\nBefore interpreting Step 1 output, check these known failure modes.\n\n**Data collection silent failures**\n- `jq` not installed: conversation extract and conversation signals print `(unavailable: jq not installed or parse error)`. BEHAVIOR and conversation-based context checks will be empty -- treat as [INSUFFICIENT DATA], not a finding.\n- `python3` not on PATH: all MCP\u002Fhooks\u002FallowedTools sections print `(unavailable)`. Do not flag those areas when the data source itself failed.\n- `settings.local.json` absent: hooks, MCP, and allowedTools all show `(unavailable)`. Normal for projects using global settings only -- not a misconfiguration.\n\n**MEMORY.md path construction**\n- Path built with `sed 's|[\u002F_]|-|g'` on `pwd`. Unusual characters produce the wrong project key. If MEMORY.md shows `(none)` but the user mentions prior sessions, verify the path manually before flagging as [!].\n\n**Conversation extract scope**\n- Only the 2 most recent `.jsonl` files are sampled, skipping the active session. Findings from fewer than 2 files carry low signal, always tag [LOW CONFIDENCE].\n\n**MCP token estimate**\n- Assumes ~25 tools\u002Fserver and ~200 tokens\u002Ftool. Servers with many or few tools cause large over\u002Funder-estimates. Treat as directional, not precise.\n\n**Tier misclassification edge cases**\n- The bash block excludes `node_modules\u002F`, `dist\u002F`, and `build\u002F`, but not all generators. Monorepos with `.next\u002F`, `__pycache__\u002F`, or `.turbo\u002F` output can inflate the file count and trigger COMPLEX tier falsely. Recheck manually if the tier feels wrong.\n\n## Step 2: Analyze with tier-adjusted depth\n\nSummarize what was collected (word counts, skills found, conversation files sampled), confirm the tier, then proceed:\n\n- **SIMPLE:** Analyze locally from Step 1 data. Do not launch subagents. Prioritize core config checks; skip conversation cross-validation unless evidence is obvious.\n- **STANDARD\u002FCOMPLEX:** Launch two subagents in parallel with the collected data pasted inline. Do not pass file paths. Before pasting, replace any credential values (API keys, tokens, passwords) with `[REDACTED]`.\n\n**Fallback:** If either subagent fails (API error, timeout, or empty result), do not abort. Analyze that layer locally from Step 1 data instead and note \"(analyzed locally -- subagent unavailable)\" in the affected section of the report.\n\n### Agent 1 -- Context + Security Audit (uses conversation signals only)\n\nRead `agents\u002Finspector-context.md` from this skill's directory. It specifies which Step 1 sections to paste and the full audit checklist. Paste `CONVERSATION SIGNALS`, not the full `CONVERSATION EXTRACT`, so Agent 1 can inspect enforcement gaps and context pressure without duplicating the heaviest evidence block.\n\n### Agent 2 -- Control + Behavior Audit (uses conversation evidence)\n\nRead `agents\u002Finspector-control.md` from this skill's directory. It specifies which Step 1 sections to paste and the full audit checklist.\n\n## Step 3: Synthesize and present\n\nAggregate the local analysis and any agent outputs into one report:\n\n---\n\n**Health Report: {project} ({tier} tier, {file_count} files)**\n\n### [PASS] Passing\n\nRender a compact table of checks that passed. Include only checks relevant to the detected tier. Limit to 5 rows. Omit rows for checks that have findings.\n\n| Check | Detail |\n|-------|--------|\n| settings.local.json gitignored | ok |\n| No nested CLAUDE.md | ok |\n| Skill security scan | no flags |\n\n### [!] Critical -- fix now\n\nRules violated, missing verification definitions, dangerous allowedTools, MCP overhead >12.5%, required-path `Access denied`, active cache-breakers, and security findings.\n\n### [~] Structural -- fix soon\n\nCLAUDE.md content that belongs elsewhere, missing hooks, oversized skill descriptions, single-layer critical rules, model switching, verifier gaps, subagent permission gaps, and skill structural issues.\n\n### [-] Incremental -- nice to have\n\nNew patterns to add, outdated items to remove, global vs local placement, context hygiene, HANDOFF.md adoption, skill invoke tuning, and provenance issues.\n\n---\n\nIf all three issue sections are empty, output one short line in the output language like: `All relevant checks passed. Nothing to fix.`\n\n## Non-goals\n- Never auto-apply fixes without confirmation.\n- Never apply complex-tier checks to simple projects.\n- Flag issues, do not replace architectural judgment.\n\n\n**Stop condition:** After the report, ask in the output language:\n> \"Should I draft the changes? I can handle each layer separately: global CLAUDE.md \u002F local CLAUDE.md \u002F rules \u002F hooks \u002F skills \u002F MCP.\"\n\nDo not make any edits without explicit confirmation.\n",{"name":5,"metadata":24,"description":7},{"version":25},"3.8.0","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fhealth",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill health",{"tool":40,"command":41},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill health",{"tool":43,"command":44},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill health","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fhealth\u002FSKILL.md",true,[48,54],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"agents\u002Finspector-context.md","REFERENCE","参考文档",8059,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fhealth\u002Fagents\u002Finspector-context.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"agents\u002Finspector-control.md",5594,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fhealth\u002Fagents\u002Finspector-control.md",[59,66,71,78,85,92],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":67,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]