agentleFS
rafaelobrafaelob/pragmatic-agent-skills/skills/pragmatic-engineering/SKILL.md

pragmatic-engineering

Skill23 starsChanged 8 days agoApache-2.0View on GitHub

Use when a design trade-off needs a choice: simplest thing, reversibility, tracer bullet, estimate, \"is this over-engineered?\". Proven removal -> kill-slop. Interfaces -> codebase-design. Slices -> xp-agile-delivery.

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Stop exploring once a step settles the choice, but always price the undo (step 2) before acting, and run steps 4 and 5 on what you do.

    line 35
  2. Distinctive:

    Comments earn their place: write one only for what the code cannot say — why, a constraint, a non-obvious invariant, a link to the issue or …

    line 67
  3. Distinctive:

    Ask each question; a bad answer means cut, defer or reuse.

    line 72
  4. Distinctive:

    Not a process: no ceremony, planning documents or gates of its own.

    line 94
  5. Distinctive:

    Not a style guide beyond naming and language: it never overrides the repository's conventions or the user's explicit instructions.

    line 95
  6. Distinctive:

    Not a licence to skip tests or safety checks in the name of "simple".

    line 96
  7. Distinctive:

    Not a rule against abstraction: a seam that already pays for itself stays.

    line 97
  8. Distinctive:

    Not a substitute for the book: it records decisions, not the book's arguments or examples.

    line 98

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “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

Pragmatic engineering

How a coding agent makes everyday trade-offs: what to build, how much, how reversibly, and when to stop. It distils ideas from The Pragmatic Programmer (Thomas & Hunt) and the Extreme Programming values, in our own words. Read the book for the reasoning; this file says what to do.

Decision procedure

Stop exploring once a step settles the choice, but always price the undo (step 2) before acting, and run steps 4 and 5 on what you do.

  1. Name the consumer and the outcome. Who uses the result, and what observable thing proves it works? A present requirement or caller justifies work; a hypothetical one does not.
  2. Price the undo. Easy to reverse: decide fast, take the smaller step. Hard to reverse (public API, data format, schema, deletion, shared state): narrow the step and state the rollback first.
  3. Spend the cheapest effort that removes the biggest uncertainty. Need a real implementation to grow from: tracer bullet. Need an answer you will throw away: prototype. Nothing unknown: just do it.
  4. Get feedback from the real path (test, command, rendered result) before the next step.
  5. Leave the touched area no worse, and report what you left undone.

Principle to behaviour

IdeaWhat you do
Easy to change (ETC)Between two designs, pick the one whose likely next change touches fewer places. Without a clear winner take the simpler one; do not design for a guessed future.
OrthogonalityKeep a change local: editing one component should not force edits in unrelated ones. Prefer small interfaces and passed-in data over globals and chained calls. Interface design -> codebase-design.
No final decisionsHide a genuinely volatile choice (vendor, store, format) behind one seam. Do not build a plugin system for a decision nobody will revisit.
Tracer bulletA thin end-to-end path through the real layers that you keep and widen. It is production code, so it gets the production checks.
PrototypeA throwaway that answers ONE named question. Record the answer, then delete or harden it; it never becomes the product by drift.
Good-enough softwareTreat quality as a requirement agreed with the user, not endless polish. Deliver what the outcome needs, state known limits, never ship behaviour you know is wrong.
Refactor early and oftenRestructure in small behaviour-preserving steps with tests green, apart from feature changes. Real duplication and unclear intent earn it; taste alone does not.
EstimatesGive a range with its assumptions and what would move it; re-estimate as the code teaches you. Performance claims are timed, not assumed.

Naming and language

  • English throughout the code: identifiers, comments, docstrings, test names, and logs and errors meant for developers. User-facing copy follows the product's locale.
  • The ecosystem's convention, enforced by the project's linter:
    • Python (PEP 8): snake_case for functions, variables and modules; PascalCase for classes; UPPER_SNAKE_CASE for constants.
    • JS/TS: camelCase for variables and functions; PascalCase for classes, types and components; UPPER_SNAKE_CASE for module constants.
    • Go: MixedCaps, with an exported name starting with a capital.
    • Rust: snake_case / PascalCase.
    • SQL: snake_case.
    • File names follow the framework's convention.
  • Names state intent: verbs for functions (load_invoice), nouns for values, is_/has_ for booleans, units in the name (timeout_s), and no abbreviations beyond the domain's own.
  • Comments earn their place: write one only for what the code cannot say — why, a constraint, a non-obvious invariant, a link to the issue or spec. Never restate the code, never narrate history, and delete a comment the change made stale.
  • Code already written in another language: new and touched code is English. Do not bulk-rename untouched code.

"Is this over-engineered?"

Ask each question; a bad answer means cut, defer or reuse.

  • Is there a present consumer or requirement for it? If not, defer.
  • Does an existing mechanism (code, library, platform feature) already do the job? If so, reuse it.
  • Can you state in a few sentences why it exists and how it fails? If not, simplify or understand it first.
  • Does the abstraction give a present benefit, such as isolating a volatile choice or enabling a test? A single-caller abstraction without one is tidiness, not design.

An extra found in a diff is stripped with kill-slop, keeping the behaviour.

Red flags

  • "We might need it later" with no named consumer.
  • A flag, layer or config key with one caller and one possible value.
  • A copied block whose knowledge now lives in two places.
  • A spike that grows tests, config and users without a decision to promote it.
  • A TODO, comment or skipped test standing in for a decision about debt on the path you are changing.
  • A fix nobody can explain; a big-bang change with no intermediate runnable point.
  • A confident estimate or "done" with no evidence behind it.
  • Broken-window zeal: fixing everything nearby until the diff cannot be reviewed.

What this is not

  • Not a process: no ceremony, planning documents or gates of its own.
  • Not a style guide beyond naming and language: it never overrides the repository's conventions or the user's explicit instructions.
  • Not a licence to skip tests or safety checks in the name of "simple".
  • Not a rule against abstraction: a seam that already pays for itself stays.
  • Not a substitute for the book: it records decisions, not the book's arguments or examples.

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.