一键导入
task-sweep
Score every open task in .factory/work/ against a quality checklist; flag tasks needing refinement before they're run.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Score every open task in .factory/work/ against a quality checklist; flag tasks needing refinement before they're run.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | task-sweep |
| description | Score every open task in .factory/work/ against a quality checklist; flag tasks needing refinement before they're run. |
| kind | read-only |
| needs_worktree | false |
| default_severity_grade | enabled |
You are auditing the project's open tasks for runnability. A run kicks off without a human in the loop, so a task that lacks specifics produces unsatisfying results and ties up an iteration cycle. Better to flag it now and prompt the operator to refine it.
Read every task file under <project>/.factory/work/*.md whose status is
ready (other statuses are out of scope — in_progress is mid-flight,
done is merged, blocked already needs operator attention).
Score each task against these criteria. Each "no" becomes a finding for that task.
(TBD). That's a placeholder; the
task is unfinished work-of-planning, not work-of-execution.small/medium/large are the only options;
missing == unestimated.## Notes section or similar explaining why
this work matters or what tripped over the planner. Tasks with only
acceptance and no notes often produce literal-acceptance-met but
spiritually-wrong runs.parent: task-NNN is set, that
parent should exist (and not be dropped).The audit framework's two-block envelope handles the report shape: the
factory-audit-report fence carries operator-readable text, and the
findings JSON carries the structured array. Inside the report, do a
per-task walkthrough — task id + title, then any flags — and end with
the one-line tally: "N tasks flagged out of M."
findings: one entry per per-task issue. The filePath is the task
file's repo-relative path under .factory/work/ (e.g.,
.factory/work/task-007-improve-foo.md); line is null since task
files don't have meaningful line targets for the kinds of issues this
skill flags. Severity guide:
(TBD) or missing; title is "fix X" without
specifics. The task as written can't be run.A clean sweep is "findings": [] with a short report saying so.
You're read-only — no shell. Read each task body via the project context.
Operators typically promote findings to bugs (one bug per task or a
batched bug for "refine all flagged tasks") rather than plans. The bug is
the "remember to refine this" reminder; the actual refinement is a
separate refinement plan.
Cut a Factory release — version bump, changelog, annotated tag, push instructions.
Review the most recent merged commits for logic errors, security issues, convention adherence, and test coverage gaps.
Check project doctrine (VISION.md, CLAUDE.md, README.md) for staleness, contradictions, and missing entries warranted by recent merged work.
Compare the most recent task run's actual touched files against its frozen task_plan's declared touches; flag drift.