Search AI Tools

Agent skill

gathering-requirements

Use when eliciting or clarifying feature requirements, defining scope, identifying constraints, or capturing user needs. Triggers: 'what are the requirements', 'define the requirements', 'scope this feature', 'user stories', 'acceptance criteria', 'what should this do', 'what problem are we solving', 'what are the constraints'. Also invoked by develop during discovery.

Stars 5
Forks 2

Install this agent skill to your Project

npx add-skill https://github.com/axiomantic/spellbook/tree/main/skills/gathering-requirements

SKILL.md

Requirements Gathering

Reasoning Schema

Before elicitation: feature being defined, user inputs available, context from project, known constraints.

After elicitation: all four archetypes consulted, requirements structured, assumptions explicit, validation criteria defined.

Invariant Principles

  1. Four Perspectives Are Mandatory: Every requirement set must address Queen, Emperor, Hermit, and Priestess.
  2. Ambiguity Is Debt: Vague requirements become bugs. Demand specificity.
  3. Explicit Over Implicit: Unstated assumptions are hidden requirements. Surface them.
  4. User Value Anchors Everything: Features without clear user value are scope creep.
  5. Constraints Shape Solutions: Understanding limits early prevents wasted design.

Inputs / Outputs

Input Required Description
feature_description Yes Natural language description of what to build
feedback_to_address No Feedback from roundtable requiring revision
Output Type Description
requirements_document File At ~/.local/spellbook/docs/<project>/forged/<feature>/requirements.md
open_questions Inline Questions requiring user input

The Four Perspectives

Queen: User Needs

Primary users, problem being solved, success criteria. User stories: "As a [type], I want [capability] so that [benefit]."

Emperor: Constraints

Technical constraints (stack, platform), resource constraints (time, team), integration requirements, performance targets (latency, throughput).

Hermit: Security Surface

Sensitive data handled, auth required, attack vectors, compliance requirements, impact if compromised.

Priestess: Scope Boundaries

What's IN scope, what's OUT of scope (with reasons), edge cases to handle vs defer, assumptions being made.

Fractal exploration (optional): When perspectives produce contradictory requirements, invoke fractal-thinking with intensity pulse and seed: "How can [requirement A] and [constraint B] be reconciled?". Use the synthesis to present Pareto-optimal resolution options.

Elicitation Process

  1. Initial Extraction: Parse description for explicit requirements, implicit requirements, constraints, unknowns.
  2. Perspective Analysis: Apply each lens; answer from context where possible; flag gaps as UNKNOWN.
  3. Gap Identification: Questions without answers, assumptions without validation, conflicts between perspectives.
  4. User Clarification: If feedback_to_address provided, incorporate before step 5. For blocking unknowns: ask user (one question at a time). For non-blocking unknowns: document as UNKNOWN for roundtable.
  5. Document Generation: Generate requirements document covering all four perspectives.

Requirements Document Structure

markdown
# Requirements: [Feature Name]

## Overview
[2-3 sentence summary]

## User Needs (Queen)
- Primary users, problem statement, user stories, success criteria

## Constraints (Emperor)
- Technical, resource, integration, performance

## Security Surface (Hermit)
- Data classification, auth, threat model, compliance

## Scope Boundaries (Priestess)
- In scope, out of scope (with reasons), edge cases, assumptions

## Functional Requirements
| ID | Requirement | Priority | Source |

## Open Questions
- [ ] [Question] (Blocker: yes/no)

Example

Queen (User Needs):

  • Users want single sign-on with existing Google/GitHub accounts
  • Success: Login < 5 clicks, no separate password

Emperor (Constraints):

  • Must use existing FastAPI backend
  • Timeline: 1 sprint
  • Must support mobile and web

Hermit (Security):

  • Handles: email, profile (PII)
  • Auth: OAuth 2.0 with PKCE
  • Threats: Token theft → short expiry + refresh rotation

Priestess (Scope):

  • IN: Google, GitHub OAuth
  • OUT: Apple Sign-in (future), password fallback (intentional)
  • Assumption: Users have Google/GitHub accounts

Quality Gates

Check Criteria
User value clear At least 1 user story with measurable benefit
Constraints documented Technical and resource constraints explicit
Security addressed Threat model for sensitive features
Scope bounded In-scope AND out-of-scope lists
No blocking unknowns All blocking UNKNOWNs resolved or escalated to user

Self-Check

  • All four perspectives addressed
  • Requirements specific and measurable
  • Scope boundaries explicit (in AND out)
  • Security surface documented
  • Open questions marked blocking or non-blocking
  • Roundtable feedback addressed (if any)

If ANY unchecked: revise before returning.

<FINAL_EMPHASIS> Requirements are the foundation. Queen ensures we build what users need. Emperor ensures we build within constraints. Hermit ensures we build securely. Priestess ensures we build the right scope. All four perspectives, every time. </FINAL_EMPHASIS>

Expand your agent's capabilities with these related and highly-rated skills.

davila7/claude-code-templates

verl-rl-training

Provides guidance for training LLMs with reinforcement learning using verl (Volcano Engine RL). Use when implementing RLHF, GRPO, PPO, or other RL algorithms for LLM post-training at scale with flexible infrastructure backends.

23,776 2,298
Explore
davila7/claude-code-templates

plotly

Interactive scientific and statistical data visualization library for Python. Use when creating charts, plots, or visualizations including scatter plots, line charts, bar charts, heatmaps, 3D plots, geographic maps, statistical distributions, financial charts, and dashboards. Supports both quick visualizations (Plotly Express) and fine-grained customization (graph objects). Outputs interactive HTML or static images (PNG, PDF, SVG).

23,776 2,298
Explore
sickn33/antigravity-awesome-skills

sales-enablement

Create sales collateral such as decks, one-pagers, objection docs, demo scripts, playbooks, and proposal templates. Use when a sales team needs assets that help reps move deals forward and close.

28,421 4,766
Explore
sickn33/antigravity-awesome-skills

jq

Expert jq usage for JSON querying, filtering, transformation, and pipeline integration. Practical patterns for real shell workflows.

28,421 4,766
Explore
sickn33/antigravity-awesome-skills

design-spells

28,421 4,766
Explore
sickn33/antigravity-awesome-skills

ai-analyzer

AI驱动的综合健康分析系统,整合多维度健康数据、识别异常模式、预测健康风险、提供个性化建议。支持智能问答和AI健康报告生成。

28,421 4,766
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results