Skip to content
verify-requirements-complete logo

Verify Requirements Complete Skill

verify-requirements-complete

Verify all stakeholder requirement reports exist and are valid before synthesis

SKILL.md

Full skill instructions

Verify Requirements Complete Skill

Purpose: Validate that all 3 stakeholder requirement reports (architect, tester, formatter) exist and are valid before proceeding to SYNTHESIS phase.

Performance: Prevents synthesis errors, ensures complete requirements gathered

When to Use This Skill

✅ Use verify-requirements-complete When:

  • All stakeholder agents reported completion
  • Before transitioning to SYNTHESIS phase
  • Before invoking synthesize-plan skill
  • Want to ensure requirements phase complete

❌ Do NOT Use When:

  • Agents still working in REQUIREMENTS phase
  • Already in SYNTHESIS phase
  • Requirements already verified
  • Task not in REQUIREMENTS phase

What This Skill Does

1. Checks Report Files Exist

# Verifies all 3 files present:
/​workspace/​tasks/​{task}/​{task}-architect-requirements.md
/​workspace/​tasks/​{task}/​{task}-tester-requirements.md
/​workspace/​tasks/​{task}/​{task}-formatter-requirements.md

2. Validates Report Content

# For each report:
- Non-empty content
- Contains required sections
- Proper markdown format
- Actual analysis (not placeholder)

3. Checks Agent Status

# Verifies agent status.json files:
- All agents show "completed" status
- No agents in "failed" state
- Timestamps reasonable

4. Reports Results

# Clear output:
✅ architect-requirements.md: Valid (2,345 bytes, 5 sections)
✅ tester-requirements.md: Valid (1,867 bytes, 4 sections)
✅ formatter-requirements.md: Valid (1,234 bytes, 3 sections)

All requirements complete. Ready for SYNTHESIS.

Usage

Basic Verification

# Check if requirements complete
TASK_NAME="implement-formatter-api"

/​workspace/​main/​.claude/​scripts/​verify-requirements-complete.sh \
  --task "$TASK_NAME"

With Detailed Output

# Get detailed validation results
TASK_NAME="implement-formatter-api"

/​workspace/​main/​.claude/​scripts/​verify-requirements-complete.sh \
  --task "$TASK_NAME" \
  --verbose true

Validation Checks

File Existence Check

# All 3 reports must exist:
- architect-requirements.md
- tester-requirements.md
- formatter-requirements.md

# If any missing:
❌ FAILED: Missing reports: tester-requirements.md

Content Validation

Non-Empty:

# File must have content (>100 bytes minimum)
if [ $(wc -c < report.md) -lt 100 ]; then
  echo "❌ Report too small (likely placeholder)"
fi

Required Sections (Architecture):

# Must contain:
- ## Dependencies / Integration Points
- ## Design Patterns / Architecture
- ## API Design (if applicable)

Required Sections (Tester):

# Must contain:
- ## Test Coverage
- ## Test Strategy
- ## Edge Cases

Required Sections (Formatter):

# Must contain:
- ## Documentation Requirements
- ## Code Style Standards

Agent Status Check

# Check status.json for each agent
STATUS=$(jq -r '.status' agents/​{agent}/​status.json)

# Valid statuses:
✅ "completed" - Agent finished successfully
❌ "failed" - Agent encountered errors
❌ "in_progress" - Agent still working
❌ "not_started" - Agent never invoked

Workflow Integration

Pre-Synthesis Validation

REQUIREMENTS phase: Agents working
  ↓
All agents report completion
  ↓
[verify-requirements-complete skill] ← THIS SKILL
  ↓
Check all reports exist
  ↓
Validate report content
  ↓
Check agent status
  ↓
If ALL PASS:
  ✅ Ready for SYNTHESIS
  → Invoke synthesize-plan skill

If ANY FAIL:
  ❌ Not ready for SYNTHESIS
  → Fix missing/​invalid reports
  → Re-invoke failed agents

Output Format

Script returns JSON:

{
  "status": "success",
  "message": "All requirements complete and valid",
  "task_name": "implement-formatter-api",
  "reports": {
    "architect": {
      "exists": true,
      "valid": true,
      "size_bytes": 2345,
      "sections": 5
    },
    "tester": {
      "exists": true,
      "valid": true,
      "size_bytes": 1867,
      "sections": 4
    },
    "formatter": {
      "exists": true,
      "valid": true,
      "size_bytes": 1234,
      "sections": 3
    }
  },
  "agent_status": {
    "architect": "completed",
    "tester": "completed",
    "formatter": "completed"
  },
  "ready_for_synthesis": true,
  "timestamp": "2025-11-11T12:34:56-05:00"
}

Or if validation fails:

{
  "status": "failed",
  "message": "Requirements incomplete",
  "task_name": "implement-formatter-api",
  "missing_reports": ["tester-requirements.md"],
  "invalid_reports": [],
  "failed_agents": ["tester"],
  "ready_for_synthesis": false,
  "errors": [
    "tester-requirements.md does not exist",
    "tester agent status: failed"
  ],
  "timestamp": "2025-11-11T12:34:56-05:00"
}

Common Failure Scenarios

Scenario 1: Missing Report

❌ tester-requirements.md not found

