agentleFS
ariaxhanariaxhan/kernel-claude/skills/build/SKILL.md

build

Skill15 starsChanged 4 months agoMITView on GitHub

Plan and implement a requested code feature when the solution requires choosing among implementation approaches.

156 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use backprop, finances and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JuliusBrusseeSkill

    backprop

    Bug → spec protocol. When a bug is found or a test fails, trace the cause, decide whether a new §V invariant would catch recurrence, append to §B. This is the one non-obvious thing SDD does that plan-then-execute doesn't. Triggers on test failure, bug report, post-mortem, or explicit user ask.

    Also in 4 projects that use this

  • GerardoRdz96Skill

    finances

    Use when Gera talks about his money — logging an expense ("I spent X on Y"), checking where he stands this pay-period, closing a period, planning debt payoff, onboarding his financial picture, or asking for budgeting/finance opinions. Servy's financial brain. Triggers — "I spent", "log this expense", "where am I this period", "close the period", "how's my budget", "debt plan", "should I pay off", "finances onboard", "/finances".

    Also in 3 projects that use this

  • cpiprintSkill

    favicon

    Generate favicons from a source image

    Also in 3 projects that use this

  • madeehahassanSkill

    Go-Live

    Pre-launch checklist. Use before making any app public, sharing a link externally, or announcing a product launch. Adapts to Claude Code, claude.ai, and Cowork.

    Also in 3 projects that use this

  • JuliusBrusseeSkill

    deepen

    Optional design-improvement pass for when you have spare usage to drain. Finds the shallowest modules in the code the spec touches, researches a deeper design, and proposes refactors that shrink interfaces and hide decisions — behavior held constant, tests green before and after. Proposes §I/§V/§T edits, never silent rewrites. Triggers when the user says "deepen this", "improve the design", "this module feels shallow", "pull complexity down", "use spare budget on the codebase", or invokes /ck:deepen. Leans on the codebase-design skill's deep-module vocabulary when present.

    Also in 3 projects that use this

  • synaptiaiSkill

    gate

    Create a BDSK review_gate artifact. Defines a checkpoint that controls whether generated output may proceed toward acceptance. Use when defining quality, security, or scope gates for execution plans.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 143 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before touching code, state: GOAL, CONSTRAINTS, INPUTS, OUTPUTS, DONE-WHEN.

    line 20
  2. Distinctive:

    When a feature is underspecified, interview the user with the AskUserQuestion tool rather than guessing or asking one vague open question.

    line 27
  3. Distinctive:

    Every question must change what gets built.

    line 42
  4. Very specific:

    Check ls _meta/research/ for a topic match before any web search.

    line 52
  5. Distinctive:

    Never implement the first idea.

    line 71
  6. Very specific:

    Write the chosen approach + rejected alternatives to _meta/plans/{feature}.md, under 50 lines.

    line 76
  7. Distinctive:

    Never edit an existing test or update a snapshot to make it pass unless told to.

    line 85
  8. Distinctive:

    Before each unit ask whether fewer lines would do.

    line 87
  9. Distinctive:

    Keep sessions scoped to one feature or one bug, and if the same mistake happens twice, stop and restart with a refined prompt instead of a …

    line 89
  10. Distinctive:

    Run what the project configures: tests, lint, types.

    line 94
  11. Distinctive:

    If it can't be checked headlessly, say "deployed, your check," never "it works."

    line 101

“Common” is measured: kept by at least 6 in 10 of the 143 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

BUILD SKILL

Prerequisite: run agentdb recall with the feature, subsystem/library, known files or symbols, and desired outcome. Run it again after repository inspection reveals better paths/symbols or the scope changes. Reference on demand: skills/build/reference/build-research.md.

Goal first

Before touching code, state: GOAL, CONSTRAINTS, INPUTS, OUTPUTS, DONE-WHEN. If any field is genuinely unknowable, the feature is underspecified; run the interview below and write the spec to _meta/plans/ before implementing. State the DONE-WHEN criteria at the start of the session, not the end.

The interview

When a feature is underspecified, interview the user with the AskUserQuestion tool rather than guessing or asking one vague open question. Cover, in order of leverage:

  1. Intent: which of 2-3 plausible readings of the request is meant.
  2. Implementation shape: the genuine forks (storage, framework, integration boundary) where the user's answer changes the build.
  3. UI/UX: only the decisions the user would veto if guessed wrong.
  4. Edge cases and failure behavior: what should happen when input is empty, huge, concurrent, or malicious.
  5. Tradeoffs: name the axis (speed vs completeness, flexibility vs simplicity) and let the user place the slider.

Rules, enforced by taste:

  • Interviews are for bounded choices with real options. Open-ended strategy and design direction stay prose conversation, never option polls.
  • Every question must change what gets built; if all answers lead to the same code, don't ask.
  • Offer a recommended option first when the evidence supports one.
  • Batch related questions (the tool takes up to 4); one interview beats five interruptions.
  • The answers land in the spec at _meta/plans/<feature>.md (or the active commission), quoted, so the authority behind each decision is traceable.

Research cache

Check ls _meta/research/ for a topic match before any web search. Each cached doc carries frontmatter (query, date, ttl in days); fresh hit means skip the search, stale or missing means search and write the result back with frontmatter. Rough TTLs: anti-patterns 7, framework docs 30, package versions 3, architecture 30.

Research without verification is theory fiction: build a 10-line proof of a cached finding before committing to it across the codebase. AgentDB learnings are never cached; check them separately after the cache.

Verify assumptions, don't guess them

Confirm against the actual repo before writing: tech stack and versions, where the code should live, naming conventions in neighboring files, the existing error-handling pattern, the test framework, and whether a needed dependency is already present. An external API you haven't grepped in-repo gets resolved through installed package source or official docs, never from memory.

Explore 2-3 approaches, pick the simplest

Never implement the first idea. For each candidate note: approach, rough lines of code, dependencies (and how battle-tested they are), and complexity. Choose by, in order: minimal code, battle-tested package over novel one, fewest edge cases, active maintenance, performance only if a bottleneck actually exists.

Write the chosen approach + rejected alternatives to _meta/plans/{feature}.md, under 50 lines. Skip the plan entirely when the diff can be described in one sentence.

Execute

<!-- Updated 2026-09-19: openhands.dev / axify.io Claude Code best-practices roundups -->

Smallest viable change, following existing patterns, one commit per logical unit. Point at a real example in the repo ("match the pattern in X") instead of describing conventions in prose, and name the file, scenario, and check when scoping a task. Never edit an existing test or update a snapshot to make it pass unless told to.

Before each unit ask whether fewer lines would do; after it, verify it works and commit. Tier 2+: you are working a contract; touch only contract-listed files. Keep sessions scoped to one feature or one bug, and if the same mistake happens twice, stop and restart with a refined prompt instead of a third try.

Validate, then done

Run what the project configures: tests, lint, types. Walk the DONE-WHEN criteria and cover at least 3 edge cases (empty/null, boundary, error path). Evidence first: paste the actual command output, not "seems to work."

"Done" = verified live, not committed. Committed, pushed, deployed, and working are four different states; run a command that confirms the real one (deploy check, curl the served asset, the passing test, the exercised code path) before claiming done. If it can't be checked headlessly, say "deployed, your check," never "it works."

On failure: stop, check the research doc for the error, apply a documented fix if one exists, otherwise roll back to the last good state and ask whether a simpler approach was missed. A solution that keeps feeling complex is usually the wrong approach, not an implementation problem.

<on_complete> agentdb write-end '{"skill":"build","feature":"X","files":["Y"],"approach":"Z"}' </on_complete>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.