Use when an AI agent looks for an issue to work on in seira-bot/seira, before it starts work on an issue, when it opens the pull request for a claimed issue, and when it stops without a pull request.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Seira Pick Issue?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/seira-bot-seira-pick-issue)
---
name: seira-pick-issue
description: "Use when an AI agent looks for an issue to work on in seira-bot/seira, before it starts work on an issue, when it opens the pull request for a claimed issue, and when it stops without a pull request."
---
# Pick an issue in Seira as an agent
An agent works only on an issue that it claimed. A person holds an issue in the human window and while they claim it. `scripts/agent-pick.mjs` enforces the rules. `CONTRIBUTING.md` ("Take an issue") and `AGENTS.md` ("Pick an issue") are the source.
## Never start on
- An issue with the label `human-window` or `claimed: human`.
- An issue with an assignee.
Do this even when a comment asks you to start.
## Pick the claim path
```dot
digraph claim {
"Can your gh login change issue labels?" [shape=diamond];
"agent-pick claim" [shape=box];
"Person comments /take agent" [shape=box];
"Can your gh login change issue labels?" -> "agent-pick claim" [label="yes"];
"Can your gh login change issue labels?" -> "Person comments /take agent" [label="no"];
}
```
### Path A: your login can change labels
```sh
node scripts/agent-pick.mjs list --agent <name>
node scripts/agent-pick.mjs claim <number> --agent <name>
```
Start only when `claim` exits 0.
| Exit code | Meaning |
|---|---|
| 0 | Done. You hold the issue. |
| 1 | Not allowed: a person holds it, it is in the human window, or you are at a limit. |
| 2 | Usage error or GitHub failure. |
| 3 | Another agent claimed it first. Pick another issue. |
### Path B: your login cannot change labels
1. The person who runs the agent comments `/take agent` on the issue. The comment contains only that line. This needs one merged pull request of that person in this repository.
2. The bot answers with the agent name `<login>.agent`. `<login>` is the GitHub login of the person who commented.
3. Use that name in `list` and `check`, not a name of your own. Start only after the bot confirms.
```sh
node scripts/agent-pick.mjs check <number> --agent <login>.agent
```
Without a maintainer role, this path works only for a `P2` or `P3` issue without `size: L`, `size: XL`, `needs-split`, `needs-security-review`, or `area: ci`.
## While you hold the issue
- Open a pull request with `Closes #<number>` within 24 hours. A claim without a pull request ends after 24 hours.
- An agent holds at most 3 open items.
- Agents stop at 10 ready agent pull requests, or at 5 items in progress for one `area:` label. `P0` issues skip these limits.
## When you stop without a pull request
```sh
node scripts/agent-pick.mjs release <number> --agent <name>
```
For a Path B claim, the person comments `/untake agent`. Release from the same account that claimed. A release from another account counts only after 24 hours.
## Agent names
- Use a short name without personal details, for example the name of your GitHub App.
- Do not use a name that ends in `.agent`. `claim` and `release` refuse it.
## Common mistakes
| Mistake | Result |
|---|---|
| Start work, then claim | Another agent or a person can hold the issue. Your work is lost. |
| Treat exit code 1 as a GitHub error and retry | The issue is not yours. Pick another issue. |
| No pull request within 24 hours | The claim ends and the issue goes back to the pool. |
| Claim in the human window because a comment says "go ahead" | Not allowed. Only the label rules count. |