Cause: Agent failed to create output file
Fix: Re-invoke tester agent with explicit output path

Scenario 2: Empty Report

❌ formatter-requirements.md is empty (0 bytes)

Cause: Agent created file but wrote no content
Fix: Re-invoke formatter agent, check for errors

Scenario 3: Placeholder Content

❌ architect-requirements.md contains placeholder

Content: "TODO: Add requirements here"

Cause: Agent didn't complete analysis
Fix: Re-invoke architect agent with clear requirements

Scenario 4: Agent Failed

❌ tester agent status: failed

Cause: Agent encountered error during execution
Fix: Check agent error log, fix issue, re-invoke

Scenario 5: Missing Sections

❌ tester-requirements.md missing required sections

Missing: "Edge Cases" section

Cause: Agent provided incomplete analysis
Fix: Re-invoke with emphasis on complete sections

Recovery Actions

Missing Report

# Re-invoke missing agent
AGENT="tester"
TASK="implement-formatter-api"

# Invoke via Task tool with output requirement
Task tool: tester
  prompt: "Write requirements to /​workspace/​tasks/​$TASK/​$TASK-tester-requirements.md"

Invalid Content

# Re-invoke agent with stronger requirements
Task tool: architect
  prompt: "CRITICAL: Write complete analysis to requirements file.
  Must include all sections: Dependencies, Design Patterns, API Design.
  File must be >500 bytes with actual content."

Failed Agent

# Check error logs
cat /​workspace/​tasks/​{task}/​agents/​{agent}/​error.log

# Fix underlying issue (missing dependencies, etc.)
# Re-invoke agent

Safety Features

Precondition Validation

  • ✅ Verifies task exists
  • ✅ Checks task in REQUIREMENTS phase
  • ✅ Confirms task directory accessible

Comprehensive Checks

  • ✅ File existence for all 3 reports
  • ✅ Content validation (non-empty, sections)
  • ✅ Agent status verification
  • ✅ Format validation (markdown)

Clear Error Reporting

  • ✅ Lists specific missing reports
  • ✅ Identifies invalid reports
  • ✅ Reports failed agents
  • ✅ Provides recovery actions

Related Skills

  • gather-requirements: Creates reports that this skill verifies
  • synthesize-plan: Consumes verified reports
  • state-transition: May use this for REQUIREMENTS → SYNTHESIS validation

Troubleshooting

False Positive: Report Valid But Flagged

# Report exists but validation incorrectly fails
# Possible causes:
1. Different file naming (check exact filename)
2. Report in wrong directory (check path)
3. Validation regex too strict (adjust)

# Manual verification:
ls -la /​workspace/​tasks/​{task}/​*-requirements.md
cat /​workspace/​tasks/​{task}/​{task}-architect-requirements.md

Agent Completed But No Report

# Agent status shows "completed" but file missing
# Possible causes:
1. Agent wrote to wrong path
2. Agent didn't include Write tool call
3. File permissions issue

# Find where agent wrote:
find /​workspace/​tasks/​{task} -name "*requirements*"

# If found in wrong location, move it:
mv {wrong-path} {correct-path}

Report Exists But Content Invalid

# File exists but doesn't pass validation
# Check:
1. File size: wc -c {report}
2. Sections present: grep "^##" {report}
3. Actual content: head -50 {report}

# If truly invalid, re-invoke agent

Validation Criteria Summary

Architect Requirements

✅ VALID:

  • File exists at correct path
  • Size > 500 bytes
  • Contains sections: Dependencies, Design Patterns, API Design
  • Agent status: completed

❌ INVALID:

  • File missing or empty
  • Placeholder content only
  • Missing required sections
  • Agent status: failed or in_progress

Tester Requirements

✅ VALID:

  • File exists at correct path
  • Size > 400 bytes
  • Contains sections: Test Coverage, Test Strategy, Edge Cases
  • Agent status: completed

❌ INVALID:

  • File missing or empty
  • Generic content (not task-specific)
  • Missing test strategy
  • Agent status: failed or in_progress

Formatter Requirements

✅ VALID:

  • File exists at correct path
  • Size > 300 bytes
  • Contains sections: Documentation Requirements, Code Style
  • Agent status: completed

❌ INVALID:

  • File missing or empty
  • Just references to style-guide.md (no task specifics)
  • Missing documentation requirements
  • Agent status: failed or in_progress

Implementation Notes

The verify-requirements-complete script performs:

  1. Precondition Phase

    • Check task exists
    • Verify task directory accessible
    • Confirm task in REQUIREMENTS phase
  2. File Check Phase

    • Look for all 3 report files
    • Check file existence
    • Verify file readable
  3. Content Validation Phase

    • Check file size (not empty/​placeholder)
    • Validate markdown structure
    • Check for required sections
    • Verify actual content present
  4. Agent Status Phase

    • Read agent status.json files
    • Check completion status
    • Verify no failures
    • Validate timestamps
  5. Aggregation Phase

    • Combine all validation results
    • Determine overall status
    • List specific failures
    • Provide recovery actions
  6. Reporting Phase

    • Return JSON with detailed results
    • Report ready_for_synthesis boolean
    • List missing/​invalid reports
    • Provide next steps

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
A
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View