Write issues and pull requests as specs an agent can act on: fixed sections, filterable labels, no prose to interpret. Trigger: create or file an issue, report a bug, request a feature, open or prepare a PR, branch naming, PR description, labels.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Aval Pr?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/alvaroofernaandez-aval-pr)
---
name: aval-pr
description: "Write issues and pull requests as specs an agent can act on: fixed sections, filterable labels, no prose to interpret. Trigger: create or file an issue, report a bug, request a feature, open or prepare a PR, branch naming, PR description, labels."
---
## Activation contract
Load when creating an issue, naming a branch or opening a PR. Issues and PRs are **specs for agents first**: the lightest form an agent can parse and act on without asking. Humans read the same text. Commit shape and chained PRs: `aval-work-units`.
## Hard rules
- **Fixed sections, in order**: Goal, Scope, Acceptance criteria, Files, Test plan, Out of scope. Templates: [templates/issue.md](templates/issue.md), [templates/pr.md](templates/pr.md). Fill every section; write `none` instead of deleting one.
- **No prose an agent must interpret.** One-line goal; scope and criteria as short bullets; each criterion is checkable by a command or an observable result ("`go test ./x` passes", "`aval foo` exits 0"), never "works well".
- **Facts, not stories.** Real paths, commands and numbers read from the repo or a run. No history, no emojis, no motivation essay. Hypotheses are labelled `hypothesis`, never stated as root cause.
- **A diagram only when it removes ambiguity** (a flow or a state machine that bullets cannot say). Then one small Mermaid block, not several.
- **Labels an agent can filter on**, exactly one per axis (below). A PR copies the issue's `type:` and `area:`.
- **Search first**: `gh issue list --state all --search "<keywords>"`; extend a duplicate instead of opening another.
- **Link, do not repeat**: `Closes #N` in the PR body when an issue exists; the PR does not restate the issue.
- **No AI attribution** in titles, bodies or commits. Never push or open a PR unasked.
## Labels
| Axis | Values | Meaning |
| --- | --- | --- |
| `type:` | `feat` `fix` `docs` `refactor` `perf` `test` `chore` `breaking` | same words as the Conventional Commit type |
| `area:` | the repo's own (`area:core`, `area:tui`, ...) | the module touched; one |
| `size:` | `s` (<= 100 changed lines) `m` (<= 400) `l` (> 400, split first) `exception` | review budget |
| `status:` | `ready` `in-progress` `blocked` `review` | `ready` = the spec is complete and an agent can start |
Create what is missing with `gh label create "type:fix" --force --color <hex>`; never invent a fifth axis.
## Issue
1. Search for duplicates, then fill `templates/issue.md`.
2. Title: `type(scope): outcome`, under 70 characters.
3. `gh issue create --title "..." --body-file <file> --label "type:fix,area:core,size:s,status:ready"`.
4. Bug: Goal states the observed vs expected behaviour; the Test plan is the reproduction command.
## Branch
`<type>/<kebab-description>`, matching `^(feat|fix|chore|docs|refactor|perf|test|build|ci|revert)/[a-z0-9._-]+$`. Chain slices add `-01-`, `-02-` (see `aval-work-units`).
## Pull request
1. Confirm the diff holds one unit and stays within 400 changed lines; otherwise split first.
2. Fill `templates/pr.md` from the issue's sections plus what actually changed: Files lists real files, Test plan lists commands that ran with their results.
3. Title is the Conventional Commit of the change.
4. `gh pr create --title "..." --body-file <file> --label "type:fix,area:core,size:s,status:review"`.
5. Chained PR: also fill the chain block (position, base, depends on, follow-up).
## Output contract
Return the issue or PR URL, its labels, and the template sections left as `none` with the reason.