Communitygithub.com

bg-szy/TOP-SKILLS

CASS Memory System – prozedurales Gedächtnis für KI-Coding-Agenten. Drei-Schichten-kognitive Architektur mit Vertrauensabnahme, Anti-Pattern-Lernen, agentenübergreifendem Wissenstransfer und Trauma-Guard-Sicherheitssystem. Bun/TypeScript CLI.

Was ist TOP-SKILLS?

Dieses Skill implementiert das CASS Memory System, ein prozedurales Gedächtnis für KI-Coding-Agenten, das verstreute Sitzungen in persistentes, agentenübergreifendes Wissen verwandelt. Es nutzt eine dreischichtige kognitive Architektur, die die menschliche Expertise-Entwicklung nachbildet: Episodisches Gedächtnis (rohe Sitzungsprotokolle), Arbeitsgedächtnis (strukturierte Zusammenfassungen) und prozedurales Gedächtnis (destillierte Regeln mit Vertrauensverfolgung und -abnahme). Es ist für Entwickler konzipiert, die mehrere KI-Agenten wie Claude Code, Cursor, Codex, Aider und andere verwenden, und ermöglicht es, dass ein in einem Agenten entdecktes Muster automatisch anderen Agenten in der nächsten Sitzung hilft. Das System umfasst einen Confidence Decay Mechanismus (90-Tage-Halbwertszeit), Anti-Pattern-Lernen (Regeln mit hohem Schadensverhältnis werden automatisch in Warnungen umgewandelt), einen ACE-Pipeline zur Regelerstellung (Generator → Reflector → Validator → Curator) und ein Trauma Guard-Sicherheitssystem, das katastrophale Befehle auf Basis von Vorfällen aus der Vergangenheit blockiert. Die Hauptschnittstelle ist ein CLI-Befehl 'cm context "<Aufgabe>" --json', der vor komplexen Aufgaben ausgeführt wird, um relevante Regeln, Anti-Patterns, Sitzungshistorie und Suchvorschläge abzurufen.

Funktioniert mit✓Claude Code✓Codex CLI✓Cursor✓Gemini CLI
npx skills add https://github.com/bg-szy/TOP-SKILLS/tree/HEAD/skills/marketplace/cm

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

CM – CASS Memory System

Prozedurales Gedächtnis für KI-Coding-Agenten. Verwandelt verstreute Sitzungen in persistentes, agentenübergreifendes Gedächtnis. Nutzt eine dreischichtige kognitive Architektur, die die menschliche Expertise-Entwicklung nachbildet.

Warum es das gibt

KI-Coding-Agenten sammeln wertvolles Wissen, aber es ist:

  • In Sitzungen gefangen – Kontext geht verloren, wenn die Sitzung endet
  • Agentenspezifisch – Claude weiß nicht, was Cursor gelernt hat
  • Unstrukturiert – Rohe Protokolle sind keine handlungsleitenden Anweisungen
  • Kollapsgefährdet – Naive Zusammenfassung verliert kritische Details

Sie haben diesen Monat dreimal Auth-Bugs in verschiedenen Agenten gelöst. Jedes Mal von vorne angefangen.

CM löst dies mit agentenübergreifendem Lernen: Ein in Cursor entdecktes Muster steht Claude Code sofort in der nächsten Sitzung zur Verfügung.


Dreischichtige Kognitive Architektur

┌─────────────────────────────────────────────────────────────────────┐
│                    EPISODISCHES GEDÄCHTNIS (cass)                   │
│   Rohe Sitzungsprotokolle aller Agenten – die „Grundwahrheit"      │
│   Claude Code │ Codex │ Cursor │ Aider │ PI │ Gemini │ ChatGPT │ ...│
└───────────────────────────┬─────────────────────────────────────────┘
                            │ cass search
                            ▼
┌─────────────────────────────────────────────────────────────────────┐
│                    ARBEITSGEDÄCHTNIS (Diary)                        │
│   Strukturierte Sitzungszusammenfassungen: Erfolge, Entscheidungen  │
└───────────────────────────┬─────────────────────────────────────────┘
                            │ reflect + kuratieren (automatisiert)
                            ▼
┌─────────────────────────────────────────────────────────────────────┐
│                    PROZEDURALES GEDÄCHTNIS (Playbook)               │
│   Destillierte Regeln mit Vertrauensverfolgung und -abnahme         │
└─────────────────────────────────────────────────────────────────────┘

