This template provides complete GitHub-centric automation for planning, bugs, and features using Tactical Agentic Coding principles.
Automates Your Entire Development Workflow:
- GitHub Issue → Plan - Automatically generate detailed implementation plans from issues
 - Plan → Implementation - Execute plans with automated coding, testing, and validation
 - Implementation → PR - Create pull requests with comprehensive context
 - Bug Fixes - Automated bug reproduction, fixing, and testing
 - Feature Development - Full PITER framework (Plan, Implement, Test, Evaluate, Report)
 
# Copy this template to your new project
cp -r github-automation-template my-new-project
cd my-new-project
# Initialize git if needed
git init
git add .
git commit -m "Initial commit with TAC automation"
# Connect to GitHub
gh repo create --source=. --public  # or --private
git push -u origin main# Ensure you have:
# - Claude Code installed
# - GitHub CLI (gh) authenticated
# - Python 3.8+ for ADWs
# Verify installations
claude --version
gh auth status
python --versionclaude /primeThis teaches the agent about your project structure and automation capabilities.
Create Feature from Issue:
# Creates plan from GitHub issue #123
claude /issue-to-plan --issue=123
# Implement the plan
claude /ship --issue=123Fix Bug from Issue:
# Automated bug fix workflow
claude /fix-bug --issue=456Plan a Feature:
# Generate detailed plan
claude /plan "Add user authentication"
# The plan is saved to specs/ automaticallyShip a Feature:
# Execute existing plan
claude /ship --plan=user-authenticationCreate Pull Request:
# Auto-generate PR with context
claude /create-pr/prime- Understand project and capabilities/plan [feature]- Generate implementation plan/ship [plan]- Implement feature from plan/test- Run full test suite with reporting
/issue-to-plan --issue=N- Convert GitHub issue to plan/fix-bug --issue=N- Automated bug fix workflow/create-pr- Generate PR with full context/update-docs- Update documentation and README
/review- Comprehensive code review/security-scan- Security vulnerability scan/coverage- Test coverage report/refactor [component]- Intelligent refactoring
The adws/ directory contains Python scripts that orchestrate complex workflows:
# Usage:
python adws/feature_shipper.py "user-authentication"
# What it does:
# 1. Plans the feature
# 2. Implements it
# 3. Runs tests
# 4. Creates PR if tests pass# Usage:
python adws/bug_fixer.py --issue=123
# What it does:
# 1. Fetches issue from GitHub
# 2. Reproduces bug
# 3. Implements fix
# 4. Adds regression test
# 5. Creates PR with fix# Run via cron or manually:
python adws/daily_maintenance.py
# What it does:
# 1. Checks for outdated dependencies
# 2. Runs security scans
# 3. Updates documentation if stale
# 4. Creates issues for problems foundThe template includes git hooks in scripts/hooks/ that trigger automation:
- Runs linting
 - Checks for secrets
 - Validates commit message format
 
- Updates documentation if code changed
 - Runs quick smoke tests
 
- Runs full test suite
 - Validates branch is ready to push
 
Install hooks:
./scripts/install-hooks.shgithub-automation-template/
├── .claude/
│   ├── commands/              # Slash commands for workflows
│   │   ├── prime.md
│   │   ├── plan.md
│   │   ├── ship.md
│   │   ├── issue-to-plan.md
│   │   ├── fix-bug.md
│   │   ├── create-pr.md
│   │   └── [10+ more commands]
│   └── settings.json
│
├── adws/                      # AI Developer Workflows
│   ├── feature_shipper.py     # Full feature development pipeline
│   ├── bug_fixer.py           # Automated bug fixing
│   ├── plan_generator.py      # Plan creation from requirements
│   ├── pr_creator.py          # Intelligent PR generation
│   └── daily_maintenance.py   # Proactive maintenance
│
├── specs/                     # Implementation plans
│   ├── templates/             # Reusable plan templates
│   │   ├── feature-plan.md
│   │   ├── bug-fix-plan.md
│   │   └── refactor-plan.md
│   └── [your-plans-here].md
│
├── ai_docs/                   # Agent-specific documentation
│   ├── architecture.md        # System architecture guide
│   ├── workflows.md           # How automation works
│   ├── conventions.md         # Coding standards
│   └── troubleshooting.md     # Common issues
│
├── app/                       # YOUR APPLICATION CODE GOES HERE
│   ├── (Replace with your actual application)
│   └── README.md
│
├── scripts/                   # Helper scripts
│   ├── install-hooks.sh       # Install git hooks
│   ├── setup-github.sh        # Configure GitHub integration
│   └── hooks/                 # Git hook implementations
│       ├── pre-commit
│       ├── post-commit
│       └── pre-push
│
├── .github/
│   └── workflows/             # GitHub Actions (optional)
│       └── agentic-ci.yml     # CI/CD with agent integration
│
└── README.md                  # This file
This template follows TAC principles:
1. Agent-Optimized Structure
- Clear standard out logging everywhere
 - Type flows are traceable
 - Tests mirror code structure
 - Documentation always current
 
