agentleFS
Bossmann007Bossmann007/cursor-kit/skills/principles/SKILL.md

principles

Skill0 starsChanged 2 months agoMITView on GitHub

Default approaches with when to do differently and how to check them. Part A, Engineering: KISS, size first, done has proof, small PRs, reuse, guards as tools, pinned versions, Hyrum, Postel (RFC 9413), Goodhart, Gall, YAGNI, Chesterton, Lindy, bus factor. Part B, Work and life: deadlines, study, projects, relationships, money, health, numbers. Use when choosing a design (emode Size/Decision), before review (emode Verify), in senior-check, or on "princípios", "KISS", "estamos complicando?".

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ketchup-video, ketchup 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.
  • shiwenbin1617Skill

    ketchup-video

    Catch the user up like /ketchup, with a short subtitled video of slides for what happened and the waiting calls as text under it. Use for /ketchup-video.

    Also in 4 projects that use this

  • instructureSkill

    ketchup

    Rebuild context after /clear by analyzing uncommitted changes across Canvas LMS and all plugin repositories

    Also in 5 projects that use this

  • jaydubya818Skill

    show-me-your-work

    Use when long-running work needs an auditable decision and evidence log.

    Also in 8 projects that use this

  • GoBeromsuSkill

    benchmark-checklist

    Vets performance measurements for the limiter, tuning, physical limits, errors, repeatability, relevance, and proof that timed work happened. It applies to 'check this benchmark', 'report this speedup', measured regressions, and choosing a library or configuration from numbers. It reports spread and gaps before drawing a conclusion. Not for general testing policy or choosing test oracles - use principle-testing.

    Also in 6 projects that use this

  • jaydubya818Skill

    interrogate

    Use when a change's assumptions, evidence, or design need adversarial review.

    Also in 9 projects that use this

  • lobomfzSkill

    correct

    Correct-option selection. Use when the user says /correct or asks what is most correct.

    Also in 5 projects that use this

  • +5 more from jaydubya818

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Default: fewest parts, least config, least code.

    line 23
  2. Distinctive:

    Check: "can one part, flag or file go and it still works?"

    line 28
  3. Very specific:

    Default: say small, medium or large before coding.

    line 32
  4. Very specific:

    Check: grep -n '^Approved:' SPEC.md.

    line 36
  5. Very specific:

    Default: built = scripts/verify exit 0 with the output shown.

    line 40
  6. Very specific:

    Check: scripts/verify; echo $?

    line 45
  7. Distinctive:

    Default: past ~400 changed lines, split into slices that stand alone.

    line 49
  8. Distinctive:

    Default: the same script or logic in two places means import or call the original.

    line 56
  9. Very specific:

    Check: "is there already a file, function or skill that does this?" (grep -rn, /prior-art-check).

    line 59
  10. Distinctive:

    Default: a rule that matters becomes an automatic check (verify, hook, CI) that fails on its own, e.g.

    line 63
  11. Distinctive:

    Check: "which command fails if this rule is broken?" No command, no guard.

    line 67
  12. Very specific:

    Default: dependencies locked with versions and hashes (e.g.

    line 71
  13. Very specific:

    Check: senior-check lockfile and runtime lines.

    line 74
  14. Distinctive:

    Default: an API, CLI flag or file format others use changes only with a new version and a CHANGELOG line (Hyrum).

    line 78
  15. Very specific:

    Check: the PR that changes public behavior also bumps the version and edits CHANGELOG.md.

    line 81
  16. Distinctive:

    Default: unexpected input returns an explained error instead of a guess.

    line 85
  17. Distinctive:

    Check: a test that feeds bad input and asserts the error message.

    line 89
  18. Distinctive:

    Default: coverage, benchmark scores and test counts are for conversation.

    line 93
  19. Distinctive:

    Check: "if this number improved and the goal did not, how would we notice?"

    line 96
  20. Distinctive:

    Numbers and news: before chasing a number or trusting a statistic, ask if it became an empty target, and find the primary source (Goodhart,

    line 134

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

principles

These are defaults, not laws: a different choice is fine when it is deliberate and written down (ADR or PR body) with the reason. A law is not an excuse either: "it's Parkinson" does not replace a plan. Review now and then whether you used the default or chose otherwise on purpose, and why; keep, adjust or drop items from that.

A. Engineering

Each block: Default, Different when, Check (a command, a file, or a reviewer question).

1. KISS: the simplest thing that solves it

  • Default: fewest parts, least config, least code. If config grows, stop and simplify first. Clever code only where performance was measured, with a comment (Kernighan). Complexity only moves (Tesler): choose who pays it. Source: KISS. Removing first: pstack principle-subtract-before-you-add.
  • Different when: security, data formats and consent need the extra care even if less simple.
  • Check: "can one part, flag or file go and it still works?"

2. Size first; large work needs an approved SPEC; docs in the same PR

  • Default: say small, medium or large before coding. Large gets SPEC.md (in, out, how to verify) and code starts only with an Approved: <name> <date> line. SPEC, ADR and README change in the same PR as the behavior. Source: emode + Hofstadter.
  • Different when: a one-line fix or small task: do it and run the check.
  • Check: grep -n '^Approved:' SPEC.md; the PR diff touches the docs its behavior changes.

3. Done has proof: verify exit 0 and a review of the exact head

  • Default: built = scripts/verify exit 0 with the output shown; done = a real user used it on a real case (code-only work with no outside user is done when built). Built is not done. Merge only with a review of the exact commit and verify green on it; nothing pushed after the review. Source: emode + 90-90 rule. Method: pstack principle-prove-it-works.
  • Different when: a throwaway draft or prototype, marked as such.
  • Check: scripts/verify; echo $? prints 0; the reviewed SHA equals git rev-parse HEAD.

4. Small PRs, about 400 lines at most

  • Default: past ~400 changed lines, split into slices that stand alone. Big PRs slow review and hide bugs; when behind, cut scope (Brooks).
  • Different when: generated files (lockfile, auto migration) or a mechanical rename, explained in the PR body.
  • Check: git diff --stat <default-branch>...HEAD | tail -1.

5. Reuse, don't copy

  • Default: the same script or logic in two places means import or call the original; copies drift (DRY). Example: a copied verify script went stale in an hour.
  • Different when: two things only look alike today and will change for different reasons; then a copy beats coupling.
  • Check: "is there already a file, function or skill that does this?" (grep -rn, /prior-art-check).

6. The guard is a tool, not goodwill

  • Default: a rule that matters becomes an automatic check (verify, hook, CI) that fails on its own, e.g. a verify step that fails on a forbidden commit trailer. What can fail once will (Murphy, as margin). When it broke: pstack principle-fix-root-causes.
  • Different when: a harmless style preference; it stays in the rule text.
  • Check: "which command fails if this rule is broken?" No command, no guard.

7. Pinned versions

  • Default: dependencies locked with versions and hashes (e.g. uv.lock), GitHub Actions by SHA, language version pinned. Upgrading is a deliberate change in its own PR. Source: senior-check dependency checks + Lindy (below).
  • Different when: a one-afternoon local experiment.
  • Check: senior-check lockfile and runtime lines; grep -n 'uses:' .github/workflows/* shows SHAs.

8. Public behavior changes on purpose

  • Default: an API, CLI flag or file format others use changes only with a new version and a CHANGELOG line (Hyrum).
  • Different when: nobody uses it but you.
  • Check: the PR that changes public behavior also bumps the version and edits CHANGELOG.md.

9. Accept the standard format, refuse the rest with a clear error

  • Default: unexpected input returns an explained error instead of a guess. Never relax validation, approvals or injection guards. Postel as revised by RFC 9413: too much tolerance locks you into others' bugs.
  • Different when: reading messy data only to display it, where accepting it is harmless; mark it '?'.
  • Check: a test that feeds bad input and asserts the error message.

10. The metric is not the goal

  • Default: coverage, benchmark scores and test counts are for conversation; before celebrating, check the number still tracks the goal (Goodhart).
  • Different when: the number is the contract itself (an agreed max latency, a size limit).
  • Check: "if this number improved and the goal did not, how would we notice?"

Also (one line each)

  • Gall: the smallest end-to-end version works before it grows; differ when a mature system already exists to reuse.
  • YAGNI: no feature or abstraction without a use today, except data formats, security, consent.
  • Chesterton: know why something exists before removing it, unless you made it recently and know.
  • Lindy: mature dependencies by default; a new one needs an ADR saying why.
  • Bus factor: how to run, deploy and recover is written (README, runbook), not only in a head.

B. Work and life

Each line: the default (the law, linked); when to differ.

  • Time and deadlines: estimate, double it, and book the first work block right away (Hofstadter, planning fallacy); differ for a task done many times, where the real average holds. Give open-ended tasks a short explicit timebox (Parkinson); differ when depth is the goal. Keep a day of slack and a plan B for deliveries that matter (Murphy, as margin); differ when redoing is cheap.
  • Study: practice with feedback over passive watching (deliberate practice); differ on first contact with a topic. Start with the 20% that matters most (Pareto); differ for foundational subjects, where the rest matters too.
  • Projects: a small fixed number of active fronts; a new idea waits in a queue; delays are fixed by cutting scope (Brooks, opportunity cost); differ for a short-lived opportunity with a clear owner, which swaps places with a front instead of adding one. For a stalled project ask "would I start this today?" (sunk cost); differ when it is hours from a useful delivery. Design how the parts should talk before building a team or system (Conway); differ for short solo work.
  • Relationships and career: cooperate first, warn once, return to cooperating (tit-for-tat); differ after a repeated serious breach or fraud. Before an "extra", ask "would I do this every time?" (Hyrum); differ when you want that expectation. Be tolerant in what you receive and careful in what you deliver (Postel); differ for security and money, where vague input is refused.
  • Money: pay the full card balance, never the minimum, and move a small fixed share to savings the day income arrives (compound interest); differ in a real health or family emergency.
  • Health and sleep: fixed exercise slots and a sleep cutoff; work that misses the cutoff means the estimate failed (deliberate practice, compound interest); differ for a single chosen night, never as a deadline habit.
  • Numbers and news: before chasing a number or trusting a statistic, ask if it became an empty target, and find the primary source (Goodhart, Campbell); differ when the number is the goal itself.

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.