待办问题池维护
keep-the-pool-full
待办事项(backlog)管理员,通过挖掘真实来源(失败的测试、TODO、功能缺口、审计、用户报告)来保持一个由就绪且可独立合并的问题组成的储备池高于目标数量,并对这些问题进行去重、规模估算并标记为就绪。由于它会创建问题(issue),因此仅在 `/lever backlog` 命令、空闲策略为补充(refill)的交付运行中、用户设定的计划任务中,或用户明确要求时运行(例如'多提一些问题''让他们保持忙碌''填满待办池''我们没事可做')。
- License 许可
- MIT
- 所属仓库
- github/lever
- 最近更新
- 2026-11-06
- Stars
- ★ 292
- Forks
- 15
01 前言 Front Matter
- name
- keep-the-pool-full
- description
- Backlog steward that keeps a pool of ready, independently mergeable issues above a target by mining real sources (failing tests, TODOs, gaps, audits, user reports), deduplicating, sizing and labeling them ready. It files issues, so it runs only on `/lever backlog`, inside a delivery run whose idle policy is refill, on a schedule the user set up, or on an explicit ask ("file more issues", "keep them busy", "fill the backlog", "we have nothing to do").
- user-invocable
- false
03 SKILL.md 正文
keep-the-pool-full
Once implementation, review and merging are automated, the bottleneck moves upstream to supply. Agents with nothing well-defined to pick up either sit idle or invent work. This skill keeps a pool of issues that an agent can take, finish and land on its own: each one is real, independently mergeable, small, checkable and not a duplicate. The human job shifts from "build X" to setting the pool's target and its sources.
When to use
- The count of ready issues is below the target, or will be within a day at current throughput.
- A delivery loop or a set of worker automations reports
NOOP(no eligible work)repeatedly. - On a schedule (daily, or every few hours during an active run).
When not to use
- No one or nothing is consuming the pool. Filing issues nobody picks up is noise.
- The work needs product decisions that haven't been made. File one decision issue for a human instead.
- The repo's maintainers haven't agreed to agent-filed issues. Ask once; on other people's repos default to
DRY_RUN.
Steps
- Measure the pool. Count open issues matching
POOL_QUERY(defaultis:open is:issue label:ready no:assignee). Measure consumption: ready issues closed or assigned per day over the last 7 days. Pool coverage = pool size / daily consumption, in days. - Decide whether to file. If coverage ≥
TARGET_DAYS, endNOOP(pool healthy: N issues, C days)and post nothing. Otherwise the deficit isceil(TARGET_DAYS × consumption) − pool, capped atMAX_FILED_PER_RUN. - Mine sources, in
SOURCESorder. Each candidate must cite evidence a reader can check:- failing or quarantined tests, and flake-tracking issues;
TODO/FIXMEwith an owner-free, local fix;- gaps between a spec, doc or reference implementation and the code;
- audit and report outputs (perf, accessibility, security, dependency) already in the repo or its issues;
- user reports that are confirmed but lack an actionable task;
- follow-ups promised in merged PR descriptions or review replies.
- Shape each candidate into an issue using the checklist below. Split anything over
SIZE_CAPinto independent issues, not a dependency chain. If a candidate can't be made independently mergeable, drop it or file it as one human-decision issue. - Deduplicate. Search open and recently closed issues and open PRs for the same file, symbol, test name or error string. Embed a source fingerprint in the body (
<!-- pool-source: <kind>:<path-or-test>:<hash> -->) and search for it before filing. If a match exists, comment the new evidence on it once (if allowed) instead of filing. - File and label. Create the issue with
READY_LABELand the area label. Never assign it; consumers claim work by assignment or linked PR. - Report. One line per run:
pool: before → after (target T, coverage C days), filed n, skipped-duplicate d, dropped k. Silent when nothing was filed.
Issue-quality checklist
- Title says the change, not the symptom ("Make X cache key include Y", not "X is slow").
- Why: one sentence plus the source evidence link (test run, file and line, report, user issue).
- Done when: an observable acceptance check, ideally a command or test that fails now and passes after. If you can't write one, the issue isn't ready.
- Loop: how the implementer verifies it (see
find-the-loop). - Scope hint: the files or area likely touched, and what is out of scope.
- Size: expected diff under
SIZE_CAP; one PR; no ordering dependency on other open issues. - Safety: no secrets, credentials, internal links or personal data copied from the source.
Dials
| Dial | Default | Options |
|---|---|---|
POOL_QUERY |
is:open is:issue label:ready no:assignee |
Any issue search |
TARGET_DAYS |
2 days of consumption | Integer; or a fixed count |
MAX_FILED_PER_RUN |
5 | Integer; keep low until the invalid rate is known |
SIZE_CAP |
One PR, about 200 changed lines | Lines or files |
SOURCES |
tests, todos, gaps, audits, reports, follow-ups | Any subset, in priority order |
READY_LABEL |
ready |
Repo label |
| Mode | file on repos you own; dry_run elsewhere |
dry_run (write a candidate list only), file |
| Autonomy | L0 (issues only) | This skill never writes code; see docs/autonomy.md |
Running it as an automation
Use automate-it. Trigger: interval: daily (or hourly during an active delivery run). Tools: github/search_issues, github/search_pull_requests, github/issue_read, github/get_file_contents, github/search_code, github/actions_list, github/get_job_logs, github/list_label, github/create_issue, github/update_issue_labels, plus github/add_issue_comment if dedupe-comments are on. write_scope: repository (there is no triggering resource). Create it paused and dry-run it once; read the candidate list before enabling.
Outputs
- New issues labeled ready, each with evidence, acceptance check, loop and size.
- A per-run line in the run summary or ledger.
This skill's own feedback loop
Track weekly, per source:
- Pick-up rate: filed issues claimed within
TARGET_DAYS. - Merged-per-filed: filed issues closed by a merged PR.
- Invalid rate: filed issues closed as not planned, duplicate or invalid. Above 20% for a source → tighten or drop that source.
- Pool coverage over time. If the pool drains to zero every day, raise
TARGET_DAYSorMAX_FILED_PER_RUN; if issues age past 14 days unclaimed, lower them.
Failure modes it prevents
- Idle workers, or workers inventing their own work.
- Big, coupled issues that stall review and CI.
- Duplicate issues from multiple agents mining the same failure.
- "Ready" issues with no way to tell when they're done.
Why this exists
- In one unattended delivery loop, once implement, review and merge were automated, supply became the bottleneck. The human's prompts shifted from "build X" to "file real, independently mergeable issues and keep the pool full."
- "The answer can never be that we have nothing to do": idle was fixed with a standing backlog, not with more agents.
- Small, independently mergeable units are what let review, CI and merge keep up without a human; large units stalled.
- A backlog curation job run every 30–60 minutes also served as recovery memory when the coordinating session went down.
04 同仓库更多 Skills
重复纠正根因修复
steer-once
将你反复重复的纠正转化为持久性修复:挖掘你的各类纠正并分类,选择能够预防这些纠正的最低成本层级(指令、技能、lint/CI 检查、测试、自动化或产品 bug 报告),提交一个带证据块的 PR,然后在 K 天后重新度量,并决定保留、升级或回滚。由于会创建 PR,因此仅在 `/lever steer` 或明确要求(“挖掘我的纠正”“为什么我总跟你说 X”“我不是给过你一个技能来做这个吗”),或当 prompt-mirror 在 3 个及以上会话中报告同一类纠正且你表示同意时才运行。
自动化运行健康审查
run-health-review
停滞监视器与自动化健康审查。拉取近期运行、合并、无操作率、失败、速率限制命中以及卡住的 PR;对每种停滞进行分类;只提出一项变更或“不变更”;并接管被遗弃的工作。当无人值守交付停滞(“为什么一夜之间就卡住了”“N 小时没有合并”“前几天还很快,现在变慢了”)、某个自动化失败或其产出下降、遭遇速率限制或配额用尽,或在 agent 无人值守运行期间按计划执行时使用。
大规模代码重构流水线
refactor-pipeline
以三个独立通道——生产者(producer)、打包者(packager)和牧羊人(shepherd)——运行大规模的机械式重构(crate 或 package 拆分、模块提取、API 迁移、死代码删除),这些通道仅通过 git 和 PR 栈进行协调。它会推送分支并创建 PR,因此仅在 `/lever refactor` 或明确要求(“拆分此 crate”“拆分这个单体”“这个模块太大了,把它精简一下”“迁移所有调用方”)时运行。
Copilot 提示词习惯分析
prompt-mirror
挖掘本地 Copilot 会话历史,返回一份关于你如何指导智能体的评分卡,并附上三条建议,用你自己的前后对比消息加以说明。由于它读取你的私有历史,因此仅在 `/lever mirror` 或明确请求(“我的提示词水平如何?”、“指导我改进”、“挖掘我的会话”、“我总是在重复什么?”、每周自我复盘)时运行。
长时任务进度契约跟踪
progress-contract
推动长时间运行或委派的任务进展,让人类无需轮询。它会发布带有 ETA 及各自所需证据的里程碑,仅在发生重大变化时发送报告,为每项声明标注证据等级,记录 ETA 准确性,监控距上次合并的时间,并在宣布“完成”之前依据证据对“完成”状态进行审计。适用于任何委派的、耗时数小时或通宵运行的任务,当任务简报设定了报告契约时,或当用户询问“状态如何?”、“预计何时完成?”、“我们进行到哪了?”、“昨晚发生了什么?”、“逐小时汇报”或“你完成了吗?”时。
PR 落地合并驱动
pr-shepherd
通过事件驱动循环推动开放的拉取请求直至落地。每次唤醒时执行一次批量读取,修复红色必填检查的根本原因,处理每一条审查讨论线程,并按照自主性拨盘设定的级别执行落地。由于它会推送代码并可能执行合并,因此仅在 `/lever shepherd`、来自 lever 协调器的移交、被标记为 shepherding 的 PR,或明确请求(“监控 CI 直至通过”、“推送修复直到通过”、“解决审查讨论线程”、“通过即合并”、“照看这个 PR”、“shepherd”)时运行。