본문으로 건너뛰기
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(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

이 스킬의 문제 신고