Compares old and new requirement documents, analyzes code repository impact, and generates detailed modification plans. Use when Claude needs to: (1) Compare requirement versions and identify changes, (2) Map requirement changes to code components, (3) Identify components to modify, delete, or add, (4) Analyze dependencies and integration points, (5) Assess test impact, (6) Generate comprehensive modification plans in Markdown format. Supports text/Markdown requirements and analyzes feature-level, functional, and API changes.
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill requirement-comparison-reporter
Generate detailed modification plans by comparing requirement documents and analyzing code impact.
Gather required inputs:
Verify inputs:
Read both requirement documents:
Compare requirements:
Identify added requirements:
Identify modified requirements:
Identify removed requirements:
Categorize changes:
See analysis-patterns.md for detailed comparison strategies.
Automated analysis:
python scripts/analyze_code_impact.py <repo_path>
Manual analysis:
Build component inventory:
For each requirement change, identify affected code:
Name-based mapping:
Comment-based mapping:
Functionality-based mapping:
Test-based mapping:
Example mapping:
Requirement: "Add user authentication"
→ Likely components:
- auth.py or authentication.py
- user.py (User class)
- login-related functions
- test_auth.py or test_authentication.py
For modified requirements:
Determine modification type:
Identify affected components:
Assess complexity:
Example:
### Modified Requirement: User login now requires 2FA
**Components to Modify:**
- `auth.py::AuthManager.login()` - Add 2FA verification step
- `user.py::User` - Add 2FA token field
- `config.py` - Add 2FA configuration
**Complexity:** Medium
For removed requirements:
Find components to delete:
Check for dependencies:
Example:
### Removed Requirement: Legacy XML export
**Components to Delete:**
- `export/xml_exporter.py` - Entire module
- `utils/xml_helpers.py` - Helper functions
**Dependent Components:**
- `export/exporter.py` - Remove XML export option
For new requirements:
Determine what needs to be created:
Recommend dependencies:
Plan integration:
Example:
### New Requirement: Email notifications
**Components to Add:**
- `notifications/email_notifier.py` - New module
- Class: EmailNotifier
- Methods: send_email(), format_template()
**Recommended Dependencies:**
- `notifications/base_notifier.py` - Base class
- `user.py` - Get user email addresses
- `templates/` - Email templates
**Integration Points:**
- Called by: event handlers in `events.py`
- Configured in: `config.py`
See analysis-patterns.md for detailed patterns.
For each code change, identify test impact:
Tests to modify:
Tests to delete:
Tests to add:
Example:
### Test Impact for User Authentication Changes
**Tests to Modify:**
- `test_auth.py::test_login()` - Add 2FA verification
- `test_user.py::test_user_creation()` - Add 2FA field
**Tests to Add:**
- `test_auth.py::test_login_with_2fa()` - New test
- `test_auth.py::test_2fa_token_validation()` - New test
Build dependency graph:
For new components:
For modified components:
For deleted components:
Create comprehensive report using template:
See report-template.md for full template.
Report structure:
1. Executive Summary
2. Requirement Changes
3. Code Impact Analysis
4. Test Impact Analysis
5. Dependency Analysis
6. Modification Plan
7. Risk Assessment
8. Recommendations
9. Appendix
Verify completeness:
Check accuracy:
Refine report:
Generate a Markdown report with the following sections:
# Requirement Comparison Report
## Executive Summary
[High-level overview of changes and impact]
## Requirement Changes
### Added Requirements
[List with impact analysis]
### Modified Requirements
[List with before/after comparison]
### Removed Requirements
[List with deletion impact]
## Code Impact Analysis
### Components to Modify
[Detailed list with reasons and complexity]
### Components to Delete
[List with dependency impact]
### Components to Add
[List with structure and dependencies]
## Test Impact Analysis
[Tests to modify, delete, and add]
## Dependency Analysis
[New, modified, and removed dependencies]
## Modification Plan
[Phased implementation plan]
## Risk Assessment
[Risks and mitigation strategies]
## Recommendations
[Actionable recommendations]
## Appendix
[Traceability matrix, dependency graph, glossary]
Input:
Analysis:
routes/users.py::get_users() - Limit fieldsroutes/users.py::get_users_detailed() - New endpointInput:
Analysis:
export/xml_exporter.pyexport/exporter.py - Remove XML optionInput:
Analysis:
notifications/email_notifier.pynotifications/base_notifier.py, user.pySolution:
Solution:
Solution:
Solution:
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Take arabelatso/requirement-comparison-reporter from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.