agentleFS
AnthonyPoschenAnthonyPoschen/agent-skills/skills/coding/SKILL.md

coding

Skill2 starsChanged 17 days agoMITView on GitHub

ALWAYS activate for programming-language work and code-adjacent project work: implementation, refactoring, debugging, code review, tests, CI fixes, package/build files, scripts, migrations, generated-code inputs, infrastructure-as-code, PR/diff discussion, and software architecture or design planning. Also covers no-comments (auditing a diff or files for comments to delete) and type-system-discipline (designing types, reviewing function signatures, illegal states, branded IDs, parsing at boundaries). Load principles.md and only the references the request needs.

27 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use general, paper-writing and 8 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.
  • jcsaaddupuySkill

    general

    Universal coding principles and best practices

    Also in 3 projects that use this

  • MLNLP-WorldSkill

    paper-writing

    学术论文写作检查与优化助手。基于 MLNLP-World 社区整理的论文写作技巧,帮助检查和优化学术论文。Use when: (1) 检查论文 LaTeX 格式和排版, (2) 优化公式符号使用, (3) 改进图表设计, (4) 润色英文学术表达, (5) 检查参考文献格式, (6) 投稿前终稿检查, (7) 用户询问论文写作技巧或规范。

    Also in 3 projects that use this

  • NVIDIASkill

    research

    Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.

    Also in 7 projects that use this

  • MicrosoftSkill

    writing-for-agents

    Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

    Also in 3 projects that use this

  • GoogleSkill

    grilling

    Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.

    Also in 4 projects that use this

  • GoogleSkill

    prototype

    Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

    Also in 3 projects that use this

  • +1 more from google

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill as the entrypoint for software work.

    line 16
  2. Very specific:

    Before calling a change done, prove the observable outcome in ./references/principles.md.

    line 43
  3. Very specific:

    When the task is to create a project verification skill from the codebase, load create-verification-skill.

    line 46
  4. Distinctive:

    If a loaded reference describes ordered phases, run every remaining phase until its completion check.

    line 63
  5. Distinctive:

    Do not commit between phases unless the user asked to land the work as separate commits.

    line 67
  6. Distinctive:

    When code supports a user-facing workflow, model the implementation around the user's intent rather than mirroring every field, option, or …

    line 74
  7. Distinctive:

    Before adding a control, state variable, or abstraction, identify the user decision it owns.

    line 81
  8. Distinctive:

    Write no comments by default.

    line 89
  9. Very specific:

    After fixing a bug or receiving a correction, ask whether a lint rule could have caught it.

    line 96
  10. Distinctive:

    Use examples only when a rule decision is unclear.

    line 106

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

Coding

Use this skill as the entrypoint for software work. Keep this file in context, then load the smallest relevant reference set for the task.

Routing

  • For any implementation, refactor, review, debug, or design task, read ./references/principles.md. It owns the shared decision rules. The other references add task steps and point back there.
  • For writing new code or extending behavior, read ./references/implementation.md.
  • For refactoring, cleanup, simplification, extraction, restructuring, or rewrite work, read ./references/refactoring.md.
  • For code review, PR review, diff critique, or risk assessment, read ./references/review.md.
  • For debugging, failing tests, regressions, runtime errors, CI failures, or bug fixes, read ./references/debugging.md.
  • For architecture, API design, module boundaries, dependency direction, or design-only discussion, read ./references/design.md.
  • For a consequential new data model, shared scaffold, or concurrent state, also read ./references/foundations.md.
  • For a new application or subsystem, source file placement, package or module placement, file moves, file splits, or layout discussion, read ./references/file-organization.md.
  • For Go code, application layout, package placement, or Go file organization, also read ./references/go.md.
  • For choosing the kind of check, especially for persistence, framework, service, CLI, or UI behavior, read ./references/verification.md.
  • Before calling a change done, prove the observable outcome in ./references/principles.md. When a person can see or operate the result, also load the eyes-on skill and finish its loop.
  • When the task is to create a project verification skill from the codebase, load create-verification-skill. When the task is to audit or update an existing one, load maintain-verification-skill.
  • Whether to add, keep, or remove a test is the test-audit skill, including a test this task is about to write. It runs with this skill. The Tests section of ./references/principles.md owns what a test protects and how it proves that.
  • For shared code-quality rules, read ./references/standards.md whenever writing or changing code, and as needed during review/design.
  • For auditing a diff or files for comments, or deciding whether a comment should stay, read ./references/no-comments.md.
  • For designing types, reviewing a function signature, or writing code in a statically-typed language, read ./references/type-system-discipline.md.
  • For assertion strategy (invariant checks, debug-vs-production assert decisions, and fail-fast contracts), read ./references/assertions.md when writing or reviewing code that validates internal assumptions.

If a loaded reference describes ordered phases, run every remaining phase until its completion check. Load the next reference when that phase starts. Do not stop after the first phase, including subtraction.

Do not commit between phases unless the user asked to land the work as separate commits. When they did, commit each coherent unit with the git skill (commit reference), then continue. Otherwise finish the remaining phases in the working tree.

Preserve The User's Mental Model

When code supports a user-facing workflow, model the implementation around the user's intent rather than mirroring every field, option, or state in the backing data model. Prefer one cohesive operation that expresses the user's decision over several controls or helpers that expose internal structure. Keep advanced state available behind the interaction that needs it, and make visible state reversible and consistent with the user's expectations.

Before adding a control, state variable, or abstraction, identify the user decision it owns. If an existing operation can express that decision directly, extend it instead of creating a parallel path. Verify the resulting workflow at its public boundary, including realistic content and the states that change the user's next action.

Comments Become Structure

Write no comments by default. Turn a would-be comment into a type, test or lint rule. To audit existing comments, follow no-comments. Use the encode-lessons skill to choose the guard, and see standards.

Custom Lint Rules

After fixing a bug or receiving a correction, ask whether a lint rule could have caught it. If yes, follow the lint-rules skill to add it (or set up lint if the repo has none). Stock linters are the baseline; recurring bad patterns become custom rules with a failing example and a catalog entry.

End-of-task summary must include one of: lint rule: added <name> or lint rule: skipped: <why>.

Example Lookup

Use examples only when a rule decision is unclear.

  • ./examples/README.md indexes focused examples.
  • Open one matching example file at a time.

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.

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.