跳到正文
cccskills
免费在 GitHub 公开

shellbrain

Recall project knowledge, past decisions, failures, and preferences when they can help a coding task. Capture changed files before responding.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(5)

  • SKILL.md4.1 KB
  • agents/openai.yaml402 B
  • assets/shellbrain_logo.png113.8 KB
  • assets/shellbrain-large.svg1.6 KB
  • assets/shellbrain-small.svg1.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Shellbrain Recall Workflow

Use Shellbrain for remembered project knowledge. It can explain a system's purpose, past decisions, useful fixes, and constraints learned during earlier work.

Choose the source

Use code search for current implementation: where a function lives, its parameters, callers, or present behavior. Use docs or the web for general technical information. Recall helps with project context that may be missing from those sources.

NeedAction
Find the quote endpointSearch the repo.
Understand a previous quote failureAsk: "What past failures explain a quote returning 503 while the Swap API health check succeeds?"
Prepare to change discoveryAsk: "What earlier problems or design decisions matter when changing the discovery-to-optimization handoff in compute_route?"
Get project orientationAsk about the named system's remembered purpose and responsibilities, then check current code.

A normal question is enough. Include the subject, your task or symptom, and what you need to learn. Do not invent a prior failure or guess the answer to make a query specific.

Recall

shellbrain recall "<self-contained question>"

Recall receives only this query. It does not receive your conversation or previous recall questions. Name the subject again in follow-up questions. Include exact errors or symbols when known. Avoid vague questions such as "anything relevant?" or requests to solve the whole task.

Run from the target repo. From elsewhere, use:

shellbrain --repo-root /absolute/path/to/repo recall "<self-contained question>"

Read Memories for useful knowledge and Code for locations to inspect. Concept claims can appear in Memories along with remembered cases. Verify current behavior, commands, and paths before relying on them. Preserve distinctions between proposals, completed changes, and verified results. An answer can be partial or outdated. Missing information does not prove a feature is absent. If recall finds nothing useful, continue with code and docs. A provider error is a failed lookup. Retry a query only when new context gives you a more specific question.

When to consider recall

Track goal | surface | obstacle | hypothesis. Emit one SB: line when this tuple changes, the same approach fails twice, an error repeats, you switch files or subsystems, you make an evidence-bearing decision, or you close out.

When prior knowledge may help:

SB: recall | <goal> | <surface> | <obstacle> | <hypothesis-or-trigger>

Then ask one focused question. Otherwise:

SB: skip | same signature | <one-line reason>

Continue without a recall call when you already have the needed evidence.

Capture changed files

If you changed any files since your last user-facing response, run shellbrain snapshot exactly once after validation and immediately before your next user-facing response. Do this on every response cycle where files changed; skip only when no files changed. Use --repo-root /absolute/path/to/repo when outside the repo.

Snapshot captures code state. The background knowledge builder uses session evidence and snapshots to record lessons and completed problem-solving runs. Do not manually write memories. read, events, memory, concept, and scenario are internal-agent commands; do not call them during working-agent tasks.

Repair

Use shellbrain upgrade to repair installation. If the executable is missing, check the login profile once for your shell:

zsh -lc 'source ~/.zprofile >/dev/null 2>&1; command -v shellbrain'
bash -lc 'source ~/.bash_profile >/dev/null 2>&1; command -v shellbrain'

Use the resolved executable or plain shellbrain afterward. Do not keep sourcing the login profile on every Shellbrain command. If still missing, inspect Python's user script directory:

python3 -c "import sysconfig; print(sysconfig.get_path('scripts', 'posix_user'))"

If it contains shellbrain, use that path or add it to PATH. Otherwise reinstall.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

报告此技能的问题