Borrowing it
Nothing to install: this file belongs to design-and-deliver/claude-code-autoconfig. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/design-and-deliver/claude-code-autoconfig/main/.claude/commands/validate-cca-install.mdgit clone --depth 1 https://github.com/design-and-deliver/claude-code-autoconfigWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/design-and-deliver/claude-code-autoconfig/validate-cca-install)<a href="https://agentmods.dev/commands/design-and-deliver/claude-code-autoconfig/validate-cca-install"><img src="https://agentmods.dev/badge/commands/design-and-deliver/claude-code-autoconfig/validate-cca-install.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02443 |
| Opus 5 | $0.00000 | $0.01222 |
| Sonnet 5 | $0.00000 | $0.00489 |
| Haiku 4.5 | $0.00000 | $0.00244 |
Grade A, and why
validate-cca-install scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
import json, urllib.request How it starts
The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Validate the current claude-code-autoconfig installation. Reports what's correct, what's outdated, and what's missing. Does not modify anything.
Usage:
/validate-cca-install— run a full validation check
Step 1: Fetch the latest package metadata
Query the npm registry for the latest published version and its file manifest:
python3 -c "
import json, urllib.request
url = 'https://registry.npmjs.org/claude-code-autoconfig/latest'
data = json.loads(urllib.request.urlopen(url, timeout=10).read())
print(json.dumps({'version': data.get('version', 'unknown')}))
"
Store the latest version as $LATEST_VERSION.
Step 2: Download and extract the latest package to a temp directory
TMPDIR=$(mktemp -d)
npm pack claude-code-autoconfig@latest --pack-destination "$TMPDIR" 2>/dev/null
tar -xzf "$TMPDIR"/*.tgz -C "$TMPDIR"
echo "$TMPDIR/package"
Store the extracted path as $PKG_DIR. This gives us the ground truth for what files and versions should be installed.
Step 3: Validate installed files
Run this Python script. Substitute $PKG_DIR with the temp package path and $PROJECT_DIR with the current working directory.
python3 -c "
import json, os, re, sys
pkg_dir = '$PKG_DIR'
project_dir = '$PROJECT_DIR'
claude_dir = os.path.join(project_dir, '.claude')
def parse_version(content):
m = re.search(r'<!-- @version (\d+) -->', content)
return int(m.group(1)) if m else 0
def parse_description(content):
m = re.search(r'<!-- @description (.+?) -->', content)
return m.group(1).strip() if m else ''
issues = []
info = []
# --- 1. Check expected directories ---
expected_dirs = ['commands', 'agents', 'docs', 'feedback', 'hooks', 'scripts']
for d in expected_dirs:
local = os.path.join(claude_dir, d)
if not os.path.isdir(local):
issues.append(f'MISSING DIR: .claude/{d}/ does not exist')
else:
info.append(f'OK: .claude/{d}/ exists')
# --- 2. Check command files and versions ---
# mirror of DEV_ONLY_FILES in bin/cli.js — keep in sync
# (guard test: see test/dev-gate-consistency, substep 2.2)
dev_only = ['deploy-to-npmjs.md', 'usage-report.md', 'analyze-session.md', 'migrate-new-session.md', 'token-guard.js', 'session-close.js', 'statusline-cost.js', 'plan-progress.md', 'plan-progress.js', 'whats-happening.md', 'whats-happening.js', 'fleet.md', 'fleet.js', 'sync-worktrees.md', 'sync-worktrees.js', 'restore-after-reboot.md', 'restore-after-reboot.js', 'refactor.md', 'parallel-session-worktrees.md', 'worktree-gate.js', 'claim-registry.js', 'token-guard-liveness.js', 'cost-compare.md', 'gimme-one-liner.md', 'create-wip-report.md', 'abort-plan.md', 'eod-report.md', 'token-saver-details.md', 'token-saver-rationale.md', 'enable-retro.md', 'create-retro-item.md']
pkg_cmds_dir = os.path.join(pkg_dir, '.claude', 'commands')
local_cmds_dir = os.path.join(claude_dir, 'commands')
if os.path.isdir(pkg_cmds_dir) and os.path.isdir(local_cmds_dir):
pkg_cmds = set(f for f in os.listdir(pkg_cmds_dir) if f.endswith('.md') and f not in dev_only)
local_cmds = set(f for f in os.listdir(local_cmds_dir) if f.endswith('.md') and f not in dev_only)
# Missing commands. Deprecated aliases (old command names kept as shims after a
# rename) are only installed into projects that already had the old name, so their
# absence is the expected state — report as info, not an issue.
for f in sorted(pkg_cmds - local_cmds):
pkg_content = open(os.path.join(pkg_cmds_dir, f), encoding='utf-8').read()
if re.search(r'deprecated', pkg_content[:400], re.I):
info.append(f'OK CMD (absent): {f} is a deprecated alias, only shipped to upgrades that had the old name')
else:
issues.append(f'MISSING CMD: .claude/commands/{f} not installed')
# Extra commands (user-added, just note them)
for f in sorted(local_cmds - pkg_cmds):
if f not in dev_only:
info.append(f'EXTRA CMD: .claude/commands/{f} (user-added, not in package)')
# Version comparison for shared commands
for f in sorted(pkg_cmds & local_cmds):
pkg_content = open(os.path.join(pkg_cmds_dir, f), encoding='utf-8').read()
local_content = open(os.path.join(local_cmds_dir, f), encoding='utf-8').read()
pkg_v = parse_version(pkg_content)
local_v = parse_version(local_content)
if local_v < pkg_v:
issues.append(f'OUTDATED CMD: /{f.replace(\".md\",\"\")} is v{local_v}, latest is v{pkg_v}')
elif local_v > pkg_v:
info.append(f'AHEAD CMD: /{f.replace(\".md\",\"\")} is v{local_v}, package has v{pkg_v} (local is newer)')
else:
info.append(f'OK CMD: /{f.replace(\".md\",\"\")} v{local_v}')
# --- 3. Check agent files ---
pkg_agents_dir = os.path.join(pkg_dir, '.claude', 'agents')
local_agents_dir = os.path.join(claude_dir, 'agents')
if os.path.isdir(pkg_agents_dir) and os.path.isdir(local_agents_dir):
pkg_agents = set(os.listdir(pkg_agents_dir))
local_agents = set(os.listdir(local_agents_dir))
for f in sorted(pkg_agents - local_agents):
issues.append(f'MISSING AGENT: .claude/agents/{f} not installed')
for f in sorted(pkg_agents & local_agents):
info.append(f'OK AGENT: .claude/agents/{f}')
# --- 4. Check docs ---
pkg_docs_dir = os.path.join(pkg_dir, '.claude', 'docs')
local_docs_dir = os.path.join(claude_dir, 'docs')
if os.path.isdir(pkg_docs_dir):
for f in os.listdir(pkg_docs_dir):
if f.endswith('.html'):
if os.path.isdir(local_docs_dir) and f in os.listdir(local_docs_dir):
info.append(f'OK DOC: .claude/docs/{f}')
else:
issues.append(f'MISSING DOC: .claude/docs/{f} not installed')
# --- 5. Check settings.json ---
settings_path = os.path.join(claude_dir, 'settings.json')
if os.path.isfile(settings_path):
try:
settings = json.loads(open(settings_path, encoding='utf-8').read())
if 'permissions' in settings:
info.append('OK: settings.json exists with permissions')
else:
issues.append('SETTINGS: settings.json exists but has no permissions block')
except json.JSONDecodeError:
issues.append('SETTINGS: settings.json exists but is invalid JSON')
else:
issues.append('MISSING: .claude/settings.json not found')
# --- 6. Check CLAUDE.md ---
claude_md = os.path.join(project_dir, 'CLAUDE.md')
if os.path.isfile(claude_md):
content = open(claude_md, encoding='utf-8').read()
if 'AUTO-GENERATED BY /autoconfig' in content:
info.append('OK: CLAUDE.md exists with autoconfig marker')
else:
info.append('NOTE: CLAUDE.md exists but missing autoconfig marker (may be manually written)')
else:
issues.append('MISSING: CLAUDE.md not found (run /autoconfig to generate)')
# --- 7. Check hooks reference integrity ---
# Schema: hooks -> {event: [matcher, ...]}, each matcher has a 'hooks' list whose
# entries carry the 'command' string (commands live at matcher['hooks'][i]['command'],
# NOT matcher['command']).
if os.path.isfile(settings_path):
try:
settings = json.loads(open(settings_path, encoding='utf-8').read())
hooks = settings.get('hooks', {})
for event, matchers in hooks.items():
if not isinstance(matchers, list):
continue
for matcher in matchers:
if not isinstance(matcher, dict):
continue
for hook in matcher.get('hooks', []):
cmd = hook.get('command', '') if isinstance(hook, dict) else ''
# Extract .js file paths. Anchored commands quote the path
# (node \"...CLAUDE_PROJECT_DIR.../.claude/hooks/x.js\"), so a raw
# token ends in .js\" — strip quotes before testing the suffix.
for raw in cmd.split():
token = raw.strip('\"')
if token.endswith('.js') and '.claude/' in token:
rel_path = token.split('.claude/', 1)[1]
full_path = os.path.join(claude_dir, rel_path)
if os.path.isfile(full_path):
info.append(f'OK HOOK: .claude/{rel_path} exists ({event})')
else:
issues.append(f'BROKEN HOOK: .claude/{rel_path} referenced in settings.json ({event}) but file not found')
except:
pass
# --- Output ---
print(json.dumps({'issues': issues, 'info': info}, indent=2))
"
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago Changed d4fabd667703
- 7d ago First seen · 218 lines · 0 tokens per session scan A d296d0fba145
validate-cca-install is a command published in the GitHub repository design-and-deliver/claude-code-autoconfig (2 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,443 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.