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

implement

Skill35 starsChanged 3 months 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.

193 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.
  • loulanyueSkill

    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 17 projects that use this

  • AWSSkill

    ask-matt

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

    Also in 36 projects that use this

  • AWSSkill

    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 75 projects that use this

  • ArvorCoSkill

    specify

    Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.

    Also in 12 projects that use this

  • qwlabsSkill

    claude-handoff

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

    Also in 18 projects that use this

  • RoentekSkill

    loop-me

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

    Also in 22 projects that use this

  • +5 more from aws

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 8

    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 its verification together.

    line 33
  2. Distinctive:

    Follow local patterns unless a concrete problem justifies departing from them.

    line 39
  3. Distinctive:

    Keep edits within the requested scope.

    line 53
  4. Distinctive:

    When a scale problem appears, identify the contended resource.

    line 55
  5. Distinctive:

    Use scoped checks for the inner loop and run required repository gates before the relevant commit or delivery boundary.

    line 69
  6. Distinctive:

    Check the invariant, not merely "the command succeeded." A syntactically valid selector can match nothing.

    line 86
  7. Distinctive:

    When a fix fails, state what the result disproves and choose a check that distinguishes the remaining explanations.

    line 96
  8. Distinctive:

    Follow the project's commit policy.

    line 102
  9. Very specific:

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

    line 120

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

Deliver the requested behavior with evidence from the code path and the place where its output is consumed. Choose the smallest useful feedback loop for the change; increase verification when uncertainty, integration, or consequences increase.

The user's instructions take precedence over this skill's guidelines. Carry existing authorization forward and finish the work within scope. Resolve routine reversible choices with stated assumptions when useful. Ask only when missing information materially changes the result or an applicable boundary requires it; a skill workflow does not itself create a new approval gate.

Orient to the Change

Inspect repository status before edits and read existing diffs on touched files. Treat the checkout as shared space. Preserve work you did not create and respect claimed ownership.

Trace the behavior through its actual callers and consumers. Locate the nearest relevant pattern, tests, and real gate commands. Search by syntax when the question concerns code structure; use text search for names and prose. Read enough to understand the change, without a minimum file-read count or a broad context dump.

Recall non-obvious prior decisions through the configured memory workflow. Recheck volatile API, dependency, and deployment claims against current primary evidence or the installed version. Load specialized tool guidance when the task needs it, rather than guessing unfamiliar flags.

Distinguish diagnosis from implementation. "Why does this happen?" calls for a confirmed cause first. Once fixing is authorized, define a check that can distinguish the broken and intended behaviors.

Select a Verifiable Slice

SituationNext move
Clear, low-impact editMake the edit and use 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 its verification together. Do not defer all tests until the feature is complete when an earlier test can guide the design. Equally, do not create tests for a reversible text edit merely to satisfy ceremony.

Break work at coherent behavior or contract boundaries. File count and number of edits are not useful universal cadence rules. Run the cheapest check that can expose the next likely failure before building more work on a potentially false premise.

Keep the Design Accountable

Follow local patterns unless a concrete problem justifies departing from them. Explain the reason, not a generic preference for a different style.

PressureDecision
New modes or configuration appearTie each to a requested behavior or demonstrated variation
The same decision repeats across callersGive that decision one appropriate owner
A wrapper only forwards callsInspect 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 handle the intended recovery explicitly
Compatibility code growsCheck shipped consumers and rollout requirements before keeping or deleting it
Complexity keeps increasingRe-examine ownership and data flow before adding another special case

An abstraction can be valuable before a second caller when it enforces a real boundary. A shorter implementation can be worse when it obscures error behavior or compatibility. Judge the concepts and contracts, not line count alone.

Keep edits within the requested scope. Remove imports, stale labels, and dead branches your own change creates. Route unrelated findings to the project's sidequest or issue workflow when required; do not absorb them silently into the implementation.

When a scale problem appears, identify the contended resource. Fix isolation, indexing, batching, ownership, or capacity at the cause. A temporary concurrency reduction may help a controlled diagnosis or an authorized incident mitigation; it must not quietly become the permanent solution.

