Get Amber handling GitHub issues in 5 minutes.
- GitHub repository with Actions enabled
- Anthropic API key
# Via GitHub CLI
gh secret set ANTHROPIC_API_KEY
# Or via GitHub UI:
# Settings → Secrets and variables → Actions → New repository secret
# Name: ANTHROPIC_API_KEY
# Value: sk-ant-...Settings → Actions → General → Workflow permissions:
- ✅ Read and write permissions
- ✅ Allow GitHub Actions to create and approve pull requests
ls .github/workflows/amber-issue-handler.yml
# Should exist - if not, check installation- Go to Issues → New Issue
- Select Template:
- 🤖 Amber Auto-Fix Request
- 🔧 Amber Refactoring Request
- 🧪 Amber Test Coverage Request
- Fill Out Form
- Submit Issue
Amber will automatically trigger and create a PR.
- Create or open an issue
- Add one of these labels:
amber:auto-fixamber:refactoramber:test-coverage
- Amber triggers immediately
On any existing issue, comment:
/amber execute
Amber will execute the proposal described in the issue body.
Title: [Amber] Fix Go formatting in backend
Label: amber:auto-fix
Body:
## Problem
Backend handlers fail gofmt checks.
## Files
File: `components/backend/handlers/*.go`
## Fix Type
Code Formatting- GitHub Actions workflow starts (~30 seconds)
- Amber analyzes code and applies fixes (~1-2 minutes)
- PR is created automatically
# View the PR
gh pr list --label amber-generated
# Review changes
gh pr view 123
# Merge if good
gh pr merge 123 --squashDone! Linting errors fixed automatically.
Title: [Amber Refactor] Break sessions.go into modules
Label: amber:refactor
Body:
## Current State
File: `components/backend/handlers/sessions.go`
Issue: 3,495 lines, violates Constitution Principle V
## Desired State
Break into modules:
- sessions/lifecycle.go (create, delete)
- sessions/status.go (status updates)
- sessions/jobs.go (job management)
- sessions/validation.go (input validation)
## Constraints
- Maintain backward compatibility
- All existing tests must pass
- Follow CLAUDE.md standards
## Priority
P0 - Critical- Analyzes current structure
- Creates modular file structure
- Updates imports across codebase
- Ensures all tests pass
- Creates PR with before/after comparison
# Review the refactoring
gh pr view 124 --web
# Check CI status
gh pr checks 124
# Merge when ready
gh pr merge 124 --squashTitle: [Amber Tests] Add contract tests for sessions API
Label: amber:test-coverage
Body:
## Untested Code
File: `components/backend/handlers/sessions.go`
Functions:
- CreateSession (line 123)
- UpdateSessionStatus (line 456)
## Test Type
Contract Tests (API endpoints)
## Test Scenarios
- Happy path: create session with valid spec
- Error: missing API key
- Error: invalid namespace
- Edge case: very long prompt (>10K chars)
## Target Coverage
60%- Creates
handlers/sessions_test.go - Writes table-driven tests (Go convention)
- Covers happy paths and error cases
- Ensures all tests pass
# Check test coverage
cd components/backend
go test -coverprofile=coverage.out ./handlers
go tool cover -func=coverage.out | grep sessions.go
# Should show ~60% coveragegh pr list --label amber-generatedgh run list --workflow=amber-issue-handler.yml# Get run ID from issue comment or Actions tab
gh run view 123456789 --logCheck:
- Label is exact:
amber:auto-fix(notamber auto-fix) - Secret
ANTHROPIC_API_KEYis set - Workflow permissions enabled (Settings → Actions)
Debug:
gh run list --workflow=amber-issue-handler.yml --limit 5Action: Review PR, add feedback comment, Amber can update PR
Action: Read error message, update issue with more context, re-trigger
Edit .claude/amber-config.yml:
# Change risk thresholds
automation_policies:
auto_fix:
max_files_per_pr: 10 # Change to 20 for larger auto-fixes
# Add new patterns
categories:
- name: "Your Custom Pattern"
patterns: ["custom pattern"]# Disable workflow
gh workflow disable amber-issue-handler.yml
# Re-enable
gh workflow enable amber-issue-handler.yml- Use specific file paths when possible
- Provide clear success criteria
- Start with small, low-risk tasks (auto-fix)
- Review all PRs before merging
- Request breaking changes (Amber will reject)
- Provide vague instructions ("make it better")
- Skip PR review (always review before merge)
- Hardcode secrets (Amber will refuse)
- Try auto-fix first: Create issue with
amber:auto-fixlabel - Review generated PR: Understand Amber's approach
- Graduate to refactoring: Try
amber:refactorfor tech debt - Add tests: Use
amber:test-coverageto improve coverage - Monitor metrics: Track PR merge rate, time-to-merge
- Complete Guide - Detailed documentation
- Amber Config - Automation policies
- Project Standards - Conventions Amber follows
Questions? Create issue with label amber:help
Feature Requests? Title issue [Amber Feature Request] ...
Bugs? Title issue [Amber Bug] ... with workflow run link
You're ready to use Amber! Create your first issue and watch the automation magic happen. 🤖