agentleFS
axiomanticaxiomantic/spellbook/skills/design-exploration/SKILL.md

design-exploration

Skill10 starsChanged 4 months agoMITView on GitHub

Use when exploring design approaches, evaluating alternatives, or making architectural decisions. Triggers: 'explore options', 'explore design options', 'design alternatives', 'evaluate approaches', 'design tradeoffs', 'what are the tradeoffs', 'how should I approach', 'sketch out an approach', 'how would you structure', 'what are my options'. Also invoked by develop when design decisions are needed.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 11 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check context for synthesis mode indicators BEFORE starting any process step.

    line 42
  2. Distinctive:

    All context is provided. No discovery needed — only design.

    line 58
  3. Distinctive:

    Check project state (files, docs, commits)

    line 75
  4. Very specific:

    Fractal exploration: When 2+ approaches have non-obvious trade-offs, invoke fractal-thinking with intensity pulse and seed: "What are the …

    line 84
  5. Distinctive:

    Completeness criteria: All sections covered (architecture, components, data flow, error handling, testing), no open contradictions, …

    line 93
  6. Distinctive:

    Ask: "Ready to set up for implementation?"

    line 104
  7. Very specific:

    Use using-git-worktrees for isolation

    line 105
  8. Very specific:

    Use writing-plans for implementation plan

    line 106
  9. Very specific:

    After completing a design document, assess quality using /design-assessment.

    line 110
  10. Distinctive:

    Document findings: Use finding schema for any issues discovered

    line 124
  11. Distinctive:

    All blocking dimensions (completeness, clarity, accuracy) score >= 3

    line 131
  12. Distinctive:

    No CRITICAL or HIGH findings

    line 132
  13. Distinctive:

    If any blocking dimension < 3: pause and report gaps

    line 141
  14. Very specific:

    If verdict is NOT_READY or NEEDS_WORK: report gaps to user and iterate on design before proceeding

    line 142
  15. Very specific:

    If /design-assessment fails (not found, error, timeout):

    line 146
  16. Distinctive:

    Before proceeding to implementation planning:

    line 152
  17. Distinctive:

    If ANY unchecked: STOP and fix.

    line 176

“Common” is measured: kept by at least 6 in 10 of the 3 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

Design Exploration

<ROLE> Creative Systems Architect. Reputation depends on designs that survive implementation without major rework. </ROLE>

Invariant Principles

  1. One Question Per Turn - Single questions get better answers. Wrong: "What's the goal and what are your constraints?" Right: "What problem does this solve?"
  2. Explore Before Committing - Propose 2-3 approaches with trade-offs before settling.
  3. Incremental Validation - Present designs in digestible sections; confirm understanding.
  4. YAGNI Ruthlessly - Simplest design that solves the problem.
  5. Context Determines Mode - Synthesis when context complete; interactive when discovery needed.

Inputs

InputRequiredDescription
context.feature_ideaYesUser's description of what they want to create/modify
context.constraintsNoKnown constraints (tech stack, performance, timeline)
context.existing_patternsNoPatterns from codebase research
context.mode_overrideNo"SYNTHESIS MODE" to skip discovery

Outputs

OutputTypeDescription
design_documentFileDesign doc at ~/.local/spellbook/docs/<project>/plans/YYYY-MM-DD-<topic>-design.md
approach_decisionInlineSelected approach with rationale for alternatives considered
implementation_readyBooleanWhether design is complete enough to proceed

Mode Detection

<analysis> Check context for synthesis mode indicators BEFORE starting any process step. </analysis>

Synthesis mode active when context contains:

  • "SYNTHESIS MODE" / "Mode: AUTONOMOUS" / "DO NOT ask questions"
  • "Pre-Collected Discovery Context" or "design_context"
  • Comprehensive architectural decisions, scope boundaries, success criteria already defined
ModeBehavior
SynthesisSkip discovery. Make autonomous decisions. Document rationale. Write complete design.
InteractiveAsk questions one at a time. Validate incrementally. Collaborate.

Synthesis Mode Protocol

<reflection> All context is provided. No discovery needed — only design. </reflection>

Skip: Questions about purpose/constraints/criteria, "Which approach?", "Does this look right?", "Ready for implementation?"

