code
Skill2 starsChanged 28 days agoMITView on GitHub
Write, fix, review, and refactor code as a clear, minimal expression of intended behavior. Use for any implementation work where the result should generalize from bugs and examples to the governing rule, preserve required contracts, and avoid both accumulated patches and speculative abstraction.
22 other projects use a version of this.
Adopted by
Most recently taken up by
- thistleknot/skillstheir own version, first seen Nov 8, 2026
- droxey/skillstheir own version, first seen Nov 8, 2026
- devjiwonchoi/skillstheir own version, first seen Nov 8, 2026
- guaardvark/guaardvarktheir own version, first seen Nov 5, 2026
- eyssette/js-templatetheir own version, first seen Nov 1, 2026
- jboczek/skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use test, plan and 3 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.
Microsoft AzureSkilltest
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 3 projects that use this
AnthropicSkilldebug
Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.
Also in 3 projects that use this
Microsoft AzureSkillverify
End-to-end app testing pipeline for browser-based web apps on cloud browsers via Azure Playwright Workspaces: verify the live app, author tests for working flows, heal failing tests, then re-run with video and produce one consolidated report. Three phases (app verification, test authoring, test healing) plus a scoped final sanity run; each phase emits a sub-report. Use when asked to "verify my app", "make sure my app works and has good test coverage", "do a full QA pass", "add tests where I'm missing coverage", "fix failing tests and add new ones", "smoke test before deploy", "QA my deployment", or any combined verify-and-test ask. Requires Azure CLI (`az login`) and a Playwright Workspace resource ID — bootstraps configs on first invocation. Browser-based web apps with Playwright only — not for unit/API tests, native mobile/desktop, load/perf, or full accessibility audits.
Also in 3 projects that use this
GoogleSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- trycompai/comp★ 2.1ksame name
- microsoft/Resource2Skill★ 551same name
- guaardvark/guaardvark★ 306same name
- g2i-ai/agents★ 52same name
- phj128/autoworker★ 18same name
- LuD1161/codex-review-skill★ 8same name
- baney75/myelinate★ 6same name
- DongDuong2001/pudo-code-system★ 5same name
- hsiong/project-skills★ 4same name
- devjiwonchoi/skills★ 2same name
12 more not listed
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
9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
9
Distinctive
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
- Distinctive: line 10
Treat code as an executable specification of current behavior, not a record of the bugs, workarounds, and shifting assumptions that …
- Distinctive: line 30
When several implementations satisfy the requirements, prefer, in order:
- Distinctive: line 55
Find accidental complexity: Look for duplicated decisions, scattered invariants, historical branches, needless indirection, premature …
- Distinctive: line 56
Implement the governing rule: Put behavior at the boundary that owns it.
- Distinctive: line 57
Simplify the result: Remove code the change made redundant, so the implementation can be understood without reconstructing its edit history.
- Distinctive: line 58
Verify: Use the strongest practical evidence: focused tests, type checks, linting, builds, or direct execution.
- Distinctive: line 65
Rewriting over layering: When a responsibility changes, update its existing expression.
- Distinctive: line 66
Semantic over syntactic compression: Remove concepts that add neither behavior nor clarity.
- Distinctive: line 71
Before adding a branch, abstraction, dependency, configuration option, or state field, ask:
“Common” is measured: kept by at least 6 in 10 of the 21 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.
Files
Code
Objective
Treat code as an executable specification of current behavior, not a record of the bugs, workarounds, and shifting assumptions that produced it.
Implement what is required with the fewest necessary concepts. Complexity should grow only when required behavior or constraints grow. Fewer lines are not the goal; clear invariants, ownership, control flow, and verifiability are.
Core principle
Bugs, examples, and change requests are evidence about the design, not automatic reasons to add another branch, helper, layer, or option.
observed failure → intended invariant → implementation at the owning boundarynot:
observed failure → permanent special caseA failing example shows what happened. It may not reveal the correct rule, its owner, or its boundary, so establish those before choosing a fix.
When several implementations satisfy the requirements, prefer, in order:
- Correcting the existing responsibility or abstraction.
- Consolidating related logic around a shared invariant.
- Replacing special cases with a rule that represents the domain.
- Adding a branch or abstraction only for genuinely distinct behavior.
Example
Intended behavior: archived accounts cannot start new jobs. Observed failure: one archived account started a job through the retry endpoint.
A patch keyed to the incident encodes the instance, not the rule:
if (account.id === "reported-account") {
throw new Error("Account cannot start jobs");
}Enforcing account eligibility at the shared job-start boundary, used by both initial and retried requests, states the rule once and covers every route that starts a job.
Workflow
- Establish the contract. Identify inputs, outputs, side effects, failure behavior, compatibility, performance, and security constraints. For a refactor, separate observable behavior that must stay stable from details that may change.
- Understand the current design. Trace the relevant code paths, data flow, tests, and conventions. Find where the responsibility and its invariant already live before creating a new home for them.
- Find accidental complexity. Look for duplicated decisions, scattered invariants, historical branches, needless indirection, premature generalization, conflicting sources of truth, and stored state that could be derived.
- Implement the governing rule. Put behavior at the boundary that owns it. Prefer a direct change when the problem is local. Keep scope to the requested behavior; a nearby fix is not permission for unrelated cleanup or architectural expansion.
- Simplify the result. Remove code the change made redundant, so the implementation can be understood without reconstructing its edit history.
- Verify. Use the strongest practical evidence: focused tests, type checks, linting, builds, or direct execution. Test the invariant and its meaningful boundaries, not only the reported example, and confirm unrelated behavior and public contracts still hold.
Design rules
- Domain over incidents: Model the category that determines behavior instead of listing known cases. Keep explicit cases when the domain genuinely defines separate behaviors.
- One source of truth: Own each invariant and piece of state in one place. Derive secondary values rather than synchronizing copies.
- Local clarity over speculative reuse: Small duplication can be cheaper than the wrong abstraction. Generalize once the shared concept is stable enough to name.
- Rewriting over layering: When a responsibility changes, update its existing expression. Avoid wrappers, compatibility branches, and parallel paths unless a real compatibility requirement exists.
- Semantic over syntactic compression: Remove concepts that add neither behavior nor clarity. Keep structure that makes constraints, ownership, and failure modes explicit.
- Convergence over accumulation: Repeated work in one area should reinforce a coherent model. If each defect adds another exception, flag, wrapper, or source of truth, revisit the governing abstraction instead of extending the patchwork.
Complexity gate
Before adding a branch, abstraction, dependency, configuration option, or state field, ask:
- What distinct behavior or constraint requires it?
- Is the same rule already represented elsewhere?
- Could an existing responsibility express it more clearly?
- Does it model the domain or memorialize one example?
- Would removing it change required behavior or hide an important invariant?
Reject complexity that does not add required behavior, preserve a real contract, or make an important invariant clearer.
Success criteria
The change implements the intended behavior, preserves required contracts, handles the broader class the example represents, keeps ownership and invariants clear, fits the surrounding system, and is verified in proportion to its risk. The design is at least as coherent as before.
Guiding maxim: Code should express what the system does, not how it got there.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

