Bootstrap ACE playbook by analyzing your current codebase files and/or git commit history.
Bootstrap ACE playbook by analyzing your codebase, git history, and docs to extract patterns for intelligent coding assistance. Use when starting a new project or onboarding to establish a foundation for ACE's agent skills.
/plugin marketplace add ce-dot-net/ce-claude-marketplace/plugin install ace@ce-dot-net-marketplaceBootstrap ACE playbook by analyzing your current codebase files and/or git commit history.
When user runs /ace-bootstrap, execute the bootstrap script:
#!/usr/bin/env bash
set -euo pipefail
# Get plugin root directory
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)}"
# Execute bootstrap script with all arguments
exec "${PLUGIN_ROOT}/scripts/ace-bootstrap.sh" "$@"
Data Flow:
/ace-bootstrap command
↓
ace-cli
↓
ACE Server: Reflector analyzes code
↓
ace-cli: returns results
↓
Command: calls ace-cli status for final counts
↓
Command: generates dynamic report for user
To invoke: Simply use the bootstrap-orchestrator skill with the user's parameters.
Use ace-cli bootstrap to initialize your playbook from the codebase.
Basic usage:
# CLI reads org/project from environment variables or config automatically
ace-cli bootstrap --json
With options:
# Hybrid mode (recommended) - docs → git → files
ace-cli bootstrap --json --mode hybrid --thoroughness deep
# Git history only
ace-cli bootstrap --json --mode git-history --commit-limit 1000 --days-back 180
# Local files only
ace-cli bootstrap --json --mode local-files --max-files 5000
# Docs only
ace-cli bootstrap --json --mode docs-only
Parameters:
--mode <mode> - Analysis mode (default: "hybrid")
hybrid: RECOMMENDED - Intelligently scan docs → git history → local filesboth: Analyze current files + git history (no docs)local-files: Current codebase files onlygit-history: Git commit history onlydocs-only: Documentation files only (*.md, *.txt)--thoroughness <level> - Analysis depth (default: "medium")
light: max_files=1000, commit_limit=100, days_back=30medium: max_files=5000, commit_limit=500, days_back=90deep: max_files=unlimited, commit_limit=1000, days_back=180--repo-path <path> - Path to repository (default: current directory)
--max-files <number> - Maximum files to analyze (overrides thoroughness)
--commit-limit <number> - Max commits to analyze (overrides thoroughness)
--days-back <number> - Days of history to analyze (overrides thoroughness)
--merge - Merge with existing playbook (default: true)
Examples:
# RECOMMENDED: Most comprehensive analysis
/ace:bootstrap --mode hybrid --thoroughness deep
# Good balance of speed and coverage
/ace:bootstrap --mode hybrid --thoroughness medium
# Quick local files scan
/ace:bootstrap --mode local-files --thoroughness light
# Deep git history analysis
/ace:bootstrap --mode git-history --thoroughness deep
The hybrid mode uses intelligent fallback logic to extract maximum knowledge from available sources:
Priority Order:
Intelligent Fallback Logic:
IF (docs found with substantial content):
→ Extract architectural patterns, best practices, troubleshooting guides from docs
→ STILL analyze git history for bug fix patterns and refactoring insights
→ STILL scan local files for current API usage and dependencies
ELSE IF (git history available):
→ Analyze commit history for strategies, troubleshooting, API patterns
→ Scan local files for current state and dependencies
ELSE (no docs, no git):
→ Deep analysis of local files only
→ Extract patterns from code structure, imports, error handling
Why Hybrid is Superior:
What Gets Extracted:
From Documentation (*.md, *.txt):
From Git History (commits):
From Local Files (source code):
Example Output from Hybrid Mode:
{
"mode": "HYBRID",
"sources_analyzed": {
"docs": {
"files_found": 12,
"patterns_extracted": 45
},
"git_history": {
"commits_analyzed": 500,
"patterns_extracted": 187
},
"local_files": {
"files_scanned": 3421,
"patterns_extracted": 245
}
},
"total_patterns": 477,
"by_section": {
"strategies": 120,
"snippets": 89,
"troubleshooting": 178,
"apis": 90
}
}
Analyzes current project files (includes uncommitted/unstaged changes):
1. Imports & Dependencies → APIs Section
import X from 'Y', require('Y')import X, from X import Y2. Error Handling Patterns → Troubleshooting Section
3. Architecture Discovery → Strategies Section (Future)
Why This Matters:
Analyzes git commit history (server-side):
1. Strategies (from refactorings)
2. Troubleshooting (from bug fixes)
3. APIs (from feature additions)
4. File Co-occurrence
5. Error Patterns
Why This Matters:
Combines current codebase + git history (without docs scanning):
Note: Consider using hybrid mode instead - it includes docs scanning AND both sources with intelligent fallback!
{ "merge_with_existing": true }
Use when: You want to enrich existing playbook with historical patterns
{ "merge_with_existing": false }
Use when: Starting fresh or clearing bad patterns
{
"mode": "MERGE",
"bullets_added": 42,
"bullets_existing": 18,
"bullets_final": 55,
"by_section": {
"strategies": 12,
"snippets": 8,
"troubleshooting": 25,
"apis": 10
}
}
Use hybrid mode with thoroughness: deep:
Use hybrid mode with thoroughness: medium:
Use local-files mode:
Use git-history mode:
Use docs-only mode:
NEW in v3.2.36: ACE skills now trigger on 35+ action keywords with intent-based fallback!
After bootstrapping your initial playbook, ACE's Agent Skills will automatically use these patterns during your work. The skills trigger on:
8 Trigger Categories (35+ keywords):
Intent-based fallback: Even without exact keywords, skills trigger when requests clearly intend to write/modify code, solve technical problems, make architectural decisions, or perform substantial technical work.
How it works:
Result: Bootstrap gives you a strong foundation, then skills automatically retrieve and expand patterns as you work!
Once bootstrapped, ACE continues learning through online learning:
Bootstrap (ace_bootstrap) + Online learning (ace_learn) = Complete ACE system
After bootstrap completes:
Verify patterns loaded:
/ace:status to see playbook statisticsReview learned patterns:
/ace:patterns to view what was discoveredStart coding:
Optional - Export backup:
/ace:export-patterns to save initial playbook state/ace:patterns - View the initialized playbook/ace:status - Check statistics after initialization/ace:export-patterns - Backup before re-initializationMinimum:
Optimal:
What gets analyzed:
NOT analyzed:
Storage:
/ace-patterns - View playbook/ace-export-patterns - Export for backup/ace-import-patterns - Import from backup/ace-clear - Clear playbook