factory
Hand ready tickets to the factory, resolve holds, deliver skipped or handed-off work, or pause and resume one repository.
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- factory
- description
- Hand ready tickets to the factory, resolve holds, deliver skipped or handed-off work, or pause and resume one repository.
02 资源文件 1
- 参考文档CREDITS.md99 B
03 SKILL.md 正文
A prompt or brief naming this skill is its invocation.
Work in the repository the factory serves. Read CONTRIBUTING.md, the
installed factory-workflow and github-repository-configuration rules, and
.factory/config.json before acting. The guide and rules hold the requirements;
this skill supplies the method. Use the configured label roles rather than
assuming the shipped strings. Read the issue's authoritative contract, comments,
blockers, and any existing PR and handoff before choosing a path below.
Hand a ready ticket to the factory
- Check the contract's accepted revision and its validator notice, parent readiness and open blockers under the guide and installed rules. Resolve missing required inputs before seeking readiness.
- Choose the ticket's model, weighing its triage suggestion. Prefer a stronger model for design judgment, ambiguous scope or a long cross-cutting change. Use the rules' model-label syntax and metadata; the host operator resolves an unavailable or disallowed model rather than substituting one silently.
- Apply the readiness policy through
triage's readiness command. With an App or bot credential in a factory repository, hand the reviewed revision, suggested readiness, model and route labels, and blockers to an authorized person. Report pickup only when the factory actually records it. - For a parent held under the latest-link-time fallback, wait until its latest ticket link is visible in the timeline, then remove and re-add its ready label after that timestamp. Each ticket still needs its own readiness. With complete authorized link history, use the installed actor-history rule.
Read a hold
Read the factory's issue comment and current labels first. Match the reason rather than clearing a state label to see what happens:
| Observation | Next action |
|---|---|
| Refused readiness or parent not ready | Verify the exact revision and the authorized person's readiness, then the parent's contract and link history. |
| Model-label error | Reconcile the ticket's single model label with the chosen model; ask the host operator about resolvability or the allowlist. |
| Repository configuration refused | Ask the host operator to verify the serving release and configuration acceptance. Keep the issue's evidence available. |
| Open blockers, capacity or usage drain | Resolve blockers or wait for the host's gate to clear; no label reset bypasses it. |
| Repository or release hold | Find the labelled open items and use Pause and resume below. |
| Running or paused | Read the factory notice; the factory owns the run and its automatic resumption. |
| Needs input | Answer through the guide's owner-question route. If the contract changes, wait for its revised notice, independent review and renewed readiness before continuation. |
| Failed | Address the failure note first, then remove the failed label to request a retry subject to pickup gates. |
| Skip | Use the directly launched path below; clearing a waiting marker does not request a factory retry. |
Actionable hold comments update in place and mark cleared reasons resolved. Other gates may be log-only under the rules. If no comment explains a held issue, ask the host operator for its reason; a host with no cached valid configuration cannot post an issue hold comment. Keep credentials and secret host material out of tracker records.
Take the skip route
For work excluded by the installed rules, arrange the ready, model and skip
labels together through the authorized readiness path. Launch implement
directly with the contract, evidence, decisions, issue link and delivery role.
The worker opens the PR and records its current head, validation, both internal
review outcomes, outstanding findings and owner-review designation with its
source. Continue as the orchestrating agent through babysit from that handoff;
apply its current-head owner-approval gate when designated.
For an unanswered owner question, retain the skip and needs-input markers. After resolution and any required renewed readiness, resume the worker if no PR exists, or continue the same open PR and its handoff. Live host access gates only the authorized live steps.
A live-acceptance ticket takes this route. Its worker records the ticket's live acceptance on it instead of opening a PR, and reports back. It closes only once its live acceptance is recorded on it, never on a merge; its source ticket's PR links it without a closing reference. A time-bounded host access grant belongs to the orchestrating agent that asked the maintainer for it, which records the workers using it. Workers never end it: it ends when the last of them reports back, or at its own time bound.
Finish a handed-off factory PR
Check eligibility under the installed recovery rules: a non-skipped factory run stopped under needs-input with its PR still open. A failed run is a retry path, not this handoff. Read the question, answer, accepted contract revision, reviews and handoff; resolve any required renewed readiness first.
Take delivery ownership as the orchestrating agent while retaining needs-input,
then invoke babysit at Branch-update recovery before requesting or waiting.
In an owned checkout, preserve all work and review context, fetch origin and
resolve its default branch, inspect outgoing commits per merge parent and the
whole change, and rebase or replay only this issue's changes onto that base.
Follow babysit's validation, publication, repeated review and one-attempt
recovery method. Record its delivered head, checks, applicable review outcomes
and merge commit on the PR. Uncertain ownership, conflicts, failed recovery,
a second stale base or a permission refusal goes to the guide's owner handoff.
If factory resumption is chosen instead, remove needs-input only after the question and any required renewed readiness are resolved. The factory resumes the same work and PR; no PR closure is needed. Deliver multiple handed-off PRs sequentially, refreshing the base separately for each.
Pause and resume one repository
- Read
labels.holdin the repository configuration and locate every open issue and PR carrying it. If the key is absent, arrange a compatible configuration with the owner before attempting a pause. Distinguish this repository hold from the release hold and the factory's per-run paused state. - For an expedited change with an existing PR, put the hold on that PR. If work starts before its PR exists, put it on the change's issue first and record why the repository is paused and which change will carry it.
- Deliver the expedited change outside factory pickup: launch a worker directly or implement as the orchestrating agent. A held repository launches no new work. An already-open factory PR can instead carry the hold and finish through its exempt merge relaunch. Runs already started finish without merging while another open item holds the repository.
- Once the expedited PR opens, add the hold to it before removing the hold from the issue. Verify that transfer on both items. Before merging, inspect all other open items carrying either configured hold: only the PR being merged is exempt, so a forgotten issue hold would block it too.
- Finish validation, applicable reviews and merge authorization through
babysit. Its merge check exempts this PR's own hold, allowing the expedited change to merge. The PR's closure ends that hold automatically. To resume a deliberate pause without merging, remove the hold from the item that carries it; leave other owners' holds alone. Confirm no remaining open hold and report the resulting state. A release hold still restricts merges separately.
Reads
Paths are relative to the repository root.
CONTRIBUTING.md: contract, readiness, delivery, question, comment and credential requirements. When it is missing, use the installed rules and hand off any unresolved delivery or authorization question on the issue or PR.- The installed
factory-workflowandgithub-repository-configurationrules, located withrepository-standards. When they are missing, use the guide and configured roles; ask the owner before a route or merge-ownership decision that those sources do not settle. .factory/config.json: configured label roles. When it is missing or unreadable, perform read-only diagnosis and ask the owner to establish the factory configuration before changing factory labels.
04 同仓库更多 Skills
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
wayfinder
Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
triage
Move issues and external PRs through a state machine of triage roles, sort each request by where its uncertainty lies, and bring its agent brief to acceptance through research and independent review, or through a grilling session with the owner.
to-tickets
Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).
to-spec
Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.
tdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.