agentleFS
rakaadirakaadi/agent-kit/skills/program-design/SKILL.md

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

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.
  • 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 3 projects that use this

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
  1. Distinctive:

    Use this skill after the goal and relevant system architecture are settled.

    line 12
  2. Distinctive:

    If repository evidence shows that the agreed architecture cannot support a clean implementation, stop and explain the smallest upstream …

    line 16
  3. Distinctive:

    Before presenting the proposal, evaluate whether it:

    line 20
  4. Distinctive:

    Keep the proposal at interface-level pseudocode.

    line 35
  5. Distinctive:

    File-tree diff: Always show affected files using diff markers and a short responsibility for every new or modified file.

    line 40
  6. Distinctive:

    Key types and interfaces: Always show the important language-appropriate types and function or class signatures.

    line 41
  7. Distinctive:

    Ask the user to approve the proposed code shape before implementation.

    line 49
  8. Distinctive:

    After explicit approval, continue the original implementation task without another confirmation.

    line 51

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. Design constraints: Briefly state the repository evidence, responsibilities, invariants, or error behavior that materially shaped the proposal.
  2. File-tree diff: Always show affected files using diff markers and a short responsibility for every new or modified file.
  3. 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.
  4. 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.
  5. 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.

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.