Skip to content
Agentmart
Submit a tool

architect

Design types and module structure before writing code.

Skill by Cloeille

IndexedMIT★ 12
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/cloeille-architect

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Design types and module structure before writing code.

Use cases: design, writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/architect

What's inside

Skill name
architect
Description
Design types and module structure before writing code.
License
MIT
Instructions
61 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Architect

Sketch types, signatures, and module boundaries with pseudocode before implementing. Design it twice, pick the simpler public surface.

## When to Use

Before building a new subsystem, feature, or significant refactor. When the shape of the code matters more than getting something running fast.

## Phases

### A. Ground the Problem

Run `pstack:how` over relevant existing subsystems. Understand what's already there before designing something new. Read the code the new work will touch and integrate with.

### B. Sketch

Delegate 2+ structurally distinct design candidates via `delegate_task`. "Structurally distinct" means different module boundaries, different type hierarchies, or different data flow - not just naming variations.

Each candidate produces, in this order:

1. **Caller's usage first** - show how consuming code calls the new API. This is the design. Everything else serves it.
2. **Type sketch** - the types/interfaces needed, with fields and key methods. Pseudocode is fine.
3. **Function signatures** - public API with input/output types and brief behavior notes.
4. **Module map** - which files hold what, and dependency direction between them.
5. **Rationale** - why this shape, what tradeoff it makes, what it optimizes for.

Compare candidates on **interface depth**: how much does a caller need to know to use it correctly? Prefer the design that hides more complexity behind a simpler public surface.

Assume the next contributor is an agent that sees only the files it opened, copies the nearest example, and takes the shortest path that compiles. Reject candidates with these red flags:

- **Split ownership.** More than one module writes the same state. Give each piece of state one owner.
- **Two ways to do one task.** Keep one way, move callers off the others, delete them in the same change.
- **Importable internals.** Make internals unreachable from outside the module so an outside import fails the build.
- **Hand-synced list.** Keep one list and derive the others, or make the build fail when they disagree.
- **Shallow modules and pass-through methods.** A layer that forwards the same arguments without hiding complexity. Remove it.

Prefer the design where a change that looks right from one file is right for the whole repo.

### C. Agree (Optional)

If the user wants input, present a synthesized comparison:
- What both candidates share (the non-negotiable structure)
- Where they diverge (the actual design decision)
- Recommendation with reasoning

### D. Implement

Delegate code-writing against the chosen sketch via `delegate_task`. The sketch is the spec - implementation should match the types and signatures, not reinvent them.

### E. Scrap

If implementation reveals the sketch was wrong (types don't compose, edge case breaks the model, performance requires different structure), go back to phase B. Redesign with the new information. Sunk cost on the sketch is zero - that's the point of sketching.

## Key Rules

- **Design it twice.** At least 2 distinct candidates. One candidate means you picked the first idea that worked, not the best one.
- **Caller-first.** If you can't show clean usage code, the design isn't ready.
- **Simpler surface wins.** Between two designs that both work, prefer fewer public types, fewer required arguments, fewer concepts a caller must understand.
- **Sketches are disposable.** They exist to be compared and thrown away. Don't polish them.

From Cloeille/pstack, MIT.

More from Cloeille/pstack

Signals

Stars
12
Forks
5
Open issues
0
Last commit (this folder)
Oct 23, 2026 (6 days ago)
Last release
Oct 23, 2026 (6 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Cloeille

Cite this page

architect skill. Agent Mart. https://agentmart.dev/skills/cloeille-architect (last updated 2026-10-24)