agentleFS
hyperb1isshyperb1iss/hyperskills/skills/implement/SKILL.md

implement

Skill36 starsChanged 21 days agoMITView on GitHub

Use this skill when writing code, building features, fixing bugs, refactoring, or performing multi-step implementation work. Activates on mentions of implement, build this, code this, start coding, fix this bug, refactor, make changes, develop this feature, coding task, write the code, or start building.

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-ts-deep-modules, ask-matt 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.
  • liufeng1976Skill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 43 projects that use this

  • GoogleSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 91 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 50 projects that use this

  • AWSSkill

    to-questionnaire

    Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

    Also in 88 projects that use this

  • ryotaroh180105Skill

    claude-handoff

    Hand the current conversation off to a fresh background agent that picks up the work immediately.

    Also in 42 projects that use this

  • GoogleSkill

    to-spec

    Turn the current conversation into a spec and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.

    Also in 168 projects that use this

  • +3 more from google

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 171 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep implementation and verification together.

    line 25
  2. Distinctive:

    Check the invariant, not merely that the command succeeded.

    line 72
  3. Very specific:

    Read references/benchmarks.md when interpreting benchmark or workflow claims.

    line 111

“Common” is measured: kept by at least 6 in 10 of the 171 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

Implementation

The user's instructions take precedence over this skill; carry existing authorization forward, finish the work within scope, and do not add approval gates.

Orient to the Change

Before editing, inspect status and existing diffs on touched files; the checkout is shared space, so never run autofix across other agents' work. Trace behavior through actual callers and consumers. Find the nearest existing instance of the pattern in the repository, and any prior work in project memory, before building new structure; name it. Search by syntax for structure and by text for names. Recheck volatile API and dependency claims against current primary evidence. "Why does this happen?" calls for a confirmed cause first, then a check that distinguishes broken from intended behavior.

Select a Verifiable Slice

SituationNext move
Clear, low-impact editEdit, then run the relevant structural or behavioral check
Bug with an observable failureReproduce it, isolate the cause, then verify the correction
New behavior across boundariesImplement a representative end-to-end slice with its tests
Shared interface or schema changeTrace consumers and compatibility before changing the contract
Large uncertain changeUse plan for dependencies and acceptance criteria
Independent work with a useful integration pathUse authorized delegation and explicit ownership

Keep implementation and verification together. File count and edit count are not cadence rules. Run the cheapest check that can expose the next likely failure before building on it.

Keep the Design Accountable

PressureDecision
New modes or configuration appearTie each to a requested behavior or demonstrated variation
The same decision repeats across callersGive that decision one owner
A wrapper only forwards callsCheck whether it enforces an API, policy, or test boundary before removing it
A cast conceals incompatible dataFix or validate the contract at its actual boundary
A fallback hides an errorPreserve the failure cause and make the intended recovery explicit
Compatibility code growsCheck shipped consumers and rollout requirements before keeping or deleting it
A flag, legacy mode, fallback, or staged gate appearsName the ship state (pre-launch, single consumer, production with users) and the exact failure it prevents; pre-launch and single-consumer code deletes instead
A value enumerates today's instances, or a tool knows its author's setupDerive the value from a rule, or move it to configuration
Complexity keeps increasingRe-examine ownership and data flow before adding another special case

Judge the concepts and contracts, not line count: an abstraction can earn its place before a second caller when it enforces a real boundary. Remove imports and dead branches your own change creates. Route unrelated findings to the sidequest or issue workflow; do not absorb them silently.

For a scale problem, identify the contended resource and fix isolation, indexing, batching, ownership, or capacity at the cause. A temporary concurrency reduction must not quietly become permanent.

Record the Calls the Request Did Not Make

The request is a map and the repository is the territory. Where they disagree (an edge case the request never mentioned, a constraint the user treats as obvious, two readings that produce different work), the call made there is where a run most often diverges from the result the user wanted, not the code around it. Make the call, record the alternative and the reason, and carry the record into the wrap and the handoff. When the readings differ materially and the work after the call depends on the answer, ask once with the pick stated before building on it; otherwise state the reading taken and continue. A silent call is the failure; a question at every call is the other one.

Verify the Claim You Intend to Make

CheckWhat it can establishCommon limit
Type/static analysisSelected type and structural propertiesDoes not execute runtime behavior
Focused behavioral testThe intended cases exercise the changed pathMocks may bypass integration
Package or integration checksContracts between affected components holdMay omit packaging or deployment differences
Build/package validationThe artifact can be producedDoes not prove it can be installed or used
Consumer checkThe artifact serves its intended consumerLimited to the observed environment and cases

Preserve exit codes and raw failure logs; a pipeline into tail can hide a failed command, and do not impose arbitrary timeouts on a check to make it finish. A filter selecting zero intended tests does not verify the change. Cached results are legitimate when their inputs match, but disclose them. A useful receipt names the command, revision or working-tree state, environment, exit status, and what actually ran.

