agentleFS
abhimanyusingh-ghabhimanyusingh-gh/software-craftsmanship/skills/craft/SKILL.md

craft

Skill1 starsChanged 4 months agoMITView on GitHub

Engineering standards for any code work on any stack — writing production code, slicing and reviewing PRs, authoring tests, running gates, merging, and running agent fleets. Load before touching code, not after review flags it.

6 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions6 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 6

    1. educlopez/ui-craft★ 367same name
    2. wormholeportal/Makone★ 28same name
    3. alexiolan/craft-skills★ 17same name
    4. devnomad-byte/techneering★ 13same name
    5. pavelkorolevxyz/craft★ 4same name
    6. alanvaa06/award-craft★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Scope isolation: Every read, write, aggregate, export, and storage path filters on the full <scope-key>, enforced at the lowest layer that …

    line 10
  2. Distinctive:

    Reuse before writing: Search for an existing implementation first.

    line 11
  3. Distinctive:

    Full unfiltered gates before push: Never scope the test run to changed files as the gate.

    line 20
  4. Very specific:

    Every spawned agent invokes craft itself as its first action and names the references it read.

    line 51
  5. Distinctive:

    Read on the trigger, before starting — not after review flags it.

    line 76

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

Craft

The non-negotiables (apply always, no reference read needed)

  1. Scope isolation. Every read, write, aggregate, export, and storage path filters on the full <scope-key>, enforced at the lowest layer that can rather than at N call sites. A dropped scope key is a cross-customer data leak: blocker, never a nit.
  2. Reuse before writing. Search for an existing implementation first; extend or parameterize rather than clone. Name every reused symbol on the contract card. Duplicated logic: 2× → should-fix, 3× → request-changes.
  3. No narrative comments. The code is the doc. Comment only a genuinely non-obvious why — a hidden invariant, a known workaround, a surprising external constraint. No file-header docstrings, no "TODO until the issue lands".
  4. Const-as-enum over repeated string literals. Any fixed variant set gets a named constant object plus derived type, in preference to a language enum keyword. Consume the exported enum; never re-type its values.
  5. No raw string for semantic values. Branded types for IDs and domain primitives, const enums for finite value sets. Grep for the existing brand before creating one.
  6. Export only what has an in-PR consumer — no speculative exports, no barrels nothing imports through. But when a dead-code tool flags something, classify before deleting: scaffolding is deleted, a spec-required capability is wired to its consumer in the same PR. Deleting a capability is not cleanup.
  7. YAGNI. Nothing beyond what the issue requires. No speculative props, no single-caller indirection, no "while I'm here" expansions.
  8. Debloat on touch. Editing a file means scanning the surrounding 50–100 lines for dead code, duplicated logic, repeated literals, oversized functions, mixed concerns. Fix or flag in the same commit.
  9. Deliberate before coding. Produce an edge-case checklist, then a one-paragraph plan stating what's guarded and what's deliberately not done — before implementation.
  10. Tests define the product. A red test is fixed in product code, seed data, or config. Never re-pin an assertion — the only sanctioned edits to an assertion are compile-blocking typos, framework misuse that never caught a bug, and stripping banned patterns. Removing a test is a separate question with a separate bar: TEST-NODELETE.
  11. Full unfiltered gates before push. Never scope the test run to changed files as the gate. If anything is red, don't push.
  12. Docs ship in the same commit as the change they describe. No "docs follow-up later."
  13. Raise and stop. Auto-merge is off by default: run the full review loop, then surface the PR for the owner to merge.
  14. Evidence over assertion. Every claim of compliance carries the command and its actual output. A green suite is not evidence that nothing regressed — deleting or weakening a test to reach green is a blocker, and a comment explaining a removal is the tell, not the justification. references/verification.md carries the checks.

Severity vocabulary, used everywhere: blocker (must not merge — data leak, deleted capability, broken contract), should-fix (fold into this PR), nit (advisory, may be filed).

The contract card

Paste this into every brief. The agent returns it filled in — that return is the deliverable, alongside the code.

CRAFT CONTRACT

  References read     craft + [which ones]
  Scope               N files (cap M): [paths]
  Reuse               extended <symbol> | new because <reason>
  Scope key           every read/write filters on <key> | N/A, no customer data
  Capability check    REGRESS-DIFF vs base, output pasted | N/A, no existing code changed
  Tests               N passed / N failed / N skipped (baseline N)
  Gates               <command> → <actual output line>, one row per gate
  Tests deleted       none | <name>, subsumed by <name>
  Not done            [deliberate omissions]

Three rules make it worth pasting:

  • A row holding an adjective is read as not-done. "All tests pass" is not a value; 1331/1331, 10 skipped is. "Followed the rules" is not a value; a list of references is.
  • NOT RUN: <reason> is a legal gate row. An environment-blocked gate is a hole in the evidence, reported by name. Omitting the row is the failure, not the blocked gate.
  • The card replaces pasting these rules verbatim into briefs. Long briefs bury their own invariants and correlate with scope sprawl. Point at the skill, paste the card, keep the brief short.

Every spawned agent invokes craft itself as its first action and names the references it read. A paraphrase in a brief is not a substitute — an agent that starts without loading the rules drifts immediately, and the drift is fluent enough to read as compliance.

Project bindings

Rules are written against capabilities, not tools. Derive these from the repo on first use — the lockfile, the task-runner scripts, the CI workflow, the schema — and record them in the project's CLAUDE.md. Never assume them.

<pm>          package-manager / task-runner invocation
<typecheck>   whole-program type check, per workspace
<unit>        full unfiltered unit + integration suite, per workspace
<build>       production build, per workspace
<deadcode>    dead-export / unused-dependency check, if the repo has one
<e2e>         browser end-to-end suite
<shared>      the shared package other workspaces compile against
<workspaces>  the deployable units
<query-lib>   the server-state cache library
<store>       the client-state store
<db>          the datastore and its query vocabulary
<tracker>     the work-item system and its id format
<remote>      the canonical git remote
<scope-key>   the field that partitions data between customers

Which reference to read

Read on the trigger, before starting — not after review flags it.

TriggerRead
Any query, write, storage path, or cache key touching customer datareferences/tenancy.md
Production code — types, config, naming, complexity, dead code, layering, indicesreferences/authoring.md
Any UI workreferences/frontend.md
Any interactive component, form, dialog, or announcementreferences/accessibility.md
Any test, unit through e2ereferences/testing.md
Before any push, and whenever an agent reports work completereferences/verification.md
Reviewing a diffreferences/defect-classes.md, then references/review.md
Folding review findingsreferences/review.md
Slicing PRs, multi-PR migrations, gates, merge, docsreferences/workflow.md
Running an agent fleetreferences/orchestration.md

Authoring a UI feature usually means frontend.md + accessibility.md + testing.md. A backend feature usually means tenancy.md + authoring.md + testing.md. Any refactor of existing code adds verification.md.


Distilled from review findings and PR history across production codebases. The evidence behind each rule — instance counts, and the claims the data disproved — is published in EVIDENCE.md in the repository, deliberately outside this skill so it costs no context here.

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.