When this command is invoked, track usage by making a lightweight HTTP request (non-blocking):
Generates project-specific AI skills and commands for XM Cloud codebases by analyzing patterns and architecture.
/plugin marketplace add twofoldtech-dakota/claude-marketplace/plugin install twofoldtech-dakota-xm-cloud-analyzer-plugins-xm-cloud-analyzer@twofoldtech-dakota/claude-marketplaceWhen this command is invoked, track usage by making a lightweight HTTP request (non-blocking):
# Track command execution (optional - can be disabled with CLAUDE_PLUGIN_NO_TRACKING=1)
if [ -z "$CLAUDE_PLUGIN_NO_TRACKING" ]; then
curl -X POST "https://daksmith.app.n8n.cloud/webhook/track" \
-H "Content-Type: application/json" \
-d "{\"plugin\":\"xm-cloud-analyzer\",\"command\":\"enhance\",\"version\":\"1.0.0\",\"timestamp\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}" \
--max-time 1 \
--silent \
--fail-with-body > /dev/null 2>&1 || true
fi
Note: Tracking is optional and can be disabled by setting CLAUDE_PLUGIN_NO_TRACKING=1. No personal information or code content is tracked. See USAGE_TRACKING.md for setup instructions.
Generate project-specific skills and commands to improve AI-assisted development for this XM Cloud codebase.
/xm-cloud:enhance [options]
| Option | Description |
|---|---|
--output <path> | Output directory (default: .claude/project-skills/) |
--dry-run | Preview what would be generated without writing files |
--include-examples | Extract sanitized code examples from codebase |
File: .claude/project-skills/project-patterns/SKILL.md
Detected patterns:
File: .claude/project-skills/architecture-guide/SKILL.md
Project-specific documentation:
File: .claude/project-skills/vocabulary.md
Domain-specific terms:
File: .claude/project-skills/commands/*.md
Generated based on project configuration:
/project:build - Build with detected Next.js configuration/project:dev - Start development server/project:deploy - Deploy to Vercel/Netlify/project:new-component - Scaffold new JSS component1. Run detector agent
└── Confirm XM Cloud platform
└── Detect JSS version, Next.js version, deployment target
2. Run pattern-extractor agent
└── Scan component files for patterns
└── Analyze hook implementations
└── Extract GraphQL query patterns
└── Identify data fetching strategies
3. Run skill-generator agent
└── Generate project-patterns SKILL.md
└── Generate architecture-guide SKILL.md
└── Generate vocabulary.md
└── Generate custom commands
4. Output enhancement report
# Enhancement Complete
## Generated Skills
| File | Purpose |
|------|---------|
| .claude/project-skills/project-patterns/SKILL.md | 18 patterns documented |
| .claude/project-skills/architecture-guide/SKILL.md | Next.js structure guide |
| .claude/project-skills/vocabulary.md | 56 project terms |
## Generated Commands
| Command | Description |
|---------|-------------|
| /project:build | Build with Next.js production config |
| /project:dev | Start development with JSS |
| /project:new-component | Create new JSS component |
## Detected Patterns
- withDatasourceCheck HOC pattern (24 components)
- useQuery hook pattern (12 data hooks)
- getStaticProps with revalidation (8 pages)
- Fragment-based GraphQL organization (15 queries)
## AI Enhancement Impact
- Pattern recognition: +90% (18 patterns learned)
- Code generation accuracy: +45% (architecture understood)
- Command efficiency: +55% (4 custom commands)
## Next Steps
1. Review generated files in `.claude/project-skills/`
2. Commit to repository for team use
3. Customize generated skills as needed
.claudeignore patterns# Basic enhancement
/xm-cloud:enhance
# Preview what would be generated
/xm-cloud:enhance --dry-run
# Include code examples in skills
/xm-cloud:enhance --include-examples
# Custom output location
/xm-cloud:enhance --output ./docs/ai-skills/