xarchitecture
Design, analyze, and evolve system architecture using Domain-Driven Design, 12-Factor App, and proven patterns
Manage organizational knowledge, facilitate team onboarding, and create training materials with SpecDriven AI methodology
How it fires
How this command gets triggered: by you, by Claude, or both.
/xknowledgeContext preview
What this command does when you run it.
Manage organizational knowledge, facilitate team onboarding, and create training materials with SpecDriven AI methodology
description: Manage organizational knowledge, facilitate team onboarding, and create training materials with SpecDriven AI methodology tags: [knowledge, training, onboarding, documentation, competency, team-management]
Manage knowledge and team development based on the arguments provided in $ARGUMENTS.
First, examine the current knowledge and documentation setup: !find . -name "*.md" | grep -E "(doc|knowledge|training|onboard|README)" | head -10 !ls -la docs/ training/ onboarding/ knowledge/ 2>/dev/null || echo "No knowledge directories found" !find . -name "*spec*" -o -name "*requirement*" | head -5 2>/dev/null !git log --oneline --since="1 month ago" | grep -E "(doc|train|onboard)" | wc -l
Based on $ARGUMENTS, perform the appropriate knowledge management operation:
If capturing knowledge (--capture, --document, --extract): !find . -name "*.py" -o -name "*.js" -o -name "*.ts" | xargs grep -l "def\|function\|class" | head -10 !grep -r "TODO\|FIXME\|NOTE\|IMPORTANT" . --include="*.py" --include="*.js" --include="*.md" | head -10 2>/dev/null !find . -name "*.md" | xargs grep -l "best practice\|pattern\|guideline" | head -5 2>/dev/null
Capture and document knowledge:
If managing onboarding (--onboard, --checklist, --resources): !ls -la package.json requirements.txt setup.py pyproject.toml 2>/dev/null | head -3 !find . -name "README*" -o -name "CONTRIBUTING*" -o -name "SETUP*" | head -5 !ls -la .env.example docker-compose.yml Dockerfile 2>/dev/null | head -3 !git remote -v 2>/dev/null || echo "No git remotes configured"
Create onboarding materials:
If creating training (--training, --curriculum, --exercises): !find . -name "*test*" -o -name "*example*" | head -10 2>/dev/null !ls -la training/ examples/ tutorials/ docs/learning/ 2>/dev/null || echo "No training directories found" !python -c "import pytest; print('Testing framework available')" 2>/dev/null || npm test --version 2>/dev/null || echo "No testing framework detected"
Develop training materials:
If assessing competencies (--assess, --gaps, --matrix, --skills): !git log --pretty=format:"%an" --since="3 months ago" | sort | uniq -c | sort -nr !find . -name "*.py" -o -name "*.js" -o -name "*.ts" | xargs grep -l "import\|require" | head -10 !ls -la team/ people/ skills/ competencies/ 2>/dev/null || echo "No team documentation found"
Assess and track competencies:
If managing knowledge transfer (--transfer, --handover, --succession): !git log --pretty=format:"%h %an %s" --since="1 month ago" | head -20 !find . -name "*.md" | xargs grep -l "handover\|transfer\|transition" | head -5 2>/dev/null !ls -la docs/handover/ docs/transfer/ docs/succession/ 2>/dev/null || echo "No transfer documentation found"
Manage knowledge transfer:
Think step by step about knowledge management requirements and provide:
1. **Knowledge Audit**:
2. **Documentation Strategy**:
3. **Training Framework**:
4. **Knowledge Retention**:
Generate comprehensive knowledge management plan with documentation strategy, training materials, competency frameworks, and retention mechanisms.
If no specific operation is provided, perform knowledge management assessment and recommend improvements based on current documentation state and team needs.
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…