用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ActiveMemory/ctx --skill ctx-qa命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Recall project context and present structured readback. Use when the user asks 'do you remember?', at session start, or when context seems lost.
End-of-session context persistence ceremony. Use when wrapping up a session to capture learnings, decisions, conventions, and tasks.
Recall project context and present structured readback. Use when the user asks 'do you remember?', at session start, or when context seems lost.
正在显示 SKILL.md
基于 SOC 职业分类
| name | _ctx-qa |
| description | Run QA checks before committing. Use after writing code, before commits, or when CI might fail. |
Run the project's QA pipeline locally to catch issues before they hit CI.
git diff --name-only to see
which files were modified; this determines which checks
to run (see "When to Run What" below)CGO_ENABLED=0 go build -o /dev/null ./cmd/ctx
to catch compile errors before running the full pipeline/_ctx-qa
/_ctx-qa (after refactoring the journal command)
Run these checks in order; each depends on the previous passing:
gofmt -l .
If files are listed, they need formatting. Fix with
gofmt -w . and include the formatted files in the commit.
CGO_ENABLED=0 go vet ./...
golangci-lint run --timeout=5m
CGO_ENABLED=0 CTX_SKIP_PATH_CHECK=1 go test ./...
make smoke
Builds the binary and exercises ctx init, ctx status,
ctx agent, ctx drift, ctx task add, and
ctx journal source in a temporary directory.
make audit runs steps 1-4 in sequence. Use it when you
want a single pass/fail answer.
| Changed | Minimum Check |
|---|---|
Any .go file | make audit |
| CLI command behavior | make audit + make smoke |
| Only docs/config | Nothing |
| Template files changed | go build (embed must work) |
When a check fails, reason through the error before fixing: read the output, trace the cause, then fix. Do not blindly retry or apply the first fix that comes to mind.
| Failure | Fix |
|---|---|
gofmt -l lists files | gofmt -w . |
fmt.Printf in CLI code | Use cmd.Printf (enforced by AST test) |
| golangci-lint unused variable | Remove it; do not rename to _ |
Test needs CTX_SKIP_PATH_CHECK | Already set in make test and make audit |
Coverage below 70% on internal/context | Add tests; check with make test-coverage |
After running checks, report:
Before reporting QA results, verify: