Install
$ agentstack add skill-paulo-yamagishi-claude-code-setup-evolve ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
/evolve — Auto-Maintain Claude Code Configuration
Automatically keep Claude Code config files accurate as a codebase evolves. Run after completing a task or wire into a Stop hook for hands-free maintenance.
Phase 0 — Self-Install (with consent)
Check whether the Stop hook is registered, and ask the user before installing:
- Read
.claude/settings.json(if missing or empty, start with{}) - Check if any existing Stop hook prompt already contains
"evolve"or"config maintenance" - If already present: continue silently to Phase 1
- If not found: show the user the hook JSON that would be added:
``json { "type": "prompt", "prompt": "Before finishing, silently evaluate if any Claude Code configuration files need updating based on the work just completed. Check CLAUDE.md accuracy, CHANGELOG.md Unreleased entries, skill/rule/agent validity, and settings alignment. Only edit files that are actually stale. Report changes in one line or stay silent." } ``
- Ask the user: "Install Stop hook for automatic config maintenance? (y/n)"
- If confirmed: merge the hook into settings and save:
- If
hookskey is missing, create{"hooks": {"Stop": [{"hooks": []}]}} - If
hooks.Stopexists, append the new hook entry to the existing array'shookslist - Preserve all other keys in the settings file
- Report:
[evolve] Installed: Stop hook added for automatic config maintenance
- If declined: report
[evolve] Skipped: Stop hook not installed. Run /evolve manually when needed.and continue to Phase 1
Phase 1 — Detect What Changed
Gather recent changes to understand what work was done:
git diff --name-only
git diff --staged --name-only
git log --oneline -5
Categorize every changed file into: source code, tests, configs, dependencies, docs, new files/dirs.
Exit silently if:
- No meaningful changes detected
- ALL changed files are under
.claude/(avoid self-referential loops)
Phase 2 — Evaluate Each Config File
For each Claude Code config file that exists in the project, check whether it is stale:
| Config File | What to Check | |---|---| | CLAUDE.md | Structure section matches actual dirs; Commands section has correct test/lint/build commands; Architecture reflects current state; any new key conventions emerging | | CHANGELOG.md | Unreleased section has entry for work just done; skip if no CHANGELOG exists | | .claude/skills/*/SKILL.md | Commands referenced still work; file paths still valid; any repeated workflow in this session that deserves a new skill | | .claude/rules/*.md | Conventions still match actual code patterns; scoped paths still valid | | .claude/agents/*.md | Tool lists still valid; model choices still appropriate | | .claude/settings.json | New commands used that should be in allow list; formatter/linter commands still correct in hooks | | .mcp.json | Existing config still valid (don't auto-add servers) |
Only flag files where the content is actually inconsistent with the current codebase state.
Phase 3 — Apply Minimal Updates
- Only edit files that are actually stale — skip everything else
- Use targeted edits — never rewrite an entire file
- Respect existing style — match the formatting of the file being edited
- New skills: create only if a clear repeatable pattern was found (at least 2 similar operations in the current session)
- CHANGELOG: add a concise one-line entry under the appropriate subsection in
[Unreleased]
Phase 4 — Report
- Changes made:
[evolve] Updated: CLAUDE.md (new dir documented), CHANGELOG.md (added feature entry) - New skill suggested:
[evolve] Suggestion: consider creating /deploy skill for the deployment workflow used today - Nothing needed: complete silence — no output at all
Rules
- NEVER commit — only edit files, let the user decide when to commit
- NEVER create files without clear justification — threshold: repeatable pattern seen at least 2 times in the session
- Skip if only
.claude/files changed — avoids self-referential loops - Conservative — when uncertain, suggest instead of edit
- Fast — no sub-skill invocations, no web fetches, just local file reads and edits
- Respect existing style — match formatting of the file being edited
- Project-agnostic — no hardcoded paths, languages, or tools; all detection-based
Stop Hook
The /evolve skill offers to install its Stop hook on first run (Phase 0). You will be asked for consent before any settings are modified.
To remove it, delete the Stop hook entry containing "config maintenance" from .claude/settings.json.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: paulo-yamagishi
- Source: paulo-yamagishi/claude-code-setup
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.