Die Sitzungen jedes Agenten speisen das gemeinsame Gedächtnis. Ein in Cursor entdecktes Muster hilft automatisch Claude Code in der nächsten Sitzung.


Der Eine Befehl, Den Sie Brauchen

cm context "<Ihre Aufgabe>" --json

Führen Sie dies aus, bevor Sie eine nicht-triviale Aufgabe beginnen. Gibt zurück:

  • relevantBullets – Regeln aus dem Playbook, bewertet nach Aufgabenrelevanz
  • antiPatterns – Dinge, die Probleme verursacht haben
  • historySnippets – Frühere Sitzungen (Ihre und die anderer Agenten)
  • suggestedCassQueries – Suchvorschläge für tiefere Untersuchungen

Filtern der Historie nach Quelle

historySnippets[].origin.kind ist "local" oder "remote". Remote-Treffer enthalten origin.host:

{
  "historySnippets": [
    {
      "source_path": "~/.claude/sessions/session-001.jsonl",
      "origin": { "kind": "local" }
    },
    {
      "source_path": "/home/user/.codex/sessions/session.jsonl",
      "origin": { "kind": "remote", "host": "workstation" }
    }
  ]
}

Vertrauensabnahme-System

Regeln sind nicht unsterblich. Das Vertrauen nimmt ohne erneute Bestätigung ab:

MechanismusEffekt
90-Tage-HalbwertszeitVertrauen halbiert sich alle 90 Tage ohne Feedback
4x SchadensmultiplikatorEin Fehler zählt 4× so viel wie ein Erfolg
Reifegrad-Progressioncandidate → established → proven

Visualisierung der Score-Abnahme

Anfangswert: 10,0 (10 hilfreiche Markierungen heute)

Nach 90 Tagen (Halbwertszeit):   5,0
Nach 180 Tagen:                   2,5
Nach 270 Tagen:                  1,25
Nach 365 Tagen:                  0,78

Formel für den Effektiven Score

effectiveScore = decayedHelpful - (4 × decayedHarmful)

// Wobei decay factor = 0.5 ^ (daysSinceFeedback / 90)

Reifegrad-Zustandsautomat

  ┌──────────┐       ┌─────────────┐    ┌────────┐
  │ candidate│──────▶│ established │───▶│ proven │
  └──────────┘       └─────────────┘    └────────┘
       │                   │                  │
       │                   │ (harmful >25%)   │
       │                   ▼                  │
       │             ┌─────────────┐          │
       └────────────▶│ deprecated  │◀─────────┘
                     └─────────────┘

Übergangsregeln:

ÜbergangKriterien
candidate → established3+ hilfreich, Schadensquote <25%
established → proven10+ hilfreich, Schadensquote <10%
any → deprecatedSchadensquote >25% ODER explizite Ablehnung

Anti-Pattern-Lernen

Schlechte Regeln werden nicht einfach gelöscht. Sie werden zu Warnungen:

"Cache-Auth-Tokens für Performance"
    ↓ (3 schädliche Markierungen)
"FALLE: Cache keine Auth-Tokens ohne Ablauf-Validierung"

Wenn eine Regel mehrfach als schädlich markiert wird (>50% Schadensquote bei 3+ Markierungen), wird sie automatisch in ein Anti-Pattern umgewandelt.


ACE-Pipeline (Wie Regeln Erstellt Werden)

Generator → Reflector → Validator → Curator
StufeRolleLLM?
GeneratorKontextanreicherung vor der Aufgabe (cm context)Nein
ReflectorMuster aus Sitzungen extrahieren (cm reflect)Ja
ValidatorEvidenzprüfung gegen cass-HistorieJa
CuratorDeterministischer Delta-MergeNein

Kritisch: Curator hat KEIN LLM, um Kontextkollaps durch iterative Drift zu verhindern. LLMs schlagen Muster vor; deterministische Logik verwaltet sie.

Wissenschaftliche Validierung

Bevor eine Regel in Ihr Playbook aufgenommen wird, wird sie gegen die cass-Historie validiert:

Vorgeschlagene Regel: "Überprüfe vor Auth-Debugging immer den Token-Ablauf"
    ↓
Evidenzprüfung: Suche cass nach Sitzungen, in denen dies zutraf
    ↓
Ergebnis: 5 Sitzungen gefunden, 4 erfolgreiche Ergebnisse → ANGENOMMEN

