Contributing to AWF
On this page
Thank you for considering contributing to AWF (AI Workflow Framework CLI). This document explains how to contribute.
Code of Conduct
This project follows the Contributor Covenant. By participating, you agree to uphold this code.
How Can I Contribute?
Reporting Bugs
Before creating bug reports, check existing issues.
Bug Report Template:
- Description: Clear description of the bug
- Steps to Reproduce: Numbered steps
- Expected Behavior: What should happen
- Actual Behavior: What actually happens
- Environment: OS, Go version, AWF version
Suggesting Features
Open an issue with:
- Problem: What problem does this solve?
- Solution: Proposed solution
- Alternatives: Other solutions considered
Pull Requests
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests (
make test) - Run linter (
make lint) - Commit with conventional commits (
feat: add amazing feature) - Push to your fork (
git push origin feature/amazing-feature) - Open a Pull Request
Development Setup
# Clone your fork
git clone https://github.com/your-username/gustave.git
cd gustave
# Install dependencies
go mod download
# Build
make build
# Run tests
make test
# Run linter
make lint
Prerequisites
- Go 1.23+
- golangci-lint (for linting)
- Make
Style Guide
Code Style
- Follow standard Go conventions (
gofmt,go vet) - Run
make lintbefore committing - Follow existing patterns in codebase
- Variable names should be complete words, concise but specific
Architecture
This project follows Hexagonal/Clean Architecture:
Domain → Application → Infrastructure → Interfaces
- Domain layer has no external dependencies
- All other layers depend inward toward domain
- Use ports (interfaces) for external dependencies
Code Quality Requirements
All pull requests must pass code quality checks before merge. See Code Quality Documentation for detailed explanations.
Required checks:
Linting:
make lintmust pass with zero issues- 17 linters enforce Go best practices, security, and architecture rules
- Use
make fixto auto-fix issues where possible
Formatting:
make fmtmust pass- Uses gofumpt (stricter than gofmt) for consistent formatting
Vetting:
make vetmust pass- Official Go analyzer catches suspicious constructs
Testing:
make testmust pass- All unit tests pass with no failures
PR Expectations:
- CI pipeline shows all checks passing (green checkmarks)
- No linter warnings or errors
- Code formatted with gofumpt
- New code includes tests
If a linter rule is legitimately inappropriate for specific code, use //nolint:lintername with a comment explaining why.
Commit Messages
Follow Conventional Commits:
<type>(<scope>): <subject>
Types: feat, fix, docs, style, refactor, test, chore, perf
Examples:
feat(cli): add interactive modefix(executor): handle timeout correctlydocs(readme): update installation steps
Rules:
- Max 50 characters for subject
- Imperative mood (“add” not “added”)
- No period at the end
Testing
- Write tests for new features
- Table-driven tests preferred
- Integration tests go in
tests/integration/ - Run
make test-coverageto check coverage
func TestFeature(t *testing.T) {
tests := []struct {
name string
input string
want string
wantErr bool
}{
// test cases
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
// test implementation
})
}
}
Project Structure
cmd/awf/ # CLI entry point
internal/
├── domain/ # Business logic, no external deps
├── application/ # Services orchestrating domain
├── infrastructure/# Concrete implementations
└── interfaces/ # CLI handlers
pkg/ # Public packages
tests/ # Integration tests
Dependency Updates
AWF uses Renovate for automated dependency updates. When reviewing Renovate pull requests:
- Automerge-eligible PRs (minor/patch with passing CI): These merge automatically
- Major version updates: Review the changelog and test locally before approving
- CI failures: Investigate if the failure is dependency-related or a flaky test
- Questions: See Renovate configuration for more details
To temporarily stop updates, comment @renovatebot stop on a Renovate PR. To resume, comment @renovatebot start.
Review Process
- Maintainers review within 1-2 weeks
- Address feedback in new commits
- Squash commits before merge (if requested)
- Celebrate your contribution!
Questions?
Open an issue with the question label.