agentleFS
buildpad-aibuildpad-ai/skills/buildpad-spec-init/SKILL.md

buildpad-spec-init

Skill1 starsChanged 27 days agoMITView on GitHub

Initialize a new specification with detailed project description

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 2 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check for Brief: If .kiro/specs/{feature-name}/brief.md exists (created by /buildpad-discovery), read it.

    line 15
  2. Very specific:

    Check Uniqueness: Verify .kiro/specs/ for naming conflicts.

    line 17
  3. Very specific:

    If .kiro/settings/templates/specs/ does not exist, bootstrap it first: copy this skill's bundled settings-templates/specs/ directory to …

    line 20
  4. Very specific:

    Write spec.json and requirements.md to spec directory

    line 28
  5. Very specific:

    Do NOT generate requirements, design, or tasks.

    line 31
  6. Distinctive:

    Keep total output concise (under 250 words)

    line 45
  7. Very specific:

    Use clear, professional language per spec.json.language

    line 46
  8. Distinctive:

    Ambiguous Feature Name: If feature name generation is unclear, propose 2-3 options and ask user to select

    line 49
  9. Very specific:

    Template Missing: If template files don't exist in .kiro/settings/templates/specs/, report error with specific missing file path and …

    line 50
  10. Very specific:

    Directory Conflict: If feature name already exists, append numeric suffix (e.g., feature-name-2) and notify user of automatic conflict …

    line 51

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Spec Initialization

<instructions> ## Core Task Generate a unique feature name from the project description ($ARGUMENTS) and initialize the specification structure.

Execution Steps

  1. Check for Brief: If .kiro/specs/{feature-name}/brief.md exists (created by /buildpad-discovery), read it. The brief contains problem, approach, scope, and constraints from the discovery session. Use this to pre-fill the project description and skip clarification questions that the brief already answers.
  2. Clarify Intent: The Project Description in requirements.md must contain three elements: (a) who has the problem, (b) current situation, (c) what should change. If a brief.md exists and covers these, skip to step 3. Otherwise, ask the user to clarify before proceeding. Ask as many questions as needed; do not fill in gaps with your own assumptions.
  3. Check Uniqueness: Verify .kiro/specs/ for naming conflicts. If the directory already exists with only brief.md (no spec.json), use that directory (discovery created it).
  4. Create Directory: .kiro/specs/[feature-name]/ (skip if already exists from discovery)
  5. Initialize Files Using Templates:
    • If .kiro/settings/templates/specs/ does not exist, bootstrap it first: copy this skill's bundled settings-templates/specs/ directory to .kiro/settings/templates/specs/
    • Read .kiro/settings/templates/specs/init.json
    • Read .kiro/settings/templates/specs/requirements-init.md
    • Replace placeholders:
      • {{FEATURE_NAME}} → generated feature name
      • {{TIMESTAMP}} → current ISO 8601 timestamp
      • {{PROJECT_DESCRIPTION}} → from brief.md if available, otherwise $ARGUMENTS
      • en → language code (detect from user's input language, default to en)
    • Write spec.json and requirements.md to spec directory

Important Constraints

  • Do NOT generate requirements, design, or tasks. This skill only creates spec.json and requirements.md.</instructions>

Output Description

Provide output in the language specified in spec.json with the following structure:

  1. Generated Feature Name: feature-name format with 1-2 sentence rationale
  2. Project Summary: Brief summary (1 sentence)
  3. Created Files: Bullet list with full paths
  4. Next Step: Command block showing /buildpad-spec-requirements <feature-name>

Format Requirements:

  • Use Markdown headings (##, ###)
  • Wrap commands in code blocks
  • Keep total output concise (under 250 words)
  • Use clear, professional language per spec.json.language

Safety & Fallback

  • Ambiguous Feature Name: If feature name generation is unclear, propose 2-3 options and ask user to select
  • Template Missing: If template files don't exist in .kiro/settings/templates/specs/, report error with specific missing file path and suggest checking repository setup
  • Directory Conflict: If feature name already exists, append numeric suffix (e.g., feature-name-2) and notify user of automatic conflict resolution
  • Write Failure: Report error with specific path and suggest checking permissions or disk space

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.