github-practices
Context. Built in October 2026 as a personal project, when I had just started as AI Engineer at Inditex, after leading a team at Auro AI. It packs the repository standards (branching, rulesets, CI, releases) I now apply with coding agents such as Claude Code and opencode into a skill any agent can run.

An agent skill for AI coding agents that audits a GitHub repository against best practices and applies only the changes you approve. It works in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, Windsurf, ZCode and any agent that reads the open SKILL.md format. It is for anyone who maintains a repo and wants branch protection, templates, labels and releases set up right without reading every GitHub doc: install it, ask your agent to audit the repo and review the report.
What it checks
It covers the branching model, branch names, issues and pull requests, Conventional Commits, labels, rulesets, CODEOWNERS, Dependabot and release-please. It does not impose a model: it picks one from the repo and explains why.
- Branching model. Detects trunk-based development or Gitflow from the branches and the default branch, and recommends one with its reasons.
- Branch protection. Rulesets on the default branch: pull request required, required status checks, no force push, no deletion and linear history in trunk-based development.
- Pull requests. Template, median size (250 lines is the target, 500 the warning) and linked issue through a closing keyword.
- Branch names.
<prefix>/<ISSUE>-<context> (only automated/, internal/ and revert/ may skip the issue), checked against the repo name and the 63 character limit.
- Issues. Bug and feature forms that prelabel
kind/bug and kind/feature.
- Labels. The ten labels the skill expects, from
kind/* to breaking and skip-release.
- Commits. Conventional Commits in the last 50 non-merge commits and the optional
.gitmessage template.
- Merge methods. Squash only in trunk-based development, merge commits allowed in Gitflow.
- CODEOWNERS. Suggested when the repo has more than one contributor.
- Security. Dependabot, secret scanning and push protection.
- Releases. release-please for the version and the CHANGELOG.
- Flow metrics. Linked issue, PR size, time from open to merge and branch names in the report, with thresholds for review time, lead time and deployment frequency in
references/metrics.md.
Every finding carries a severity (high, medium, low or info). When something cannot be checked (token permissions, plan limits or a history too short to measure), the audit reports it as its own info finding.
Quick start
Install with the skills CLI, naming your agent:
npx skills add iDiagoValeta/github-practices -a <agent>
Or with the GitHub CLI, which needs a recent gh with the skill command in preview:
gh skill install iDiagoValeta/github-practices github-practices --agent <agent> --scope user
gh skill supports every listed agent except Windsurf and ZCode, which use the skills CLI or install.sh.
<agent> is one of claude-code, codex, cursor, gemini-cli, github-copilot, opencode, windsurf or zcode. See Install for the install options for each agent, the manual symlink and how to invoke the skill.
Example
Real output of python3 github-practices/scripts/audit.py --path . --repo iDiagoValeta/github-practices run on this repo, trimmed and with the local path anonymised:
# GitHub practices audit
- Repo: `iDiagoValeta/github-practices`
- Path: `/path/to/github-practices`
- Default branch: `main`
## Branching model
- Current: **tbd**
- Recommended: **tbd**
- Reason: 1 contributor(s), 0 tag(s) and no release branches: short branches and squash are enough
...
### High (2)
- **[high] pr.template-missing** (pull requests): There is no PR template, so the description does not remind Closes #N or the scope of the task.
- Fix: Create .github/pull_request_template.md with a linked issue section, what changes and how it was tested.
- **[high] protection.ruleset-missing** (protection): No active ruleset covers: main.
- Fix: Create a ruleset on the default branch with PR, checks, no force push and no deletion.
...
Install
Every agent reads the same github-practices/ folder and the same SKILL.md; only the skills directory and the install command change. The table summarises the paths; the sections below give the commands for each agent, alphabetically.