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.
What this skill does
# 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: ```bash 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 ```bash # 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) ```bash # Run reflection on recent sessions cm reflect --json # Specify lookback period cm reflect --days 7 --json cm reflect --days 30 --json ``` ### Playbook Management ```bash # 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 ```bash # 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 ```bash # 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 ```bash # Get playbook stats cm stats --json ``` ### Top Rules ```bash # Show most effective rules cm top --json cm top 5 --json cm top 20 --json ``` ### Health Check ```bash # Check system health cm doctor --json # Auto-fix issues cm doctor --fix --json ``` ### Find Stale Rules ```bash # Rules without recent feedback cm stale --json cm stale --days 30 --json cm stale --days 60 --json ``` ### Validate Rules ```bash # Validate a proposed rule against history cm validate "Proposed rule text" --json ``` ### Explain Rule Origin ```bash # Show evidence and reasoning for a rule cm why b-8f3a2c --json ``` ### Usage Statistics ```bash cm usage --json ``` ### Starter Playbooks ```bash # List available starters cm starters --json ``` ## Workflow Patterns ### Session Start ```bash # Get context before starting a task cm context "Implement user authentication with JWT" --json ``` ### During Work When a rule helps: ```bash cm mark b-8f3a2c --helpful --json ``` When a rule leads astray: ```bash cm mark b-8f3a2c --harmful --reason "Not applicable to this framework" --json ``` ### Session End ```bash # Record outcome cm outcome --status success --rules "b-8f3a2c,b-4d2e1f" --json ``` ### Periodic Maintenance ```bash # 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 ```bash # 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 1. **Creation** - Rules emerge from reflection or manual addition 2. **Usage** - Rules surface in context queries 3. **Feedback** - Mark as helpful/harmful based on experience 4. **Evolution** - High-feedback rules rise, low-feedback rules become stale 5. **Retirement** - Stale rules get reviewed and pruned ## Best Practices 1. **Always get context first** - Run `cm context "task"` before starting work 2. **Provide feedback** - Mark rules as helpful/harmful 3. **Record outcomes** - Track session success/failure 4. **Run reflection regularly** - Weekly reflection extracts new patterns 5. **Review stale rules** - Don't let old rules accumulate 6. **Add rules manually** - When you learn something important ## Integration Tips ### Pre-Task Context Before any significant coding task: ```bash CONTEXT=$(cm context "Your task description" --json) # Use context to inform your approach ``` ### Post-Session Recording At end of coding session: ```bash cm outcome --status success --text "Completed feature X" --json ```
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.