software-factory
它能做什么
它定义了规划一个自动化系统所用的术语,在该系统中,智能体把工单转化为已合并的代码。它适合负责这类系统设计的工程负责人和团队。
适用场景
- ✓你正在设计一个让智能体处理工单和拉取请求的系统的时候。
- ✓你的团队需要对任务、运行和执行器使用同一套词语的时候。
- ✓你正在讨论智能体设置应如何连接到现有工具的时候。
技能链接
https://github.com/mattpocock/skills/blob/main/skills/in-progress/software-factory/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我设计一个自动化系统,让智能体领取工单并发起拉取请求。”
每周 5 个新技能,1 分钟读完。
工作原理
技能给出了一组明确的术语,例如任务、触发器、运行和执行器。它要求智能体使用这些术语,并把含糊的词替换为标准术语。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
A software factory is a system of agents that turns tickets, PRs and schedules into merged code, deployed on remote infrastructure the user chooses. This skill is the language for designing one. Use these terms, and only these, when discussing or whiteboarding a factory; when the user reaches for a word under Avoid, name the canonical term.
Tasks and runs
Task: A kind of work the factory performs, defined once and run many times: review, explore, implement, ratchet. A task may work on a ticket, a PR, or the codebase as a whole. Avoid: job, workflow, action
Trigger: The event that starts a run: a change in the ticket tracker or git host, a clock in the orchestrator, or another run.
Run: One execution of a task on one runner, from its trigger to its finish, treated as a black box. A run triggers further runs either directly, through logic in the orchestrator, or by changing the ticket tracker or git host. A run never waits for a human: it ends, and the human's later change to the ticket tracker or git host triggers a new run. Avoid: session
Runner: The disposable machine a run executes on. Nothing on it survives the run, even when the machine itself is long-lived: a run's only memory of earlier runs is the ticket tracker, the git host and the orchestrator. Avoid: server, host, box, compute, sandbox
Services
Ticket tracker: Where tickets live, and the factory's human interface: humans schedule work by filing tickets, talk to agents in their comments, and their changes to tickets trigger runs. Avoid: issue tracker, ticket manager, project board
Ticket source: Anything outside the factory that creates tickets in the ticket tracker: a feedback button, a monitor, an error tracker, an inbox. Avoid: data source, trigger source, intake
Git host: Where branches, PRs and reviews live. Avoid: code host, forge, repo
Orchestrator: The component that receives triggers, starts runs on runners, and records which runs are queued, in flight or finished. Avoid: dispatcher, scheduler, control plane
Observability platform: Where runners send logs, traces and status, so a human can see what happened inside each run. Optional: the product filling the runner or orchestrator slot often shows enough on its own. A run never decides on it until something writes it into the ticket tracker or git host. Avoid: observability, logs, monitoring, dashboard
Designing a factory
A design has two halves: the services, each a slot filled with a product, and the tasks whose runs move work through them.
Start from the user's problem, not the factory: untriaged tickets, PRs waiting for automated review, a stricter automated check to migrate to, bugs nobody reads. When the user names a problem or doesn't know what to build, read EXAMPLE-TASKS.md for the tasks that solve common ones.
Start slow
Every trigger is an accelerator. Accelerators without brakes make a slop cannon. There are three brakes:
- Automated checks: deterministic gates (types, lint, tests) that every run must pass.
- Automated review: a separate run that reads the diff cold against the codebase's standards and the ticket, when there is one.
- Human review: a human reads the PR before it merges; what it catches becomes new automated checks and sharper automated review.
Add one automated trigger at a time, throttled at first (one bug report in ten, a clock once a day), with human review on every PR. Open the throttle as the brakes earn trust, and cap every loop of runs at a few tries before a human.
Fill every slot
Each service is a slot. One product can fill several slots, and one server can host several services. Three designs, side by side:
| Service | All on GitHub | Linear tickets | Own tracker |
|---|---|---|---|
| Ticket tracker | GitHub Issues | Linear | own app |
| Ticket source | feedback button | feedback button, monitor | feedback button, monitor |
| Git host | GitHub | GitHub | GitHub |
| Orchestrator | GitHub Actions | own server + database | own app |
| Runner |
常见问题
什么是运行?
指一项任务在一个执行器上的一次执行,从触发器开始到结束,并被视为一个黑盒。
什么是执行器?
运行所在的一次性机器,运行结束后不保留任何内容。
这是我需要安装的工具吗?
不是。它是一种用于讨论和设计该系统的共同语言。
详情
作者的原始描述
Shared language for designing a software factory: the tasks it runs and the services it plugs into.
repo: mattpocock/skills
热度
- GitHub 星标
- 310k
- 排名
- #116
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …