Display the ACE playbook (4 structured sections).
Displays ACE playbook sections with filtering by content type and quality score.
/plugin marketplace add ce-dot-net/ce-claude-marketplace/plugin install ace@ce-dot-net-marketplaceDisplay the ACE playbook (4 structured sections).
/ace:ace-patterns - Show entire playbook/ace:ace-patterns strategies - Show strategies_and_hard_rules section only/ace:ace-patterns troubleshooting 5 - Show troubleshooting bullets with ≥5 helpful countThe ACE framework defines 4 sections:
strategies_and_hard_rules - Core strategies and rulesuseful_code_snippets - Reusable code patternstroubleshooting_and_pitfalls - Common issues and solutionsapis_to_use - API usage patterns#!/usr/bin/env bash
set -euo pipefail
# Check ace-cli available
if ! command -v ace-cli >/dev/null 2>&1; then
echo "❌ ace-cli not found - Install: npm install -g @ace-sdk/cli"
exit 1
fi
# Get context and export as env vars (support both formats)
export ACE_ORG_ID=$(jq -r '.orgId // .env.ACE_ORG_ID // empty' .claude/settings.json 2>/dev/null || echo "")
export ACE_PROJECT_ID=$(jq -r '.projectId // .env.ACE_PROJECT_ID // empty' .claude/settings.json 2>/dev/null || echo "")
if [ -z "$ACE_ORG_ID" ] || [ -z "$ACE_PROJECT_ID" ]; then
echo "❌ Run /ace-configure first"
exit 1
fi
# Parse arguments
SECTION="${1:-}" # Optional section filter
MIN_HELPFUL="${2:-0}" # Optional min helpful score
# Call ace-cli patterns - CLI reads org/project from env vars automatically
ace-cli patterns \
${SECTION:+--section "$SECTION"} \
--min-helpful "$MIN_HELPFUL"
Arguments:
Examples:
The tool returns a nested JSON structure (v3.8.0+):
```json
{
"playbook": {
"strategies_and_hard_rules": [...],
"useful_code_snippets": [...],
"troubleshooting_and_pitfalls": [...],
"apis_to_use": [...]
},
"metadata": {
"tokens_in_response": 30000
}
}
Access sections via: response.playbook.strategies_and_hard_rules, response.playbook.useful_code_snippets, etc.
Each bullet shows:
ACE learns from execution feedback:
Successful task → adds to strategies_and_hard_rules or useful_code_snippets
Failed task → adds to troubleshooting_and_pitfalls
API usage → adds to apis_to_use
Bullets accumulate helpful/harmful counts over time as they prove useful or misleading.
After viewing patterns:
/ace:ace-status for counts and top helpful/harmful/ace:ace-patterns strategies)/ace:ace-patterns troubleshooting 5)/ace:ace-export-patterns for backup or sharing/ace:ace-bootstrap to analyze git/docs/code/ace:ace-clear --confirm to reset playbook/ace:ace-status - View playbook statistics/ace:ace-bootstrap - Add patterns from git/docs/code/ace:ace-export-patterns - Backup playbook to JSON/ace:ace-clear - Clear playbook (reset)