一键导入
improve
Incrementally implement feature improvements from docs/improvements.md with tests and atomic commits. Focuses on new functionality rather than refactoring.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Incrementally implement feature improvements from docs/improvements.md with tests and atomic commits. Focuses on new functionality rather than refactoring.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | improve |
| description | Incrementally implement feature improvements from docs/improvements.md with tests and atomic commits. Focuses on new functionality rather than refactoring. |
| agent | general-purpose |
| allowed-tools | Read, Grep, Edit, Write, Bash |
| arguments | [{"name":"mode","description":"Execution mode: 'sub-agent' (default, sequential) or 'agent-team' (parallel via agent teams)","required":false,"default":"sub-agent"}] |
Systematically implement feature improvements from docs/improvements.md, making tested, atomic commits for each feature addition.
This skill supports two modes, passed as the first argument:
sub-agent (default): A single agent works through improvements sequentially. Best for small batches (1-3 features) or features with dependencies.agent-team: Spawns a coordinated team of agents that implement independent features in parallel. Best for larger batches (3+) of independent features.When invoked with agent-team, follow this process:
Read docs/improvements.md and identify all implementable features using the same feasibility criteria as sub-agent mode (skip Categories D-F, "Features to Avoid", "If Requested" items).
Partition implementable features into independent groups:
Create an agent team. For each teammate:
bundle exec rake standard:fix before committingbundle exec rspec to verify all tests pass[Feature] prefix formatdocs/improvements.md to mark features as implemented.claude/skills/improve/feature-patterns.md for implementation recipesAfter all teammates finish:
bundle exec rspecbundle exec rake standard:fixmemory.check_setup to verify the system is operationaldocs/improvements.mdBefore starting, confirm the memory system is operational:
memory.check_setup
If status is not "healthy", address any issues before proceeding.
# Read the improvements document
Read docs/improvements.md
Focus on these sections:
Priority Order:
Feasibility Assessment:
Before implementing, check:
✅ Safe to implement automatically:
⚠️ Implement with caution:
❌ Skip and report:
For each feature:
bundle exec rake standard:fix
bundle exec rspec spec/claude_memory/<relevant_spec>.rb
bundle exec rspec
Commit Message Format:
[Feature] Brief description of what was added
- Specific implementation details
- Why this improves the system
- Reference to docs/improvements.md section
Implements: docs/improvements.md (Section: <name>)
Example Commit:
git add -A
git commit -m "[Feature] Add ROI metrics tracking for distillation
- Add ingestion_metrics table with token counts
- Track input_tokens, output_tokens, facts_extracted
- Add metrics display to stats command
- Show efficiency (facts per 1k tokens)
Implements: docs/improvements.md (Section: ROI Metrics and Token Economics)
"
After successful implementation:
git add docs/improvements.md
git commit -m "[Docs] Mark <feature> as implemented"
Continue to next feature if:
Stop and report if:
Examples:
Approach:
Examples:
Approach:
Examples:
Approach:
Examples:
Approach:
Examples:
Approach:
Examples:
Approach:
Assessment: Category A + B (Schema + Reporting) - Safe to implement
Steps:
Time Estimate: 30-45 minutes
Assessment: Category D (Background) - Medium risk
Steps:
Time Estimate: 45-60 minutes Risk: May skip if too complex
Assessment: Category F (Architectural) - High risk
Action: SKIP - Too complex, marked "if requested" Report: "Web UI requires design session, skipped per priority guidance"
Read next feature from improvements.md
↓
Is it marked "Features to Avoid"?
├─ YES → SKIP completely
└─ NO → Continue
↓
Is it marked "If Requested"?
├─ YES → SKIP, note as "needs user request"
└─ NO → Continue
↓
Assess category (A-F)
↓
Category F (Architectural)?
├─ YES → SKIP, report as "needs planning"
└─ NO → Continue
↓
Category E (External)?
├─ YES → Assess carefully, may skip
└─ NO → Continue
↓
Category D (Background)?
├─ YES → Assess carefully, may skip
└─ NO → Continue
↓
Does it have dependencies on other features?
├─ YES → Are dependencies complete?
│ ├─ NO → SKIP, note dependency
│ └─ YES → Continue
└─ NO → Implement (Categories A-C safe)
↓
Implement the feature
↓
Run tests
↓
Tests pass?
├─ NO → Can fix in < 20 min?
│ ├─ YES → Fix and retry
│ └─ NO → SKIP, report as "complex"
└─ YES → Continue
↓
Commit with [Feature] message
↓
Update improvements.md
↓
Commit documentation update
↓
Next feature
Per Feature:
Per Debug Cycle:
Session Total: Max 2 hours
If time budget exceeded: SKIP remaining features and report.
spec/claude_memory/store/spec/claude_memory/commands/# Single relevant spec (fastest feedback)
bundle exec rspec spec/claude_memory/commands/metrics_command_spec.rb
# Module-level specs
bundle exec rspec spec/claude_memory/commands/
bundle exec rspec spec/claude_memory/store/
# Full suite (before commit)
bundle exec rspec
# With linting (final check)
bundle exec rake
Always add tests for new features:
# spec/claude_memory/commands/new_feature_spec.rb
RSpec.describe ClaudeMemory::Commands::NewFeature do
it "implements the feature correctly" do
# Test implementation
end
it "handles errors gracefully" do
# Test error cases
end
end
Update docs/improvements.md:
Move to Implemented section:
## Implemented Improvements ✓
14. **ROI Metrics Tracking** - ingestion_metrics table, stats display
Remove from Remaining Tasks:
### Remaining Tasks
- [x] ROI metrics table for token tracking during distillation
- [ ] Background processing (--async flag for hooks)
Update last modified date:
*Last updated: 2026-01-26 - Added ROI metrics tracking*
Keep running count:
Session completes successfully when:
Skip feature and report if you encounter:
Session Start: 2026-01-26 14:00
1. Read docs/improvements.md
- Found 4 Remaining Tasks
- 2 Medium Priority, 2 Low Priority
- Plan: Start with Medium Priority
2. Medium Priority #1: Background Processing (--async flag)
- Category: D (Background)
- Assessment: Medium risk, daemon complexity
- TIME ESTIMATE: 60 minutes
- DECISION: SKIP - Too complex, needs design
- Reason: Ruby daemon management is tricky, fork approach needs careful testing
3. Medium Priority #2: ROI Metrics Tracking
- Category: A + B (Schema + Reporting)
- Assessment: Low risk
- Implement:
a. Add schema migration v7
b. Add ingestion_metrics table
c. Add aggregate_metrics method to store
d. Enhance stats command
e. Add tests
- Run: bundle exec rspec ✅
- Commit: [Feature] Add ROI metrics tracking... ✅
- Update: docs/improvements.md ✅
- Commit: [Docs] Mark ROI metrics as implemented ✅
4. Low Priority #1: Structured Logging
- Category: C (CLI)
- Assessment: Low risk
- Implement:
a. Add Logger configuration
b. Add JSON formatter
c. Add log output to commands
d. Add --log-level flag
e. Add tests
- Run: bundle exec rspec ✅
- Commit: [Feature] Add structured logging... ✅
- Update: docs/improvements.md ✅
- Commit: [Docs] Mark structured logging as implemented ✅
5. Low Priority #2: Embed Command
- Category: C (CLI)
- Started implementation...
- TIME LIMIT EXCEEDED (45 minutes)
- SKIP - More complex than expected
Session End: 2026-01-26 15:30
Duration: 1.5 hours
Results:
- Medium Priority: 1/2 completed (1 skipped - too complex)
- Low Priority: 1/2 completed (1 time exceeded)
- Commits: 4 (2 feature, 2 docs)
- Tests: All passing ✅
- Features added: ROI metrics, Structured logging
## Feature Implementation Session Report
### Completed ✅
1. [Medium] ROI Metrics Tracking (commit: abc123)
- Added ingestion_metrics table
- Enhanced stats command
- Shows token efficiency metrics
2. [Low] Structured Logging (commit: def456)
- JSON log formatter
- --log-level flag for commands
- Better debugging visibility
### Skipped ⚠️
- [Medium] Background Processing (--async flag)
- Reason: Ruby daemon complexity, needs design session
- Recommendation: Plan this separately with forking strategy
- [Low] Embed Command
- Reason: Time budget exceeded (45 min)
- Progress: 60% complete, needs embedding generation logic
- Recommendation: Complete in focused session
### Summary
- Medium Priority: 1/2 completed (50%)
- Low Priority: 1/2 completed (50%)
- Tests: All passing ✅
- Commits: 4 total (2 features + 2 docs)
- Time: 1.5 hours
### Next Steps
1. Design session for background processing
2. Complete embed command implementation
3. Consider remaining Low Priority items
4. Run /review-for-quality to assess any code quality issues from new features
Prepare and publish a new gem release — bumps version across all required files, validates tests/linting/MCP server, commits, and creates the GitHub release. Use this skill when the user says "release", "publish a new version", "bump the version", "cut a release", "prepare for release", "ship it", or any variation of wanting to publish a new gem version. Also use when the user asks about the release process or what steps are needed to release.
Deep analysis of an external repository's architecture, patterns, and design decisions. Generates comprehensive influence document and updates improvements.md with prioritized recommendations.
Launch a local web dashboard for ClaudeMemory debugging and observability
Upgrade all Ruby gem dependencies to their latest versions with release note review and codebase alignment checks. Use this skill whenever the user asks to update, upgrade, or bump dependencies, gems, or packages — even casually like 'update my gems' or 'are my deps up to date?'
Automatically install, configure, or upgrade ClaudeMemory
Explicitly check memory system before answering or exploring