IMPORTANT: Always create a new branch before making any changes to the codebase.
- Feature branches:
feature/<description> - Bug fixes:
fix/<description> - Documentation:
docs/<description> - CI/CD changes:
ci/<description>
-
Before making changes: Create a new branch from main
git checkout main git pull git checkout -b <branch-type>/<description>
-
After changes: Commit and push to the feature branch
git add <files> git commit -m "type: description" git push -u origin <branch-name>
-
Create PR: Use
gh pr createwith descriptive title and body -
After merge: Delete the feature branch
git checkout main git pull git branch -d <branch-name>
- Main spec:
openapi/openapi.yaml - Schemas:
openapi/components/schemas/ - Paths:
openapi/paths/ - Parameters:
openapi/components/parameters/ - Responses:
openapi/components/responses/
Always run these commands before committing:
npm test # Lint the OpenAPI spec
npm run build # Build HTML documentation
npm start # Preview docs locally- Use resource-specific examples inline in path files
- Base examples on real ESPI sample data when available
- Use
data.greenbuttonconnect.orgas the host for all example URLs - Follow ESPI/Atom XML formatting conventions from ~/.claude/CLAUDE.md
Follow conventional commits:
feat:New featuresfix:Bug fixesdocs:Documentation changesci:CI/CD changeschore:Maintenance tasks
Always include:
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
- CI/CD automatically runs on all PRs and pushes to main
- GitHub Pages deploys automatically on main branch pushes
- Documentation URL: https://greenbuttonalliance.github.io/openapi-starter/