Regeln ohne historische Evidenz werden als Kandidaten markiert, bis sie bewiesen sind.


Befehlsreferenz

Kontextabruf (Haupt-Workflow)

# DER HAUPTBEFEHL - vor nicht-trivialen Aufgaben ausführen
cm context "Benutzerauthentifizierung implementieren" --json

# Ergebnisse für das Token-Budget begrenzen
cm context "Bug beheben" --json --limit 5 --no-history

# Mit Workspace-Filter
cm context "Refactoring" --json --workspace /pfad/zum/projekt

# Selbstdokumentierende Erklärung
cm quickstart --json

# Systemzustand
cm doctor --json
cm doctor --fix  # Probleme automatisch beheben

# Ähnliche Regeln finden
cm similar "Fehlerbehandlungs-Best Practices"

Playbook-Verwaltung

cm playbook list                              # Alle Regeln
cm playbook get b-8f3a2c                      # Regel-Details
cm playbook add "Führe immer zuerst Tests aus"      # Regel hinzufügen
cm playbook add --file rules.json             # Batch-Hinzufügen aus Datei
cm playbook add --file rules.json --session /pfad/session.jsonl  # Quelle verfolgen
cm playbook remove b-xyz --reason "Veraltet"  # Entfernen
cm playbook export > backup.yaml              # Exportieren
cm playbook import shared.yaml                # Importieren
cm playbook bootstrap react                   # Starter auf bestehendes anwenden

cm top 10                                     # Effektivste Regeln
cm stale --days 60                            # Regeln ohne aktuelles Feedback
cm why b-8f3a2c                               # Regel-Herkunft
cm stats --json                               # Playbook-Zustandsmetriken

Lernen & Feedback

# Manuelles Feedback
cm mark b-8f3a2c --helpful
cm mark b-xyz789 --harmful --reason "Verursachte Regression"
m undo b-xyz789                              # Feedback rückgängig machen

# Sitzungsergebnisse (positional: status, rules)
cm outcome success b-8f3a2c,b-def456
cm outcome failure b-x7k9p1 --summary "Auth-Ansatz fehlgeschlagen"
cm outcome-apply                              # Auf Playbook anwenden

# Reflexion (normalerweise automatisiert)
cm reflect --days 7 --json
cm reflect --session /pfad/zu/session.jsonl   # Einzelne Sitzung
cm reflect --workspace /pfad/zum/projekt       # Projektspezifisch

# Validierung
cm validate "Überprüfe vor Dereferenzierung immer auf null"

# Sitzungen gegen Regeln prüfen
cm audit --days 30

# Dauerhaft ablegen
cm forget b-xyz789 --reason "Durch besseres Muster ersetzt"

Onboarding (Agenten-Nativ)

Kostenloser Playbook-Aufbau mit Ihrem bestehenden Agenten:

cm onboard status                             # Fortschritt prüfen
cm onboard gaps                               # Kategorielücken
cm onboard sample --fill-gaps                 # Priorisierte Sitzungen
cm onboard sample --agent claude --days 14    # Nach Agent/Zeit filtern
cm onboard sample --workspace /pfad/projekt   # Nach Workspace filtern
cm onboard sample --include-processed         # Sitzungen erneut analysieren
cm onboard read /pfad/session.jsonl --template  # Reichhaltiger Kontext
cm onboard mark-done /pfad/session.jsonl      # Als verarbeitet markieren
cm onboard reset                              # Neu starten

Trauma Guard (Sicherheitssystem)

cm trauma list                                # Aktive Muster
cm trauma add "DROP TABLE" --description "Massenlöschung" --severity critical
cm trauma heal t-abc --reason "Geplante Migration"
cm trauma remove t-abc
cm trauma scan --days 30                      # Nach Traumata scannen
cm trauma import shared-traumas.yaml

cm guard --install                            # Claude Code Hook
cm guard --git                                # Git Pre-Commit Hook
cm guard --install --git                      # Beide
cm guard --status                             # Installation prüfen

Systembefehle

cm init                                       # Initialisieren
cm init --starter typescript                  # Mit Vorlage
cm init --force                               # Neu initialisieren (erstellt Backup)
cm starters                                   # Vorlagen auflisten
cm serve --port 3001                          # MCP-Server
cm usage                                      # LLM-Kostenstatistiken
cm privacy status                             # Datenschutzeinstellungen
cm privacy enable                             # Agentenübergreifende Anreicherung aktivieren
cm privacy disable                            # Anreicherung deaktivieren
cm project --format agents.md                 # Für AGENTS.md exportieren

