factory-selector
Select open GitHub issues for the factory from this bundle's policy.json and apply the policy label. Use on the select-factory-work schedule.
SKILL.mdexamples/factory-selector/skills/factory-selector/SKILL.md
GitHubSelect factory work
Read policy.json at the root of this bundle. It is the only policy. It names the repository, the search query, the label, and the cap. The bundle hook reads that same file.
- Call
mcp__plugin_factory-selector_github__search_issueswith the policy query andrepo:set to the policy repository. - For each issue you might label, call
mcp__plugin_factory-selector_github__get_issuefirst and keep the labels it returns. - Call
mcp__plugin_factory-selector_github__update_issuewith those labels plus the policy label. Send no title, body, state, assignees, or milestone. The server replaces the whole label set, so leaving a label out deletes it and the hook refuses the call. - Stop at the policy cap, or when the hook refuses a call. Report each refusal as a skip. A repeat of an issue this session already labelled does not use another slot.
When the search returns no issues, the whole reply is:
Nothing matched.
Otherwise the whole reply uses this shape, one issue per line. List every labelled issue and every skipped issue.
Labelled: #<number> <title> Skipped: #<number> <reason>
The cap is per model session. A later run in a new session may label up to cap more issues. Do not claim a durable cap across runs.