Loading...
Loading...
Contextual learning system that remembers patterns and rules from past sessions. Use to get relevant context before tasks, record outcomes, and build a personal playbook of coding patterns.
npx skill4agent add johnlindquist/claude cass-memorycmcm init
# Or with a starter playbook
cm init --starter typescript
cm init --starter react
cm init --starter python
cm init --starter go# THE main command - get relevant rules before starting work
cm context "Description of your task" --json# Run reflection on recent sessions
cm reflect --json
# Specify lookback period
cm reflect --days 7 --json
cm reflect --days 30 --json# List all rules
cm playbook list --json
# Get specific rule details
cm playbook get b-8f3a2c --json
# Add a new rule
cm playbook add "Always use optional chaining for nested object access" --json# Mark rule as helpful
cm mark b-8f3a2c --helpful --json
cm mark b-8f3a2c --helpful --reason "Prevented null error" --json
# Mark rule as harmful
cm mark b-8f3a2c --harmful --json
cm mark b-8f3a2c --harmful --reason "Caused false positive" --json# Record success
cm outcome --status success --json
cm outcome --status success --rules "b-8f3a2c,b-4d2e1f" --json
# Record failure
cm outcome --status failure --text "Build failed due to type error" --json
# Mixed results
cm outcome --status mixed --text "Partial completion" --json# Get playbook stats
cm stats --json# Show most effective rules
cm top --json
cm top 5 --json
cm top 20 --json# Check system health
cm doctor --json
# Auto-fix issues
cm doctor --fix --json# Rules without recent feedback
cm stale --json
cm stale --days 30 --json
cm stale --days 60 --json# Validate a proposed rule against history
cm validate "Proposed rule text" --json# Show evidence and reasoning for a rule
cm why b-8f3a2c --jsoncm usage --json# List available starters
cm starters --json# Get context before starting a task
cm context "Implement user authentication with JWT" --jsoncm mark b-8f3a2c --helpful --jsoncm mark b-8f3a2c --harmful --reason "Not applicable to this framework" --json# Record outcome
cm outcome --status success --rules "b-8f3a2c,b-4d2e1f" --json# Weekly: Run reflection to extract new patterns
cm reflect --days 7 --json
# Monthly: Review stale rules
cm stale --days 30 --json
# Check system health
cm doctor --json# Manually add a pattern you've learned
cm playbook add "Use React.memo() for components receiving complex objects as props" --json
# After adding, use it in context queries
cm context "Create a list component with filtering" --jsoncm context "task"CONTEXT=$(cm context "Your task description" --json)
# Use context to inform your approachcm outcome --status success --text "Completed feature X" --json