[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ER2G3RMKKZ2KTJ5XYWE40P":3,"skill-same:01M6ER2G3RMKKZ2KTJ5XYWE40P":116},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":27,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":13,"repositoryHtmlUrl":61,"repositoryHomepageUrl":62,"ownerHtmlUrl":63,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":64,"install":65,"resources":77},"01M6ER2G3RMKKZ2KTJ5XYWE40P","agent-audit",null,"Audits Claude Code agent configuration against latest best practices. Works on any project. Manual via \u002Fagent-audit.","cj-ways\u002Farcana","cj-ways","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F268418145?v=4","01M6ER2722FXTDPCH3119PJ5T3","01M6ER2773VFWAC3D21KGP6N7Q",0,"MIT","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Fagent-audit\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"agent audit","audit","hooks","utility","via","scope","name","agent configuration","full","project","configuration","memory","webfetch","read","grep","Rules","permissions","best practices","code","2026-11-10 10:12:30",false,"---\nname: agent-audit\ndescription: 'Audits Claude Code agent configuration against latest best practices. Works on any project. Manual via \u002Fagent-audit.'\nargument-hint: '[scope: full|hooks|permissions|claudeignore|claude-md|memory|skills|skill:\u003Cname>|agents|agent:\u003Cname>|rules]'\ndisable-model-invocation: true\nallowed-tools: Read, Grep, Glob, Agent, WebSearch, WebFetch\neffort: medium\nphase: utility\nfeedback-profile: diagnostic\ncatalog-order: 130\n---\n\n# Agent Configuration Audit\n\nAudit this project's Claude Code agent configuration against latest best practices.\n\n## Gotchas\n\n1. **Flagging intentional patterns as issues.** Read CLAUDE.md and `.claude\u002Frules\u002F` FIRST. What looks like a misconfiguration may be an intentional project convention documented there. Never report something as an issue if it's explained in the project's own docs.\n2. **Recommending fields that don't exist.** Claude Code's supported frontmatter fields change between versions. ALWAYS verify against the latest docs (Phase 1 research) before flagging a \"missing\" field — it may not be supported yet, or may have been deprecated.\n3. **Overwhelming output.** A full audit can produce 50+ findings. Prioritize ruthlessly — lead with HIGH severity, collapse LOW items into a summary table. Users stop reading after 10 findings.\n4. **Ignoring user-level config.** Project-level `.claude\u002F` is only half the picture. Always check `~\u002F.claude\u002Fsettings.json`, `~\u002F.claude\u002Frules\u002F`, and `~\u002F.claude\u002Fskills\u002F` for conflicts or overrides that affect behavior.\n\n## Argument Parsing\n\nParse `$ARGUMENTS` to determine scope. Examples:\n\n| Invocation | Scope |\n|---|---|\n| `\u002Fagent-audit` | Full audit — all components |\n| `\u002Fagent-audit full` | Same as above |\n| `\u002Fagent-audit hooks` | Only hooks (settings.json hook config + .claude\u002Fhooks\u002F scripts) |\n| `\u002Fagent-audit permissions` | Only permission allowlists\u002Fdenylists in settings.json |\n| `\u002Fagent-audit claudeignore` | Only .claudeignore |\n| `\u002Fagent-audit claude-md` | Only CLAUDE.md |\n| `\u002Fagent-audit memory` | Only MEMORY.md |\n| `\u002Fagent-audit skills` | Deep-dive ALL skills — skip general audit |\n| `\u002Fagent-audit skill:add-logs` | Deep-dive ONLY the `add-logs` skill — skip everything else |\n| `\u002Fagent-audit skill:agent-audit` | Deep-dive ONLY this skill (meta-audit) |\n| `\u002Fagent-audit agents` | Deep-dive ALL agents — skip general audit |\n| `\u002Fagent-audit agent:code-reviewer` | Deep-dive ONLY the `code-reviewer` agent — skip everything else |\n| `\u002Fagent-audit rules` | Audit rules files — quality + conflict detection |\n\n**Routing logic:**\n- If argument starts with `skill:` → extract skill name → jump directly to **Skill Deep-Dive** for that one skill only. Skip Phases 1-2.\n- If argument starts with `agent:` → extract agent name → jump directly to **Agent Deep-Dive** for that one agent only. Skip Phases 1-2.\n- If argument is `skills` → discover all skills → run **Skill Deep-Dive** for each. Skip Phase 2 general audit.\n- If argument is `agents` → discover all agents → run **Agent Deep-Dive** for each. Skip Phase 2 general audit.\n- If argument is `rules` → jump directly to **Rules Conflict Detection**. Skip Phases 1-2.\n- If argument is a component name (`hooks`, `permissions`, etc.) → run Phase 1 research scoped to that topic + Phase 2 checklist for that component only.\n- If empty or `full` → run everything.\n\n## Phase 1: Research Latest Best Practices\n\nUse the Agent tool to launch **parallel research agents** (subagent_type: \"general-purpose\"). All agents MUST search the web for the **current year's** content:\n\n### Agent 1: Official Claude Code Docs\nFetch latest official Claude Code documentation for:\n- Hooks: events, matchers, exit codes\n- Settings: permissions, deny lists, sandbox, attribution\n- Memory: CLAUDE.md hierarchy, auto-memory, `.claude\u002Frules\u002F`\n- Skills: **valid frontmatter fields** (critical — verify which fields are actually supported vs silently ignored)\n- MCP, plugins, subagents\n\n### Agent 2: Community Patterns & New Features\nSearch for:\n- Claude Code changelog \u002F release notes for current year\n- Community best practices and patterns\n- New features or deprecated settings\n\n**When scoped to a component** (e.g., `\u002Fagent-audit hooks`): only research that component's docs, not everything.\n\n## Phase 2: General Audit\n\nRead and audit agent-related files. **Skip this phase entirely for `skills` or `skill:\u003Cname>` arguments.**\n\n### Files to Check\n\nAuto-discover — check for existence of each:\n```\n.claudeignore\n.claude\u002Fsettings.json\n.claude\u002Fsettings.local.json\n.claude\u002Fhooks\u002F*\n.claude\u002Fcommands\u002F*\n.claude\u002Fskills\u002F*\u002FSKILL.md (surface-level only — name, description, size)\n.claude\u002Fagents\u002F* (if exists)\n.claude\u002Frules\u002F* (if exists)\n.mcp.json (if exists)\nCLAUDE.md (or claude.md)\nopenspec\u002F (if exists)\n.gitignore\n```\n\n### Checklist\n\n**`.claudeignore`**\n- [ ] Excludes build artifacts (dist\u002F, build\u002F, node_modules\u002F, .next\u002F, etc.)\n- [ ] Excludes secrets (.env, .keys\u002F, certificates, *.pem)\n- [ ] Excludes coverage and logs\n- [ ] Excludes .git\u002F\n- [ ] No over-exclusion of files Claude needs\n\n**`.claude\u002Fsettings.json`**\n- [ ] Has `$schema` for validation (if supported)\n- [ ] Permission allowlists cover common safe commands\n- [ ] Permission denylists block destructive commands\n- [ ] Hooks are configured (PreToolUse protection, PostToolUse formatting)\n- [ ] No outdated or deprecated settings\n\n**Hooks**\n- [ ] Protect-files hook covers sensitive paths (if exists)\n- [ ] Hook scripts are executable (chmod +x)\n- [ ] Exit codes correct (0=allow, 2=block)\n- [ ] PostToolUse auto-format covers relevant extensions (if exists)\n- [ ] No missing hook events that would be beneficial\n\n**CLAUDE.md**\n- [ ] Size under 15KB (if over, recommend moving sections to `.claude\u002Frules\u002F`)\n- [ ] Contains project overview, commands, architecture, patterns\n- [ ] No stale information\n- [ ] No duplication with other config files\n\n**Commands & Skills (surface-level)**\n- [ ] All commands functional for current environment\n- [ ] Referenced templates and files exist\n- [ ] Each skill has frontmatter with `name` and `description`\n- [ ] Descriptions are concise\n\n**Memory (MEMORY.md if exists)**\n- [ ] Under 200 lines\n- [ ] Organized by topic\n- [ ] No stale information\n\n**.gitignore**\n- [ ] Includes `.claude\u002Fsettings.local.json`\n\n## Phase 3: Skill Deep-Dive\n\n**Triggered by:** `skills` (all), `skill:\u003Cname>` (one), or during `full` audit if a skill looks problematic in surface-level check.\n\n### Discovery\n1. List all skills: `ls .claude\u002Fskills\u002F*\u002FSKILL.md`\n2. If `skill:\u003Cname>` — find the matching skill directory\n3. Read each target skill's SKILL.md fully\n\n### Complexity Assessment (for `skills` argument only)\nBefore auditing each skill, assess if it needs a separate agent:\n\n**Use a separate agent when ANY of these are true:**\n- SKILL.md exceeds 100 lines\n- Skill contains inline commands (exclamation-backtick syntax) that need execution testing\n- Skill references external files or scripts\n- Skill has complex argument handling\n\n**Audit inline (no separate agent) when:**\n- SKILL.md is short and simple (under 100 lines)\n- No inline commands or external references\n- Straightforward instructions\n\n### Skill Audit Checklist\n\nFor EVERY skill being deep-dived, check ALL of the following:\n\n**Frontmatter**\n- [ ] Only uses supported fields (from Phase 1 research — verify against latest docs)\n- [ ] `name` is lowercase with hyphens\n- [ ] `description` is concise — long descriptions bloat every session's system prompt\n- [ ] No unsupported fields silently ignored\n\n**Content & Structure**\n- [ ] SKILL.md under 500 lines\n- [ ] Clear separation of conventions vs workflow\n- [ ] Examples provided for non-trivial behavior\n- [ ] Supporting files (if any) exist and are referenced\n\n**Technical Correctness**\n- [ ] Inline commands (exclamation-backtick syntax) are valid — execute them and verify output\n- [ ] Grep\u002Ffilter patterns match current codebase naming conventions\n- [ ] Referenced file paths and directories exist\n- [ ] No hardcoded absolute paths\n- [ ] No project-specific assumptions that should be generalized (for user-level skills)\n\n**Codebase Alignment**\n- [ ] Conventions match CLAUDE.md and project rules\n- [ ] No contradictions with project patterns\n- [ ] File naming patterns reflect current state\n- [ ] Filter patterns cover all relevant file types\n\n**Invocation & UX**\n- [ ] Description clearly signals manual-only if intended\n- [ ] `$ARGUMENTS` handling documented\n- [ ] Output format specified (what user sees after skill runs)\n- [ ] Error cases handled (e.g., no files match, empty diff)\n\n**Security**\n- [ ] No secrets in skill content\n- [ ] Inline commands don't expose sensitive data\n- [ ] Doesn't bypass protect-files hook\n\n### Skill Deep-Dive Report (per skill)\n```\n### Skill: \u003Cskill-name>\n**Lines:** N | **Complexity:** low\u002Fmedium\u002Fhigh | **Agent used:** yes\u002Fno\n**Checks Passed:** X\u002FY\n\n| Category | Check | Status | Detail |\n|----------|-------|--------|--------|\n| Frontmatter | Supported fields only | PASS\u002FFAIL | ... |\n| Frontmatter | Description concise | PASS\u002FFAIL | ... |\n| Technical | Inline commands valid | PASS\u002FFAIL | ... |\n| Technical | Patterns match codebase | PASS\u002FFAIL | ... |\n| Alignment | Matches CLAUDE.md | PASS\u002FFAIL | ... |\n| Security | No secrets exposed | PASS\u002FFAIL | ... |\n```\n\n## Phase 3b: Agent Deep-Dive\n\n**Triggered by:** `agents` (all), `agent:\u003Cname>` (one), or during `full` audit.\n\n### Discovery\n1. List all agents: `ls .claude\u002Fagents\u002F*.md`\n2. If `agent:\u003Cname>` — find the matching agent file\n3. Read each target agent file fully\n\n### Agent Audit Checklist\n\nFor EVERY agent being deep-dived, check ALL of the following:\n\n**Frontmatter**\n- [ ] Has `name` and `description`\n- [ ] `model` is appropriate for the agent's complexity (sonnet for fast tasks, opus for complex)\n- [ ] Description examples match the project's domain and conventions\n\n**Codebase Alignment**\n- [ ] Tech stack references match actual project\n- [ ] Review dimensions are relevant to this project's stack\n- [ ] Convention checklist matches CLAUDE.md and project rules\n- [ ] Architecture checks reflect actual patterns\n- [ ] No references to frameworks, libraries, or patterns not used in this project\n\n**Content Quality**\n- [ ] Clear review process \u002F workflow steps\n- [ ] Output format specified\n- [ ] Edge cases handled\n- [ ] Guidelines are actionable and specific\n\n**Security**\n- [ ] No secrets in agent content\n- [ ] No instructions that could bypass safety measures\n\n### Agent Deep-Dive Report (per agent)\n```\n### Agent: \u003Cagent-name>\n**Lines:** N | **Model:** sonnet\u002Fopus\n**Checks Passed:** X\u002FY\n\n| Category | Check | Status | Detail |\n|----------|-------|--------|--------|\n| Frontmatter | Has name + description | PASS\u002FFAIL | ... |\n| Frontmatter | Model appropriate | PASS\u002FFAIL | ... |\n| Alignment | Tech stack matches project | PASS\u002FFAIL | ... |\n| Alignment | Conventions match CLAUDE.md | PASS\u002FFAIL | ... |\n| Content | Clear workflow | PASS\u002FFAIL | ... |\n| Security | No secrets | PASS\u002FFAIL | ... |\n```\n\n## Phase 3c: Rules Conflict Detection\n\n**Triggered by:** `rules`, or during `full` audit.\n\n### Rules Conflict Detection\n\nWhen auditing rules (either as part of `full` or `rules` scope):\n\n1. **Identify sources**: Classify each rules file:\n   - **Arcana rules**: files matching `arcana-*.md` pattern in `.claude\u002Frules\u002F`\n   - **User rules**: all other `.md` files in `.claude\u002Frules\u002F`\n   - **CLAUDE.md**: project root instructions\n\n2. **Read all rules files** and extract the key directives from each\n\n3. **Cross-check for semantic conflicts**:\n   - For each Arcana directive, check if any user rule contradicts it\n   - Example conflict: Arcana says \"research before acting\" but user rule says \"be concise, no research\"\n   - Example non-conflict: Arcana says \"verify before output\" and user says \"use TypeScript strict\" (different concerns)\n\n4. **Report findings with source labels**:\n   ```\n   ? Arcana rules (3 files):\n     ✓ arcana-quality.md — no conflicts\n     ⚠ arcana-research.md — potential conflict with your rules\n       Arcana: \"Research before acting\"\n       Your rule (coding-style.md): \"Keep responses concise and fast\"\n       → These may conflict during complex analysis tasks\n\n   ? Your project rules (2 files):\n     ✓ architecture.md — no issues\n     ✓ coding-style.md — reviewed (see conflict above)\n   ```\n\n5. **For each conflict**: Ask the user which should take priority. Do NOT auto-resolve.\n\n6. **Self-audit note**: When auditing Arcana's own skills, label them clearly:\n   ```\n   ? Arcana skill: deep-review\n     ✓ Frontmatter valid\n     ⚠ Could benefit from `context: fork` (new Claude Code feature)\n   ```\n   Never say \"Arcana's skill is wrong.\" Say \"could benefit from [improvement]\" or \"consider updating.\"\n\n## Phase 4: Report\n\n### Full\u002FComponent Audit Report\n```\n## Agent Configuration Audit Report\n**Date:** YYYY-MM-DD\n**Project:** \u003Cproject name from CLAUDE.md or directory name>\n**New Features Found:** [any new Claude Code features from research]\n\n### Score: X\u002F10\n\n### What's Working Well\n- ...\n\n### Issues Found\n| # | Severity | Component | Issue | Recommendation |\n|---|----------|-----------|-------|----------------|\n\n### Recommendations (Priority Ordered)\n1. [HIGH] ...\n2. [MEDIUM] ...\n3. [LOW] ...\n```\n\n## Phase 5: Implementation Plan\n\nIf actionable improvements found:\n1. Write concrete plan with exact file changes\n2. Wait for user approval\n3. On approval, implement changes\n\nIf no issues: report \"All clear — configuration is up to date\" and skip planning.\n\n## Rules\n\n- NEVER modify files without user approval\n- ALWAYS search latest docs — do not rely on cached knowledge\n- Be specific — include exact file paths and code snippets in recommendations\n- Flag deprecated or silently-ignored settings\u002Ffields\n- If CLAUDE.md exceeds 15KB, recommend moving sections to `.claude\u002Frules\u002F`\n- Adapt to whatever project structure exists — don't assume any specific stack\n- Check for both project-level AND user-level skills\u002Frules conflicts\n","# Agent Configuration Audit\n\nAudit this project's Claude Code agent configuration against latest best practices.\n\n## Gotchas\n\n1. **Flagging intentional patterns as issues.** Read CLAUDE.md and `.claude\u002Frules\u002F` FIRST. What looks like a misconfiguration may be an intentional project convention documented there. Never report something as an issue if it's explained in the project's own docs.\n2. **Recommending fields that don't exist.** Claude Code's supported frontmatter fields change between versions. ALWAYS verify against the latest docs (Phase 1 research) before flagging a \"missing\" field — it may not be supported yet, or may have been deprecated.\n3. **Overwhelming output.** A full audit can produce 50+ findings. Prioritize ruthlessly — lead with HIGH severity, collapse LOW items into a summary table. Users stop reading after 10 findings.\n4. **Ignoring user-level config.** Project-level `.claude\u002F` is only half the picture. Always check `~\u002F.claude\u002Fsettings.json`, `~\u002F.claude\u002Frules\u002F`, and `~\u002F.claude\u002Fskills\u002F` for conflicts or overrides that affect behavior.\n\n## Argument Parsing\n\nParse `$ARGUMENTS` to determine scope. Examples:\n\n| Invocation | Scope |\n|---|---|\n| `\u002Fagent-audit` | Full audit — all components |\n| `\u002Fagent-audit full` | Same as above |\n| `\u002Fagent-audit hooks` | Only hooks (settings.json hook config + .claude\u002Fhooks\u002F scripts) |\n| `\u002Fagent-audit permissions` | Only permission allowlists\u002Fdenylists in settings.json |\n| `\u002Fagent-audit claudeignore` | Only .claudeignore |\n| `\u002Fagent-audit claude-md` | Only CLAUDE.md |\n| `\u002Fagent-audit memory` | Only MEMORY.md |\n| `\u002Fagent-audit skills` | Deep-dive ALL skills — skip general audit |\n| `\u002Fagent-audit skill:add-logs` | Deep-dive ONLY the `add-logs` skill — skip everything else |\n| `\u002Fagent-audit skill:agent-audit` | Deep-dive ONLY this skill (meta-audit) |\n| `\u002Fagent-audit agents` | Deep-dive ALL agents — skip general audit |\n| `\u002Fagent-audit agent:code-reviewer` | Deep-dive ONLY the `code-reviewer` agent — skip everything else |\n| `\u002Fagent-audit rules` | Audit rules files — quality + conflict detection |\n\n**Routing logic:**\n- If argument starts with `skill:` → extract skill name → jump directly to **Skill Deep-Dive** for that one skill only. Skip Phases 1-2.\n- If argument starts with `agent:` → extract agent name → jump directly to **Agent Deep-Dive** for that one agent only. Skip Phases 1-2.\n- If argument is `skills` → discover all skills → run **Skill Deep-Dive** for each. Skip Phase 2 general audit.\n- If argument is `agents` → discover all agents → run **Agent Deep-Dive** for each. Skip Phase 2 general audit.\n- If argument is `rules` → jump directly to **Rules Conflict Detection**. Skip Phases 1-2.\n- If argument is a component name (`hooks`, `permissions`, etc.) → run Phase 1 research scoped to that topic + Phase 2 checklist for that component only.\n- If empty or `full` → run everything.\n\n## Phase 1: Research Latest Best Practices\n\nUse the Agent tool to launch **parallel research agents** (subagent_type: \"general-purpose\"). All agents MUST search the web for the **current year's** content:\n\n### Agent 1: Official Claude Code Docs\nFetch latest official Claude Code documentation for:\n- Hooks: events, matchers, exit codes\n- Settings: permissions, deny lists, sandbox, attribution\n- Memory: CLAUDE.md hierarchy, auto-memory, `.claude\u002Frules\u002F`\n- Skills: **valid frontmatter fields** (critical — verify which fields are actually supported vs silently ignored)\n- MCP, plugins, subagents\n\n### Agent 2: Community Patterns & New Features\nSearch for:\n- Claude Code changelog \u002F release notes for current year\n- Community best practices and patterns\n- New features or deprecated settings\n\n**When scoped to a component** (e.g., `\u002Fagent-audit hooks`): only research that component's docs, not everything.\n\n## Phase 2: General Audit\n\nRead and audit agent-related files. **Skip this phase entirely for `skills` or `skill:\u003Cname>` arguments.**\n\n### Files to Check\n\nAuto-discover — check for existence of each:\n```\n.claudeignore\n.claude\u002Fsettings.json\n.claude\u002Fsettings.local.json\n.claude\u002Fhooks\u002F*\n.claude\u002Fcommands\u002F*\n.claude\u002Fskills\u002F*\u002FSKILL.md (surface-level only — name, description, size)\n.claude\u002Fagents\u002F* (if exists)\n.claude\u002Frules\u002F* (if exists)\n.mcp.json (if exists)\nCLAUDE.md (or claude.md)\nopenspec\u002F (if exists)\n.gitignore\n```\n\n### Checklist\n\n**`.claudeignore`**\n- [ ] Excludes build artifacts (dist\u002F, build\u002F, node_modules\u002F, .next\u002F, etc.)\n- [ ] Excludes secrets (.env, .keys\u002F, certificates, *.pem)\n- [ ] Excludes coverage and logs\n- [ ] Excludes .git\u002F\n- [ ] No over-exclusion of files Claude needs\n\n**`.claude\u002Fsettings.json`**\n- [ ] Has `$schema` for validation (if supported)\n- [ ] Permission allowlists cover common safe commands\n- [ ] Permission denylists block destructive commands\n- [ ] Hooks are configured (PreToolUse protection, PostToolUse formatting)\n- [ ] No outdated or deprecated settings\n\n**Hooks**\n- [ ] Protect-files hook covers sensitive paths (if exists)\n- [ ] Hook scripts are executable (chmod +x)\n- [ ] Exit codes correct (0=allow, 2=block)\n- [ ] PostToolUse auto-format covers relevant extensions (if exists)\n- [ ] No missing hook events that would be beneficial\n\n**CLAUDE.md**\n- [ ] Size under 15KB (if over, recommend moving sections to `.claude\u002Frules\u002F`)\n- [ ] Contains project overview, commands, architecture, patterns\n- [ ] No stale information\n- [ ] No duplication with other config files\n\n**Commands & Skills (surface-level)**\n- [ ] All commands functional for current environment\n- [ ] Referenced templates and files exist\n- [ ] Each skill has frontmatter with `name` and `description`\n- [ ] Descriptions are concise\n\n**Memory (MEMORY.md if exists)**\n- [ ] Under 200 lines\n- [ ] Organized by topic\n- [ ] No stale information\n\n**.gitignore**\n- [ ] Includes `.claude\u002Fsettings.local.json`\n\n## Phase 3: Skill Deep-Dive\n\n**Triggered by:** `skills` (all), `skill:\u003Cname>` (one), or during `full` audit if a skill looks problematic in surface-level check.\n\n### Discovery\n1. List all skills: `ls .claude\u002Fskills\u002F*\u002FSKILL.md`\n2. If `skill:\u003Cname>` — find the matching skill directory\n3. Read each target skill's SKILL.md fully\n\n### Complexity Assessment (for `skills` argument only)\nBefore auditing each skill, assess if it needs a separate agent:\n\n**Use a separate agent when ANY of these are true:**\n- SKILL.md exceeds 100 lines\n- Skill contains inline commands (exclamation-backtick syntax) that need execution testing\n- Skill references external files or scripts\n- Skill has complex argument handling\n\n**Audit inline (no separate agent) when:**\n- SKILL.md is short and simple (under 100 lines)\n- No inline commands or external references\n- Straightforward instructions\n\n### Skill Audit Checklist\n\nFor EVERY skill being deep-dived, check ALL of the following:\n\n**Frontmatter**\n- [ ] Only uses supported fields (from Phase 1 research — verify against latest docs)\n- [ ] `name` is lowercase with hyphens\n- [ ] `description` is concise — long descriptions bloat every session's system prompt\n- [ ] No unsupported fields silently ignored\n\n**Content & Structure**\n- [ ] SKILL.md under 500 lines\n- [ ] Clear separation of conventions vs workflow\n- [ ] Examples provided for non-trivial behavior\n- [ ] Supporting files (if any) exist and are referenced\n\n**Technical Correctness**\n- [ ] Inline commands (exclamation-backtick syntax) are valid — execute them and verify output\n- [ ] Grep\u002Ffilter patterns match current codebase naming conventions\n- [ ] Referenced file paths and directories exist\n- [ ] No hardcoded absolute paths\n- [ ] No project-specific assumptions that should be generalized (for user-level skills)\n\n**Codebase Alignment**\n- [ ] Conventions match CLAUDE.md and project rules\n- [ ] No contradictions with project patterns\n- [ ] File naming patterns reflect current state\n- [ ] Filter patterns cover all relevant file types\n\n**Invocation & UX**\n- [ ] Description clearly signals manual-only if intended\n- [ ] `$ARGUMENTS` handling documented\n- [ ] Output format specified (what user sees after skill runs)\n- [ ] Error cases handled (e.g., no files match, empty diff)\n\n**Security**\n- [ ] No secrets in skill content\n- [ ] Inline commands don't expose sensitive data\n- [ ] Doesn't bypass protect-files hook\n\n### Skill Deep-Dive Report (per skill)\n```\n### Skill: \u003Cskill-name>\n**Lines:** N | **Complexity:** low\u002Fmedium\u002Fhigh | **Agent used:** yes\u002Fno\n**Checks Passed:** X\u002FY\n\n| Category | Check | Status | Detail |\n|----------|-------|--------|--------|\n| Frontmatter | Supported fields only | PASS\u002FFAIL | ... |\n| Frontmatter | Description concise | PASS\u002FFAIL | ... |\n| Technical | Inline commands valid | PASS\u002FFAIL | ... |\n| Technical | Patterns match codebase | PASS\u002FFAIL | ... |\n| Alignment | Matches CLAUDE.md | PASS\u002FFAIL | ... |\n| Security | No secrets exposed | PASS\u002FFAIL | ... |\n```\n\n## Phase 3b: Agent Deep-Dive\n\n**Triggered by:** `agents` (all), `agent:\u003Cname>` (one), or during `full` audit.\n\n### Discovery\n1. List all agents: `ls .claude\u002Fagents\u002F*.md`\n2. If `agent:\u003Cname>` — find the matching agent file\n3. Read each target agent file fully\n\n### Agent Audit Checklist\n\nFor EVERY agent being deep-dived, check ALL of the following:\n\n**Frontmatter**\n- [ ] Has `name` and `description`\n- [ ] `model` is appropriate for the agent's complexity (sonnet for fast tasks, opus for complex)\n- [ ] Description examples match the project's domain and conventions\n\n**Codebase Alignment**\n- [ ] Tech stack references match actual project\n- [ ] Review dimensions are relevant to this project's stack\n- [ ] Convention checklist matches CLAUDE.md and project rules\n- [ ] Architecture checks reflect actual patterns\n- [ ] No references to frameworks, libraries, or patterns not used in this project\n\n**Content Quality**\n- [ ] Clear review process \u002F workflow steps\n- [ ] Output format specified\n- [ ] Edge cases handled\n- [ ] Guidelines are actionable and specific\n\n**Security**\n- [ ] No secrets in agent content\n- [ ] No instructions that could bypass safety measures\n\n### Agent Deep-Dive Report (per agent)\n```\n### Agent: \u003Cagent-name>\n**Lines:** N | **Model:** sonnet\u002Fopus\n**Checks Passed:** X\u002FY\n\n| Category | Check | Status | Detail |\n|----------|-------|--------|--------|\n| Frontmatter | Has name + description | PASS\u002FFAIL | ... |\n| Frontmatter | Model appropriate | PASS\u002FFAIL | ... |\n| Alignment | Tech stack matches project | PASS\u002FFAIL | ... |\n| Alignment | Conventions match CLAUDE.md | PASS\u002FFAIL | ... |\n| Content | Clear workflow | PASS\u002FFAIL | ... |\n| Security | No secrets | PASS\u002FFAIL | ... |\n```\n\n## Phase 3c: Rules Conflict Detection\n\n**Triggered by:** `rules`, or during `full` audit.\n\n### Rules Conflict Detection\n\nWhen auditing rules (either as part of `full` or `rules` scope):\n\n1. **Identify sources**: Classify each rules file:\n   - **Arcana rules**: files matching `arcana-*.md` pattern in `.claude\u002Frules\u002F`\n   - **User rules**: all other `.md` files in `.claude\u002Frules\u002F`\n   - **CLAUDE.md**: project root instructions\n\n2. **Read all rules files** and extract the key directives from each\n\n3. **Cross-check for semantic conflicts**:\n   - For each Arcana directive, check if any user rule contradicts it\n   - Example conflict: Arcana says \"research before acting\" but user rule says \"be concise, no research\"\n   - Example non-conflict: Arcana says \"verify before output\" and user says \"use TypeScript strict\" (different concerns)\n\n4. **Report findings with source labels**:\n   ```\n   ? Arcana rules (3 files):\n     ✓ arcana-quality.md — no conflicts\n     ⚠ arcana-research.md — potential conflict with your rules\n       Arcana: \"Research before acting\"\n       Your rule (coding-style.md): \"Keep responses concise and fast\"\n       → These may conflict during complex analysis tasks\n\n   ? Your project rules (2 files):\n     ✓ architecture.md — no issues\n     ✓ coding-style.md — reviewed (see conflict above)\n   ```\n\n5. **For each conflict**: Ask the user which should take priority. Do NOT auto-resolve.\n\n6. **Self-audit note**: When auditing Arcana's own skills, label them clearly:\n   ```\n   ? Arcana skill: deep-review\n     ✓ Frontmatter valid\n     ⚠ Could benefit from `context: fork` (new Claude Code feature)\n   ```\n   Never say \"Arcana's skill is wrong.\" Say \"could benefit from [improvement]\" or \"consider updating.\"\n\n## Phase 4: Report\n\n### Full\u002FComponent Audit Report\n```\n## Agent Configuration Audit Report\n**Date:** YYYY-MM-DD\n**Project:** \u003Cproject name from CLAUDE.md or directory name>\n**New Features Found:** [any new Claude Code features from research]\n\n### Score: X\u002F10\n\n### What's Working Well\n- ...\n\n### Issues Found\n| # | Severity | Component | Issue | Recommendation |\n|---|----------|-----------|-------|----------------|\n\n### Recommendations (Priority Ordered)\n1. [HIGH] ...\n2. [MEDIUM] ...\n3. [LOW] ...\n```\n\n## Phase 5: Implementation Plan\n\nIf actionable improvements found:\n1. Write concrete plan with exact file changes\n2. Wait for user approval\n3. On approval, implement changes\n\nIf no issues: report \"All clear — configuration is up to date\" and skip planning.\n\n## Rules\n\n- NEVER modify files without user approval\n- ALWAYS search latest docs — do not rely on cached knowledge\n- Be specific — include exact file paths and code snippets in recommendations\n- Flag deprecated or silently-ignored settings\u002Ffields\n- If CLAUDE.md exceeds 15KB, recommend moving sections to `.claude\u002Frules\u002F`\n- Adapt to whatever project structure exists — don't assume any specific stack\n- Check for both project-level AND user-level skills\u002Frules conflicts\n",{"name":5,"phase":31,"effort":52,"description":7,"allowed-tools":53,"argument-hint":54,"catalog-order":55,"feedback-profile":56,"disable-model-invocation":57},"medium","Read, Grep, Glob, Agent, WebSearch, WebFetch","[scope: full|hooks|permissions|claudeignore|claude-md|memory|skills|skill:\u003Cname>|agents|agent:\u003Cname>|rules]",130,"diagnostic",true,"main","62a5cbde2da44ccf4660521f0e3b2286f71dcbfd","skills\u002Fagent-audit","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana","https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@cj-ways\u002Farcana","https:\u002F\u002Fgithub.com\u002Fcj-ways","2026-04-27 15:57:45",{"source":8,"skillName":5,"commands":66,"prompt":76,"zipAvailable":57},[67,70,73],{"tool":68,"command":69},"npx","npx skills add cj-ways\u002Farcana --skill agent-audit",{"tool":71,"command":72},"bunx","bunx skills add cj-ways\u002Farcana --skill agent-audit",{"tool":74,"command":75},"pnpm","pnpm dlx skills add cj-ways\u002Farcana --skill agent-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Fagent-audit\u002FSKILL.md",[78,84,88,92,96,100,104,108,112],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Farchitecture-design.md","REFERENCE","参考文档",4680,"https:\u002F\u002Fgithub.com\u002FTorchiaHub\u002FSkills\u002Fblob\u002Fmaster\u002F01-Inbox\u002Fdownloads\u002Fgithub-awesome-copilot\u002F20260429T140243Z\u002Fsource\u002Fskills\u002Fcloud-design-patterns\u002Freferences\u002Farchitecture-design.md",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fazure-service-mappings.md",606,"https:\u002F\u002Fgithub.com\u002FTorchiaHub\u002FSkills\u002Fblob\u002Fmaster\u002F01-Inbox\u002Fdownloads\u002Fgithub-awesome-copilot\u002F20260429T140243Z\u002Fsource\u002Fskills\u002Fcloud-design-patterns\u002Freferences\u002Fazure-service-mappings.md",{"path":89,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fbest-practices.md",1592,"https:\u002F\u002Fgithub.com\u002FTorchiaHub\u002FSkills\u002Fblob\u002Fmaster\u002F01-Inbox\u002Fdownloads\u002Fgithub-awesome-copilot\u002F20260429T140243Z\u002Fsource\u002Fskills\u002Fcloud-design-patterns\u002Freferences\u002Fbest-practices.md",{"path":93,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fdeployment-operational.md",3310,"https:\u002F\u002Fgithub.com\u002FTorchiaHub\u002FSkills\u002Fblob\u002Fmaster\u002F01-Inbox\u002Fdownloads\u002Fgithub-awesome-copilot\u002F20260429T140243Z\u002Fsource\u002Fskills\u002Fcloud-design-patterns\u002Freferences\u002Fdeployment-operational.md",{"path":97,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fevent-driven.md",715,"https:\u002F\u002Fgithub.com\u002FTorchiaHub\u002FSkills\u002Fblob\u002Fmaster\u002F01-Inbox\u002Fdownloads\u002Fgithub-awesome-copilot\u002F20260429T140243Z\u002Fsource\u002Fskills\u002Fcloud-design-patterns\u002Freferences\u002Fevent-driven.md",{"path":101,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Fmessaging-integration.md",4643,"https:\u002F\u002Fgithub.com\u002FTorchiaHub\u002FSkills\u002Fblob\u002Fmaster\u002F01-Inbox\u002Fdownloads\u002Fgithub-awesome-copilot\u002F20260429T140243Z\u002Fsource\u002Fskills\u002Fcloud-design-patterns\u002Freferences\u002Fmessaging-integration.md",{"path":105,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Fperformance.md",6735,"https:\u002F\u002Fgithub.com\u002FTorchiaHub\u002FSkills\u002Fblob\u002Fmaster\u002F01-Inbox\u002Fdownloads\u002Fgithub-awesome-copilot\u002F20260429T140243Z\u002Fsource\u002Fskills\u002Fcloud-design-patterns\u002Freferences\u002Fperformance.md",{"path":109,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Freliability-resilience.md",6359,"https:\u002F\u002Fgithub.com\u002FTorchiaHub\u002FSkills\u002Fblob\u002Fmaster\u002F01-Inbox\u002Fdownloads\u002Fgithub-awesome-copilot\u002F20260429T140243Z\u002Fsource\u002Fskills\u002Fcloud-design-patterns\u002Freferences\u002Freliability-resilience.md",{"path":113,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Fsecurity.md",1835,"https:\u002F\u002Fgithub.com\u002FTorchiaHub\u002FSkills\u002Fblob\u002Fmaster\u002F01-Inbox\u002Fdownloads\u002Fgithub-awesome-copilot\u002F20260429T140243Z\u002Fsource\u002Fskills\u002Fcloud-design-patterns\u002Freferences\u002Fsecurity.md",[117,147,169,187,209,234],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":129,"publishedAt":47},"01M6ER4PGRFCMZ3D11YCEQ7Q9H","v0-design","Generates optimized v0.dev prompts for UI design — full pages, single components, design systems, or redesigns. Analyzes the project, adapts questions to context, researches user-specified design references, and outputs ready-to-copy prompts following Vercel's three-part framework. Manual via \u002Fv0-design.","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Fv0-design\u002FSKILL.md",[123,126],{"categoryNo":124,"categoryName":125,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":127,"categoryName":128,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000032","设计师",[130,131,132,133,134,135,136,137,41,138,139,140,141,142,143,144,37,36,145,146],"design","v0","v0 design","components","component","design systems","framework","ui","write","context","design-system","ready","ui design","references","three","feature","app",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":154,"publishedAt":47},"01M6ER4J1MAN09RA7ZVFQP5WC0","skill-scout","Scouts major skill providers for skills that match the current project — fetches catalogs, analyzes the codebase, cross-matches, and recommends with evidence. Critical assessment, not a dump of everything available. Manual via \u002Fskill-scout.","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Fskill-scout\u002FSKILL.md",[153],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[155,156,157,158,159,160,161,162,42,41,40,163,164,165,166,37,167,168,32,31],"skill scout","scout","testing","security","workflow","assessment","Providers","Bash","ops","evidence","focus","advisory","critical","dump",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":47},"01M6ER4EGNXCNN8P05RKVCQXHC","security-check","Quick security scan — hardcoded secrets, common vulnerabilities, dependency issues. Use when the user asks to check security, scan for secrets, or audit for vulnerabilities. Manual via \u002Fsecurity-check.","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-check\u002FSKILL.md",[],[158,176,177,178,179,180,29,181,162,182,183,42,41,40,184,185,186,33,32,31],"check","security check","vulnerabilities","issues","security scan","secrets","deps","common","use","dependency","scan",{"skillNo":188,"name":189,"nameZh":6,"description":190,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":191,"categories":192,"keywords":193,"publishedAt":47},"01M6ER4A08G4CPT443J7XSHDJQ","release-check","Analyzes branch diff to generate deploy checklists — env vars, migrations, new services, dependencies, schema changes, breaking changes. Works across any tech stack. Manual via \u002Frelease-check [source] [target].","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Frelease-check\u002FSKILL.md",[],[194,195,176,196,197,198,199,162,200,42,201,41,202,203,204,205,206,207,32,208],"release","release check","generate","env vars","services","execution","stack","branch","diff","schema","migrations","dependencies","across","env","tech",{"skillNo":210,"name":211,"nameZh":6,"description":212,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":213,"categories":214,"keywords":218,"publishedAt":47},"01M6ER45AQCN9RDAXZA5A5W03C","refactor-plan","Plans and executes safe multi-file refactoring — maps dependency graph, batches changes into atomic commits, runs tests between batches. Prevents the cascading-breakage pattern where agents make sweeping changes that fail halfway. Use for renames, extractions, moves, or structural changes across multiple files. Manual via \u002Frefactor-plan.","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Frefactor-plan\u002FSKILL.md",[215],{"categoryNo":216,"categoryName":217,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000007","代码审查",[219,220,221,222,223,224,162,225,226,41,138,227,185,228,229,230,231,206,232,233],"refactor plan","refactor","plan","safe","graph","commits","refactoring","atomic commits","edit","dependency graph","files","maps","pattern","structural","make",{"skillNo":235,"name":236,"nameZh":6,"description":237,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":238,"categories":239,"keywords":242,"publishedAt":47},"01M6ER41VW96NCAMSQF8SV31J7","quick-review","Fast single-pass code review with strong false-positive suppression. Reviews git diff for runtime errors, data corruption, security breaches, operational incidents. Use for PR reviews and quick change validation. Manual via \u002Fquick-review.","https:\u002F\u002Fgithub.com\u002Fcj-ways\u002Farcana\u002Fblob\u002Fmain\u002Fskills\u002Fquick-review\u002FSKILL.md",[240,241],{"categoryNo":216,"categoryName":217,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},[243,244,245,246,247,46,248,249,250,162,42,201,41,184,202,229,37,251,252,32],"review","quick review","code review","change","pr","validation","worktree","false-positive","runtime","false"]