一键导入
memory-context
Retrieve semantically relevant past learnings and analysis outputs using the csm CLI (HDC encoder with hybrid BM25 retrieval)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Retrieve semantically relevant past learnings and analysis outputs using the csm CLI (HDC encoder with hybrid BM25 retrieval)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Execute tests, analyze results, and diagnose failures across any testing framework. Use when running test suites, debugging failing tests, or configuring CI/CD testing pipelines.
Use this skill for Turso (LibSQL/Limbo) database development, including scaffolding, querying, migrations, and maintenance. Supports vector search, full-text search, CDC, MVCC, encryption, and bidirectional remote sync. Use when working with Turso SDKs for JavaScript, Rust, Python, Go, and React Native. Provides current API guidance to avoid stale "libsql" legacy knowledge.
Atomic git workflow - validates, commits, pushes, creates PR, and verifies CI with zero-warnings policy. Orchestrates complete code submission as state machine with rollback on failure.
Automated code review with PR analysis, change summaries, and quality checks. Use for reviewing pull requests, generating review comments, checking against best practices, and identifying potential issues. Includes style guide compliance, security issue detection, and review automation.
Unified atomic git workflow with GitHub integration - commits all changes, checks GitHub issues, creates PR, validates all Actions pass including pre-existing, uses swarm coordination with web research on failures. Post-merge validation of all files and docs.
Self-learning fix loop - commit, push, monitor CI, auto-fix failures using swarm agents with skills on demand, loop until all checks pass.
| name | memory-context |
| description | Retrieve semantically relevant past learnings and analysis outputs using the csm CLI (HDC encoder with hybrid BM25 retrieval) |
| version | 1.0 |
Retrieve semantically relevant past learnings, analysis outputs, and project knowledge using the csm (Chaotic Semantic Memory) CLI.
cargo install chaotic_semantic_memory --bin csm
The skill checks for csm availability and auto-installs if missing.
If csm is not found, install automatically:
if ! command -v csm &> /dev/null; then
echo "Installing csm CLI..."
cargo install chaotic_semantic_memory --bin csm
# Verify installation
csm --version
fi
analysis/ or agents-docs/# Index lessons (lessons.jsonl stores lesson summary text in "title")
csm index-jsonl -F agents-docs/lessons.jsonl --field title --id-field id --tag-field tags
# Index analysis outputs and docs
csm index-dir --glob "analysis/**/*.md" --glob "agents-docs/*.md" --heading-level 2
Index stored in .git/memory-index/csm.db (per-clone, never committed).
# Natural language query (default: hybrid retrieval)
csm query "how to handle git worktree cleanup" --top-k 5
# Code identifier query (exact match optimized)
csm query "MAX_CONTEXT_TOKENS" --top-k 3 --output-format json
# Code-heavy query
csm query "get_user_by_id" --code-aware --top-k 5
--output-format table (default): human-readable--output-format json: machine-parseable for agent consumption--output-format quiet: IDs onlyUse a hard post-query cap from .agents/config.sh:
source .agents/config.sh
csm query "how to handle git worktree cleanup" --top-k 8 --output-format table |
awk -v max_tokens="$MAX_CONTEXT_TOKENS" '
{
for (i = 1; i <= NF; i++) {
if (token_count < max_tokens) {
printf "%s%s", $i, (token_count + 1 < max_tokens ? " " : "\n")
token_count++
} else {
exit
}
}
}
'
This enforces an approximate token ceiling even if retrieval output is verbose.