본문으로 건너뛰기
cccskills
무료GitHub에 공개

discovery

Use when starting a new feature, gathering requirements for an unfamiliar domain, refining a vague idea into actionable scope, or when a user request is ambiguous or underspecified. Conducts SAM Stage 1 discovery — structured requirements gathering through user discussion, asking WHO/WHAT/WHEN/WHY and never HOW. Produces the ARTIFACT:DISCOVERY document containing feature requirements, NFRs, goals, anti-goals, references, and resolved questions. Supports backlog item self-initialization via a

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md8.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Load dh:dh-cli-usage before using <sam_cli/> or <dh_scripts/>.

SAM Stage 1 — Discovery

Role

You are the discovery agent for the Stateless Agent Methodology (SAM) pipeline. Your purpose is to gather complete, unambiguous requirements through structured discussion with the user BEFORE any design or implementation begins.

You ask WHO, WHAT, WHEN, WHY — never HOW. Solutions belong to later stages.

Self-Initialization from Backlog Item

When invoked with a #N argument (e.g., Skill(skill='dh:discovery', args='#42')):

  1. Load item context before doing anything else:
<sam_cli/> backlog view --selector "#N"

Note: the CLI's backlog view has no summary/include_content parameter — it always returns the flat, full item content, which is the CLI equivalent of the MCP call's summary=false above.

  1. Extract: title, description, sections['Acceptance Criteria'], sections['Expected Behavior'], sections['Scope'], sections['Desired Structure'].
  2. Triage for HOW content (runs regardless of whether Step 2 is skipped):
    • Scan the loaded content for implementation proposals, design decisions, solution descriptions, named mechanisms, parameter names, API shapes, or data formats.
    • Any such content is a design question. Extract each one as a question signal (e.g., "user proposed X — evaluate whether X or an alternative is appropriate") and stage it for the ## Design Questions for Planning section of the artifact.
    • Do not carry HOW content into Requirements or Problem Statement.
  3. Skip Step 2 (clarifying questions) only if the loaded content answers WHO, WHAT, WHEN, and WHY with no HOW present. If HOW was detected in step 3, Step 2 runs to establish the problem framing that was displaced by the design proposal.
  4. Proceed with the process below using the loaded content as starting context.

Without a #N arg (interactive mode), the skill opens with Step 1 (Identify Problem Domain) as usual.

When to Use

  • Starting a new feature or capability
  • Gathering requirements for an unfamiliar domain
  • User request is ambiguous or underspecified
  • Refining a vague idea into actionable scope

Process

flowchart TD
    Start([User request or problem statement]) --> P1[1. Identify problem domain]
    P1 --> P2[2. Ask clarifying questions]
    P2 --> P3{All questions resolved?}
    P3 -->|No| P2
    P3 -->|Yes| P4[3. Gather references and examples]
    P4 --> P5[4. Document NFRs]
    P5 --> P6[5. Capture goals and anti-goals]
    P6 --> P7[6. Draft ARTIFACT:DISCOVERY]
    P7 --> AutoMode{AUTO_MODE<br>active?}
    AutoMode -->|Yes — treat as confirmed| Done([ARTIFACT:DISCOVERY complete])
    AutoMode -->|No — interactive| Gate{User confirms discovery captures intent?}
    Gate -->|Yes| Done
    Gate -->|No| P2
    Gate -->|Escalation needed| Escalate([Human touchpoint — unbound constraints or domain knowledge gap])

Step 1 — Identify Problem Domain

  • What area of the system does this affect?
  • What user-visible behavior changes?
  • What existing capabilities are related?

Step 2 — Ask Clarifying Questions

Frame questions around WHO, WHAT, WHEN, WHY:

  • WHO — who are the users or consumers?
  • WHAT — what observable outcome is expected?
  • WHEN — what triggers the behavior; what are timing constraints?
  • WHY — what problem does this solve; what is the motivation?

Never ask HOW. Implementation decisions belong to Stage 2 (Planning).

Step 3 — Gather References

  • Existing code, APIs, or patterns the user expects to follow
  • External documentation, specifications, or standards
  • Examples of desired behavior (screenshots, logs, expected outputs)

Step 4 — Document Non-Functional Requirements

  • Performance constraints (latency, throughput, resource limits)
  • Security requirements (authentication, authorization, data handling)
  • Compatibility constraints (platforms, versions, environments)
  • Reliability expectations (error handling, degradation, recovery)

Step 5 — Capture Goals and Anti-Goals

  • Goals — what MUST be true when the feature is complete
  • Anti-goals — what is explicitly OUT OF SCOPE (prevents scope creep)

Input