2. GitHub as Command Center
- Issues drive planning
 - Labels trigger workflows
 - PRs include full context
 - Automation is transparent
 
3. Closed-Loop Systems
- Plans validate against reality
 - Tests provide feedback
 - Self-correction built in
 - Continuous improvement
 
4. Progressive Autonomy
- Start with manual slash commands
 - Add ADWs as you trust them
 - Enable git hooks when ready
 - Achieve zero-touch engineering
 
# Someone creates issue #42 "Add password reset"
# Step 1: Convert to plan
claude /issue-to-plan --issue=42
# Step 2: Review plan in specs/password-reset.md
# Add your expertise, edge cases, security requirements
# Step 3: Ship it
claude /ship --issue=42
# Step 4: Create PR
claude /create-pr# Bug reported in issue #99
# One command does everything:
python adws/bug_fixer.py --issue=99
# What happens:
# - Fetches issue details
# - Reproduces bug
# - Implements fix
# - Adds regression test
# - Creates PR automatically# Step 1: Brain dump your idea
claude /plan "Add user authentication with OAuth"
# Step 2: Agent expands to 200+ line plan
# (saved to specs/user-authentication.md)
# Step 3: Review and refine
# Step 4: Execute
claude /ship --plan=user-authentication
# Step 5: Tests run automatically, PR created if passing# Run setup script
./scripts/setup-github.sh
# This configures:
# - Issue label automation
# - PR template with agent context
# - Repository settings for workflowsEdit .claude/settings.json:
{
  "allowed_tools": [
    "bash",
    "read",
    "write",
    "edit"
  ],
  "github_integration": {
    "enabled": true,
    "auto_pr": false,
    "auto_commit": false
  }
}Track these KPIs:
Plan Velocity
- Goal: Idea → Detailed Plan in <30 minutes
 
Review Velocity
- Goal: Review agent work in <15 minutes
 
Hot Streak
- Goal: 15+ consecutive successes
 
Autonomy Level
- Goal: 80%+ work done without intervention
 
Always Review Before Merging:
- Agent-generated code should be reviewed
 - Tests must pass before merging
 - Security-sensitive changes need manual review
 
Start Conservative:
- Use slash commands manually first
 - Add ADWs when comfortable
 - Enable git hooks when confident
 - Full automation comes last
 
Understand What Runs:
- Read each slash command before using
 - Review ADW code before running
 - Test git hooks in safe branch first
 
Issue: Agent can't find project context
# Solution: Run prime again
claude /primeIssue: GitHub integration not working
# Verify GitHub CLI is authenticated
gh auth status
# Re-authenticate if needed
gh auth loginIssue: Tests failing after agent implementation
# Use fix workflow
claude /fix-tests
# Or manually review test output
claude "Review the test failures and fix them"- Copy template to your project
 - Run 
/primeto teach agent about project - Try one manual workflow (
/plansomething small) 
- Use 
/planand/shipfor 2-3 features - Track your KPIs
 - Refine plans based on results
 
- Use 
/issue-to-planfor real GitHub issues - Practice 
/create-prworkflow - Install git hooks
 
- Run 
feature_shipper.pyfor complete feature - Try 
bug_fixer.pyon real bugs - Set up 
daily_maintenance.pyto run weekly 
- Enable git hooks for automatic validation
 - Schedule ADWs via cron
 - Achieve 80%+ autonomy level
 
- TAC Course: agenticengineer.com/tactical-agentic-coding
 - Documentation: See 
/docsfolder for complete TAC lessons - Examples: Each TAC folder shows progressive automation
 
Based on Tactical Agentic Coding course by IndyDevDan (@indydevdan)
Template Philosophy: "Don't build your codebase—build the agent pipeline that builds your codebase."
Ready to stop coding and start commanding compute? Run /prime and let's begin.