code-writing
Skill299 starsChanged 11 days agoMITView on GitHub
Guides implementing code changes: proportional context reading, approval before non-trivial unplanned work, focused changes, the smallest sufficient checks, and fresh reviews. Use whenever code is written or changed, from a one-line fix to an approved user-spec, including code edits made as one step of a larger task. Pure visual layout uses layout-writing (mixed layout and logic uses both); editing or rendering video with Remotion uses the video and Remotion skills; agreeing requirements before coding uses user-spec-planning.
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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
- Distinctive: line 21
Read repository instructions, affected code, its usages, and only the project documentation needed to change it safely.
- Distinctive: line 28
Before editing non-trivial work not covered by an approved user-spec or user-approved plan, briefly explain in simple user-facing language …
- Distinctive: line 31
Treat a new idea, risk, edge case, or opportunity discovered during implementation or review as a proposal, not authorization.
- Distinctive: line 51
Run the smallest supported lint, format, type, build, render, and user-requested checks that cover the change.
- Distinctive: line 57
After every completed implementation, launch one fresh review stage with the complete applicable reviewer set in parallel against the same …
- Distinctive: line 79
After reviewers return, apply no finding and do not repeat the review automatically.
≈ “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.
Files
<!-- Generated by sync-to-codex v1. Do not edit directly. -->Code Writing
Understand the Change
- Extract the requested behavior and what done means from the request or user-spec. Resolve ambiguity from repository evidence; ask only when a substantive choice changes the result or scope.
- Read repository instructions, affected code, its usages, and only the project documentation needed to change it safely. A localized edit needs local context; cross-cutting work needs its contracts, architecture, and relevant patterns.
- For non-trivial work, read every source file that will change, find affected contracts and reusable code, and establish the smallest useful baseline check. Inspect generated, lock, snapshot, or other mechanical artifacts through their generator, relevant diff, and deterministic validation rather than an unhelpful full read.
- Before editing non-trivial work not covered by an approved user-spec or user-approved plan, briefly explain in simple user-facing language how the result will work end to end and why this is the simplest sufficient approach, then wait for approval.
- Treat a new idea, risk, edge case, or opportunity discovered during implementation or review as a proposal, not authorization. A rare or unagreed scenario is a user decision even when its correction looks local. Correct autonomously only an authorized local defect in agreed normal behavior; ask before adding behavior, state, entities, contracts, dependencies, architecture, or material complexity.
Implement and Verify
- Implement only the requested behavior. Reuse existing capabilities before adding abstractions or dependencies. Do not add speculative validation, fallbacks, configuration, optimization, or future flexibility without a current requirement or realistic project condition.
- Validate untrusted input at its boundary, keep secrets out of source, preserve useful error information, and handle failures where the program can recover or add context.
- Let straightforward code explain itself. Comment only when code cannot communicate the reason for a business rule, safety invariant, external constraint, compatibility workaround, deliberate tradeoff, or required ordering.
- Apply
test-masteronly to deterministic executable behavior or another explicit deterministic contract. For LLM-produced results, presentation-only layout, or freely editable copy, use agent, manual, or visual verification instead. If there is no test subject, do not create artificial assertions. - Run the smallest supported lint, format, type, build, render, and user-requested checks that cover the change. Use a project-wide command only when it is the available entrypoint or the change is cross-cutting. Separate unrelated baseline failures from regressions.
Run Fresh Reviews
After every completed implementation, launch one fresh review stage with the complete applicable reviewer set in parallel against the same revision. Include reviewers required by other active skills in that stage instead of starting a separate review sequence.
Include a fresh code-reviewer without a model override. Its review scope matches the change: a
localized edit gets focused connected context; a broad change gets all affected contracts and
architecture.
Also launch in parallel when applicable:
security-auditorwhen a security boundary changed or the user requested a security review.
test-master owns the additional test-reviewer invocation when meaningful test code changed.
Include that reviewer in the same review stage.
Give each reviewer the user request or user-spec, applicable repository instructions, validation evidence, every touched source file with relevant callers and dependencies, deleted or renamed file evidence, generator/diff/validation evidence for mechanical artifacts, and a short explanation of what changed, how the result works, why this approach was chosen, deliberate limits, and assumptions. The reviewer verifies that explanation against the request, project evidence, and code rather than accepting it as fact.
After reviewers return, apply no finding and do not repeat the review automatically. Explain what you implemented and how it works, then what reviewers found, what it can cause, whether you agree and why, and what you recommend. Group related points, avoid internal process terms, and wait for the user's approval before editing.
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- AgentShekel/agentic-workflow★ 4same name
- stepanenkoviktor0110-boop/ai-dev-methodology★ 2same 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.
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/skill-master/references/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-reviewingSkill
- documentation-writingSkill
- infrastructure-setupSkill
- layout-reviewingSkill
- layout-writingSkill
- methodologySkill
- project-initializationSkill
- prompt-masterSkill
- security-auditorSkill
- skill-masterSkill
- test-masterSkill
- user-spec-planningSkill
- code-reviewingSkill
- code-writingSkill
- documentation-writingSkill
- infrastructure-setupSkill
- layout-reviewingSkill
- layout-writingSkill
- methodologySkill
- project-initializationSkill
- prompt-masterSkill
- security-auditorSkill
- skill-masterSkill
- test-masterSkill
- user-spec-planningSkill
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.

