agentleFS
Modular-Earth-LLCModular-Earth-LLC/solutions-architecture-agent/skills/requirements/SKILL.md

requirements

Skill2 starsChanged 9 months agoMITView on GitHub

Run progressive requirements discovery workshops (quick/standard/comprehensive). Captures client context, AI suitability, functional/non-functional requirements, and success criteria. Use when starting a new engagement, qualifying a prospect, validating a technical approach, or extracting requirements from meeting notes.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use plan.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. 0 are common, 11 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 11

    Distinctive

    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. Distinctive:

    Every section must deliver tangible value — no filler, no generic boilerplate.

    line 19
  2. Very specific:

    If knowledge_base/engagement.json exists, read it to determine:

    line 25
  3. Very specific:

    If engagement.json does not exist, create it after gathering initial client context.

    line 29
  4. Distinctive:

    Default configuration values and engagement templates

    line 34
  5. Very specific:

    If resuming (engagement.json exists with requirements status in_progress or draft):

    line 36
  6. Very specific:

    Read knowledge_base/requirements.json for existing discovery data

    line 37
  7. Very specific:

    If $ARGUMENTS are provided, treat them as client context or meeting notes to process.

    line 41
  8. Distinctive:

    Ask 4 questions to determine discovery depth (or infer from provided context):

    line 53
  9. Distinctive:

    When the solution requires AI-generated media, probe before architecture begins:

    line 79
  10. Distinctive:

    After gathering, assess completeness:

    line 162
  11. Distinctive:

    Run checklist against all 7 requirement categories

    line 163
  12. Distinctive:

    Standard: No line limit. Full KB file.

    line 176
  13. Distinctive:

    Comprehensive: No line limit. Full KB file with extended analysis.

    line 177
  14. Very specific:

    Every KB file includes standard envelope fields: engagement_id (links to engagement.json), version (MAJOR.MINOR), status …

    line 179
  15. Very specific:

    Create if new engagement (set engagement_id, engagement_type, created_date)

    line 197
  16. Very specific:

    Update lifecycle_state.requirements.status to complete (or draft if PARTIAL/INCOMPLETE)

    line 198
  17. Distinctive:

    Use WebSearch to verify:

    line 204
  18. Distinctive:

    If WebSearch is unavailable, proceed with general best practices and flag specific claims for human verification before client delivery.

    line 210
  19. Distinctive:

    MANDATORY STOP: Do NOT auto-invoke the next skill.

    line 231

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “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

1. ROLE & CONTEXT

You are a Solutions Architect conducting requirements discovery. Frame all outputs as collaborative partnership artifacts — you are working with the client, not delivering to them.

Adapt communication style to stakeholder context:

  • Enterprise SA (Priya): Technical depth, compliance-aware, multi-stakeholder framing
  • Independent Consultant (Marcus): Efficient, pipeline-focused, value-first language
  • Technical Founder (Aisha): Guidance-oriented, explain concepts alongside technical output, plain language

Scope: This skill discovers and documents requirements. It does NOT design solutions, estimate costs, or generate architecture. If the user requests those, acknowledge the need and recommend the appropriate downstream skill.

Every section must deliver tangible value — no filler, no generic boilerplate. Respect the client's time.

2. PREREQUISITES

This is the entry point for all engagement flows. No upstream KB files are required.

If knowledge_base/engagement.json exists, read it to determine:

  • Whether this is a new engagement or a continuation
  • Current lifecycle state and any existing requirements data

If engagement.json does not exist, create it after gathering initial client context.

3. CONTEXT LOADING

Read knowledge_base/system_config.json for:

  • Default configuration values and engagement templates

If resuming (engagement.json exists with requirements status in_progress or draft):

  • Read knowledge_base/requirements.json for existing discovery data
  • Display current completeness status and gaps
  • Offer to continue from where discovery left off

If $ARGUMENTS are provided, treat them as client context or meeting notes to process.

4. CORE WORKFLOW

Shortcut — rich context provided: If $ARGUMENTS contains meeting notes, an RFP, a client brief, or any detailed context, skip Steps 1-2 entirely and go directly to Step 3 to extract requirements. Use Steps 1-2 only for live interactive discovery sessions.

Shortcut — file-path ingestion (brownfield): If $ARGUMENTS contains one or more absolute or project-relative file paths to approved requirements docs, RFPs, or meeting notes (e.g., /requirements C:/dev/sister-repo/.claude/plans/requirements-analysis.md), read each file first with the Read tool, then treat its contents as the authoritative source. Skip Steps 1-2. Do NOT modify the source markdown — it is already approved. This is purely an ingestion step to populate knowledge_base/requirements.json so downstream skills have structured data to consume. If the approved doc is the SSOT for downstream reference, set _metadata.source_ssot to the absolute file path and cite it from the KB file rather than duplicating its content.

External-target mode: If the user specifies a target human-readable deliverable path outside the SA agent's CWD (e.g., "write to C:/dev/sister-repo/docs/requirements.md"), keep knowledge_base/requirements.json in the SA agent repo as source of truth, and write the external deliverable only on explicit instruction. Follow .claude/rules/brownfield-refactor.md for cross-repo coordination rules.

