一键导入
memory-context
Retrieve past learnings and analysis via csm CLI. Activate at session start or when facing a problem that might have been solved before.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Retrieve past learnings and analysis via csm CLI. Activate at session start or when facing a problem that might have been solved before.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Orchestrate static analysis using Codacy. Required PR check on this repo. Use for querying PR analysis, triaging issues, fixing (not suppressing) findings, and local analysis. See SKILL.md for fix patterns and the required-check policy.
Build localized, accessible, premium reader/admin UI with 2026 design standards. Features OKLCH colors, View Transitions, scroll-aware components, and mutual exclusivity panels.
Create AGENTS.md files with production-ready best practices. Activate when creating new AGENTS.md or implementing quality gates.
Comprehensive GitHub PR review and automated fix pipeline. Takes a PR number or auto-detects from current branch, runs code review, static analysis, security audit, and quality checks, then produces a structured report and auto-fixes must-fix issues. Activate for "review PR", "fix PR issues", "PR quality check", "review and fix PR #123".
Invoke for complex multi-step tasks requiring intelligent planning and multi-agent coordination. Use when tasks need decomposition, dependency mapping, parallel/sequential/swarm execution strategies, or coordination of multiple specialized agents with quality gates.
Break down complex tasks into atomic, executable goals. Activate for multi-step feature planning, agent coordination, or request decomposition.
| version | 1.1.0 |
| name | memory-context |
| description | Retrieve past learnings and analysis via csm CLI. Activate at session start or when facing a problem that might have been solved before. |
| category | knowledge-management |
| compatibility | Requires csm CLI v0.3.2+. Falls back to grep if unavailable. |
| allowed-tools | Read Grep Glob |
| license | MIT |
Retrieve relevant past learnings, analysis outputs, and project knowledge using the csm (Chaotic Semantic Memory) CLI.
Note: csm uses Hyperdimensional Computing (HDC) — hash-based token matching, not semantic embeddings. It excels at keyword/lexical search and exact-match recall. For semantic similarity (synonyms, paraphrases), use external embedding models.
# Cargo (recommended)
cargo install chaotic_semantic_memory --version 0.3.2 --bin csm
# npm alternative
npm install -g @d-o-hub/csm
Run scripts/check_csm.sh to verify csm is installed and the memory index is accessible. Falls back to grep if unavailable.
analysis/ or plans/# Index plans and analysis (keyword-level matching)
csm index-dir --glob "plans/**/*.md" --glob "analysis/**/*.md" --heading-level 2
# Index codebase knowledge
csm index-dir --glob "**/*.md" --heading-level 2
# Specify database location
csm init --database .git/memory-index/csm.db
Index stored in .git/memory-index/csm.db (per-clone, never committed). Tables use csm_ prefix (csm_concepts, csm_associations) for namespace isolation.
# Keyword/lexical query (HDC matching)
csm query "offline sync architecture" -k 5 --database .git/memory-index/csm.db
# JSON output for structured parsing
csm query "TRIZ contradiction offline availability" -k 3 --output json
# BM25+HDC hybrid search (v0.3.0+)
csm search "Turso sync" --hybrid -k 5
# With abstain threshold (v0.3.2+)
csm query "auth flow" -k 5 --abstain-threshold 0.3
| Command | Description |
|---|---|
csm init --database <path> | Initialize memory database |
csm inject <concept> | Add concept to memory |
csm probe <concept> -k <n> | Find similar concepts |
csm query <text> -k <n> | Natural language query |
csm search <text> --hybrid | BM25+HDC hybrid retrieval |
csm index-dir --glob <pattern> | Batch index directory |
csm export --output <file> | Export memory snapshot |
csm import --input <file> | Import memory snapshot |
Use -k (top-k) to control output size. Default is 5 results.
If csm is not installed, use grep/find to search:
grep -r "offline sync" plans/ analysis/