Index of every page on this site: llms.txt
All skills
ayushjj avatar

/creating-specifications

@60d4063
Run it yourself

Create structured design documentation before implementing features. Use for new features, significant refactoring, or work spanning multiple sessions. Triggers on "new feature", "implement", "build", "design", "spec", "plan the implementation".

  • 3 files
  • 11 KB
  • MIT
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/ayushjj/skills/creating-specifications

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈68 tokens for metadata: the name and description. ≈1.5k when used: this file. ≈1.2k more on demand in 2 files.

Description uses 3.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈271 characters, or 3.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Creating Specifications

Use this skill BEFORE implementing any non-trivial feature, especially when trade-offs need to be explicit. Creates structured documentation that persists across sessions.

Before You Start

Use this skill only when all of these hold:

  • The feature or change is non-trivial.
  • It is not a simple bug fix. For bugs, first find one concrete failing example and its root cause; write a spec only if the fix turns out to be non-trivial.
  • The scope is understood at least at a high level.
  • The premise is validated: if "should we build this at all?" is unclear, run /premise-check first.

Usage

/creating-specifications {feature-name}
<critical_sequence enforce_order="strict"><step number="1" required="true" blocking="true"> ## Step 1: Create Folder Structure

Create the spec directory:

specs/{feature-name}/
├── design.md        # Problem + proposed solution
├── decisions.md     # Trade-offs documented
└── implementation.md # Execution notes
<validation_gate name="folder-created" blocking="true"> **BLOCK if not created:** - [ ] Directory `specs/{feature-name}/` exists - [ ] All three files initialized

Do NOT proceed to design until structure exists. </validation_gate> </step>

<step number="2" required="true" depends_on="1" blocking="true"> ## Step 2: Write Problem Statement

Prerequisite check: Before writing the problem statement, assess: is the problem crystal clear?

  • If a PREMISE CHECK output already exists in the conversation → proceed
  • If the problem is vague or the user said "maybe we should build..." → offer: "The problem isn't crystal clear yet. Want me to run /premise-check first? It takes 2-3 minutes and prevents building the wrong thing."
  • If the user declines or the problem is already specific → proceed normally

Fill the Problem Statement + Current Behavior section of design.md (full template: references/templates.md).

<validation_gate name="problem-defined" blocking="true"> **BLOCK if problem unclear:** - [ ] Problem statement is one clear sentence - [ ] Current behavior documented - [ ] "Why it matters" explained

Do NOT propose solutions until problem is crystal clear. </validation_gate> </step>

<step number="3" required="true" depends_on="2"> ## Step 3: Document Alternatives

Research and document at least 2 alternative approaches. Fill the Alternatives Considered section of design.md (references/templates.md).

This forces thinking beyond the first idea. </step>

<step number="4" required="true" depends_on="3" blocking="true"> ## Step 4: Propose Solution

Document the chosen approach. Fill the Proposed Solution section of design.md — including What Already Exists, Key Changes, Success Metrics (Test Expectations) written as when/then statements, and Risks (references/templates.md).

<validation_gate name="solution-proposed" blocking="true"> **BLOCK if incomplete:** - [ ] Solution clearly described - [ ] Key changes listed - [ ] Success metrics defined (measurable!) - [ ] Risks identified with mitigations </validation_gate> </step><step number="5" required="true" depends_on="4"> ## Step 5: Document Key Decisions

For each non-obvious choice, document in decisions.md using the Decision block (references/templates.md).

WHY: Future-you needs to understand WHY decisions were made, not just WHAT was decided. </step>

<step number="6" required="true" depends_on="5"> ## Step 6: Initialize Implementation Tracker

Create implementation.md from the template (references/templates.md) — initialize Status, seed the Test Queue (Kent Beck-style: a list of tests worked one at a time) from design.md's Success Metrics, and set up the Execution Log, Files to Change, and Verification sections. </step>

</critical_sequence><success_criteria> ## Spec Complete When ALL Are True
  • All three files created (design.md, decisions.md, implementation.md)
  • Problem statement is clear and specific
  • At least 2 alternatives documented
  • Solution has measurable success metrics
  • Key decisions documented with rationale
  • Implementation plan initialized</success_criteria>
<decision_gate wait_for_user="true"> ## Spec Created

Files created:

  • specs/{feature}/design.md
  • specs/{feature}/decisions.md
  • specs/{feature}/implementation.md

What's next?

  1. Begin implementation (recommended)
  2. Review spec with user
  3. Add more alternatives to consider
  4. Run /executing-batch-operations if this involves bulk data changes
  5. Other

Choose (1-5): _ </decision_gate>

<implementation_protocol trigger="user-chooses-1"> ## Implementation Pre-Flight (MANDATORY before any code changes)

If the user chooses (1) Begin implementation → this is MANDATORY: read and execute the gates in references/implementation-protocol.md IN ORDER before touching any code (Gate 1 Read Plan → Gate 2 Read Targets → Gate 3 Baseline → Gate 4 Scope Gut-Check, then the Beck test-queue loop + post-task checklist). </implementation_protocol>

Templates

  • File templates (design.md, decisions.md, implementation.md) → references/templates.md
  • Implementation pre-flight gates → references/implementation-protocol.md
<integration_protocol> ## Integration Points

Invoked by:

  • A bug investigation, once the root cause is found and the fix is non-trivial
  • Manual invocation for new features
  • Auto-suggested when user describes feature requirements

Invokes:

  • /executing-batch-operations skill (if implementation involves bulk data changes; its Step 6 query-correctness validation verifies the implementation)
  • Implementation pre-flight gates (when user chooses "Begin implementation")

Handoff expectations: Creates specs/{feature}/ directory with full documentation. Implementation phase uses implementation.md to track progress. </integration_protocol>

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 60d4063. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated last month

README badge

README badge for ayushjj/skills/creating-specifications