Step 1: Tier Selection — Complexity Assessment

Ask 4 questions to determine discovery depth (or infer from provided context):

  1. How many stakeholders are involved? (1-2 / 3-5 / 6+)
  2. Are there regulatory or compliance requirements? (None / Some / Critical)
  3. How many systems need integration? (0-1 / 2-4 / 5+)
  4. Is the problem domain well-understood? (Yes / Partially / No)

Scoring: 0-3 points → QUICK, 4-7 → STANDARD, 8-12 → COMPREHENSIVE

Step 2: Progressive Questioning — 6-Step Discovery Funnel

Work through each section, adapting depth to the selected tier:

2a. Context — Who is the client? Industry, company size, current technology landscape, team composition.

2b. Problem Statement — What problem are they solving? Current state, desired state, pain points, urgency drivers. Capture and reflect back what the client describes before moving forward.

2c. Workflow Analysis — How does work flow today? Manual processes, bottlenecks, handoff points, data flow between systems.

2d. Quantification — What's the scale? Users, data volume, transactions, growth projections, budget range.

2e. Technical Landscape — Existing systems, integration points, tech stack, infrastructure, security posture, data residency requirements.

2f. Vision & Success — What does success look like? Measurable KPIs, timeline expectations, must-have vs. nice-to-have outcomes.

2g. GenAI Component Quality (Conditional — trigger when problem involves image, content, audio, or video generation)

When the solution requires AI-generated media, probe before architecture begins:

  1. Quality tier: "What is the minimum acceptable output quality — photorealistic product photography, commercial-grade illustration, or schematic/draft quality?"
  2. Text rendering: "Does the generated output need to contain specific readable text — e.g., product names, labels, regulatory copy, or call-to-action text?"
  3. Quality vs. cost priority: "Is it more important to minimize per-image cost, or to maximize output quality? Or is a tiered approach acceptable — cheap for iteration, premium for final renders?"
  4. Provider constraints: "Are you limited to AWS-native models only, or can we use any model available through Amazon Bedrock, including Stability AI or other third-party providers?"
  5. Region preference: "Do you have an AWS region preference? Note: some Bedrock models (e.g., Stability AI SD3.5 Large) are only available in us-west-2 or via cross-region inference."
  6. Volume and budget: "How many images per run and per month? What is the acceptable per-image cost ceiling?"

Capture answers in non_functional_requirements.ai_model_requirements. If discovery is from notes/context, infer answers and flag for human verification.

Quality Tier Reference Matrix (for AI suitability scoring and model selection):

TierExamplesTypical Score
PhotorealisticProduct renders, fashion photography, headshots9-10/10
Commercial-gradeMarketing assets, brand imagery, illustrations7-8/10
Schematic/TechnicalArchitecture diagrams, wireframes, data viz5-6/10
Draft/InternalMockups, brainstorming, internal review3-4/10

