xarchitecture
Design, analyze, and evolve system architecture using Domain-Driven Design, 12-Factor App, and proven patterns
Comprehensive development governance framework for policies, audits, and compliance
How it fires
How this command gets triggered: by you, by Claude, or both.
/xgovernanceContext preview
What this command does when you run it.
Comprehensive development governance framework for policies, audits, and compliance
description: Comprehensive development governance framework for policies, audits, and compliance tags: [governance, policies, audits, compliance, controls, standards]
Manage development governance based on the arguments provided in $ARGUMENTS.
First, examine current governance structure and documentation: !find . -name "*policy*" -o -name "*governance*" -o -name "*compliance*" | head -10 !ls -la | grep -E "(POLICY|COMPLIANCE|GOVERNANCE)" !find . -name "*.md" | grep -E "(policy|standard|procedure)" | head -5
Based on $ARGUMENTS, perform the appropriate governance operation:
If managing policies (--policy): !find . -name "POLICY.md" -o -name "policies/" | head -3 !grep -r "policy" . --include="*.md" | head -5
Policy operations:
If running audit (--audit): !git log --since="30 days ago" --pretty=format:"%h %s" | head -10 !find . -name "*audit*" -o -name "*review*" | head -5 !ls -la .github/ 2>/dev/null || echo "No GitHub configuration found"
Audit activities:
If checking compliance (--compliance): !grep -r "compliance" . --include="*.md" --include="*.yml" | head -5 !find . -name "*cert*" -o -name "*standard*" | head -3
Compliance checks:
If managing controls (--controls): !find . -name "*.yml" -o -name "*.yaml" | grep -E "(workflow|action|pipeline)" | head -5 !ls -la .github/workflows/ 2>/dev/null || echo "No CI/CD workflows found"
Governance controls:
If managing standards (--standards): !find . -name "*standard*" -o -name "*guideline*" | head -5 !python -m flake8 --version 2>/dev/null || echo "No Python linting standards" !eslint --version 2>/dev/null || echo "No JavaScript linting standards"
Standards enforcement:
If managing reviews (--review): !git log --grep="review" --oneline | head -5 !find . -name "CODEOWNERS" -o -name "*review*" | head -3
Review governance:
If performing gap analysis (--gap-analysis): !find . -name "*.md" | xargs grep -l "requirement" | head -5 !grep -r "TODO\|FIXME" . --include="*.py" --include="*.js" | wc -l
Identify gaps in:
If generating reports (--metrics, --dashboard): !git shortlog -sn --since="30 days ago" | head -10 !find . -name "*test*" | wc -l !uptime
Governance metrics:
Think step by step about governance requirements and provide:
1. **Current State Assessment**:
2. **Risk Analysis**:
3. **Improvement Plan**:
4. **Implementation Roadmap**:
Generate comprehensive governance assessment with actionable recommendations for improving organizational governance maturity.
Transform Claude Code into a complete development platform with 45 AI-powered commands that automate your entire software development workflow. Now with improved git identity management!
Design, analyze, and evolve system architecture using Domain-Driven Design, 12-Factor App, and proven patterns
Manage project configuration files, environment variables, and application settings
Continue an execution plan from where it left off across sessions
Interactive debugging support with error analysis and fix suggestions - integrates with Debug Specialist sub-agent for complex…