improve-claude-config
Self-improvement skill for evolving Claude Code configuration. Use when you notice repeated mistakes, want to add new workflows, or optimize the development experience.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-01
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- improve-claude-config
- description
- Self-improvement skill for evolving Claude Code configuration. Use when you notice repeated mistakes, want to add new workflows, or optimize the development experience.
03 SKILL.md 正文
Improve Claude Configuration
Purpose
This skill enables Claude Code to evolve and improve its own configuration based on observed patterns, user feedback, and development needs.
When to Use
Invoke this skill when:
- You've explained the same concept to Claude multiple times
- Claude repeatedly makes the same type of mistake
- A new workflow pattern has emerged that should be automated
- Hooks could prevent recurring issues
- New skills would benefit the project
Self-Improvement Workflow
1. Analyze Current State
Read and understand the current configuration:
# Shared instructions (all agents)
read_file AGENTS.md
# Claude-only tail (skills, agents, learnings)
read_file CLAUDE.md
# List all skills
list_dir .claude/skills/
# List all agents
list_dir .claude/agents/
# View current hooks
read_file .claude/settings.json
2. Identify Improvement Opportunity
| Pattern | Action |
|---|---|
| Repeated explanation | Add to AGENTS.md or create a skill |
| Recurring mistake | Add rule to AGENTS.md (shared) or create a skill |
| Manual repetitive task | Create a hook |
| Complex workflow | Create a skill |
| Specialized task delegation | Create an agent |
3. Implement Improvement
Adding shared rules
For repo-wide conventions or gotchas every agent should follow, edit AGENTS.md.
For Claude-only notes (slash commands, hook behavior), append under ## Claude Code or Recent learnings in CLAUDE.md.
Creating a New Skill
- Create directory:
.claude/skills/<skill-name>/ - Create
SKILL.mdwith standard structure.
Creating a New Hook
Add to .claude/settings.json and create the corresponding script in .claude/hooks/.
4. Validate Changes
- Verify JSON syntax in
settings.json. - Test hooks if added.
- Verify skill loads correctly.
Best Practices
- Be minimal: Only add what's necessary
- Be specific: Vague rules are ignored
- Test changes: Validate hooks and skills work
- Version control: Commit configuration changes with clear messages
04 同仓库更多 Skills
security-review
Perform a structured security review of the target code
test-and-fix
Run unit tests and automatically fix code failures, regression bugs, or test mismatches. Use when tests are failing, after implementing new features, or to repair "broken" tests.
setup-dev-env
Set up the development environment for the project. Use when starting work on the project, when dependencies are out of sync, or to fix environment setup failures.
security-vulnerability-audit
Workflow for auditing security vulnerabilities using Trunk (Trivy and OSV-scanner). Use when checking for project vulnerabilities, hard-coded secrets, or repairing security flaws.
security-scan
Scan for vulnerable dependencies and CVEs via pnpm lint:security (Trunk Trivy/OSV-scanner), optional pnpm security:grype or pnpm lint:all (Trunk-all plus Grype). Use for dependency CVE checks, security-scoped lint, or post-bump verification.
postmortem
End-of-session capture of failures, surprises, and lessons so agent behavior and repo config improve. Use after non-trivial work; skip trivial sessions unless something went wrong.