type-breakdown
Skill5 starsChanged 11 days agoMITView on GitHub
Maps a code path's types, abstractions, data flow, side effects, and errors. Use only when the user explicitly asks for a type breakdown of a feature, flow, or code path.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- architecture-knowledge-baseSkill
- audio-transcribeSkill
- better-uiSkill
- brainstormingSkill
- broSkill
- chatgpt-imagegenSkill
- coding-standardsSkill
- decision-roomSkill
- deslopifySkill
- domain-modelingSkill
- frontend-designSkill
- gemini-ttsSkill
- goalSkill
- readbackSkill
- rephraseSkill
- reply-broSkill
- setup-goalSkill
- skill-cleanerSkill
- strunk-writing-qualitySkill
- technical-writingSkill
- tech-specSkill
- tool-installSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
If the subject is simple, keep the walkthrough concise.
- Distinctive: line 29
Start from the entry point and expand the call path recursively in execution order.
- Very specific: line 63
Use × N for repeated calls over collections.
- Distinctive: line 97
Prefer domain-specific types over primitive strings and numbers when they encode identity, validation, units, or invariants.
- Distinctive: line 120
Keep the output concrete, source-aware, and directly reviewable as an implementation plan.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Type Breakdown
Walk the user through the requested code paths, types, abstractions, and data flow.
Turn a broad plan into a concrete, type-driven implementation outline. Prefer pseudocode, type signatures, and execution structure over PRD-style prose.
Inspect the existing code before proposing new abstractions.
If the subject is simple, keep the walkthrough concise. Otherwise, use the structure below as a reference. Do not follow it rigidly when a section does not apply.
Use these markers:
[existing] Confirmed in the codebase
[inferred] Implied by the current implementation
[proposed] Introduced by this plan
[?] UnresolvedExecution Tree
Start from the entry point and expand the call path recursively in execution order.
For every relevant call, show:
- Fully qualified function, method, class, or module name
- File where it is defined
- Parent file and call site
- Responsibility
- Input and output types
- Data transformations
- Side effects
- Possible errors
- Child calls
Use this format:
▼ [existing] CheckoutController.create
defined: src/checkout/api/CheckoutController.ts:24
input: CreateCheckoutRequest
output: Promise<HttpResponse<CreateCheckoutResponse>>
└─▶ [existing] CreateCheckout.execute
defined: src/checkout/application/CreateCheckout.ts:18
called: CheckoutController.ts:42
input: CreateCheckoutCommand
output: Result<Checkout, CreateCheckoutError>
effects: reads customer, writes checkout
├─▶ CustomerRepository.find
├─▶ Checkout.create
└─▶ CheckoutRepository.saveUse × N for repeated calls over collections. Do not invent line numbers when they are unavailable.
Type Flow
Show how data becomes progressively more constrained:
unknown
→ CreateCheckoutRequest
→ CreateCheckoutCommand
→ ResolvedCheckoutInput
→ Checkout
→ CheckoutRow
→ CreateCheckoutResponseIdentify the validation or transformation responsible for each transition.
Type Definitions
Provide pseudocode definitions for the important boundary, application, domain, persistence, state, and error types.
type CreateCheckoutCommand = {
customerId: CustomerId;
items: NonEmptyArray<CheckoutItemInput>;
};
type CreateCheckoutError =
| { type: "CustomerNotFound"; customerId: CustomerId }
| { type: "InvalidCheckout"; cause: CheckoutValidationError }
| { type: "PersistenceFailure"; cause: PersistenceError };Prefer domain-specific types over primitive strings and numbers when they encode identity, validation, units, or invariants.
Error Flow
Show where each error originates and how it is mapped and propagated:
UniqueConstraintViolation
→ PersistenceError.Conflict
→ CreateCheckoutError.PersistenceFailure
→ HTTP 409Implementation Outline
Finish with:
- Proposed functions and type signatures
- Type ownership by file or module
- Existing code that must change
- New files or abstractions required
- Unresolved design questions
Keep the output concrete, source-aware, and directly reviewable as an implementation plan.
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.

