Setup check
Plug-and-play skills that supercharge Claude Code, Cursor, Codex & other AI agents. Talk to Slack, audit your setup, and more.
npx -y skills add azmym/agent-skills --skill setup-checkAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Audit Claude Code configuration for issues, overlaps, unused components, update status, and misconfigurations. Use when the user (1) asks to check or audit their setup, (2) wants to find duplicate or conflicting skills, hooks, plugins, or rules, (3) asks what is broken or needs cleanup, (4) wants to check Claude Code or plugin updates, (5) asks to review MCP servers or memory state, (6) asks which recommended Amazon Bedrock config options they are missing, or (7) invokes /setup-check with optional scope (all, updates, skills, hooks, plugins, rules, settings, security, mcp, memory, overlaps, bedrock).
SKILL.md
31.0 KB, as published. Nobody here has run it
Setup Check
Audit Claude Code configuration and report issues, overlaps, update status, and cleanup recommendations.
Arguments
Parse from $ARGUMENTS. Default: all.
| Arg | Scope |
|---|---|
all | Full audit (all categories below, including updates) |
updates | Claude Code CLI + plugin version/update checks |
skills | Skills: duplicates, broken symlinks, unused, placeholders |
hooks | Hooks: conflicts, broken paths, event collisions |
plugins | Plugins: disabled, stale cache, version tracking |
rules | Rules: contradictions, overlap with plugin behavior |
settings | Settings files: duplicates, conflicting keys (health only) |
security | Security: broad permissions, skipped prompts, orphaned MCP perms |
mcp | MCP servers: empty configs, duplicate servers |
memory | Memory: empty dirs, stale entries, index mismatches |
overlaps | Cross-category overlap detection only |
bedrock | Bedrock config: recommended Bedrock-compatible options not currently set |
Multiple args supported: /setup-check skills plugins runs both.
Goal Message
In addition to category args, the user can pass a quoted free-text string as a goal message:
/setup-check "ready for production?"
/setup-check settings "security hardening"
If an argument is not a recognized category keyword, treat it as a goal message. The goal triggers an additional Goal Assessment section in the output (see below).
Scan Paths (MANDATORY)
You MUST read ALL of these paths for the relevant category. Do not skip any. Missing a path means missing findings.
Updates:
- Claude Code CLI binary (run
claude --versionto get current version) - npm registry (run
npm view @anthropic-ai/claude-code version 2>/dev/nullfor latest published version; requires network) ~/.claude/plugins/installed_plugins.json(plugin versions,gitCommitSha,lastUpdated)~/.claude/plugins/cache/(all cached versions; detect stale ones not matching activeinstallPath)claude plugins update <name>@<marketplace> -s <scope>output (authoritative source for update availability; the scope flag is required and must come from each plugin'sscopefield ininstalled_plugins.json)~/.claude/plugins/known_marketplaces.json(installed marketplaces with per-marketplacelastUpdatedtimestamps; used to detect which marketplaces changed after a refresh)claude plugin marketplace list --jsonoutput (authoritative current marketplace set; read-only)
Skills:
~/.claude/skills/(symlinks; check for broken links withls -la)~/.agents/skills/(source directories; compare against symlinks for orphans)~/.claude/plugins/cache/<marketplace>/<plugin>/<version>/skills/and.../agents/(plugin-provided; the nesting is marketplace/plugin/version, so glob accordingly)
Hooks:
~/.claude/plugins/cache/*/hooks/hooks.json(glob ALL versions, not just active)- Cross-reference against
~/.claude/plugins/installed_plugins.jsonto identify stale vs active
Plugins:
~/.claude/plugins/installed_plugins.json(installed list with versions)~/.claude/settings.json>enabledPlugins(enabled/disabled state)~/.claude/plugins/cache/(all cached versions; detect stale ones)
Rules:
~/.claude/rules/*.md(read every rule file)
Settings:
~/.claude/settings.json(main; lower precedence)~/.claude/settings.local.json(local overrides; higher precedence, wins on conflicts)
Security:
~/.claude/settings.json(checkskipDangerousModePermissionPrompt, permissions)~/.claude/settings.local.json(check permissions for broadBash(<command>:*)patterns)- MCP server sources (for orphaned-permission detection):
~/.claude.json→mcpServers(user-scope, authoritative), project-level.mcp.json,~/.claude/.mcp.json(if present),claude mcp liststdout (fallback)
MCP:
~/.claude.json→mcpServerskey (user-scope servers; authoritative location)~/.claude/.mcp.json(legacy/optional; often absent)- Project-level
.mcp.jsonfiles in workspace directories
Memory:
~/.claude/projects/<current-project-path>/memory/(project memory)MEMORY.mdin that directory (index file)
Bedrock:
~/.claude/settings.json(current config: top-level keys AND theenvblock)~/.claude/settings.local.json(overrides; merge for the full "currently set" key set)gemini_search_groundedMCP call (the recommended Bedrock-compatible options reference set; live each run)
Checks Per Category
Updates
Execution order within this category: (0) marketplace refresh, (1) CLI version check, (2) plugin version freshness, (3) stale plugin cache. Never abort the audit on a failure in any step; degrade to an i or ⚠ finding and continue.
- Marketplace refresh (mutating, runs first):
- Read
~/.claude/plugins/known_marketplaces.jsonand record each marketplace'slastUpdatedtimestamp BEFORE updating (this is the baseline for change detection). - Run
claude plugin marketplace update(no name argument updates all marketplaces). Capture stdout, stderr, and exit code. - Re-read
known_marketplaces.jsonAFTER and compare each marketplace'slastUpdated:- Timestamp advanced:
⬆ <marketplace> refreshed (pulled latest from <repo>) - Timestamp unchanged:
✓ <marketplace> already current
- Timestamp advanced:
- Parse output for per-marketplace failures. Each failure:
⚠ <marketplace> refresh failed (<reason>) -> Run 'claude plugin marketplace update <name>' manually - If the whole command fails (network down, CLI error): emit a single
i Marketplace refresh skipped (<reason>)and continue to the CLI version check. Do NOT abort. - Compare timestamps rather than trusting stdout for success: the bulk update stdout format is not guaranteed stable across CLI versions;
known_marketplaces.jsonlastUpdatedis the durable record of what was actually pulled. Stdout is used only to surface failures.
- Read
- Claude Code CLI version: Run
claude --versionto get current version. Then runnpm view @anthropic-ai/claude-code version 2>/dev/nullto get the latest published version. Compare the two. If npm is unavailable or network fails, report current version asi(INFO) only with message "Could not check for updates". - Plugin version freshness: For each plugin in
installed_plugins.json:- If
versionis"unknown", flag as⚠(WARN) with recommendation to reinstall for version tracking - Read the plugin's
scopefield (values:user,project,local,managed) from its entry ininstalled_plugins.json.claude plugins updatedefaults to-s user, so the scope flag MUST be passed explicitly for non-user scopes or the command will fail with "Plugin X is not installed at scope user". - Run
claude plugins update <name>@<marketplace> -s <scope>for each plugin (the plugin key ininstalled_plugins.jsonis already inname@marketplaceformat). Parse the output:- If output contains "already at the latest version", mark as
✓with current version - If output indicates an update was applied (version changed), mark as
⬆with old and new versions - If the command fails with "not installed at scope <X>", retry once with
-s project, then-s useras fallbacks before giving up - If the command fails for any other reason, fall back to checking
lastUpdated: flag plugins not updated in 30+ days asi(INFO, "not updated in N days, possibly stale")
- If output contains "already at the latest version", mark as
- Important: Do NOT compare
gitCommitShaagainst the marketplace repo HEAD. Marketplace repos contain multiple plugins, so repo HEAD advances when any plugin changes, causing false positives for unrelated plugins. - Show one finding per plugin, using the full
name@marketplaceidentifier so users can copy-paste directly into commands
- If
- Stale plugin cache: Detect version directories in
~/.claude/plugins/cache/<marketplace>/<plugin>/where more than one version directory exists. The active version is the one matchinginstallPathininstalled_plugins.json. Other directories are stale cache. Flag as⚠(WARN) with recommendation to clean up.
Skills
- Broken symlinks:
ls -la ~/.claude/skills/and verify each target exists - Orphaned sources: Directories in
~/.agents/skills/with no symlink in~/.claude/skills/ - Semantic duplicates: Skills with overlapping names OR overlapping descriptions (read frontmatter). Common pairs:
api-docs-generator/api-documentation-generator,android-design-guidelines/mobile-android-design,kubernetes-specialist/kubernetes-best-practices - Plugin collisions: Standalone skill with same name as a plugin-provided skill (double-loaded). Also check partial overlaps: a standalone skill whose functionality is a subset of a plugin's sub-skills (e.g., standalone
slack-messagingvs plugin providingslack:slack-messaging) - Placeholder skills: Skills with unfilled template content in either the description ("Replace with description") OR the body ("Insert instructions below", empty body)
- Tech stack mismatch: Skills for technologies not found in any workspace project. Check
~/workspace/for project indicators (go.mod, build.gradle, package.json, Cargo.toml, etc.). If~/workspace/does not exist, skip this check and note it asi
Hooks
- Event collisions: Multiple hooks on the same event (e.g., two
UserPromptSubmithandlers) - Broken commands: Hook commands referencing non-existent scripts
- Stale hooks: Hooks from old plugin versions still in cache (compare
installPathininstalled_plugins.json)
Plugins
- Disabled plugins:
enabledPlugins: falseentries (candidates for removal) - Version unknown: Plugins with
"version": "unknown"(cannot track updates) - Stale cache: Old version directories in cache that are not the active
installPath - Enablement mismatch: Plugin in
installed_plugins.jsonbut missing fromenabledPluginsor vice versa
Rules
- Contradictions: Rules that give opposing instructions (read all rule files, compare)
- Plugin overlap: Rules that duplicate behavior a plugin already provides (e.g., formatting rules when a formatting plugin is installed)
- Outdated references: Rules mentioning tools, commands, or patterns that no longer exist
Settings
- Duplicate keys: Same key in both
settings.jsonandsettings.local.jsonwith identical values (redundant) - Conflicting keys: Same key with different values (settings.local.json takes precedence over settings.json)
Security
- Skipped prompts:
skipDangerousModePermissionPromptset totruein settings - Broad permissions:
Bash(<command>:*)patterns that allow arbitrary arguments (especiallypython3:*,osascript:*,chmod:*,xargs:*) - Orphaned MCP permissions: MCP tool permissions (
mcp__<server>__*) for servers not found in any configured source. Important: Claude Code stores user-scope MCP servers in~/.claude.jsonunder themcpServerskey, NOT in~/.claude/.mcp.json(which often does not exist). Build the known-server set from multiple sources in this order: (a)mcpServerskeys in~/.claude.json, (b)mcpServerskeys in any project-level.mcp.jsonin the current workspace, (c)mcpServerskeys in~/.claude/.mcp.jsonif it exists, (d) fallback: parseclaude mcp liststdout (lines like^ <name>: ... - [✓✗] ...). Flag a permission as orphaned only when<server>is absent from ALL sources. - Credential exposure: Credential files with loose filesystem permissions
MCP
- Empty configs: All MCP sources empty (no
mcpServersin~/.claude.json, no project.mcp.json, no~/.claude/.mcp.json) - Duplicate servers: Same server name configured at multiple scopes (e.g., in both
~/.claude.jsonand a project.mcp.json)
Memory
- Empty directory: Memory dir exists but has no files
- Missing index: Memory files exist but no
MEMORY.md - Index mismatch:
MEMORY.mdreferences files that do not exist, or files exist but are not in the index - Stale entries: Memories referencing deleted files or very old dates
Overlaps (Cross-Category)
When running overlaps, you need data from ALL categories. Read all scan paths from every category, then run ONLY the cross-category checks below (not per-category checks like broken symlinks).
- Skill vs plugin: Standalone skill duplicates plugin-provided skill or behavior (exact name match or functional subset)
- Rule vs plugin/hook: Rule enforces what a plugin or hook already does
- Permission vs actual tools: Permissions granted for tools/servers not actually configured
- Multi-concern overlap: Multiple components (skill + plugin + rule) all addressing the same concern (e.g., Slack formatting)
Scoring note: Overlap findings are cross-category views of issues already counted in their source categories. Do NOT count overlap findings toward either score. They appear in the report for visibility but have zero weight.
Bedrock Config
Stateless audit that runs on every invocation when scope is all or bedrock. It surfaces recommended, Bedrock-compatible config options not currently set. There is NO state file and NO dismissal: an option the user skips reappears on the next run, by design.
- Collect current config: Build the set of all keys present in
~/.claude/settings.jsonand~/.claude/settings.local.json, including every variable name inside theirenvblocks. Track each name with its namespace (top-levelsettingvsenvvariable) so matching stays namespace-aware. This is the "already set" set. - Fetch the reference set: Call the
gemini_search_groundedMCP tool asking whichsettings.jsonkeys and environment variables are recommended for Claude Code AND work when Claude Code runs on Amazon Bedrock. Request citations. For each returned option, record: name, type (settingorenv), one-line purpose, recommended value (if known), a short Bedrock note, and source citation URL. Keep ONLY options whose Bedrock compatibility the sources confirm; drop any option that cannot be confirmed Bedrock-compatible. - Diff: Drop any option already in the "already set" set, matching within the same namespace (a
settingagainst settings keys, anenvagainst env variable names). The remainder is "missing recommended Bedrock config." - Outcomes:
- None missing: emit
✓ All recommended Bedrock config present. Render no block. - Gemini/network failure: emit
i Bedrock config check unavailable (Gemini/network) -> Re-run /setup-check bedrock when online. Never abort the audit; continue to remaining categories. - Some missing: render the BEDROCK CONFIG block (see Output Format) and present a single
AskUserQuestionmulti-select listing the missing options. Selecting none is valid.
- None missing: emit
- Apply approved options: For each selected option, invoke the
update-configskill to add the key to~/.claude/settings.jsonwith its recommended value (for anenv-type option, add it under theenvblock).update-configis responsible for preserving the rest of the file and writing valid JSON. On success emit✓ Added "<key>" to settings.json (<value>). If it reports a failure or the result would be invalid JSON, skip the write and emit⚠ Could not add "<key>" to settings.json (<reason>) -> Add it manually. - No persistence: Do not write any record of skipped options. Unselected options are simply re-diffed and re-shown next run. This is intended.
Goal Assessment
This section only appears when the user provides a quoted goal message in the arguments. It is NOT a standard check category; it is generated after all other checks complete.
How it works:
- All standard checks run first (whichever categories are selected)
- Review all findings through the lens of the user's stated goal
- Produce a filtered view: only findings relevant to the goal, plus any concerns that were not flagged by standard checks but matter for the stated goal
- End with a one-line "Verdict" summarizing readiness
Output structure:
┌─ GOAL ASSESSMENT ───────────────────────────────────
│
│ Goal: "<user's quoted message>"
│
│ ✓ <relevant positive finding>
│ ⚠ <relevant warning> -> <recommendation>
│ ✗ <relevant error> -> <how to fix>
│
│ Verdict: <one-line readiness assessment>
│
└─────────────────────────────────────────────────────
Examples of how to interpret goal messages:
"ready for production?"- focus on errors, security settings, broken configs, stale versions"security hardening"- focus on broad permissions, MCP orphaned permissions, security flags, unknown versions"clean up unused stuff"- focus on disabled plugins, stale cache, placeholder skills, duplicates, orphans"starting a new React project"- focus on relevant skills available, missing skills for React ecosystem, MCP servers for dev tooling
Verdict tone: Be direct and honest. Examples:
- "Ready. No blockers found for your goal."
- "Almost ready. Address the 2 warnings above first."
- "Not ready. 3 errors must be fixed before proceeding."
Output Format
Use this exact structure. Do not wrap the report in markdown code blocks. Render all box-drawing characters directly as plain text output.
Header
╭─────────────────────────────────────────────────────
│ Claude Code Setup Check
│ YYYY-MM-DD | Scope: <scope>
│ Claude Code v<version>
╰─────────────────────────────────────────────────────
Replace YYYY-MM-DD with today's date, <scope> with the selected scope (e.g., "all", "skills, plugins"), and <version> with the output of claude --version.
Scores
Displayed immediately after the header, stacked on two lines:
Health: N.N / 10 ████████░░░░ <Label>
Security: N.N / 10 ████████░░░░ <Label>
Health Score Calculation:
Health measures functional correctness. Only health-classified findings contribute.
| Severity | Tier | Weight |
|---|---|---|
| ERROR (✗) | Major | -2.0 |
| ERROR (✗) | Minor | -1.0 |
| WARN (⚠) | Major | -0.7 |
| WARN (⚠) | Minor | -0.3 |
| INFO (i) | -- | -0.1 |
| OK (✓) | -- | 0.0 |
| UPDATE (⬆) | -- | 0.0 |
Formula: health_score = max(0.0, min(10.0, 10.0 - sum_of_health_penalties))
Health Labels:
- 9.0 to 10.0: "Excellent"
- 7.0 to 8.9: "Healthy"
- 5.0 to 6.9: "Needs Attention"
- 0.0 to 4.9: "Critical"
Security Score Calculation:
Security measures how locked-down the permission model is. These are intentional preferences, not defects, so no ✗ ERROR is used; all findings are ⚠ WARN with recalibrated weights.
| Finding | Indicator | Weight |
|---|---|---|
skipDangerousModePermissionPrompt enabled | ⚠ | -1.0 |
Broad permission (each Bash(<command>:*) pattern) | ⚠ | -0.5 |
| Orphaned MCP permissions (server not configured) | ⚠ | -0.5 |
| Credential files with loose permissions | ⚠ | -0.5 |
Formula: security_score = max(0.0, min(10.0, 10.0 - sum_of_security_penalties))
Security Labels:
- 9.0 to 10.0: "Locked Down"
- 7.0 to 8.9: "Guarded"
- 5.0 to 6.9: "Relaxed"
- 0.0 to 4.9: "Permissive"
Progress bar (both scores): 12 characters wide. Calculate filled blocks as round(score / 10 * 12). Use █ for filled and ░ for empty.
Category Sections
Each category renders as a left-bordered section with its name and finding count in the header:
┌─ CATEGORY NAME (N findings) ────────────────────────
│
│ ✓ Finding with no issues
│ i Informational note (details inline)
│ ⚠ Problem description (specifics) -> Recommendation
│ ✗ Broken config (specifics) -> How to fix
│
└─────────────────────────────────────────────────────
Indicators (use these exact symbols, not text tags):
✓= OK (check passed, no issues)⚠= WARN (actionable recommendation)✗= ERROR (broken configuration, must fix)i= INFO (informational, no action needed)⬆= Update available (used only in the Updates section)
Formatting rules:
- One finding per line. Each finding MUST fit on a single line:
indicator + description + (details) + -> recommendation. Do not wrap findings across multiple lines. Use concise language to keep lines compact. - Examples of single-line findings:
✓ 88 symlinks intact, no broken links⚠ 3 plugins "unknown" version (frontend-design, playwright, skill-creator) -> Reinstall for version tracking✗ Broken symlink: my-skill -> missing target -> Remove or recreate symlink⬆ prompt-improver@severity1-marketplace updated (0.5.1 -> 0.6.0) -> Was auto-updated by check
- Use parentheses for inline details rather than separate indented lines
- Use
->to attach the recommendation directly on the same line - If ALL sub-checks in a category pass, show a single
✓ No issues found - Missing scan paths: show
i <path> not found, skippingand continue. Do not error out. - Long findings may extend past the bottom rule width. This is expected behavior; there is no right border to align with. Do not truncate or wrap findings to match the rule length.
Severity rules (applies to health categories):
✗(ERROR): Broken symlinks, missing scripts, corrupted configs, CLI not found⚠(WARN): Duplicates, overlaps, disabled plugins, stale cache, available updates, unknown versionsi(INFO): Version not checked (network unavailable), tech stack mismatch, empty memory, component not updated in 30+ days✓(OK): Category or sub-check passed with no issues
Severity rules (Security category):
⚠(WARN): All security findings (broad permissions, skipped prompts, orphaned MCP perms, credential exposure)✓(OK): All security checks passed- No
✗ERROR in Security; these are intentional preferences, not broken configuration
Tier classification (determines weight, see Scores section above):
- Major = impacts runtime correctness. Ask: "Does this cause wrong behavior?"
- Minor = housekeeping, cosmetic, or redundant. Ask: "Is this messy but harmless?"
- When unsure, default to minor. Promote to major only if the finding can cause incorrect behavior.
- Security findings have their own fixed weights (see Security Score Calculation) and do not use tier classification.
Health Tier Assignment Table
Use this table to classify each health finding as major or minor for health score calculation. Security findings are NOT in this table; they use the Security Score weights above.
ERROR Tier Assignments
| Check | Tier |
|---|---|
| Corrupted/unparseable config files | Major |
CLI not found / claude --version fails | Major |
| Broken hook commands (script doesn't exist) | Major |
| Broken skill symlinks | Minor |
| Missing scan paths for critical configs | Minor |
WARN Tier Assignments
| Check | Tier |
|---|---|
| Contradicting rules | Major |
| Conflicting settings keys (different values) | Major |
| Stale plugin cache (old versions in cache/) | Minor |
| Disabled plugins still installed | Minor |
| Unknown plugin versions | Minor |
| Semantic duplicate skills | Minor |
| Plugin collisions (standalone + plugin-provided) | Minor |
| Duplicate settings keys (identical values) | Minor |
| Orphaned skill sources (no symlink) | Minor |
| Placeholder skills | Minor |
| Stale hooks from old plugin versions | Minor |
| Event collisions (multiple hooks on same event) | Minor |
| Rule overlaps with plugin behavior | Minor |
| Empty MCP configs | Minor |
| Duplicate MCP servers across scopes | Minor |
| Memory index mismatches | Minor |
| Marketplace refresh failed (single marketplace) | Minor |
INFO (all single-tier, -0.1)
No tier distinction. All INFO findings use the flat -0.1 weight. Updates INFO findings: marketplace refresh skipped (whole command failed).
Zero-weight Updates findings (0.0, no penalty)
These render in the Updates section but contribute nothing to the health score, matching the existing treatment of plugin updates:
| Check | Indicator |
|---|---|
| Marketplace refreshed | ⬆ |
| Marketplace already current | ✓ |
Bedrock Config findings (zero-weight, exempt)
The entire Bedrock Config category is advisory and contributes to NEITHER the Health score nor the Security score. This is a deliberate exemption from the standard severity weights (which would otherwise penalize an i at -0.1 and a ⚠ as a minor): the user intentionally and repeatedly skips some recommended options, so scoring them would peg the score permanently low. Do NOT count any of these toward either score:
| Check | Indicator |
|---|---|
| Missing recommended Bedrock option (each) | i |
| All recommended Bedrock config present | ✓ |
| Bedrock config check unavailable (Gemini/network) | i |
| Bedrock option added to settings.json | ✓ |
| Could not add Bedrock option (write failed) | ⚠ |
BEDROCK CONFIG Block
When the Bedrock Config category (scope all or bedrock) finds recommended-but-missing options, render this section box. Every listed option is, by construction, both recommended and Bedrock-compatible, so there is no per-item compatibility badge. The box itself is not a scored finding; the entire Bedrock category is zero-weight (see Scores).
┌─ BEDROCK CONFIG (N findings) ───────────────────────
│
│ i <N> recommended Bedrock-compatible options not currently set.
│
│ 1. settings.json: "<key>"
│ <one-line purpose>. Recommended: <value>.
│ Source: <citation url>
│
│ 2. env: <VAR_NAME>
│ <one-line purpose>. Recommended: <value>.
│ Source: <citation url>
│
└─────────────────────────────────────────────────────
After rendering, present the AskUserQuestion multi-select described in the Bedrock Config check, write approved options via the update-config skill, and emit the per-option ✓ Added ... confirmations as normal findings within the Bedrock Config section.
Section Ordering
When all is selected, render sections in this order:
- Updates
- Bedrock Config
- Skills
- Hooks
- Plugins
- Rules
- Settings
- Security
- MCP
- Memory
- Overlaps
- Goal Assessment (only if a goal message was provided)
When a single category is selected, show only that category section plus the summary.
Summary
╭─────────────────────────────────────────────────────
│ Summary
├─────────────────────────────────────────────────────
│
│ Health: ✓ OK: N ✗ ERROR: N major, N minor ⚠ WARN: N major, N minor i INFO: N
│ Security: ✓ OK: N ⚠ WARN: N
│
│ Top Recommendations:
│
│ 1. Most impactful recommendation
│ 2. Second most impactful
│ 3. Third
│ 4. Fourth
│ 5. Fifth
│
╰─────────────────────────────────────────────────────
Summary counts formatting:
- Health line: show tier breakdown for ERROR and WARN:
✗ ERROR: 1 major, 2 minor - Health line: when a severity has zero findings for a tier, omit that tier:
⚠ WARN: 3 minor - Health line: when a severity has zero findings entirely, show 0:
✗ ERROR: 0 - Security line: show total WARN count only (no tier breakdown):
⚠ WARN: 3 - Security line: when no warnings, show:
✓ OK: all clear
Rank recommendations across both dimensions by severity (health ERROR first, then health WARN, then security WARN), and within the same severity by impact. Show up to 5 recommendations.
Execution Order
- Parse arguments to determine scope. Separate category keywords from a quoted goal message (if any).
- Read ALL mandatory scan paths for selected categories (use parallel tool calls where possible).
- Run update checks first (if
allorupdatesis selected) in this sub-order: (0)claude plugin marketplace updateto refresh all marketplaces, comparingknown_marketplaces.jsonlastUpdatedbefore/after; (1)claude --versionandnpm viewfor the CLI version check; (2) readinstalled_plugins.jsonand runclaude plugins update <name>@<marketplace> -s <scope>for each plugin (scope read from the plugin's entry); (3) detect stale plugin cache. - Run the Bedrock Config audit (if
allorbedrockis selected), immediately after Updates so execution order matches render order: collect current config keys fromsettings.jsonandsettings.local.json, callgemini_search_groundedfor recommended Bedrock-compatible options, diff out already-set keys, present the BEDROCK CONFIG block andAskUserQuestionmulti-select for any missing options, and write approved options via theupdate-configskill. On Gemini/network failure, emit the unavailable INFO line and continue. This category is zero-weight. - Run checks for each remaining selected category (including the Security category).
- Run overlap checks (if
alloroverlapsis selected). - Calculate dual scores:
- Health score: start at 10.0, classify each health finding by tier (see Health Tier Assignment Table), subtract the corresponding weight. Floor at 0.0, cap at 10.0.
- Security score: start at 10.0, subtract each security finding's fixed weight (see Security Score Calculation). Floor at 0.0, cap at 10.0.
- Generate goal assessment (if a goal message was provided): review all findings against the stated goal, filter to relevant findings, write verdict.
- Render the full report: header, dual score lines, category boxes (including Security), goal assessment (if any), summary.
- End with the summary box containing per-dimension counts and top 3-5 recommendations sorted by impact across both dimensions.