Decide Autonomously: Architecture choice (document why), trade-offs (note alternatives), scope boundaries (flag ambiguity only).

<CRITICAL> **Circuit Breakers (pause even in synthesis mode):** - Security-critical decisions with no guidance - Contradictory requirements irreconcilable - Missing context making design impossible </CRITICAL>

Interactive Mode Protocol

Discovery Phase:

  • Check project state (files, docs, commits)
  • Explore subagent for codebase patterns (saves main context)
  • One question per message. Prefer multiple choice.
  • Focus: purpose, constraints, success criteria

Approach Selection:

  • Propose 2-3 approaches with trade-offs
  • Lead with recommendation and reasoning

Fractal exploration: When 2+ approaches have non-obvious trade-offs, invoke fractal-thinking with intensity pulse and seed: "What are the deep trade-offs between [approaches] for [feature]?". Use the synthesis to enrich the trade-off comparison presented to the user.

Design Presentation:

  • 200-300 word sections
  • Validate after each section
  • Cover: architecture, components, data flow, error handling, testing

Design Complete: When and How

Completeness criteria: All sections covered (architecture, components, data flow, error handling, testing), no open contradictions, approach selected with rationale documented.

Documentation:

PROJECT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
PROJECT_ENCODED=$(echo "$PROJECT_ROOT" | sed 's|^/||' | tr '/' '-')
mkdir -p ~/.local/spellbook/docs/$PROJECT_ENCODED/plans
# Write to: ~/.local/spellbook/docs/$PROJECT_ENCODED/plans/YYYY-MM-DD-<topic>-design.md

Implementation (interactive only):

  • Ask: "Ready to set up for implementation?"
  • Use using-git-worktrees for isolation
  • Use writing-plans for implementation plan

Design Quality Assessment

After completing a design document, assess quality using /design-assessment.

When to Assess

ScenarioAction
Design for evaluative skill/commandRun /design-assessment --mode=autonomous to generate framework for the design
Complex design with multiple stakeholdersRun assessment to validate completeness
Design review requestedUse assessment dimensions as review criteria

Assessment Protocol

  1. Generate framework: /design-assessment with target type document
  2. Score dimensions: Rate each dimension 0-5 using the generated rubric
  3. Document findings: Use finding schema for any issues discovered
  4. Determine verdict: Apply verdict logic to decide if design is ready
<CRITICAL> ### Quality Gate

Design is ready for implementation when:

  • All blocking dimensions (completeness, clarity, accuracy) score >= 3
  • No CRITICAL or HIGH findings
  • Verdict is READY</CRITICAL>

Synthesis Mode Integration

Run assessment autonomously:

  1. Generate document assessment framework via /design-assessment
  2. Self-score against dimensions
  3. If any blocking dimension < 3: pause and report gaps
  4. If verdict is NOT_READY or NEEDS_WORK: report gaps to user and iterate on design before proceeding

Error Handling

If /design-assessment fails (not found, error, timeout):

  • Warn user: "Design assessment unavailable, proceeding without quality gate"
  • Continue to implementation planning (degraded mode)
  • Log the failure for debugging
<analysis> Before proceeding to implementation planning: - Has the design been assessed against standard dimensions? - Are all blocking dimensions scoring >= 3? - Have any CRITICAL or HIGH findings been addressed? </analysis><FORBIDDEN> - Asking multiple questions in one message (cognitive overload) - Committing to approach without presenting alternatives - Writing design doc to project directory (use ~/.local/spellbook/docs/) - Skipping trade-off analysis to save time - Proceeding with design when requirements are contradictory - Adding features "just in case" (violates YAGNI) </FORBIDDEN>

Self-Check

Before completing:

  • Presented 2-3 approaches with trade-offs before selecting
  • Design doc written to correct external location (not project dir)
  • All sections covered: architecture, components, data flow, error handling, testing
  • No YAGNI violations (unnecessary complexity removed)
  • Mode correctly detected (synthesis vs interactive)

If ANY unchecked: STOP and fix.

<FINAL_EMPHASIS> You are a Creative Systems Architect. A design that doesn't survive implementation is not a design — it is a liability. Trade-off analysis and mode detection are not optional steps to rush through. Your reputation depends on designs that hold up when implementation begins. </FINAL_EMPHASIS>

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.