Use this skill whenever working on a git repository — creating branches, opening issues, submitting pull requests, writing or updating a README, or reviewing code. Triggers include starting work on a feature or fix, preparing a PR, setting up a new repository, or any task involving collaboration workflow on GitHub. This skill defines the expected workflow and quality standards for contributing to a codebase. It complements the atomic-commits and TDD skills, which govern commit format and development cycle respectively.
This skill defines the workflow and standards for contributing to a codebase. It covers branching strategy, issue tracking, pull requests, code review, repository documentation, and repo hygiene.
Use trunk-based development. All work integrates into main (the trunk) frequently.
Rules — non-negotiable:
main, name it descriptively (e.g. feat/add-status-filter, fix/null-ref-sidebar), and merge back within 1–2 days maximum. If the work takes longer, break it into smaller deliverables. A branch that lives longer than two days is a long-lived branch. Don't let it happen.main must leave the codebase in a working, releasable state. Merging broken code to is not acceptable under any circumstances — not "temporarily", not "to unblock someone", not for any reason.mainmain to maintain a linear history and catch conflicts early: git fetch origin && git rebase origin/main.Every piece of work must be linked to a GitHub issue. No issue, no work. This is not bureaucracy — it's traceability.
Before starting any work:
bug, enhancement, documentation, good first issue).feat/add-filter-#42, and Closes #42 in the PR body).A pull request is a proposal to merge your changes. It should be easy to review.
PR quality checklist:
feat(auth): add JWT refresh before expiry).Closes #42), any breaking changes or migration steps, and screenshots or examples for UI changes.PR template (if the repo doesn't already have one):
## What
Brief description of the change.
## Why
Link to issue or explanation of motivation.
## How
High-level approach taken.
## Checklist
- [ ] Tests added/updated
- [ ] Documentation updated if needed
- [ ] No unrelated changes included
- [ ] Self-reviewed the diff
When reviewing others' code:
Every repository should have at minimum:
README.md — the front door of the project. It should include:
CONTRIBUTING.md — guidelines for contributors. It should cover:
Keep documentation current. If you change how to set up or use the project, update the docs in the same PR. Not in a follow-up PR, not "later" — in the same PR. Stale documentation is worse than no documentation.
node_modules, .env files with secrets). Use .gitignore properly.commit-and-tag-version in the CI pipeline. This is why correct Conventional Commits format matters — the tool parses commit types to determine the semantic version bump.| Concern | Governed by |
|---|---|
| Commit message format and atomicity | atomic-commits skill |
| TDD cycle and micro-commit conventions | tdd skill |
gh CLI operations (PRs, issues, runs) | github skill (steipete/github) |
| Branching, PRs, reviews, repo docs, hygiene | This skill |