Organization-wide GitHub configuration and reusable workflow templates for AI-powered automation across all augment-solutions repositories.
Purpose: Automatically generate technical specifications from GitHub issues using Augment AI.
Triggers:
- Add the
auggieSpeclabel to an issue - Comment
/auggieApproveSpecon an issue (legacy support)
What it does:
- Analyzes the issue description and comments
- Generates a comprehensive technical specification
- Posts the spec as a comment on the issue
- Adds a 👀 reaction when processing starts
- Adds a 🚀 reaction when complete
Use case: Convert feature requests or bug reports into detailed technical specifications before implementation.
Purpose: Generate structured implementation plans with step-by-step tasks.
Triggers:
- Add the
auggieImplementPlanlabel to an issue - Comment
/auggieImplementPlanon an issue
What it does:
- Analyzes the issue and all comments
- Creates a detailed implementation plan with tasks
- Posts the plan as a comment
- Adds
auggie-in-progresslabel during processing - Replaces with
plan-readylabel when complete - Adds a 🚀 reaction when complete
Use case: Break down complex features into actionable implementation steps.
Purpose: Directly implement issue requirements and create a pull request.
Triggers:
- Add the
auggieImplementDirectlabel to an issue - Comment
/auggieImplementDirecton an issue
What it does:
- Creates a new branch from the issue
- Implements the requested changes
- Creates a pull request with the implementation
- Adds
auggie-in-progresslabel during processing - Adds a 🚀 reaction when complete
Branch naming: auggie/issue-{number}-{title-slug}
Use case: Automate implementation of well-defined issues or small features.
Purpose: Auto-generate unit tests for pull request changes.
Triggers:
- Comment
/auggieTestGenerateon a pull request
What it does:
- Analyzes the PR changes
- Generates appropriate unit tests
- Commits tests to the PR branch
- Adds a 🚀 reaction to the trigger comment
Use case: Quickly generate test coverage for new code changes.
Purpose: Analyze CI/CD failures and create fix pull requests.
Triggers:
- Manual workflow dispatch from Actions tab
What it does:
- Analyzes failed workflow run logs
- Identifies the root cause
- Creates a fix branch
- Implements the fix
- Creates a PR with the solution
- Posts a workflow summary with links
Branch naming: auggie/fix-{service}-{short-sha}
Use case: Automate debugging and fixing of CI/CD pipeline failures.
-
Required Secrets
Add these secrets to your repository (Settings → Secrets and variables → Actions):
-
AUGMENT_SESSION_AUTH- Required for all workflows- Augment authentication token for AI agent access
-
GH_TOKEN- Required for some workflows- GitHub Personal Access Token with
repoandworkflowpermissions - Used by:
auggie-triage.yml,auggie-test-generate.yml
- GitHub Personal Access Token with
-
SLACK_WEBHOOK_URL- Optional- For Slack notifications (currently only in triage workflow)
-
-
Required Labels
Create these labels in your repository (Issues → Labels → New label):
Label Color Description Used By auggieSpec#0E8A16Trigger spec generation Spec Generation auggieImplementPlan#1D76DBTrigger implementation planning Implementation Plan auggieImplementDirect#5319E7Trigger direct implementation Direct Implementation auggie-in-progress#FBCA04AI agent is working Plan, Implementation plan-ready#0E8A16Implementation plan is ready Implementation Plan
-
Choose a workflow template from the
workflow-templates/directory -
Copy to your repository
cp workflow-templates/auggie-spec.yml .github/workflows/
-
Customize the template (see Customization section below)
-
Add required secrets to your repository settings
-
Create required labels in your repository
-
Test the workflow by triggering it on a test issue/PR
.github/
├── README.md # This file
├── workflows/
│ └── org-*.yml # Reusable workflow definitions (called by templates)
└── workflow-templates/
├── README.md # Template-specific documentation
├── auggie-spec.yml # Spec generation caller template
├── auggie-plan.yml # Implementation plan caller template
├── auggie-plan.properties.json # Plan workflow metadata
├── auggie-implement-direct.yml # Direct implementation caller template
├── auggie-test-generate.yml # Test generation caller template
└── auggie-triage.yml # Build triage caller template
Key concepts:
- Caller templates (
workflow-templates/*.yml): Copy these to your repo and customize - Reusable workflows (
workflows/org-*.yml): Centralized logic, called by templates - Properties files (
.properties.json): Metadata for GitHub's workflow template UI
All workflow templates support customization through clearly marked sections. Here are the common customization points:
Change the trigger label:
# In auggie-spec.yml, line 48
const TRIGGER_LABEL = 'auggieSpec'; # Change to your preferred labelChange the slash command:
# In auggie-spec.yml, line 49
const TRIGGER_COMMAND = '/auggieApproveSpec'; # Change to your preferred commandFor implementation workflows:
# In auggie-implement-direct.yml, line 122
const branchName = `auggie/issue-${issue.number}-${slug}`; # Customize prefixFor triage workflow:
# In auggie-triage.yml
branch_prefix: 'auggie/fix' # Change when triggering the workflowAdd project-specific context to help the AI understand your codebase:
custom_instructions: |
## Project Context
- This project uses TypeScript with strict mode enabled
- Follow the repository's existing error handling patterns
- All new features must include unit tests using Jest
- API changes must maintain backward compatibility
## Coding Standards
- Use functional components with hooks (React)
- Prefer composition over inheritance
- Follow the existing file structure in src/
## Testing Requirements
- Minimum 80% code coverage
- Include both unit and integration tests
- Mock external API callsSpecify a different AI model if needed:
# In any workflow template
model: 'claude-3-5-sonnet-20241022' # or other available modelsFor test generation workflow:
test_framework: 'pytest' # Options: pytest, jest, go, mocha, etc.
test_directory: 'tests/' # Where to place generated tests-
Create an issue with your feature request:
Title: Add user authentication Description: We need to add JWT-based authentication to the API. Users should be able to login with email/password. -
Add the
auggieSpeclabel to the issue -
Wait for the AI to generate a technical specification (usually 2-5 minutes)
-
Review the spec in the issue comments
-
Iterate by adding comments with clarifications if needed
-
Start with an issue (with or without a spec)
-
Add the
auggieImplementPlanlabel -
The AI will:
- Analyze the issue and comments
- Break down the work into tasks
- Identify dependencies
- Suggest an implementation order
-
Review the plan and adjust as needed
-
Use the plan to guide manual implementation or trigger direct implementation
-
Create a well-defined issue:
Title: Fix login button alignment Description: The login button on the homepage is misaligned. It should be centered horizontally in its container. File: src/components/LoginButton.tsx -
Add the
auggieImplementDirectlabel -
The AI will:
- Create a branch:
auggie/issue-123-fix-login-button-alignment - Make the necessary changes
- Create a PR with the fix
- Create a branch:
-
Review the PR and merge if acceptable
-
Create a PR with your changes
-
Comment
/auggieTestGenerateon the PR -
The AI will:
- Analyze your code changes
- Generate appropriate unit tests
- Commit the tests to your PR branch
-
Review the generated tests and adjust as needed
-
Note the workflow run ID of a failed build (e.g.,
12345678) -
Go to Actions → Augment Build Triage → Run workflow
-
Fill in the inputs:
Workflow Run ID: 12345678 Failed Services: api-service (optional) Source Branch: main (optional) -
The AI will:
- Analyze the failure logs
- Create a fix branch
- Implement the fix
- Create a PR
-
Review and merge the fix PR
Problem: Added label but workflow didn't run
Solutions:
- ✅ Verify the workflow file is in
.github/workflows/(notworkflow-templates/) - ✅ Check that the label name matches exactly (case-sensitive)
- ✅ Ensure the workflow file has correct YAML syntax
- ✅ Check Actions tab for any workflow errors
Problem: Error: Authentication failed or 401 Unauthorized
Solutions:
- ✅ Verify
AUGMENT_SESSION_AUTHsecret is set in repository settings - ✅ Check that the secret value is correct (no extra spaces)
- ✅ Ensure the secret hasn't expired
- ✅ For
GH_TOKEN, verify it hasrepoandworkflowpermissions
Problem: Workflow fails with "Label not found" error
Solutions:
- ✅ Create the required labels in your repository (see Quick Start section)
- ✅ Verify label names match exactly (case-sensitive)
- ✅ Check that labels exist before the workflow tries to add/remove them
Problem: Error: Branch already exists or Permission denied
Solutions:
- ✅ Delete the existing branch if it's no longer needed
- ✅ Ensure the workflow has
contents: writepermission - ✅ Check that branch protection rules aren't blocking the workflow
- ✅ Verify the repository isn't archived or read-only
Problem: Generated code/spec doesn't match expectations
Solutions:
- ✅ Add more detailed
custom_instructionswith project context - ✅ Provide clearer issue descriptions with examples
- ✅ Include relevant code snippets or file paths in the issue
- ✅ Add comments to the issue with clarifications
- ✅ Try a different AI model if available
Problem: Workflow completes but no comment/PR is created
Solutions:
- ✅ Check the workflow run logs in the Actions tab
- ✅ Verify the reusable workflow is accessible (not in a private repo)
- ✅ Ensure the workflow has necessary permissions (
issues: write,pull-requests: write) - ✅ Check for rate limiting issues with GitHub API
Problem: /auggieTestGenerate doesn't work on PR
Solutions:
- ✅ Verify you're commenting on a PR, not an issue
- ✅ Check that
GH_TOKENsecret is set (required for test generation) - ✅ Ensure the PR branch is accessible and not protected
- ✅ Verify the test framework is correctly specified
If you encounter issues not covered here:
- Check workflow logs: Go to Actions tab → Select the failed workflow → View logs
- Review reusable workflow: Check the org-wide workflow definition for updates
- Test with minimal example: Try the workflow on a simple test issue
- Contact support: Reach out to the Augment Solutions team
To update to the latest version of a workflow:
-
Check for updates in this repository's
workflow-templates/directory -
Review the changelog (if available) for breaking changes
-
Update your caller template:
# Backup your current version cp .github/workflows/auggie-spec.yml .github/workflows/auggie-spec.yml.backup # Copy the new version cp workflow-templates/auggie-spec.yml .github/workflows/
-
Restore your customizations from the backup file
-
Test the updated workflow on a test issue/PR
- Workflow Templates Directory:
workflow-templates/ - Template-Specific Documentation:
workflow-templates/README.md - Augment Documentation: Augment Code Docs
- GitHub Actions Documentation: GitHub Actions
To add a new workflow template:
- Create the reusable workflow in
.github/workflows/org-*.yml - Create the caller template in
workflow-templates/ - Add comprehensive comments explaining customization options
- Update this README with documentation for the new workflow
- Create a
.properties.jsonfile for GitHub's template UI (optional) - Test the template in a sample repository
- Submit a pull request
This repository is maintained by Augment Solutions for use across the organization.