Pull Request Workflow for Agents
SkillAI & modelsGuide and instructions on how coding agents should format code, commit changes, run pre-commit checks, push branches, and create pull requests using the project templates.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Pull Request Workflow for Agents skill
What this skill tells your AI
The instructions your AI receives, as published by firstof9/ha-gasbuddy in .agents/skills/pr_workflow/SKILL.md and read by ahel’s review.
This guide assists AI agents in preparing, checking, and submitting Pull Requests (PRs) in this repository.
1. Code Preparation & Formatting
Before committing any changes, ensure all code conforms to the project's formatting and styling rules:
# Format the code using Ruff (target is Python 3.14)
.venv/bin/ruff format custom_components/ tests/
# Run lint checks and auto-fix simple errors
.venv/bin/ruff check --fix custom_components/ tests/
Verify that all local unit tests pass before opening a PR:
.venv/bin/python -m pytest -q --no-header
2. Git Staging & Commits
Stage changes and commit them with meaningful conventional commit messages:
git checkout -b feat/your-feature-branch
git add custom_components/ tests/
git commit -m "feat: Describe your changes clearly"
Note: Staging/committing triggers local pre-commit hooks (like ruff, codespell, and large file checks). Make sure they pass.
3. Creating the Pull Request
- Push your branch to the remote:
git push origin feat/your-feature-branch - Locate the project's PR template at
.github/PULL_REQUEST_TEMPLATE.md. - Create the Pull Request (either using Git commands, the GitHub UI, or
github-mcp-servertools). - Important: The PR description must use the exact content of the PR template. Do not delete sections from the template (unless explicitly instructed, e.g. the breaking changes warning when no breaking changes exist). Make sure all checkboxes indicating test status, formatting, and Conventional Commits are checked off appropriately.
Signals
- GitHub stars
- 65
- Forks
- 12
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
pr-workflow- Source
- github.com/firstof9/ha-gasbuddy