Check the Consumption Boundary

ArtifactRepresentative proof
Generated configurationInspect composed output for the motivating invariant
PackageInstall and invoke the built distribution without undeclared sibling dependencies
UIExercise the changed interaction in the real surface, using agent-browser when available
CLIInvoke the relevant command, including affected error/default paths
Database migrationApply against representative schema/data and check compatibility or rollback requirements
ServiceConfirm the running revision and exercise the changed request path

Check the invariant, not merely that the command succeeded. A valid selector can match nothing, a package can build without files the importer needs, and a merged fix can leave the deployed artifact unchanged.

Detectors and guards need positive and negative evidence. Performance changes need a baseline, a representative workload, and the relevant resource measurements. For a surface you cannot observe or a live check you may not run, give the human a discriminating procedure and expected result; do not invent a screenshot or verdict.

Recover by Updating the Hypothesis

Classify a failure before editing again (environment, stale artifact, invocation, shared-output race, runtime defect). Preserve the original error and find the first failing dependency instead of fixing downstream symptoms. Repeating variations without new evidence is the signal to reframe, regardless of attempt count. The same applies to review rounds: when findings keep landing in one class, restructure or cut the mechanism rather than patch it again, keep the larger head on a backup ref, and file the hardening separately.

A failure on the base can show that a symptom predates the change; missing changed filenames in a trace cannot. A successful rerun does not establish harmless flakiness. Detailed procedures live in references/recovery.md.

Self-Review Before Requesting Review

A careful reviewer's first round often lands in a few recurring classes. For each class the diff touches, the check costs minutes before review and a round after it.

Reviewer findingSelf-check before review
The test stays green if the fix is removedDelete the guard and expect red; a mock that returns what was stored, a loop the bad input never enters, and a value that is both default and floor cannot fail
A dropped error, report, or fallback leaves no traceLog it with a reason, or record a status enum where a dashboard can count it
One bad item stops the whole batchRead items separately; one failure logs and skips so the rest still land
A bad config value fails openFail at startup on an invalid value or treat it as on; a warn that silently disables a protection until restart is a finding
A condition, string, or block appears more than onceDerive it once and test the derivation; copies that already differ are the proof
Safety rests on a code commentCheck the live state (consumers in service, schema versions, environments) and record the table where the claim is made
A map, array, or retention set grows without boundPrune on every exit path, or scope the set to items with evidence
A number, label, or message is wrong at an edgeFixture the edge rows: an empty field, a gap in the data, an overlapping window, a truncated list, a stale value after a failed refetch

Most of these end as code changes once a reviewer raises them, so they belong before the review request, not in the description. Answer every inline thread before merge, with a reason when the answer is no change. Mixed-version behavior during deploy and the other questions a reviewer asks of the body are in super-good-pr.

Review and Commit Coherent Work

Follow the project's commit policy and commit verified logical chunks. Stage explicit owned paths or hunks and inspect the staged patch. At a commit checkpoint, compare the total diff to the task; green tests can coexist with unnecessary scope. Push and merge authority comes from the user, not this skill. The git skill covers shared-index handling.

Obtain independent verification when consequence or run length justifies it (shared or production state, an unattended run past a checkpoint, an acceptance check the implementer cannot alter) or when the project contract requires it. When none of those triggers applies, do not spawn a verifier to double-check a small change you can verify in a handful of tool calls. The verdict must arrive from a separate dispatch, because a model rarely corrects an error sitting in its own reasoning. Use cross-model-review when available; a different model exposes blind spots but does not eliminate correlated errors. Tie the verdict to the reviewed state, and report incomplete review as incomplete.

Preserve the State and Finish

At handoff or compaction, preserve the original outcome, user corrections, changed paths, revision, checks run, unresolved findings, the calls made where the request was silent, and next step. Sweep for processes this session started before reporting done. Reinspect status on resumption.

Evidence and References

Read references/benchmarks.md when interpreting benchmark or workflow claims. Read references/recovery.md for CI triage, intermittent failures, and incident recovery.

Reviewed 2026-09-04 and 2026-10-27; sources and their limits are in references/evidence.md.

Anti-Patterns

Anti-patternBetter move
Verify after an arbitrary number of editsVerify before relying on a new uncertain contract
Run every suite for a small changeRun required and relevant gates; expand for evidence-based reasons
Accept a green badge without coverageInspect what ran and what assertion it supports
Call an issue pre-existing from an empty grepCompare controlled executions and trace causality
Treat reviewer approval as consumer proofTest the changed behavior where its output is used

What This Skill is NOT

  • A fixed sequence, edit budget, mandatory research phase, or agent quota.
  • Permission to change adjacent code, bypass approvals, or claim unrun checks.
  • A replacement for understanding the actual implementation and its consumers.

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.