一键导入
build
Solution exploration and implementation. Generate 2-3 approaches, pick simplest. Never implement first idea. Triggers: build, implement, create, feature, add.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Solution exploration and implementation. Generate 2-3 approaches, pick simplest. Never implement first idea. Triggers: build, implement, create, feature, add.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Systematic debugging methodology based on Zeller's scientific method. Reproduce, hypothesize, predict, test, isolate via binary search, fix root cause. Every fix gets a regression test. Triggers: bug, error, fix, broken, not working, fails, crashed, unexpected, stack trace, regression, exception.
Testing methodology and strategy. Tests prove behavior, not implementation. Triggers: test, tests, coverage, assertion, mock, fixture, spec, verify.
Git workflow and version control best practices. Atomic commits, conventional messages, branch strategies, merge protocols. Triggers: commit, branch, merge, rebase, git, push, pull, PR, version control.
Security best practices and vulnerability prevention. Input validation, authentication, secrets management, OWASP top 10. Triggers: security, auth, authentication, secrets, credentials, vulnerability, injection, XSS, CSRF, rate-limit.
REST API design patterns. Resource naming, status codes, pagination, error responses, versioning. Triggers: api, rest, endpoint, route, http, status-code, pagination.
Safe refactoring methodology. Behavior-preserving transformations only. Tests green before AND after. Triggers: refactor, clean, simplify, restructure, extract, inline.
| name | build |
| description | Solution exploration and implementation. Generate 2-3 approaches, pick simplest. Never implement first idea. Triggers: build, implement, create, feature, add. |
| allowed-tools | Read, Write, Edit, Bash, Grep, Glob, Task |
Prerequisite: AgentDB read-start has already run. Tier classification done via /kernel:ingest.
Reference: skills/build/reference/build-research.md
GOAL: [What are we building?]
CONSTRAINTS: [Limitations, requirements, must-haves]
INPUTS: [What do we have to work with?]
OUTPUTS: [What should exist when done?]
DONE-WHEN: [How do we know it's complete?]
(gate: all 5 fields filled before continuing)
For ambiguous features, use interview pattern: "I want to build [X]. Interview me using AskUserQuestion. Ask about implementation, UI/UX, edge cases, tradeoffs. Write spec to _meta/plans/."
Start fresh session after spec is written — implementation gets clean context.
ls _meta/research/ for topic matchestoday - date < ttl: use cached result, skip web search---
query: "{original search query}"
date: "YYYY-MM-DD"
ttl: 7 # days — anti-patterns/gotchas=7, framework docs=30, package versions=3, architecture=30
domain: "{tech domain}"
---
(gate: cache checked — either hit confirmed or new entry written)
Rule: Research without verification is theory fiction. (LRN-F11) Cache finding → build 10-line proof before committing to it across the codebase. Always check agentdb for learnings after cache check — learnings are never cached.
Confirm (not guess) max 6 per category:
(gate: assumptions documented before implementation)
Rule: Generate 2-3 approaches minimum. Never implement first idea.
Per solution, document:
Evaluation criteria (ordered):
Write chosen solution + rejected alternatives to _meta/plans/{feature}.md.
Plans under 50 lines. Longer = overthinking.
Skip plan if diff can be described in one sentence — planning overhead only justified for multi-file or uncertain approaches.
(gate: ≥2 approaches compared, one chosen with rationale)
BEFORE each step: review research doc, check if fewer lines possible. DURING: use researched package, minimal changes, follow existing patterns, one commit per logical unit. AFTER: verify works, count lines (can reduce?), commit, update plan.
If tier 2+: You are the surgeon. Follow contract scope exactly.
Context discipline:
/clear and restart with refined prompt/btw for zero-cost lookups: /btw <question> answers appear in a dismissible overlay and never enter conversation history. Use for quick clarifications that shouldn't grow context. /compact <priorities>: guided summarization — e.g. /compact Focus on the API changes — controls what survives context limits. Better than unguided auto-compact which may drop critical state. /goal for unattended verification: set a /goal condition and a separate evaluator re-checks it after every turn, keeping Claude working until it holds — no human in the loop required. claude --continue resumes the most recent session; claude --resume picks from a list. /rename names sessions so multi-sitting workstreams stay findable. /clear between tasks is context hygiene, not optional. defer_loading: true on rarely-used tools exposes the tool name to Claude while deferring full schema loading — 85% token reduction on large tool libraries without sacrificing access. Load schemas on demand when Claude selects the tool. .claude/settings.json using the fewer-permission-prompts skill. Removes permission friction from repeated operations (git status, grep, ls, find) without lowering security — only pre-approved read-only calls bypass the prompt. /config for response style: run /config to select Explanatory (step-by-step with rationale), Concise (brief action-focused), or Technical (precise, jargon-friendly). Set a preference in CLAUDE.md via a short note to keep the style consistent across sessions. (gate: each logical unit committed before moving to next)
Automated (run what exists):
npm test / pytest / cargo test / go testeslint / ruff / clippytsc --noEmit / mypyManual: walk through done-when criteria. Document how verified. Edge cases (at least 3): empty/null, boundary, error/failure path.
(gate: all automated checks green, ≥3 edge cases covered)
git checkout or git stashReport: feature name, branch, files changed, validation results, next steps.
agentdb write-end '{"skill":"build","feature":"X","files":["Y"],"approach":"Z"}'
--quick: skip confirmations, minimal prompts--plan-only: stop after planning--resume: continue in-progress work--validate-only: skip to validation