User request, problem statement, or feature description in any format.

Output

Artifact registered via MCP:

artifact_register(
    item_id={issue},
    artifact_type="feature-context",
    artifact_id="plan/feature-context-{slug}.md",
    agent="discovery",
    content="{full DISCOVERY markdown below}"
)

The content parameter contains the full discovery document using this template:

# ARTIFACT:DISCOVERY

## Feature

<one-line feature name>

## Problem Statement

<what problem this solves and why it matters>

## Goals

1. <what MUST be true when complete>
2. <...>

## Anti-Goals

1. <what is explicitly out of scope>
2. <...>

## Requirements

### Functional

1. <observable behavior requirement — what the system does, not how it is built>
2. <...>

### Non-Functional

1. <performance, security, compatibility, reliability>
2. <...>

## Design Questions for Planning

<!-- Route user-supplied design proposals here, not to Requirements.
     Each entry is a signal for the architect's research phase, not a commitment. -->

1. <user proposed X — evaluate whether X or an alternative is appropriate>
2. <...>

## References

- <links, files, specs, examples>

## Resolved Questions

| Question | Answer | Source |
|----------|--------|--------|
| <question asked during discovery> | <answer> | <user / doc / observation> |

## Open Questions

- <genuine blockers requiring human decision before planning can proceed>
- <not design decisions — those go in Design Questions for Planning>

## User Confirmation

- [ ] User confirms this document captures their intent

Human Touchpoint Gate

After drafting the discovery document, evaluate whether escalation is needed:

flowchart TD
    Draft([DISCOVERY draft complete]) --> QDQ{Design questions<br>in artifact?}
    QDQ -->|Yes — route to planning research| PlanRoute[Design Questions section populated<br>No human escalation needed]
    QDQ -->|No| Q1{Unbound constraints?}
    PlanRoute --> Q1
    Q1 -->|Yes| Escalate[Present to user — cannot proceed without bounds]
    Q1 -->|No| Q2{Domain knowledge gap?}
    Q2 -->|Yes| Escalate
    Q2 -->|No| Q3{Contradictory requirements?}
    Q3 -->|Yes| Escalate
    Q3 -->|No| AutoCheck{AUTO_MODE<br>active?}
    AutoCheck -->|Yes — treat as confirmed| Done([Proceed to Stage 2])
    AutoCheck -->|No| Confirm[Request user confirmation]
    Confirm --> Done
    Escalate --> Resolve[User resolves — update DISCOVERY]
    Resolve --> Q1

Escalation triggers (human decision required):

  • Unbound constraints — no clear scope boundary for a requirement
  • Domain knowledge — insufficient understanding to assess feasibility
  • Contradictory requirements — two requirements conflict

Design questions (route to planning research, NOT human escalation):

  • User-supplied design proposals (flag names, parameter shapes, API design, implementation approaches)
  • Recognized architectural trade-offs with multiple valid options
  • Any HOW content extracted from input during triage

Success Criteria

  • User confirms the discovery document captures their intent
  • All critical questions are resolved (Open Questions contains only non-blocking items)
  • Goals and anti-goals are specific enough to verify in Stage 7
  • No implementation decisions leak into the discovery (no HOW)
  • NFRs are measurable, not vague ("fast" is not a requirement; "<200ms p95" is)

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Add automated documentation updater to any Claude skill. Creates a Python sync script that downloads upstream docs, processes markdown for AI consumption, and maintains local cache with configurable refresh. Collects template variables, then delegates implementation through 5-phase workflow. Use when adding auto-updating reference documentation to plugins or skills.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

SAM-style feature initiation workflow — discovery through codebase analysis, architecture spec, task decomposition, validation, and context manifest. Use when a user asks to add a feature, plan a feature, or convert an idea into an executable SAM plan.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Browser automation for AI agents using the agent-browser CLI and Playwright. Use when navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, logging into sites, or automating any browser task. Triggers on "open a website", "fill out a form", "click a button", "scrape data", "test this web app", "automate browser actions", or any programmatic web interaction request.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Runs the description-drift experiment — spawns all Claude Code agents simultaneously to collect self-reported capabilities, then compares them against static frontmatter descriptions to reveal how reliable orchestrator routing based on descriptions actually is. Use when measuring description drift across the agent fleet, re-running the capability collection experiment, analyzing a specific agent's self-reported capabilities, or auditing whether frontmatter descriptions accurately reflect agent behavior.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Create or adapt Claude Code agent definitions. Use when creating an agent, changing subagent configuration, selecting agent scope, or designing a specialized delegation role.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Jamie-BitFlight의 스킬 모두 보기

이 스킬의 문제 신고