From claude-commands
Triggers immediate execution workflow for Claude Commands Directory, reviewing explicit Python-based command guidelines, architecture patterns, and current commands.
How this command is triggered — by the user, by Claude, or both
Slash command
/claude-commands:READMEcommands/The summary Claude sees in its command listing — used to decide when to auto-load this command
## ⚡ EXECUTION INSTRUCTIONS FOR CLAUDE **When this command is invoked, YOU (Claude) must execute these steps immediately:** **This is NOT documentation - these are COMMANDS to execute right now.** **Use TodoWrite to track progress through multi-phase workflows.** ## 🚨 EXECUTION WORKFLOW ### Phase 1: Execute Documented Workflow **Action Steps:** 1. Review the reference documentation below and execute the detailed steps sequentially. ## 📋 REFERENCE DOCUMENTATION # Claude Commands Directory ## 🎯 Philosophy: Explicit > Implicit This directory contains Claude Code slash commands that f...
When this command is invoked, YOU (Claude) must execute these steps immediately: This is NOT documentation - these are COMMANDS to execute right now. Use TodoWrite to track progress through multi-phase workflows.
Action Steps:
This directory contains Claude Code slash commands that follow the explicit execution principle:
.py) for command logic and data processing.md) with explicit command sequencesExample workflow in copilot.md:
# Explicit execution - user sees every command
python3 .claude/commands/copilot.py 780
./run_ci_replica.sh
gh pr view 780 --json statusCheckRollup
python3 .claude/commands/copilot_resolver.py [files]
.sh wrappers that hide the actual commands being executedThis was tried and failed because it:
command.py with clear argument parsing/tmp/ for LLM analysiscommand.md with step-by-step explicit executionpython3 copilot.py [PR] [flags]--auto-fix, --merge-conflicts, --threaded-replypython3 copilot_resolver.py file1.py file2.py/tmp/<repo>/<branch>/<work>/ evidence packages with methodology, notes, and copied artifacts.python .claude/commands/savetmp.py <work_name> [--methodology ... --artifact ...]README.md, section markdown files, metadata.json, and an artifacts/ directory for preserved logs/screenshots.What Happened: Created copilot.sh as a wrapper script for CI integration
Why It Failed: Contradicted explicit execution philosophy, hid commands
Lesson Learned: Documentation-driven > Script-driven for transparency
Never Again: No shell script wrappers for Claude commands
Correct Approach: Enhance copilot.py with CI features and document explicit usage in copilot.md
❌ DO NOT create copilot_pre_hook.py or copilot_post_hook.py
❌ DO NOT add copilot hook configuration to .claude/settings.toml
The copilot system follows a clean architecture where only /commentfetch uses Python for data collection, and all other commands work directly through .md files:
/commentfetch - Fetch all PR comments ✅
/fixpr - Analyze CI failures and conflicts ✅
/commentreply - Post comment responses ✅
gh api/pushl - Push changes to remote ✅
/copilot - Intelligent orchestrator that chains the above commandsMinimal Python, Maximum Claude Intelligence
The clean approach:
Clean data flow:
PHASE 1: DATA COLLECTION (Only /commentfetch uses Python)
commentfetch.py → fresh comment data
fixpr.py → fixes.json, comparison.json, conflicts.json
↓
PHASE 2: INTELLIGENT ANALYSIS (Claude + .md)
Claude reads data + applies .md intelligence
↓
PHASE 3: EXECUTION
Claude executes fixes directly
commentreply.py posts pre-generated replies
pushl handles git operations
Export Statistics:
Changes:
Remember: If users can't see exactly what's running, it's probably the wrong approach.
npx claudepluginhub jleechanorg/claude-commands --plugin claude-commands/handle-pr-commentsIterates through all PR review comments, fixes issues, responds to threads, and ensures CI passes before marking the PR complete.
/gen-claudeGenerate or enhance CLAUDE.md with project-specific guidance by analyzing codebase structure, languages, frameworks, linters, and build tools.
/sc-review-prRuns context-aware GitHub PR review on PR number/URL: gathers ticket context, metadata, CLAUDE.md guidelines via parallel agents, then performs multi-phase validation.
/setup-github-actionsSets up production-ready GitHub Actions workflows for Claude Code by analyzing .github/workflows/ and generating files like claude.yml for interactive assistance.
/review-prRuns context-aware PR review on PR number/URL (or infers current branch), gathering metadata, tickets, CLAUDE.md guidelines via parallel agents, and produces validation checklist.
/suggest-automationAnalyzes recent git commits (default 50) for repetitive patterns in messages/files, suggests new Claude commands/skills/agents to automate them, lists existing, and generates selected ones.