agent-briefing
Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…
Use when about to design or build an API, database schema, test strategy, CI pipeline, architecture, library integration or any feature that plausibly exists already as open source, a public standard or a well-known product's published design, and no proven reference has been
Claude Code
$ npx -y skills add NoobyGains/godmode --skill reference-first --agent claude-code
Codex
$ npx skills add NoobyGains/godmode --skill reference-first -a codex -y
Cursor
$ npx skills add NoobyGains/godmode --skill reference-first -a cursor -y
Gemini CLI
$ npx skills add NoobyGains/godmode --skill reference-first -a gemini-cli -y
GitHub Copilot
$ npx skills add NoobyGains/godmode --skill reference-first -a github-copilot -y
OpenCode
$ npx skills add NoobyGains/godmode --skill reference-first -a opencode -y
Windsurf
$ npx skills add NoobyGains/godmode --skill reference-first -a windsurf -y
name: reference-first description: "Use when about to design or build an API, database schema, test strategy, CI pipeline, architecture, library integration or any feature that plausibly exists already as open source, a public standard or a well-known product's published design, and no proven reference has been named yet."
Most things you are asked to build have been built before by teams who spent months on them and fixed the incidents that followed. This skill routes each task to the right kind of reference, finds two or three good ones, and turns them into a short, cited blueprint before any code is written. **Build on a named, inspected reference, never on what seems plausible.**
NO DESIGN WITHOUT A NAMED, INSPECTED REFERENCE
No exceptions. No workarounds. No shortcuts.
A reference you remember is not a reference. A reference counts once you have opened it in this session, read the part you are borrowing, and can link to it.
**Required:**
**Skip:**
Classify the task, then send it where the references live. One task can touch more than one row.
| The task is about | Route to | |---|---| | Code inside an existing repository | `godmode:codebase-conventions` (internal precedent beats external reference) | | Any screen, page, component or visual design | `godmode:ui-research`, then `godmode:ui-engineering` | | Architecture, hosting, databases, queues, auth strategy | `godmode:system-design`, with the [architecture references](references/architecture-references.md) | | API, webhook, error format, schema | this skill, [API and schema references](references/api-and-schema-references.md) | | Test strategy, CI/CD, release pipeline | this skill, [testing and CI references](references/testing-and-ci-references.md) | | A library, starter or open-source implementation | this skill, [GitHub and registry search](references/github-search.md) | | A fact that can change (an API's current behaviour, a flag, a version, a limit) | `godmode:grounding` before you rely on it |
The libraries in `references/` are starting points that were checked when they were written. They are not proof: re-open the page before you cite it, because documentation moves.
1. **State the need in one sentence.** What exactly must the reference answer? "How should list endpoints paginate" is a need; "API design" is not. Write it down; it keeps the search narrow.
2. **Check the internal precedent first.** If the repository already does this somewhere, that wins over any external reference unless the user agrees to change it. Hand off to `godmode:codebase-conventions` and stop here if a precedent exists.
3. **Pick the reference class.** Use the route table. Within a class, prefer in this order: a published standard or RFC, the official documentation of a product known for the pattern, a mature open-source implementation, a curated list, a blog post. Lower rungs need more corroboration.
4. **Find candidates.** Search with at least three different phrasings across at least two channels (the reference library, GitHub search, a package registry, a web search). The method and query templates are in [github-search.md](references/github-search.md). Stop at three to five serious candidates.
5. **Inspect, do not skim.** For each candidate, open the actual page, file or schema and read the part you intend to borrow. Record the URL, what it shows, the licence (for code), when it was last updated, and why it is credible. Drop any candidate you cannot open.
6. **Score the candidates** against the quality criteria below. Discard anything that fails a hard gate.
7. **Synthesise.** Take each concern from the reference that handles it best, and say which reference each decision came from. Resolve conflicts between references explicitly; do not average them. Mark what is genuinely new to this project.
8. **Present and confirm.** Show the user the blueprint before building when the choice is consequential (a public API shape, a schema, an architecture, a new dependency). Use the format below. Wait for a choice when the options differ materially; proceed when there is one clear winner and the user has already approved the direction.
9. **Record the sources.** Put the reference URLs in the design document or plan, next to the decision they justify, and in code comments where a non-obvious pattern was borrowed. A later reader must be able to follow the link and see why.
digraph reference_first {
rankdir=TB;
need [label="State the need"];
internal [label="Precedent in this repo?", shape=diamond];
conv [label="godmode:codebase-conventions", shape=box];
route [label="Route by domain"];
search [label="Search: 3 phrasings, 2 channels"];
found [label="Candidates found?", shape=diamond];
inspect [label="Open, read, score"];
none [label="Record searches;\ndesign deliberately"];
synth [label="Synthesise, cite, present"];
need -> internal;
internal -> conv [label="yes"];
internal -> route [label="no"];
route -> search -> found;
found -Engineering discipline for AI coding agents: question the request, verify against current docs, plan, build test-first on the cheapest capable model, review with a second model family, prove it before saying done. One repo for Claude Code, Codex, Antigravity, Cursor, Gemini CLI and OpenCode.
Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…
Use when a task, feature or bug fix is implemented and before it is committed, merged or handed back to the user, and when the…
Use when about to add or change code in an existing codebase: a new file, module, route, component, service, test, migration,…
Use when about to say that work is done, fixed, passing, working, deployed or ready, before committing, opening or merging a pull…
Use when a reviewed change is about to land on a shared branch, be released or be deployed, and when the user asks for a second…
Use when a written implementation plan is ready to execute in the current session and its tasks are mostly independent, so each…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration