godmode:design
Skill1 starsChanged 57 days agoMITView on GitHub
Translate an approved brainstorm into a precise architectural specification. Defines crate ownership, public API (traits, types, signatures), data flow, and hexagonal port boundaries. Triggers after brainstorm approval, before writing-plans.
In this repository76 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- godmode:agent-governanceSkill
- godmode:agent-improvement-loopSkill
- agents-skill-saveSkill
- baml-add-typesSkill
- godmode:brainstormSkill
- godmode:capSkill
- godmode:changelogSkill
- godmode:ci-fixSkill
- godmode:code-reviewSkill
- godmode:context-mapSkill
- godmode:cross-issueSkill
- godmode:crs-discoverSkill
- godmode:crs-hook-testingSkill
- godmode:crs-installSkill
- godmode:crs-propose-rulesSkill
- godmode:crs-validateSkill
- godmode:dead-codeSkill
- godmode:decomposeSkill
- godmode:dep-auditSkill
- godmode:dep-bumpSkill
- devloop-session-primerSkill
- godmode:dialecticSkill
- godmode:doc-maintainerSkill
- godmode:doc-reviewSkill
- godmode:doc-syncSkill
- godmode:doc-writerSkill
- doob-db-inspectorSkill
- doob-release-managerSkill
- godmode:doublecheckSkill
- dual-forge-pr-mergeSkill
- gh-bulk-issuesSkill
- godmode:health-scoreSkill
- godmode:ingestSkill
- godmode:introspectionSkill
- godmode:issue-triageSkill
- godmode:memory-bankingSkill
- godmode:mergeSkill
- godmode:mini-context-graphSkill
- godmode:mistake-trackerSkill
- godmode:moaSkill
- notfiles-release-workflowSkill
- godmode:observability-as-infrastructureSkill
- godmode:parallel-agentsSkill
- godmode:pattern-learnerSkill
- planning-with-cruxSkill
- godmode:pr-authorSkill
- godmode:receiving-reviewSkill
- godmode:refactoringSkill
- godmode:release-notesSkill
- release-readiness-checkSkill
- remote-upstream-triageSkill
- repo-gap-backlogSkill
- godmode:rust-conventionsSkill
- rustqualSkill
- rustqual-workspaceSkill
- rust-release-workflow-authorSkill
- godmode:self-reflectSkill
- session-wrap-commit-pushSkill
- godmode:systematic-debuggingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Hard gate: Do NOT write any code or invoke godmode:writing-plans until the design doc is written and the user has explicitly approved it.
- Very specific: line 18
After godmode:brainstorm produces an approved approach
- Distinctive: line 19
When given an architectural decision that needs formal specification before planning
- Very specific: line 31
If any of these are missing, run godmode:brainstorm first.
- Very specific: line 35
Run godmode:context-map before writing anything.
- Distinctive: line 49
If new: what is its single responsibility, and why doesn't it belong in an existing crate?
- Distinctive: line 53
Every new trait: name, methods, associated types
- Distinctive: line 54
Every new type: name, fields (named, not unnamed tuples), derives
- Distinctive: line 55
Every new public function: signature (no bodies — signatures only)
- Distinctive: line 71
Before writing the design doc, verify:
- Distinctive: line 79
If doublecheck surfaces issues, resolve them before proceeding.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Design
Hard gate: Do NOT write any code or invoke godmode:writing-plans until the design doc
is written and the user has explicitly approved it. No exceptions.
When to Run
- After
godmode:brainstormproduces an approved approach - When given an architectural decision that needs formal specification before planning
Process
Step 1: Read the brainstorm output
Confirm you have:
- An approved approach (one of the proposed options, not still open)
- The goal statement in one sentence
- Any explicit constraints or out-of-scope items
If any of these are missing, run godmode:brainstorm first.
Step 2: Run context-map
Run godmode:context-map before writing anything. The context map determines:
- Which crate owns the new code (never guess)
- Which existing types or traits the design must extend or compose
- Which files will be affected
- Risk flags (API surface changes, semver implications)
Step 3: Define the architecture
For each design, specify:
Crate ownership
- Which existing crate, or does this require a new crate?
- If new: what is its single responsibility, and why doesn't it belong in an existing crate?
Public API
- Every new trait: name, methods, associated types
- Every new type: name, fields (named, not unnamed tuples), derives
- Every new public function: signature (no bodies — signatures only)
- No
todo!(), nounimplemented!(), no placeholders
Data flow
- Source → transform → sink, one sentence per hop
- Identify the hexagonal boundary: what is a port (trait), what is an adapter (impl)?
Integration points
- How does new code connect to existing modules?
- Does it go behind a feature flag?
- Does it change any existing public API? If yes, enumerate breaking changes.
Step 4: Apply doublecheck
Before writing the design doc, verify:
- Every new type is placed in the correct crate per the context map
- No circular dependencies are introduced
- The API surface is minimal — remove anything not required by the current goal
- External dependencies, if any, are behind a trait (hexagonal rule)
- Names are consistent with existing conventions in the codebase
If doublecheck surfaces issues, resolve them before proceeding.
Step 5: Write the design document
Save to: docs/designs/YYYY-MM-DD-<feature-name>-design.md
# Design: <Feature Name>
## Goal
One sentence. What does this implement and why.
## Approved Approach
State which approach from brainstorm was selected, in one sentence.
## Crate Ownership
- **Owner crate**: `<crate-name>` — reason in one sentence
- **Affected crates**: list any crates that will import the new code
## Public API
### Traits
```rust
pub trait <Name> {
fn <method>(&self, ...) -> ...;
}
```Types
pub struct <Name> {
pub field: Type,
}Functions
pub fn <name>(...) -> ...;Data Flow
- Source: ...
- Transform: ...
- Sink: ...
Hexagonal Boundaries
- Port (trait):
<TraitName>in<crate>::<module> - Adapter (impl):
<ImplName>in<crate>::<module>
Out of Scope
- List anything explicitly excluded from this design
Risk
- Breaking API changes: yes/no — if yes, list them
- New external dependency: yes/no — if yes, name and justify
- Feature flag required: yes/no
### Step 6: Get user approval
Present the design doc. Do not proceed until the user explicitly approves.
### Step 7: Invoke `godmode:writing-plans`
After approval, hand off to writing-plans. The plan's task list must reference exact file
paths and type names from this design doc — no invention allowed.
## Design Rules
- **Signatures only**: the design doc contains signatures, not implementations
- **No placeholders**: every type name, method name, and field name must be final
- **Hexagonal by default**: external I/O, processes, and storage go behind traits
- **One crate, one responsibility**: if the design spans more than 3 crates, it is too large
- **Consistent names**: check existing code for naming conventions before coining new names
## Additional Resources
- `references/design-principles.md` — hexagonal architecture, YAGNI, naming conventions
- `helpers/design-doc-template.md` — blank design docDoes 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.

