Self-reflect on the current session to identify mistakes and propose improvements to .claude configuration (CLAUDE.md, hooks, skills).
Analyze the current session for errors, mistakes, or inefficiencies and propose improvements to the .claude configuration to prevent similar issues in the future.
/claude-improve-configSessionEnd hookReview the conversation for:
Rate severity:
Only propose changes for critical or moderate issues.
Changes can include:
CLAUDE.md Updates:
New Hooks:
New Skills:
Present proposals clearly:
## Session Reflection
### Issues Identified
1. **[Critical/Moderate]** Brief description of the issue
- What happened: ...
- Why it happened: ...
- Impact: ...
### Proposed Changes
#### Change 1: [Type - CLAUDE.md/Hook/Skill]
**Rationale:** Why this change prevents the issue
**Implementation:**
[Show the exact changes to make]
#### Change 2: ...
Issue: Claude claimed tests passed without running them.
Proposal: Add to CLAUDE.md:
**Test verification**: Never claim tests pass without showing actual test output. Always run `uv run pytest` with the specific test file before marking test-related tasks complete.
Issue: Code was submitted with lint errors multiple times.
Proposal: Add PostToolUse hook for Write/Edit:
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "ruff check --select=E,F $TOOL_INPUT.file_path 2>/dev/null || true"
}
]
}
Issue: PR was created against wrong base branch.
Proposal: Add to CLAUDE.md:
**Pull requests**: Always verify the target branch before creating a PR. For this project, PRs should target `main` unless explicitly specified otherwise.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer