Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Requirements Discovery

ASecurity

Interactive requirements gathering that produces machine-executable specs for microservices. Guides conversation through structured rounds to produce a complete requirements doc where every section maps to a code artifact (SQL, Zod schemas, handlers, tests). Triggers on "new feature", "new service", "requirements", "I want to build", "let's spec out", "define requirements".

3 stars
0 votes
0 copies
0 views
Added 9/24/2026
ai-agentsgosqldockertestingapidatabaseperformance

Works with

api

Security Analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned 9/24/2026

$npx -y skills add OneDro1d/dark-factory --skill requirements-discovery --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Requirements Discovery?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Requirements Discovery
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/onedro1d-requirements-discovery/badge)](https://www.skillsdirectory.com/skills/onedro1d-requirements-discovery)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: requirements-discovery
description: Interactive requirements gathering that produces machine-executable specs for microservices. Guides conversation through structured rounds to produce a complete requirements doc where every section maps to a code artifact (SQL, Zod schemas, handlers, tests). Triggers on "new feature", "new service", "requirements", "I want to build", "let's spec out", "define requirements".
---

# Requirements Discovery

Transform a vague feature description into a precise, machine-executable requirements document. Every section of the output maps 1:1 to a code artifact.

## When to Use

- Starting a new microservice or handler
- Adding new database tables or message events
- Any feature that touches multiple services
- When someone says "I want to build [X]"

## Primary Goal

Zero ambiguity in the output. The requirements doc should be so precise that autonomous development can execute it without asking questions.

## Step 0: Load Context

Before asking any questions:
1. Read the project's CLAUDE.md for architecture patterns and conventions
2. Read `docs/service-map.md` (or equivalent) for existing services and responsibilities
3. Read `REQUIREMENTS-TEMPLATE.md` in this skill's directory for the output format
4. Understand existing EVENT_TYPES, database tables, and service boundaries

## Discovery Rounds

### Round 1: Domain & Scope

Ask ALL of these. Do NOT proceed until answered:

1. **What problem does this solve?** (1-2 sentences, business context)
2. **Who or what triggers this?** (User action / scheduled / event from another service / external webhook)
3. **What is the expected output/effect?** (Data created / event published / state changed / notification sent)
4. **Which existing service is this most similar to?** (This becomes the reference implementation)
5. **Which repository does this belong in?** (Suggest one based on the description, confirm with user)

After answers: **Summarize your understanding. Ask "Is this accurate?"**

### Round 2: Data & Integration

1. **What data does this need to READ?** (Which tables, which fields)
2. **What NEW data does this create?** (New tables? New columns?)
3. **Which existing events does it CONSUME?** (From the event catalog)
4. **What NEW events should it PUBLISH?** (Name them, describe payload structure)
5. **External API integrations?** (Remind: one integration point per external service)
6. **New database access methods needed?** (Check what already exists)

**CHALLENGE vague answers.** If someone says "it needs price data," ask: "Live price from the exchange, or cached market data, or calculated NAV?"

### Round 3: Business Rules & Edge Cases

1. **Core business rules?** (The unique logic)
2. **Failure handling for each failure mode:**
   - Database write fails → retry? skip? alert?
   - External API timeout → fallback? cached data?
   - Missing upstream data → reject? defaults? log warning?
3. **Idempotency?** (Can the handler safely process the same event twice?)
4. **Timing/scheduling?** (Cron? Interval? Which timezone?)
5. **Financial precision?** (Touches money? Rounding direction?)
6. **Concurrency?** (Multiple instances? Locking needed?)

### Round 4: Acceptance & Testing

1. **What does "done" look like?** (Observable outcomes, not "it works")
2. **Integration test scenarios** (3-5 scenarios in this format):
   ```
   TRIGGER: [what you do to start the test — emit event / call API / insert DB row]
   VERIFY:  [what you check — DB state / logs / error table / downstream event]
   EXPECT:  [specific expected values]
   ```
3. **Performance requirements?** (Latency, throughput)
4. **Environment?** (Dev first, then prod? Straight to prod?)
5. **Dependencies?** (What must exist first?)
6. **Out of scope?** (What this feature does NOT do)

## Challenge Rules

You MUST push back on vague requirements:

| Vague | Challenge With |
|-------|---------------|
| "Handle errors gracefully" | "Which errors? What recovery action for each?" |
| "Store the data" | "Which table? Columns? Who writes? Who reads?" |
| "Notify the user" | "Email/push/in-app? Template? Trigger condition?" |
| "It should be fast" | "Latency target in ms? Under what load?" |
| "Keep it secure" | "Auth method? Which middleware? Rate limiting?" |

## Output: Requirements Document

After all 4 rounds, generate the complete document. Structure:

```
## 1. Context
  - Problem statement, business value, reference implementation

## 2. Data Model
  - Exact SQL (CREATE TABLE, indexes)
  - Table ownership (who writes, who reads)
  - New database access methods (typed signatures)

## 3. Message Contracts
  - New events with Zod schemas (V1 naming)
  - Queue definitions (service.event-type pattern)
  - Event flow diagram (ASCII)
  - Existing events consumed/published

## 4. Handlers
  - For each handler:
    - Trigger (event type / cron / HTTP)
    - Input type
    - Step-by-step logic
    - Output (event published)
    - Error handling
    - Idempotency strategy

## 5. HTTP Endpoints (if any)
  - Route, method, auth, request/response schemas

## 6. Integration Test Scenarios
  - For each scenario:
    - TRIGGER: how to initiate (emit event, call API, insert row)
    - VERIFY: what to check (DB query, log search, error table)
    - EXPECT: specific expected values

## 7. Configuration
  - Environment variables
  - Runtime config entries

## 8. Deployment
  - Port, health check, Dockerfile, app spec

## 9. Definition of Done
  - Measurable checklist (not "it works")

## 10. Out of Scope
  - Explicit exclusions to prevent scope creep
```

Save to: `docs/requirements/[feature-name].md`

## Quality Checks

Before presenting:
- [ ] Every table has an owner service
- [ ] Every handler has trigger, input, output, error handling
- [ ] Test scenarios use TRIGGER/VERIFY/EXPECT format (not unit test Given/When/Then)
- [ ] No VARCHAR — all TEXT
- [ ] Events use Zod schemas with V1 naming
- [ ] Reference implementation identified
- [ ] Definition of Done has verifiable items
- [ ] Out of Scope prevents obvious creep

Attribution

OneDro1dOneDro1d
View sourceSee grades on GitHubMore from OneDro1d →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →