
cass-memory
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.
- Installs
- 43
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/johnlindquist/claude --skill cass-memory- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads cass-memory automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
CASS Memory - Contextual Learning System
Build and use a personal playbook of coding patterns learned from your sessions.
Prerequisites
The cm CLI should be available (part of cass-memory system).
Initialize:
cm init
# Or with a starter playbook
cm init --starter typescript
cm init --starter react
cm init --starter python
cm init --starter go
CLI Reference
Get Context for a Task
# THE main command - get relevant rules before starting work
cm context "Description of your task" --json
This returns:
- Relevant rules from your playbook
- Anti-patterns to avoid
- History snippets from similar past work
Reflection (Extract Patterns)
# Run reflection on recent sessions
cm reflect --json
# Specify lookback period
cm reflect --days 7 --json
cm reflect --days 30 --json
Playbook Management
# 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
Feedback on Rules
# 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 Session Outcomes
# 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
Statistics
# Get playbook stats
cm stats --json
Top Rules
# Show most effective rules
cm top --json
cm top 5 --json
cm top 20 --json
Health Check
# Check system health
cm doctor --json
# Auto-fix issues
cm doctor --fix --json
Find Stale Rules
# Rules without recent feedback
cm stale --json
cm stale --days 30 --json
cm stale --days 60 --json
Validate Rules
# Validate a proposed rule against history
cm validate "Proposed rule text" --json
Explain Rule Origin
# Show evidence and reasoning for a rule
cm why b-8f3a2c --json
Usage Statistics
cm usage --json
Starter Playbooks
# List available starters
cm starters --json
Workflow Patterns
Session Start
# Get context before starting a task
cm context "Implement user authentication with JWT" --json
During Work
When a rule helps:
cm mark b-8f3a2c --helpful --json
When a rule leads astray:
cm mark b-8f3a2c --harmful --reason "Not applicable to this framework" --json
Session End
# Record outcome
cm outcome --status success --rules "b-8f3a2c,b-4d2e1f" --json
Periodic Maintenance
# 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
Building Your Playbook
# 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" --json
Rule Lifecycle
- Creation - Rules emerge from reflection or manual addition
- Usage - Rules surface in context queries
- Feedback - Mark as helpful/harmful based on experience
- Evolution - High-feedback rules rise, low-feedback rules become stale
- Retirement - Stale rules get reviewed and pruned
Best Practices
- Always get context first - Run
cm context "task"before starting work - Provide feedback - Mark rules as helpful/harmful
- Record outcomes - Track session success/failure
- Run reflection regularly - Weekly reflection extracts new patterns
- Review stale rules - Don't let old rules accumulate
- Add rules manually - When you learn something important
Integration Tips
Pre-Task Context
Before any significant coding task:
CONTEXT=$(cm context "Your task description" --json)
# Use context to inform your approach
Post-Session Recording
At end of coding session:
cm outcome --status success --text "Completed feature X" --json
FAQ
What does the cass-memory skill do?
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.
How do I install cass-memory?
Run npx skills add https://github.com/johnlindquist/claude --skill cass-memory in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/cass-memory/ (personal) or .claude/skills/cass-memory/ (project).
Which AI agents can use cass-memory?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is cass-memory safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains cass-memory?
It is published by johnlindquist in johnlindquist/claude. It has 43 recorded installs.
More from johnlindquist/claude
gemini-image
johnlindquist/claude
Analyze images using Gemini's vision capabilities. Use for image analysis, text extraction from screenshots, and visual content understanding.
memory
johnlindquist/claude
Persistent knowledge storage using basic-memory CLI. Use to save notes, search memories semantically, and build context for topics across sessions.
brainstorm
johnlindquist/claude
Generate ideas and explore possibilities with AI. Use for creative problem solving, generating alternatives, and expanding on concepts.
deepwiki
johnlindquist/claude
Query DeepWiki for repository documentation and structure. Use to understand open source projects, find API docs, and explore codebases.
Popular education & science skills
teach
mattpocock/skills
Teach the user a new skill or concept, within this workspace.
scaffold-exercises
mattpocock/skills
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
paper-context-resolver
lllllllama/rigorpilot-skills
Rigor Paper Context helper for README-first deep learning repo reproduction. Use only when the README and repository files leave a narrow reproduction-critical gap and the task is to resolve a specific paper detail such as dataset split, preprocessing, evaluation protocol, checkpoint mapping, or runtime assumption from primary paper sources while recording conflicts. Do not use for general paper summary, repo scanning, environment setup, command execution, title-only paper lookup, or replacing README guidance by default.
caveman-learn
juliusbrussee/caveman
Act on a Caveman learn report - review the ranked token sinks, apply cost-lowering fixes with per-edit consent, and report what those fixes returned. Use when asked to lower an agent's token cost, what caveman has saved, to trim a heavy CLAUDE.md, or to offload re-pasted context into cavemem.
gsap-plugins
greensock/gsap-skills
Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG drawing, or plugin registration.
teach-impeccable
pbakaus/impeccable
DEPRECATED: Use /impeccable teach instead. This command has been folded into the impeccable skill.