Starter-Playbooks

Mit einem leeren Playbook zu beginnen, ist entmutigend. Starter bieten kuratierte Best Practices:

cm starters                    # Verfügbare auflisten
cm init --starter typescript   # Mit Starter initialisieren
cm playbook bootstrap react    # Auf bestehendes Playbook anwenden

Integrierte Starter

StarterFokusRegeln
generalUniverselle Best Practices5
typescriptTypeScript/Node.js-Muster4
reactReact/Next.js-Entwicklung4
pythonPython/FastAPI/Django4
nodeNode.js/Express-Dienste4
rustRust-Dienstmuster4

Benutzerdefinierte Starter

Erstellen Sie YAML-Dateien in ~/.cass-memory/starters/:

# ~/.cass-memory/starters/django.yaml
name: django
beschreibung: Django Web Framework Best Practices
bullets:
  - content: "Verwende immer Djangos ORM für Datenbankoperationen"
    category: database
    maturity: established
    tags: [django, orm]

Inline-Feedback (Während der Arbeit)

Hinterlassen Sie Feedback in Code-Kommentaren. Wird während der Reflexion geparst:

// [cass: helpful b-8f3a2c] - Diese Regel hat mich vor einem Kaninchenbau bewahrt

// [cass: harmful b-x7k9p1] - Dieser Ratschlag war falsch für unseren Anwendungsfall

Agentenprotokoll

1. START:    cm context "<Aufgabe>" --json
2. ARBEITEN: Regel-IDs referenzieren, wenn Sie sie befolgen (z. B. "Folge b-8f3a2c...")
3. FEEDBACK: Inline-Kommentare hinterlassen, wenn Regeln helfen/schaden
4. ENDE:     Einfach beenden. Lernen geschieht automatisch.

Sie MÜSSEN NICHT:

  • cm reflect ausführen (die Automatisierung erledigt das)
  • cm mark manuell ausführen (Inline-Kommentare verwenden)
  • Manuell Regeln zum Playbook hinzufügen

Lückenanalyse-Kategorien

KategorieSchlüsselwörter
debuggingerror, fix, bug, trace, stack
testingtest, mock, assert, expect, jest
architecturedesign, pattern, module, abstraction
workflowtask, CI/CD, deployment
documentationcomment, README, API doc
integrationAPI, HTTP, JSON, endpoint
collaborationreview, PR, team
gitbranch, merge, commit
securityauth, token, encrypt, permission
performanceoptimize, cache, profile

Kategoriestatus-Schwellenwerte:

StatusRegelanzahlPriorität
critical0 RegelnHoch
underrepresented1-2 RegelnMittel
adequate3-10 RegelnNiedrig
well-covered11+ RegelnKeine

Trauma Guard: Sicherheitssystem

Das „heiße Ofen"-Prinzip – aus früheren Vorfällen lernen und Wiederholungen verhindern.

Wie es funktioniert

