Skip to content
Agent Orchestration
Skill

/reference-first

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

From plugin
godmode
12333 skills1 agent2 hooks

Claude Code

$ npx -y skills add NoobyGains/godmode --skill reference-first --agent claude-code

SKILL.md

reference-first.SKILL.md
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."

Reference First

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.**

The Prime Directive

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.

When to Use

**Required:**

  • Designing a public or internal API, webhook, event format or error model.
  • Designing a database schema for a domain with known shapes (users and roles, bookings, orders, billing, content, messaging).
  • Choosing a test strategy or setting up CI/CD for a project.
  • Making an architecture or module-boundary decision.
  • Building a feature that plausibly exists as a library, starter or open-source project (auth, uploads, search, queues, payments, editors, games).
  • Picking between several libraries for the same job.

**Skip:**

  • Adding code inside an existing codebase that already has a precedent for it. The precedent is the reference: invoke `godmode:codebase-conventions` instead.
  • One-line fixes, renames, and changes whose shape the user has fully specified.
  • The user has named the reference ("do it the way Stripe does pagination"). Open that reference and use it; skip the search.

Route First

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.

The Protocol

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 -
Read more
@noobygains
Ships withgodmode

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.

12333 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
123
Star history of NoobyGains/godmode on GitHub, a chart by star-history.com

Other skills on godmode.

agent-briefing

agent-briefing

Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…

@noobygains@noobygainsInstall Skill
code-review

code-review

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…

@noobygains@noobygainsInstall Skill
codebase-conventions

codebase-conventions

Use when about to add or change code in an existing codebase: a new file, module, route, component, service, test, migration,…

@noobygains@noobygainsInstall Skill
completion-gate

completion-gate

Use when about to say that work is done, fixed, passing, working, deployed or ready, before committing, opening or merging a pull…

@noobygains@noobygainsInstall Skill
cross-model-review

cross-model-review

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…

@noobygains@noobygainsInstall Skill
delegated-execution

delegated-execution

Use when a written implementation plan is ready to execute in the current session and its tasks are mostly independent, so each…

@noobygains@noobygainsInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca1d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip2d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about reference-first.

Which coding agents can use reference-first?
reference-first installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.