Install
$ agentstack add skill-enbiyagoral-claude-improve ✓ 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.
About
Improve
Target area: $ARGUMENTS
Step 0 — System health check
Before analyzing feedback, check the overall lifecycle health:
- Common-mistakes capacity: Read
.claude/rules/common-mistakes.mdand count items.
- At 10 (full): "common-mistakes.md is at capacity. Before adding new patterns, let's graduate resolved items to docs/learnings/." Then for each item, ask if it's still active or can be graduated. Graduate resolved ones using the format in
docs/learnings/README.mdbefore proceeding to Step 1. - At 8-9: Note that capacity is almost full. Continue to Step 1 but flag this.
- Old learnings: Glob
docs/learnings/*.md(exclude README.md). Check file dates in filenames (YYYY-MM-DD prefix).
- Any older than 6 months? List them and ask: "These learnings are older than 6 months. Are any no longer relevant? I can archive them to docs/archive/."
- If user says yes → move the files to
docs/archive/and continue.
- Duplicate memories: Glob
memory/*.md. Check for files with overlapping descriptions or topics.
- If found → suggest merging into a single memory file.
After health check, proceed to feedback analysis.
Step 1 — Collect feedback memories
Glob memory/*.md. For each file, read the YAML frontmatter. Keep only files where type: feedback.
If no feedback memories exist, stop:
No feedback memories found in memory/.
Feedback memories are created automatically when you correct Claude during a session.
Nothing to improve yet — keep working and check back later.
Step 2 — Group by area
Read the content of each feedback memory. Extract the area/topic from:
- The
descriptionfield in frontmatter - Keywords in the content (testing, imports, lint, naming, formatting, security, etc.)
Group feedback files by area. Count entries per area.
Step 3 — Filter by argument
If $ARGUMENTS is not empty, filter to only the matching area. If no match, list available areas and ask which one.
If $ARGUMENTS is empty, continue with all areas.
Step 4 — Analyze and recommend
For each area, apply thresholds:
| Count | Recommendation | | ----- | ---------------------------------------------------- | | 1-2 | Skip — not a pattern yet, memory is sufficient | | 3-4 | Suggest adding to common-mistakes.md | | 5+ | Suggest creating a permanent control via /new-rule |
Print a summary:
=== Feedback Analysis ===
: feedback entries →
: feedback entries →
: feedback entries → Skip (not a pattern yet)
Which area do you want to act on? (or "all" for batch processing)
If only one area qualifies (3+), print the recommendation and proceed directly to Step 5 without asking.
Step 5 — Pre-flight checks
Before acting, verify constraints:
- Read
.claude/rules/common-mistakes.md— count current items
- If at 10 items and action is "add to common-mistakes" → suggest
/graduatefirst - If at 8-9 items → warn that capacity is almost full
- Glob
.claude/rules/*.md— estimate total token budget
- If approaching ~500 tokens → warn before creating a new rule file
- Check if a control already exists for this area
- Glob
.claude/rules/for files matching the area keyword - If found → suggest updating the existing control instead of creating a new one
Step 6 — Execute action
For common-mistakes (3-4 feedback entries)
- Synthesize the feedback entries into a single, concise mistake description
- Show the proposed entry to the user:
```text Proposed common-mistakes entry:
N. **** —
Source: feedback memories ()
Add this to common-mistakes.md? ```
- Wait for user approval. If rejected, stop — leave memories unchanged.
- Edit
.claude/rules/common-mistakes.md— append the new numbered item - Proceed to Step 7 (cleanup)
For controls (5+ feedback entries)
- Synthesize feedback entries into a control description
- Show the proposed control to the user:
```text Proposed control from feedback entries:
Name: -conventions Surface: Scope: Content:
- ...
Create this control? (I'll use /new-rule to scaffold it properly) ```
- Wait for user approval. If rejected, stop — leave memories unchanged.
- Provide the control details so the user can invoke
/new-rulewith context,
or directly apply changes following /new-rule surface classification
Step 7 — Clean up resolved feedback
After successfully creating a control or common-mistake entry:
- List the feedback memory files that were consumed
- Ask the user:
```text These feedback memories are now captured as a :
- memory/.md
- memory/.md
- ...
Delete them? (They're redundant now — the rule enforces the behavior every session) ```
- If yes → delete the files and remove their entries from
memory/MEMORY.md - If no → leave them (user may want to keep for reference)
Step 8 — Print summary
=== Done ===
Action: >
Source: feedback memories from
Cleaned up:
Remaining feedback areas with patterns:
: entries (run /improve to process)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: enbiyagoral
- Source: enbiyagoral/.claude
- 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.