Verify the Claim You Intend to Make

Choose checks from the actual repository and affected behavior:

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

Use scoped checks for the inner loop and run required repository gates before the relevant commit or delivery boundary. Broaden testing when shared dependencies, failures, or residual risk justify it. Once appropriate checks pass, continue to completion instead of repeatedly running unrelated suites.

Preserve command exit codes and raw failure logs. A pipeline into tail can hide a failed command unless pipeline status is handled. Summarize verbose logs after capturing them. Do not impose arbitrary timeouts or run autofix across other agents' work. Discover the actual test framework's selection semantics before relying on a filtered run.

A useful receipt names the command, revision or working-tree state, environment when relevant, exit status, and what actually ran. A filter selecting zero intended tests does not verify the change. Cached results can be legitimate when their inputs match; disclose them rather than describing them as fresh execution. Wall-clock duration alone neither proves work nor proves a defective gate.

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 "the command succeeded." A syntactically valid selector can match nothing. A package can build while omitting files the importer needs. A merged fix can leave the deployed artifact unchanged.

Production apply or other externally consequential checks still require the applicable authorization. Complete all available local evidence and report the remaining limit without implying the live check passed.

New detectors and guards need positive and negative evidence: induce the failure they should catch and verify normal behavior remains accepted. Performance changes need a baseline, representative workload, and relevant resource measurements. For a surface you cannot observe, give the human a discriminating procedure and expected result; do not invent a screenshot or hardware verdict.

Recover by Updating the Hypothesis

Classify a failure before editing again. Environment faults, stale artifacts, invocation mistakes, shared-output races, and runtime defects require different responses. Preserve the original error and identify the first failing dependency instead of fixing every downstream symptom.

When a fix fails, state what the result disproves and choose a check that distinguishes the remaining explanations. Repeating variations without new evidence is the signal to reframe, regardless of attempt count. Avoid an adjacent refactor as a substitute for diagnosis.

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. Compare the same command, inputs, revision, and environment before attributing a failure. Detailed CI and incident procedures live in references/recovery.md.

Review and Commit Coherent Work

Follow the project's commit policy. Where atomic commits are expected, commit verified logical chunks rather than accumulating unrelated work. Keep a behavior change with the tests needed to understand it. Separate mechanical moves when doing so makes review clearer and preserves valid intermediate states.

Before staging, inspect status and the diff. Stage explicit owned paths or hunks, inspect the staged patch, and avoid including someone else's index changes. Follow current project message and attribution rules; use git for shared-index handling, worktrees, rebases, or conflict recovery. Push, merge, and release authority comes from the user and project contract, not this skill.

Compare the total diff to the task at a commit or integration checkpoint. Green tests can coexist with unnecessary scope. Review findings need a demonstrated mechanism and impact; triage blockers against optional improvements rather than treating every suggestion as a new requirement.

Obtain independent adversarial verification for non-trivial changes when the project requires it, and for consequential risk when justified. Use cross-model-review when available and applicable. A different model can expose blind spots but does not eliminate correlated errors. Verify central findings against evidence and tie the verdict to the reviewed state. Report incomplete review as incomplete.

Preserve the State and Finish

At handoff or compaction, preserve the original outcome, user corrections, changed paths, revision, checks already run, unresolved findings, and next step. Reinspect current status on resumption before continuing; another agent may have changed the tree.

Capture durable causes and fixes in configured memory when they would prevent rediscovery. Report what changed, why, what proves it, and any material unverified boundary. Continue authorized necessary work until that outcome is handled.

Evidence and References

Reviewed 2026-09-04. The Astra guidance explicitly notes over-testing on small tasks and unnecessary blocking from conflicting instructions. The proportional checks and user precedence here address those risks.

Read references/benchmarks.md when evaluating workflow effectiveness or interpreting benchmark claims. Read references/recovery.md for CI triage, intermittent failures, and incident recovery. Neither reference establishes universal edit ratios or model-independent performance guarantees.

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
Delete compatibility because it looks oldCheck consumers and rollout obligations
Request permission for each routine choiceCarry existing authorization through execution
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.