A Claude Code skill that uses AI-powered parallel generation to create comprehensive MSP compliance documentation in hours instead of weeks.
# 1. From your AWS project directory
cd /path/to/your-aws-project
# 2. Assess Prerequisites (must be met before audit)
msp-readiness prerequisites --interactive-ai
# 3. Assess Technical Requirements
msp-readiness assess --interactive-ai --skip-aws
# 4. In Claude Code conversation:
# "Launch parallel agents to generate all MSP documentation"
# 5. Result: 60+ documents (200,000 words) in 10-20 minutesReal Results: Compliance Concierge (FIPCO) went from 30% β 93% complete in 3 hours, saving 310 hours of manual work.
π Quick Start Guide | Full AI Generation Guide | Prerequisites Guide
This tool combines automated project analysis with AI-powered document generation to prepare for AWS Managed Service Provider (MSP) Program requirements:
- Scans your AWS infrastructure (CDK, CloudFormation, Terraform) and project files
- Analyzes services, stacks, team structure, and security posture
- Generates 2,000-7,500 word documents per requirement using AI
- Collects evidence from AWS services (Config, CloudTrail, Security Hub, Inspector, etc.)
- Creates a real-time compliance dashboard showing readiness status
Manual MSP readiness preparation takes 400-500 hours and is error-prone:
- β Weeks spent writing documentation from scratch
- β Manual evidence collection from multiple AWS services
- β Generic templates that don't reflect your actual infrastructure
- β No single view of overall readiness status
- β Risk of missing requirements or inconsistent documentation
This tool automates 99% of the work using AI to generate project-specific, production-ready documentation:
- β 3-5 hours instead of 400-500 hours
- β Comprehensive documents (2,000-7,500 words each)
- β Project-specific content (real stack names, services, procedures)
- β Parallel generation (15-20 documents simultaneously)
- β Zero API costs (uses Claude Code conversation)
This tool uses a workspace-based approach where this repository serves as your MSP readiness workspace:
- Self-Assessment Mode: Run
msp-readiness assess --selfto assess workspace completeness - Overwrite Protection: Generated files include frontmatter metadata to detect user modifications
- Status Tracking: Documents progress through lifecycle: draft β in-progress β approved β complete
- Completion Tracking: Requirements are complete when: playbook exists + evidence collected + playbook approved
Typical Workflow:
- Generate missing playbooks:
msp-readiness generate - Review and customize playbooks in
./playbooks/ - Collect evidence from AWS:
msp-readiness collect-evidence - Approve completed playbooks:
msp-readiness approve <requirement-id> - Check progress:
msp-readiness assess --self - View dashboard:
msp-readiness dashboard --workspace
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Claude Code Skill β
β (msp-readiness) β
ββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββ Assessors (analyze current state)
β βββ Documentation Scanner
β βββ AWS Config Analyzer
β βββ IAM Policy Evaluator
β βββ Security Hub Inspector
β
βββ Collectors (gather evidence)
β βββ CloudTrail Evidence
β βββ Config Rules Evidence
β βββ Backup Verification
β βββ Security Findings
β
βββ Generators (create artifacts)
β βββ Playbook Generator
β βββ Runbook Generator
β βββ Evidence Matrix Builder
β βββ Self-Assessment Filler
β
βββ Dashboard (visualize status)
β βββ Requirement Coverage Map
β βββ Evidence Completeness
β βββ Gap Analysis View
β βββ Effort Estimates
β
βββ Monitoring (continuous compliance)
βββ Scheduled Assessments
βββ Drift Detection
βββ Slack/Email Notifications
βββ CloudWatch Metrics
# Clone the repository
git clone https://github.com/flexion/flexion-msp-readiness.git
cd flexion-msp-readiness
# Install dependencies
npm install
# Set up AWS credentials
export AWS_PROFILE=your-profile
export AWS_REGION=us-east-1
# Initialize configuration
cp config.example.yaml config.yaml
# Edit config.yaml with your project pathsThe tool is designed to be invoked by Claude Code when you ask about MSP readiness:
# In Claude Code, simply ask:
"Check our MSP readiness"
"What do we need for AWS MSP certification?"
"Collect evidence for our MSP audit"
"Show me the compliance dashboard"
# Claude Code will automatically:
# 1. Check if config.yaml exists (create from template if needed)
# 2. Run the appropriate msp-readiness command
# 3. Parse and summarize the results
# 4. Suggest next stepsThe skill helper script makes it easy for Claude to invoke:
# Claude Code will run commands like:
~/repos/flexion-msp-readiness/bin/msp-skill assess
~/repos/flexion-msp-readiness/bin/msp-skill collect-evidence
~/repos/flexion-msp-readiness/bin/msp-skill generate
~/repos/flexion-msp-readiness/bin/msp-skill dashboard
~/repos/flexion-msp-readiness/bin/msp-skill full # Complete workflowYou can also use the tool directly from the command line:
# Link for global access
cd ~/repos/flexion-msp-readiness
npm link
# Now use from any project directory
cd /path/to/your/project
msp-readiness assess
msp-readiness collect-evidence
msp-readiness generate
msp-readiness dashboard
msp-readiness diff --baseline old.json --current new.json
# Or use the skill helper
~/repos/flexion-msp-readiness/bin/msp-skill fullAssesses the 15 prerequisites that must be met BEFORE the technical audit:
Categories:
- Business (3): Web presence, case studies, sales accreditations
- People (1): Training and skills development
- Governance (3): Supplier management, operations improvement, sustainability
- Platform (1): Expert design review processes
- Security (2): Access key detection, public resource prevention
- Operations (5): Incident/problem management, deployment, FinOps, continuity
Command:
msp-readiness prerequisites --interactive-aiOutput:
- Prerequisite completion status (15 requirements)
- Gap analysis by category
- AI-ready project context for document generation
See Prerequisites Guide for details.
Scans your project for the 46 technical validation requirements:
- Existing documentation (README, CLAUDE.md, docs/)
- AWS infrastructure state (via AWS SDK)
- Current security controls (Security Hub, Config)
- Existing playbooks and runbooks
- Evidence artifacts
Outputs:
- Requirement coverage matrix (46 requirements)
- Gap analysis with priorities
- Implementation effort estimates
- Compliance percentage by category
Automatically collects evidence for MSP requirements:
| Requirement | Evidence Source | Automation |
|---|---|---|
| SECP-001 | AWS Health Events | CloudWatch Events subscription |
| SECP-002 | AWS Config Rules | Config rule deployment + findings |
| SEC-003 | AWS Config | Resource inventory snapshots |
| SEC-007 | Inspector | Vulnerability scan results |
| OPS-004 | CloudTrail | Log retention verification |
| OPS-005 | AWS Backup | Backup job status + test restores |
Generates documentation using templates and project-specific context:
- Playbooks: High-level operational procedures (Incident Response, Deployment, DR)
- Runbooks: Step-by-step technical procedures
- Evidence matrices: Pre-populated with collected evidence
- Self-assessment: Auto-filled checklist responses
All generated content is:
- Based on proven templates (from fipco-infra MSP work)
- Customized with actual AWS resource details
- CIS Controls v8 aligned
- Ready for review (not requiring rewrite)
Compare two assessment runs to track improvements and validate remediation efforts:
# Compare baseline with current assessment
msp-readiness diff \
--baseline assessment-2026-01-01.json \
--current assessment-2026-02-01.json
# Filter for specific changes
msp-readiness diff --only improvements
msp-readiness diff --only regressions
# CI/CD integration - exits with code 1 if compliance decreases
msp-readiness diff --baseline baseline.json --current current.jsonFeatures:
- Show compliance changes: Percentage point increase/decrease
- Track improvements: Requirements that moved from gap β partial β addressed
- Detect regressions: Requirements that lost compliance
- Explain changes: Specific reasons for each status change (new findings, evidence, etc.)
- CI/CD integration: Exit code 1 if compliance drops (blocks deployments)
- Multiple formats: JSON and markdown reports
Example output:
π Assessment Comparison
Baseline:
Date: 2026-01-01
Compliance: 50%
Current:
Date: 2026-02-01
Compliance: 65%
π Compliance Change: +15%
π Changes Summary:
β
Improved: 5 requirements
β Regressed: 0 requirements
β‘οΈ Unchanged: 14 requirements
π Improvements:
π OPSP-001: Incident Management
Status: gap β addressed
Confidence: 50% β 90%
Reason: Status changed from 'gap' to 'addressed'; Confidence increased by 40%; 2 new findings added; 1 new evidence artifact
Interactive HTML dashboard showing:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MSP Readiness Dashboard - Project: fipco-infra β
β Overall Completion: 67% (20/30 requirements) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
Addressed (8) β οΈ Partial (7) β Gap (4) β¬ N/A (11) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β By Category: β
β Security: ββββββββββ 80% (12/15) β
β Operations: ββββββββββ 60% (6/10) β
β Support: ββββββββββ 30% (2/5) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Critical Gaps (blocking MSP approval): β
β π΄ SECP-001: Access Key Exposure Detection β
β π΄ SECP-002: Public Resource Detection β
β π΄ OPS-006: Change Management Playbook β
β π΄ SEC-008: Vulnerability Remediation SLA β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Next Actions: β
β 1. Deploy Config rules (SECP-002) - 8h β
β 2. Create Change Management playbook - 6h β
β 3. Document vuln remediation SLA - 2h β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Evidence Status: β
β π 12 evidence files collected β
NEW: Continuous compliance monitoring with automated alerts:
- Scheduled Assessments: Run assessments on a cron schedule (e.g., daily at 9 AM)
- Drift Detection: Compare current state against baseline to detect compliance changes
- Smart Notifications: Slack/email alerts when compliance drops or new gaps appear
- CloudWatch Metrics: Publish compliance metrics to AWS CloudWatch for dashboards
- Historical Tracking: Store assessment history to track compliance trends over time
- Alert Deduplication: Prevent notification spam from repeated issues
Quick Start:
# Create baseline
msp-readiness assess
msp-readiness drift --save-baseline
# Detect drift
msp-readiness drift
# Run monitoring cycle
msp-readiness monitor
# View compliance history
msp-readiness history
# Start continuous monitoring daemon
node dist/monitoring/daemon.js config.yamlConfiguration:
monitoring:
enabled: true
schedule: "0 9 * * *" # Daily at 9 AM
notifications:
slack:
webhook_url: "https://hooks.slack.com/..."
alert_on:
compliance_drop: 5 # Alert if drops by 5%
new_gaps: true
cloudwatch:
enabled: true
namespace: "MSP/Readiness"See Monitoring README for full documentation β π 8 playbooks/runbooks generated β β β±οΈ Last updated: 2026-07-27 14:23 UTC β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
## Configuration
Edit `config.yaml` to customize:
```yaml
project:
name: "Compliance Concierge"
docs_path: "../fipco-infra/docs/managed-service-provider"
cdk_path: "../fipco-infra/cdk"
aws:
profile: "default"
region: "us-east-1"
stage: "test"
msp:
version: "Feb2026-Aug2026"
ig_level: 1 # CIS IG1
output:
evidence_path: "./evidence"
playbooks_path: "./playbooks"
dashboard_path: "./dashboard.html"
assessment:
skip_requirements: [] # Optional: skip N/A requirements
custom_priorities: {} # Optional: override priority levels
The tool includes automatic AWS environment validation that checks for common credential problems before running any AWS operations.
If you see:
β οΈ AWS Environment Warnings:
! Multiple credential sources detected: Both AWS_PROFILE and static
credentials (AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY) are set.
Fix: The tool will provide the exact commands needed:
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_SESSION_TOKEN
export AWS_PROFILE=your-profile-nameIf you see:
β AWS_PROFILE mismatch: Expected "AWSAdministratorAccess-688672519222"
but found "ClaudeCodeAccess"
Fix: Set the correct profile:
export AWS_PROFILE=AWSAdministratorAccess-688672519222
aws sso login --profile AWSAdministratorAccess-688672519222If you see:
β No AWS credentials configured
Fix: Configure AWS SSO:
export AWS_PROFILE=your-profile-name
aws sso loginSee the comprehensive troubleshooting guides:
- AWS-LOGIN-GUIDE.md - How to login to the correct AWS account
- AWS-PERMISSIONS-GUIDE.md - Required IAM permissions
If you see AccessDeniedException errors, you're missing required AWS permissions. The tool needs read-only access to:
- CloudTrail (cloudtrail:DescribeTrails)
- AWS Config (config:DescribeConfigRules, config:DescribeConformancePacks)
- AWS Backup (backup:ListBackupVaults, backup:ListBackupPlans)
- Amazon Inspector (inspector2:ListFindings)
- Security Hub (securityhub:GetFindings, securityhub:DescribeHub)
- IAM (iam:GetAccountPasswordPolicy, iam:ListUsers)
- CloudWatch (cloudwatch:DescribeAlarms, logs:DescribeLogGroups)
- Systems Manager (ssm:DescribeInstanceInformation)
Fix: Attach the AWS SecurityAudit managed policy or see AWS-PERMISSIONS-GUIDE.md for detailed instructions.
If npm run build fails:
# Clean and rebuild
npm run clean
rm -rf node_modules package-lock.json
npm install
npm run buildflexion-msp-readiness/
βββ .claude/
β βββ skills/
β βββ msp-readiness.md # Main Claude Code skill
βββ src/
β βββ assessors/ # Assessment modules
β β βββ doc-scanner.ts
β β βββ aws-config-analyzer.ts
β β βββ iam-evaluator.ts
β β βββ security-hub-checker.ts
β βββ collectors/ # Evidence collection
β β βββ cloudtrail-collector.ts
β β βββ config-collector.ts
β β βββ backup-collector.ts
β β βββ inspector-collector.ts
β βββ generators/ # Content generation
β β βββ playbook-generator.ts
β β βββ runbook-generator.ts
β β βββ evidence-matrix.ts
β β βββ self-assessment.ts
β βββ dashboard/ # Dashboard creation
β β βββ builder.ts
β β βββ templates/
β β βββ assets/
β βββ cli.ts # CLI entry point
βββ templates/ # Document templates
β βββ playbooks/
β βββ runbooks/
β βββ evidence/
βββ docs/ # Project documentation
β βββ DEVELOPMENT.md
β βββ ARCHITECTURE.md
β βββ SKILL-USAGE.md
βββ examples/ # Example outputs
β βββ fipco-infra-assessment/
βββ tests/
βββ package.json
βββ tsconfig.json
βββ config.example.yaml
βββ README.md
- Repository structure
- README and documentation
- TypeScript setup
- Configuration system
- MSP requirements data model
- Documentation scanner
- AWS Config analyzer
- Requirement matcher
- Gap analyzer
- Effort estimator
- CloudTrail collector
- Config rules collector
- Security Hub collector
- Backup verification
- Evidence file generator
- Playbook templates
- Runbook templates
- Template renderer
- Context injection
- Validation
- Data aggregator
- HTML/CSS dashboard
- Interactive features
- Export functionality
- Skill definition
- Conversation flow
- Error handling
- User prompts
- Final integration
See DEVELOPMENT.md for development setup, architecture decisions, and contribution guidelines.
MIT License - see LICENSE file for details.
Based on the MSP readiness work for Compliance Concierge (Flexion/FIPCO), specifically:
- AWS MSP Program Self-Assessment Checklist (Feb 2026 - Aug 2026)
- CIS Controls v8 Cloud Companion Guide
- Operations & Security Playbook patterns
- README.md (this file) - Overview and usage
- config.example.yaml - Configuration template
- SETUP.md - Environment setup and prerequisites β Start here
- CLAUDE.md - Architecture and development guidelines
- WORKFLOW.md - Git workflow and PR process
- TESTING.md - Testing procedures and checklist
- CONTRIBUTING.md - How to contribute, definition of done
- TROUBLESHOOTING.md - Common issues and solutions
- PROJECT_ROADMAP.md - Development roadmap with all issues
# 1. Setup environment
See SETUP.md for complete setup instructions
# 2. Pick an issue from "Ready" column
https://github.com/orgs/flexion/projects/53
# 3. Start working
./scripts/move-issue.sh <issue-number> in-progress
git checkout -b feature/issue-<number>-description
# 4. Make changes, test, commit
# 5. Create PR and move to review
git push -u origin feature/issue-<number>-description
gh pr create
./scripts/move-issue.sh <issue-number> in-reviewSee WORKFLOW.md for detailed workflow.
Current Phase: Phase 1 - Critical MVP
Completed:
- β Issue #7: fipco-infra integration with CDK parser
- β Issue #37: Workspace model redesign with self-assessment
- β Issue #9: Better reporting formats (markdown + JSON)
Workspace Status: 26% complete (5/19 requirements)
- 5 complete requirements with approved playbooks and evidence
- 14 in-progress requirements with draft playbooks
- Run
msp-readiness assess --selfto see current status
Next Priorities:
- Issue #39: Evidence validation (verify playbook compliance)
- Issue #5: Fix build process
- Issue #2: Complete playbook coverage
Project Board: https://github.com/orgs/flexion/projects/53