reviewing-claude-config
Reviews Claude configuration files for security, structure, and prompt engineering quality. Use when reviewing changes to CLAUDE.md files (project-level or .claude/), skills (SKILL.md), agents, prompts, commands, or settings. Validates YAML frontmatter, progressive disclosure patterns, token efficiency, and security best practices. Detects critical issues like committed settings.local.json, hardcoded secrets, malformed YAML, broken file references, oversized skill files, and insecure agent tool access.
What this skill does
# Reviewing Claude Configuration ## Instructions **IMPORTANT**: Use structured thinking throughout your review process. Plan your analysis before providing feedback. This improves accuracy and catches critical security issues. ### Step 1: Detect File Type <thinking> Analyze the changed files: 1. Which .claude files were modified? 2. What file types? (CLAUDE.md, skills, agents, prompts, commands, settings) 3. Are there immediate security concerns? 4. What's the review scope (single file or multiple)? </thinking> Determine the primary file type(s) being reviewed: **Detection Rules**: - **Agents**: Changes to `.claude/agents/*.md` or `plugins/*/agents/*.md` - **Skills**: Changes to `skill.md` files or skill support files (checklists, references, examples) - **CLAUDE.md**: Changes to `CLAUDE.md` files (any location: project root, `.claude/`, or subdirectories) - **Prompts/Commands**: Changes to `.claude/prompts/*.md` or `.claude/commands/*.md` - **Settings**: Changes to `.claude/settings.json` or `.claude/settings.local.json` If multiple types modified, review each with appropriate checklist. ### Step 2: Execute Security Scan (ALWAYS) <thinking> Security first, regardless of file type: 1. Is settings.local.json committed to git? 2. Any hardcoded secrets (passwords, tokens, API keys)? 3. Are permissions appropriately scoped (if settings modified)? 4. Any suspicious patterns in changed files? </thinking> **CRITICAL CHECKS** (perform for ALL Claude config reviews): Run these mental checks immediately: - [ ] settings.local.json NOT in git (check changed files list) - [ ] No hardcoded credentials in any modified files - [ ] Permissions scoped appropriately (if settings.json modified) - [ ] No API keys, tokens, or passwords in plaintext **If ANY security issue found**: Flag as **CRITICAL** immediately, stop and report. Consult `reference/security-patterns.md` for detailed security checks and detection commands. ### Step 3: Load Appropriate Checklist Based on detected file type, read and follow the relevant checklist: - **Agents** → `checklists/agents.md` (YAML, tool access security, model selection, system prompts) - **Skills** → `checklists/skills.md` (structure, YAML, progressive disclosure, quality) - **CLAUDE.md** → `checklists/claude-md.md` (clarity, references, no duplication) - **Prompts/Commands** → `checklists/prompts.md` (purpose, session context, skill references) - **Settings** → `checklists/settings.md` (security, permissions scoping) The checklist provides: - Multi-pass review strategy - What to check and what to skip - Structured thinking guidance - Common issues and red flags ### Step 4: Consult Reference Materials As Needed <thinking> When to load references: 1. Need to classify issue priority? → priority-framework.md 2. Security patterns unclear? → security-patterns.md 3. Claude Code requirements (YAML, tools, models, limits)? → claude-code-requirements.md </thinking> Load reference files only when needed for specific questions: - **Issue prioritization** → `reference/priority-framework.md` (CRITICAL vs IMPORTANT vs SUGGESTED vs OPTIONAL) - **Security patterns** → `reference/security-patterns.md` (detection commands, fix examples) - **Claude Code requirements** → `reference/claude-code-requirements.md` (YAML frontmatter, model selection, tool names, progressive disclosure, settings conventions) ### Step 5: Document Findings <thinking> Before writing each comment: 1. Priority level? (Critical/Important/Suggested/Optional) 2. Security issue or quality issue? 3. What's the specific fix or recommendation? 4. What's the rationale (why does this matter)? 5. Is there a reference or documentation link? </thinking> **This section defines the standard output format for ALL Claude config reviews.** Checklists reference this section rather than duplicating content. **CRITICAL**: Use inline comments on specific lines, NOT one large summary comment. **Inline Comment Rules**: - Create separate comment for EACH specific issue on the exact line - Do NOT create one large summary comment with all issues - Do NOT update existing comments - always create new comments - Include specific fix with code example when applicable - Explain rationale (why this matters) **Comment Format**: ``` **[file:line]** - [PRIORITY]: [Issue description] [Specific fix with code example if applicable] [Rationale explaining why this matters] Reference: [documentation link if applicable] ``` **Example inline comment**: ```` **.claude/skills/my-skill/skill.md:1** - CRITICAL: Missing YAML frontmatter Skills require YAML frontmatter to be discoverable by Claude Code: \```yaml --- name: my-skill description: Clear description with activation triggers --- \``` Without frontmatter, the skill won't be recognized by Claude Code. Reference: Anthropic Skills Documentation ```` **When to use inline vs summary**: - **Inline comment**: Specific issue, recommendation, or question (use `file:line` format) - **Summary comment**: Overall assessment, recommendation (APPROVE or REQUEST CHANGES) Load the specific example relevant to your file type (on-demand only, not upfront): - Agents → `examples/example-agent-review.md` - Skills → `examples/example-skill-review.md` - CLAUDE.md → `examples/example-claude-md-review.md` - Settings → `examples/example-settings-review.md` - Prompts → `examples/example-prompts-review.md` ## Cross-Plugin Enrichment ### Enhanced Secret Detection (bitwarden-security-engineer plugin) When the `bitwarden-security-engineer` plugin is installed, supplement the manual security scan above with: - **Comprehensive secret patterns** → activate `Skill(detecting-secrets)` for context-aware detection that distinguishes test fixtures from production secrets, and covers patterns beyond the manual checks above (connection strings, private keys, cloud provider tokens) This skill is optional. If unavailable, rely on the manual security checks above. ## Core Principles - **Security first**: Always check for committed settings, secrets, overly broad permissions - **Structure matters**: YAML frontmatter, file references, progressive disclosure, line limits - **Quality counts**: Clear instructions, examples, proper emphasis, structured thinking - **Token efficiency**: Progressive disclosure, appropriate file sizes, on-demand loading - **Actionable feedback**: Say what to do and why, not just what's wrong - **Constructive tone**: Focus on code/config, not people; explain rationale
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.