Agent skill
deliverable-selfloop
Self-loop a deliverable until it is publishable by the pipeline standard: diagnose -> fix -> re-check, and write a PASS/FAIL report. **Trigger**: self loop, self-loop, polish deliverable, quality gate, fix-on-fail, 收敛, 自循环, 质量门. **Use when**: A pipeline has produced a reader-facing deliverable (`output/*.md`) and you want deterministic convergence to PASS. **Skip if**: You are still pre-approval for prose or the upstream evidence/structure artifacts are missing. **Network**: none. **Guardrail**: Do not invent papers/citations/results. Only use in-scope inputs already present in the workspace.
Install this agent skill to your Project
npx add-skill https://github.com/WILLOSCAR/research-units-pipeline-skills/tree/main/.codex/skills/deliverable-selfloop
SKILL.md
Deliverable Self-Loop (fix-on-fail)
Goal: converge a pipeline deliverable to a stable, reader-facing quality bar.
For the ideation path, the target is now a brainstorm memo bundle:
output/REPORT.mdoutput/APPENDIX.mdoutput/REPORT.json- plus the supporting trace chain under
output/trace/
Load Order
- Always read
references/overview.mdfirst — defines trace chain, convergence model, and upstream routing. - Read
references/quality_checklist.mdbefore running the gate — lists required sections, quality tokens, and templated-language anti-patterns checked by the script.
Inputs
output/trace/IDEA_SIGNAL_TABLE.mdoutput/trace/IDEA_DIRECTION_POOL.mdoutput/trace/IDEA_SCREENING_TABLE.mdoutput/trace/IDEA_SHORTLIST.mdoutput/REPORT.mdoutput/APPENDIX.mdoutput/REPORT.json
Output
output/DELIVERABLE_SELFLOOP_TODO.md(report-class; always written)
Workflow
-
Run the gate — run the script (see Script below) on the workspace. It checks trace presence, shortlist size, required sections, appendix quality, and templated language.
-
Read the TODO report — open
output/DELIVERABLE_SELFLOOP_TODO.md. If- Status: PASS, the deliverable is done. -
Fix blockers — for each issue listed under
## Remaining blockers:- Missing
output/trace/IDEA_SIGNAL_TABLE.md→ runidea-signal-mapper. - Missing
output/trace/IDEA_DIRECTION_POOL.md→ runidea-direction-generator. - Missing
output/trace/IDEA_SCREENING_TABLE.md→ runidea-screener. - Missing
output/trace/IDEA_SHORTLIST.md→ runidea-shortlist-curator. - Missing REPORT sections → expand the report via
idea-memo-writer. - Thin APPENDIX → enrich with per-paper reading guides.
- Templated language → rewrite canned phrases to context-specific language.
- Missing
-
Rerun until PASS.
Acceptance
output/DELIVERABLE_SELFLOOP_TODO.mdexists and contains- Status: PASS.- All 7 trace/output artifacts present and non-empty.
- Shortlist size is 3–5.
- No templated language detected.
Script (optional; deterministic gate)
Quick Start
python .codex/skills/deliverable-selfloop/scripts/run.py --workspace workspaces/<ws>
All Options
--workspace <dir>(required)--unit-id <U###>--inputs <semicolon-separated>--outputs <semicolon-separated>--checkpoint <C#>
Examples
- Run the gate on a brainstorm workspace:
python .codex/skills/deliverable-selfloop/scripts/run.py --workspace workspaces/brainstorm-llm-agents
Didn't find tool you were looking for?