本文へ移動
cccskills
無料GitHub で公開

Five-Element Spec: Scope Before Coding

Translate a vague request or GitHub issue into a concrete, testable spec using five structured elements (problem, scope, acceptance criteria, edge cases, success criterion) before writing any code. Prevents scope creep, PR churn, and mid-implementation pivots.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md5.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Five-Element Spec: Scope Before Coding

Translate a vague request or GitHub issue into a concrete, actionable spec before writing any code.

Core principle: If you can't write down what "done" looks like in two sentences, you're not ready to start.

The five-element spec is a lightweight planning format that forces explicit scope boundaries, testable acceptance criteria, and a binary done/not-done signal. It takes 5 minutes for small tasks and prevents hours of rework from scope mismatches, PR churn, and "I thought we wanted X" surprises.

When to Use

Always before:

  • Starting work on a GitHub issue that hasn't been scoped into a task
  • Implementing a feature where acceptance criteria aren't obvious
  • Any task that will take >30 minutes (if you can't spec it in 5 minutes, the scope is unclear)
  • Work that will produce a PR (scope ambiguity creates PR churn)

Skip for:

  • Bug fix with a clear reproduction path and obvious scope
  • Mechanical tasks (update a config value, rename a symbol, bump a version)
  • Work already described in a task with a success_criterion field

Installation

Claude Code

cp -R skills/five-element-spec ~/.claude/skills/five-element-spec

Invoke with /five-element-spec before starting any non-trivial implementation task.

Direct repo/manual install

git clone https://github.com/agentskillexchange/skills.git
cp -R skills/five-element-spec ~/.agent-skills/five-element-spec

The 5-Element Spec

A complete spec answers five questions:

1. PROBLEM — What is broken or missing? What pain does this cause?
2. SCOPE — What is in scope? What is explicitly out of scope?
3. ACCEPTANCE CRITERIA — What must be true when this is done? (testable)
4. EDGE CASES — What unusual inputs or states must be handled?
5. SUCCESS CRITERION — One sentence: how will we know it's done?

Spec Template

## Problem
[1-2 sentences: what is broken/missing and why it matters]

## Scope
**In scope:**
- [Specific thing 1]
- [Specific thing 2]

**Out of scope (explicitly):**
- [Thing someone might expect but we're not doing]

## Acceptance Criteria
- [ ] [Testable condition 1 — "X works when Y" or "CI passes for Z"]
- [ ] [Testable condition 2]
- [ ] [Testable condition 3]

## Edge Cases
- [Input or state that needs explicit handling]
- [Boundary condition]

## Success Criterion
[One sentence. "When [action], [outcome] happens, verified by [test/check]."]

From Issue to Spec

Step 1: Read the issue

gh issue view OWNER/REPO#NUM

Look for: what's the complaint? what does the reporter expect? what's missing?

Step 2: Write the spec

Use the 5-element template above. If you can't fill it in, the issue needs more information — file a comment asking for clarification rather than guessing.

Step 3: Create a task

Record the spec as a task or ticket in your tracking system of choice, with the success_criterion as a first-class field. The binary done/not-done signal from the success criterion is what enables autonomous completion without mid-task re-planning.

Anti-Patterns

Anti-PatternFix
"I'll figure out the scope as I go"Figure out the scope before you start. Scope discovered mid-implementation causes rework.
"The issue title is clear enough"Issue titles describe the symptom. Acceptance criteria describe what done looks like. These are different.
"I'll add acceptance criteria to the PR"PR acceptance criteria are retrospective. Spec first, then implementation, then PR.
"This is small, I don't need a spec"If it's small enough to skip a spec, it's small enough to write the spec in 3 minutes. Do it.
"The issue has a lot of comments, I'll read them later"Read them now. The thread often contains the acceptance criteria, edge cases, and out-of-scope decisions already worked out.
Implementing everything in the issueIssues are wishlists. Specs are commitments. Pick the minimum slice that closes the issue.

Red Flags (spec is insufficient)

  • Acceptance criteria use words like "better", "improved", "faster" without a measurable threshold
  • No explicit out-of-scope list (scope creep guaranteed)
  • Success criterion references "user will be happy" — not testable
  • Spec lists 8+ acceptance criteria (too big for one task; break it down)
  • Edge cases section is empty (they exist; you just haven't thought about them)

Outcome

A good spec:

  • Prevents starting the wrong thing
  • Enables autonomous completion without mid-task re-planning
  • Creates clear done/not-done signal for the success criterion field
  • Reduces PR review churn (reviewer and author agree on scope upfront)
  • Makes parallel agent sessions safe (clear scope = no convergent duplicate work)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use this skill whenever the user wants to create or improve a presentation for an academic context — conference papers, seminar talks, thesis defenses, grant briefings, lab meetings, invited lectures, or any presentation where the audience will evaluate reasoning and evidence. Triggers include: 'conference talk', 'seminar slides', 'thesis defense', 'research presentation', 'academic deck', 'academic presentation'. Also triggers when the user asks to 'make slides' in combination with academic content (e.g., 'make slides for my paper on X', 'create a presentation for my dissertation defense', 'build a deck for my grant proposal'). This skill governs CONTENT and STRUCTURE decisions. For the technical work of creating or editing the .pptx file itself, also read the pptx SKILL.md.

日本語の概要は準備中です。原文の説明を表示しています。

skillmds/skillmd712026年10月9日 更新

adp

無料

Redpanda's Agentic Data Plane: governance infrastructure for building, running, and governing AI agents and MCP servers, plus a proxying AI Gateway for LLM providers, operated via `rpk ai` and the ADP API. Use when creating or managing AI agents (managed or self-managed) via `rpk ai agent` or `AgentRegistryService`; configuring MCP servers (remote or managed catalog, code mode, auth); setting up LLM providers or querying models via `rpk ai llm`/`rpk ai model` or the AI Gateway proxy; or configuring budgets, guardrails, or Cedar access-control policies through the governance APIs. Also covers reading agent transcripts and spending insights, and wiring OAuth clients or providers to the aigw Authorization Server. For the separate rpk cloud mcp control-plane MCP server, see `/redpanda:rpk-cloud`.

日本語の概要は準備中です。原文の説明を表示しています。

skillmds/skillmd712026年10月9日 更新

ads

無料

Operate professional paid advertising across Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, Apple, Amazon, Reddit, Pinterest, Snapchat, and X. Use for account intake, source-grounded audits, strategy, budget and measurement planning, creative production, experiments, reporting, monitoring, and explicitly approved campaign changes. Also trigger on PPC, paid social, retail media, attribution, tracking, landing pages, cross-platform conversion totals, negative keywords or search terms, beta-feature scoring, stale platform claims, API-token or credential setup, campaign deletion, and safe Claude Ads installation or uninstall.

日本語の概要は準備中です。原文の説明を表示しています。

skillmds/skillmd712026年10月9日 更新

ads-apple

無料

Audit Apple Ads measurement, AdServices and AdAttributionKit, campaign and keyword structure, Search Match, App Store placements, custom product pages, bidding, budgets, MMP reconciliation, and policy. Use for Apple Ads, Apple Search Ads, App Store ads, Search Match, custom product pages, AdServices, or Apple app-install campaigns.

日本語の概要は準備中です。原文の説明を表示しています。

skillmds/skillmd712026年10月9日 更新

Research competitor paid-ad presence, messaging, creative, formats, landing pages, keyword and auction signals, transparent ad libraries, and strategic gaps across supported platforms. Use for competitor ads, ad libraries, ad spy, competitive PPC analysis, competitor creative, Google Ads Transparency, Meta Ad Library, or paid-media competitor research.

日本語の概要は準備中です。原文の説明を表示しています。

skillmds/skillmd712026年10月9日 更新

ads-dna

無料

Extract a public-safe brand and offer profile for paid advertising from an authorized website and operator input. Triggers on: brand DNA, brand profile, brand identity, brand style, brand colors, brand voice, visual identity, style guide, website brand analysis.

日本語の概要は準備中です。原文の説明を表示しています。

skillmds/skillmd712026年10月9日 更新

skillmds のスキルをすべて見る

このスキルの問題を報告する