analyze-bugs
**Purpose:** Analyze bug reports from host projects (framework project only).
**Purpose:** Manage bug reporting settings for the framework.
$ npx -y skills add alexeykrol/claude-code-starter --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/bug-reportingContext preview
What this command does when you run it.
**Purpose:** Manage bug reporting settings for the framework.
**Purpose:** Manage bug reporting settings for the framework.
/bug-reporting [enable|disable|status|test]
Enable anonymous bug reporting. When enabled, the framework will:
Disable bug reporting. No logs will be created, no reports will be sent.
Show current bug reporting configuration:
Test the bug reporting system by creating a sample report (does not submit).
---
if [ ! -f ".claude/.framework-config" ]; then echo "⚠️ Framework config not found. Run 'start' first to initialize." exit 1 fi # Update config to enable cat .claude/.framework-config | \ sed 's/"bug_reporting_enabled": false/"bug_reporting_enabled": true/' > \ .claude/.framework-config.tmp mv .claude/.framework-config.tmp .claude/.framework-config echo "✅ Bug reporting enabled" echo "" echo "What will be collected:" echo " • Anonymous error reports when crashes occur" echo " • Protocol execution logs (Cold Start, Completion)" echo " • Framework version and step information" echo "" echo "What will NOT be collected:" echo " • Your code or file contents" echo " • File paths (anonymized)" echo " • API keys, tokens, secrets (removed)" echo ""
if [ ! -f ".claude/.framework-config" ]; then echo "⚠️ Framework config not found. Run 'start' first to initialize." exit 1 fi # Update config to disable cat .claude/.framework-config | \ sed 's/"bug_reporting_enabled": true/"bug_reporting_enabled": false/' > \ .claude/.framework-config.tmp mv .claude/.framework-config.tmp .claude/.framework-config echo "✅ Bug reporting disabled" echo "" echo "Existing logs in .claude/logs/ will be preserved but not submitted." echo "You can delete them manually if needed." echo ""
if [ ! -f ".claude/.framework-config" ]; then echo "⚠️ Framework config not found. Run 'start' first to initialize." exit 1 fi echo "" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" echo "🔒 Bug Reporting Status" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" echo "" # Parse config BUG_REPORTING=$(cat .claude/.framework-config | grep -o '"bug_reporting_enabled": *[^,}]*' | sed 's/.*: *//' | tr -d ' ') PROJECT_NAME=$(cat .claude/.framework-config | grep -o '"project_name": *"[^"]*"' | sed 's/.*: *"//' | tr -d '"') echo "Status: $BUG_REPORTING" echo "Project: $PROJECT_NAME" echo "" # Count logs COLD_START_LOGS=$(find .claude/logs/cold-start -type f 2>/dev/null | wc -l | tr -d ' ') COMPLETION_LOGS=$(find .claude/logs/completion -type f 2>/dev/null | wc -l | tr -d ' ') echo "Local logs:" echo " • Cold Start: $COLD_START_LOGS" echo " • Completion: $COMPLETION_LOGS" echo "" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" echo ""
if [ ! -f ".claude/.framework-config" ]; then
echo "⚠️ Framework config not found. Run 'start' first to initialize."
exit 1
fi
echo "🧪 Testing bug reporting system..."
echo ""
# Create test directories
mkdir -p .claude/logs/test
# Generate test report
PROJECT_NAME=$(basename "$(pwd)")
TIMESTAMP=$(date -Iseconds)
LOG_FILE=".claude/logs/test/test-report-${TIMESTAMP}.md"
cat > "$LOG_FILE" <<EOF
# Test Bug Report
**Generated:** $TIMESTAMP
**Project:** ${PROJECT_NAME}_anon
**Framework:** $(grep "Framework: Claude Code Starter v" CLAUDE.md | tail -1)
## Test Error
This is a test error report.
\`\`\`
Error: Test error
at testFunction (test.ts:42)
at main (test.ts:100)
\`\`\`
## System Info
- OS: $(uname -s)
- Shell: $SHELL
## Notes
This is a test report. No actual error occurred.
EOF
echo "✅ Test report created: $LOG_FILE"
echo ""
echo "Report contents:"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
cat "$LOG_FILE"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""---
**Notes:**
Claude Code Starter — это готовая управляющая среда для проектов, в которых основной рабочий агент — Claude Code.
Repo: alexeykrol/claude-code-starter
**Purpose:** Analyze bug reports from host projects (framework project only).
**Purpose:** Analyze local bug reports to find patterns and recurring issues.