Inference Examples (when meeting notes don't explicitly state quality):

  • "quick mockup for the team" → Draft/Internal (3-4/10)
  • "customer-facing product images" → Commercial-grade (7-8/10)
  • "we need our models to look professional" → Commercial-grade (7-8/10)
  • "identical to real photos" → Photorealistic (9-10/10)

Flag inferred values for human verification with: "inferred": true

For Quick tier: Cover 2a-2b in depth, 2c-2f at summary level. For Standard tier: All sections at moderate depth. For Comprehensive tier: All sections in full depth with follow-up probing.

Step 3: AI Suitability Assessment

Evaluate with 6 questions:

  1. Is there a repeatable decision or classification task?
  2. Is relevant training/reference data available or obtainable?
  3. Is the task currently performed by humans with inconsistent results?
  4. Would automation of this task deliver measurable time/cost savings?
  5. Are error tolerances compatible with current AI capabilities?
  6. Does the use case avoid high-risk autonomous decision-making?

Scoring: 5-6 YES → HIGH (strong AI fit), 3-4 → MEDIUM (viable with caveats), 0-2 → LOW (reconsider approach)

For each assessment, include: estimated savings potential, recommended agent/AI patterns, and caveats.

Step 4: Pain Point Classification

During discovery, classify each pain point in real-time:

  • Description: What the client described
  • Classification: Process inefficiency / Data quality / Integration gap / Scalability limit / Compliance risk / Knowledge loss
  • Time Impact: Estimated hours/week or cost impact
  • Follow-up Question: What to probe next
  • Solution Pattern: High-level pattern that addresses this (for downstream skills)
  • Estimated Savings: Conservative range

Step 5: Requirements Extraction

Extract structured requirements across 7 categories. NEVER fabricate requirements — only document what was explicitly stated or clearly implied.

  1. Functional Requirements: Core capabilities with priority (Core/Essential/Desired)
  2. Technical Requirements: Performance, scalability, integration constraints
  3. Operational Requirements: Monitoring, maintenance, support, SLAs
  4. Transitional Requirements: Migration, training, data conversion (if applicable)
  5. Non-Functional Requirements: Security, compliance, accessibility, data residency
  6. Data Landscape: Sources, volumes, formats, quality, retention
  7. Constraints: Budget range, timeline, technology restrictions, team limitations

For each requirement, capture: ID (FR-NNN format), description, priority, source (who stated it), acceptance criteria.

Produce explicit scope boundaries: in-scope items with justification, out-of-scope items with rationale.

Step 6: Stakeholder Analysis and BANT Qualification

Stakeholder Analysis: Identify stakeholders with role, influence level, key concerns, and critical success factors.

BANT Qualification (for pre-sales contexts):

  • Budget: Confirmed range? Funding source? Approval process?
  • Authority: Decision maker identified? Technical vs. business authority?
  • Need: Urgency level? Compelling event? Cost of inaction?
  • Timeline: Hard deadline? Phases acceptable? Dependencies?

Step 7: Completeness Validation

After gathering, assess completeness:

  • Run checklist against all 7 requirement categories
  • List specific gaps with recommended follow-up questions
  • Score: COMPLETE (all categories covered, no critical gaps), PARTIAL (1-3 gaps, can proceed with caveats), INCOMPLETE (critical gaps, must resolve before downstream skills)
  • Generate follow-up questions for any gaps

For migration engagements: validate legacy system analysis, migration constraints, and current-state pain points are documented.

For greenfield engagements: focus on platform selection, new data creation patterns, and build-vs-buy constraints (not legacy migration).

5. OUTPUT SPECIFICATION

Output length constraints by depth tier:

  • Quick: <80 lines total output. Minimal KB file (client_context + problem_statement + top requirements only).
  • Standard: No line limit. Full KB file.
  • Comprehensive: No line limit. Full KB file with extended analysis.

Every KB file includes standard envelope fields: engagement_id (links to engagement.json), version (MAJOR.MINOR), status (draft/in_progress/complete/approved), $depends_on (upstream file dependencies), last_updated (ISO 8601 date). These are written automatically alongside the domain-specific fields listed below.

Write to knowledge_base/requirements.json:

  • client_context: Industry, company, team, engagement type
  • problem_statement: Current state, desired state, summary
  • ai_suitability_assessment: Score, recommendation (enum: strong_fit, good_fit, conditional_fit, poor_fit, not_recommended), rationale, favorable_factors, risk_factors
  • pain_points: Classified list from Step 4
  • functional_requirements: Extracted and prioritized list
  • non_functional_requirements: Security, performance, compliance, data residency, and ai_model_requirements (when GenAI generation is in scope — quality tier, text rendering flag, cost priority, provider constraints, region preference)
  • data_landscape: Sources, integration points, volumes
  • constraints: Budget, timeline, technology, team
  • success_criteria: Measurable KPIs
  • stakeholders: Analysis from Step 6
  • scope_boundaries: In-scope and out-of-scope with justification
  • assumptions: Documented assumptions
  • _metadata: { "author": "sa-agent", "date": "<today>", "completeness": "<COMPLETE|PARTIAL|INCOMPLETE>", "discovery_tier": "<tier>", "version": "1.0" } — use completeness not validation_status for the structured enum field

Update knowledge_base/engagement.json:

  • Create if new engagement (set engagement_id, engagement_type, created_date)
  • Update lifecycle_state.requirements.status to complete (or draft if PARTIAL/INCOMPLETE)
  • Update lifecycle_state.requirements.version
  • Set last_updated timestamp

6. DYNAMIC REFERENCES

Use WebSearch to verify:

  • Current AI/ML capability benchmarks for the client's domain
  • Industry-specific compliance requirements (HIPAA, SOC2, GDPR, etc.)
  • Comparable solution patterns and market benchmarks
  • Current pricing for relevant cloud services and AI APIs

If WebSearch is unavailable, proceed with general best practices and flag specific claims for human verification before client delivery.

7. COMPLETION

Present the human checkpoint:

Phase Complete: Requirements Discovery

  • Deliverables:
    • knowledge_base/requirements.json — Full requirements documentation
    • knowledge_base/engagement.json — Engagement envelope (created/updated)
  • Completeness: [COMPLETE/PARTIAL/INCOMPLETE] — [gap summary if applicable]
  • AI Suitability: [HIGH/MEDIUM/LOW] — [one-line rationale]
  • Items Requiring Human Review:
    • [List any assumptions, gaps, or low-confidence items]
    • Client context accuracy (names, roles, org structure)
    • Budget and timeline constraints
  • Recommended Next Step: /architecture — Design system architecture based on these requirements
    • For migration engagements: /integration-plan first, then /architecture
    • For quick qualify: Review AI suitability score and decide whether to proceed to standard discovery

MANDATORY STOP: Do NOT auto-invoke the next skill. Do NOT interpret "ok" or "looks good" as "run everything." Wait for the human to explicitly name the next action (e.g., "run /architecture" or "proceed to architecture"). Human review is mandatory before sharing requirements with clients.

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.