Sitzungshistorie              Trauma-Register              Laufzeit-Guard
┌─────────────────┐         ┌─────────────────┐         ┌─────────────────┐
│ rm -rf /* (oops)│ ──────▶ │ Muster: rm -rf  │ ──────▶ │ BLOCKIERT:     │
│ „Entschuldigung,│  scannen │ Schwere: FATAL  │  hook   │ Dieser Befehl  │
│  ich habe einen │         │ Sitzung: abc123 │         │ entspricht     │
│  Fehler gemacht

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

bg-szy/TOP-SKILLS

Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established visual direction. Skip when they have a design mockup, need a dashboard or app UI, are working at component level, building a multi-page app, or restyling with known design tokens — use frontend-design instead.

bg-szy/TOP-SKILLS

Fill out Microsoft Azure Landing Zone (ALZ) Accelerator checklists by interviewing the user, mapping their Azure subscriptions, integrating IP addressing documentation, and applying Microsoft Cloud Adoption Framework best practices. Produces a completed Excel checklist (.xlsx) ready for ALZ deployment. Use this skill whenever the user mentions Azure Landing Zone, ALZ checklist, landing zone accelerator, platform landing zone configuration, ALZ bootstrap, hub-and-spoke setup, Azure network topology planning, or wants to fill out any ALZ-related checklist or configuration file. Also trigger when the user uploads an Excel file that contains tabs like "Accelerator - Bootstrap", "Accelerator - Bicep", or "Accelerator - Terraform".

bg-szy/TOP-SKILLS

Compose a premium, animated landing page section by section in Next.js + Tailwind + Motion (Framer Motion) — built on a real design system, with editorial copy and motion that feels human-crafted, not template-generated. Use when building or rebuilding a landing page, marketing site, or hero/feature/pricing/CTA sections that need to look production-ready and bespoke from day one.

bg-szy/TOP-SKILLS

Write high-converting landing page copy using proven frameworks like PAS (Problem-Agitate-Solution), AIDA, and StoryBrand. Creates headlines, value propositions, CTAs, and full page sections optimized for conversion. Use when users need landing page copy, sales page content, or marketing website text.

bg-szy/TOP-SKILLS

Optimize landing pages for conversions, performance, and SEO. Use when improving landing pages, increasing conversions, or optimizing page performance.

bg-szy/TOP-SKILLS

Review investment portfolios for risk, diversification, fees. Asset allocation recommendations, tax-loss harvesting, rebalancing.

bg-szy/TOP-SKILLS

Beads Viewer - Graph-aware triage engine for Beads projects. Computes PageRank, betweenness, critical path, and cycles. Use --robot-* flags for AI agents.

bg-szy/TOP-SKILLS

CI red? Call us. Pipeline fire brigade deploys. Use when user mentions CI failures, build errors, test failures, or pipeline issues. Do NOT load for: local builds, standard implementation work, reviews, or setup.

bg-szy/TOP-SKILLS

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

bg-szy/TOP-SKILLS

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

bg-szy/TOP-SKILLS

Use when the user asks to "pre-launch check the landing page", "run a Quality-Score preflight", or "verify ad-to-page message match before launch"; produces an ad↔page continuity report — message-match gaps, above-the-fold check, page-speed read, form-friction count, mobile-render flags — as a pass/fix punch list. Not for redesigning or rewriting the page — use landing-optimizer; not for scoring the account or the RQS — use ad-account-auditor. 落地页体验预检/广告落地页一致性检查

bg-szy/TOP-SKILLS

Use when the user asks to "optimize our landing page for influencer traffic", "fix our promo-code landing page", or "improve conversion from a creator campaign"; produces a message-match audit, page-structure and social-proof recommendations, a promo-code/CTA conversion plan, and an A/B test roadmap. Not for measuring campaign results after launch — use performance-analyzer.

bg-szy/TOP-SKILLS

Audit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review, critique or improve a landing page, sales page, opt-in page, product page or checkout flow, when conversion rate is low, when paid traffic is not converting, or when someone asks "why isn't this page converting" or wants a CRO / landing page review.

bg-szy/TOP-SKILLS

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

bg-szy/TOP-SKILLS

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

bg-szy/TOP-SKILLS

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

bg-szy/TOP-SKILLS

Account assets, equity and fund positions, P&L, cash flow records, account statements, margin ratios, buy-power estimates, order management, and DCA recurring investments via Longbridge (most require Trade permission). Frameworks: portfolio diagnosis, rebalancing, asset allocation, risk analysis (VaR/CVaR), performance attribution, and tax-loss harvesting. Triggers: "持仓", "账户", "盈亏", "资产", "对账单", "下单", "买入", "卖出", "撤单", "定投", "组合诊断", "再平衡", "资产配置", "风险分析", "绩效归因", "税损收割", "持倉", "賬戶", "盈虧", "對賬單", "下單", "買入", "賣出", "組合診斷", "再平衡", "稅損收割", "positions", "portfolio", "P&L", "order", "buy", "sell", "DCA", "statement", "risk analysis", "rebalancing", "tax harvesting", "我的风险", "持仓风险", "风险敞口", "資產", "資產配置", "風險分析", "績效歸因", "撤單

bg-szy/TOP-SKILLS

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

bg-szy/TOP-SKILLS

Process video files with audio extraction, format conversion (mp4, webm), and Whisper transcription. Use when user mentions video conversion, audio extraction, transcription, mp4, webm, ffmpeg, or whisper transcription.

bg-szy/TOP-SKILLS

Using the Wonda CLI to generate images, videos, music, and audio from the terminal — plus LinkedIn, Reddit, and X/Twitter research and automation

Verwandte Skills