program-design
Skill1 starsChanged 3 months agoMITView on GitHub
Design the code shape before implementation for substantial features or refactors that introduce or reshape modules, interfaces, types, file layout, or control flow. Use before writing code when meaningful structural choices remain; skip small fixes and mechanical edits.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- taecontrol/skillstheir own version, first seen Nov 8, 2026
- hugo082/skillstheir own version, first seen Oct 22, 2026
- 2bTwist/dotagentstheir own version, first seen Oct 13, 2026
- salvatorebottiglieri/agentic-dev-kittheir own version, first seen Oct 9, 2026
- chanmathew/agent-skillstheir own version, first seen Aug 13, 2026
- RainLib/full-stack-skilltheir own version, first seen Mar 20, 2026
Used with
Projects with it also use research.
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.
NVIDIASkillresearch
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 3 projects that use this
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- chanmathew/agent-skills★ 25same name
- salvatorebottiglieri/agentic-dev-kit★ 2same name
- hugo082/skills★ 1same name
- taecontrol/skills★ 1same name
- 2bTwist/dotagents★ 0same name
- RainLib/full-stack-skill★ 0same 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 repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- art-of-commentSkill
- delegation-assessmentSkill
- execute-planSkill
- fix-repository-diagnosticsSkill
- meaningSkill
- review-code-complexitySkill
- review-implementationSkill
- subagent-dispatchSkill
- writing-planSkill
- writing-unit-testSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
8
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 12
Use this skill after the goal and relevant system architecture are settled.
- Distinctive: line 16
If repository evidence shows that the agreed architecture cannot support a clean implementation, stop and explain the smallest upstream …
- Distinctive: line 20
Before presenting the proposal, evaluate whether it:
- Distinctive: line 35
Keep the proposal at interface-level pseudocode.
- Distinctive: line 40
File-tree diff: Always show affected files using diff markers and a short responsibility for every new or modified file.
- Distinctive: line 41
Key types and interfaces: Always show the important language-appropriate types and function or class signatures.
- Distinctive: line 49
Ask the user to approve the proposed code shape before implementation.
- Distinctive: line 51
After explicit approval, continue the original implementation task without another confirmation.
“Common” is measured: kept by at least 6 in 10 of the 4 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
Program Design
Turn an agreed task or implementation plan into a reviewable code shape before writing implementation code. Align the human and agent on the interfaces and flow that would otherwise be decided implicitly during code review.
Establish The Design Boundary
Use this skill after the goal and relevant system architecture are settled. Read the complete request or plan, repository instructions, and the surrounding code that establishes current conventions.
Apply the design gate when the work introduces or substantially reshapes modules, interfaces, types, file layout, dependencies, or control flow. Small fixes, local implementation changes, and mechanical edits can proceed without it.
If repository evidence shows that the agreed architecture cannot support a clean implementation, stop and explain the smallest upstream decision that must change. Do not silently redesign the architecture or force the work into an unsuitable shape.
Evaluate Internally
Before presenting the proposal, evaluate whether it:
- follows explicit repository instructions and established surrounding patterns;
- gives each module a clear responsibility and keeps caller-facing interfaces small;
- places seams where behavior actually varies and keeps dependency direction legible;
- makes important invariants, error modes, and ownership clear at the interface;
- supports testing through the same interfaces callers use;
- avoids shallow pass-through modules, god classes or functions, speculative abstractions, and unnecessary defensive paths.
Explore credible alternatives internally. Present one recommended design unless a genuine tradeoff requires a human decision.
This evaluation is a filter, not a review report. Expose only the rationale needed to understand the proposed shape or resolve a material conflict.
Present The Code Shape
Keep the proposal at interface-level pseudocode. Omit function bodies, detailed algorithms, and line-by-line implementation steps.
Present the applicable views:
- Design constraints: Briefly state the repository evidence, responsibilities, invariants, or error behavior that materially shaped the proposal.
- File-tree diff: Always show affected files using diff markers and a short responsibility for every new or modified file.
- Key types and interfaces: Always show the important language-appropriate types and function or class signatures. Include only fields and methods needed to judge the contract.
- Call-stack trees: Show these for orchestration or control-flow changes. Prefer lightweight text trees and diff markers when the change from the current flow matters.
- Test seams: Include test-file placement in the file tree and identify the interface or seam each test exercises. Leave detailed test cases to implementation unless they affect the design.
Present the proposal in the conversation by default. Update a plan or another persistent artifact only when the user requests it or the active artifact already designates a program-design section.
Hold The Approval Gate
Ask the user to approve the proposed code shape before implementation. Questions, silence, or partial agreement keep the gate open. If the user requests changes, revise the affected views and ask again.
After explicit approval, continue the original implementation task without another confirmation. If later repository evidence forces a material deviation, pause implementation, present only the affected design delta and its evidence, and obtain approval before continuing.
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
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.

