loop-design-check SKILL.md skillA

loop-design-check from qshanx/docs-governance is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add qshanx/docs-governance/loop-design-check@git:20261011.d0306dc

Pins git:20261011.d0306dc in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
qshanx/docs-governance
Path
skills/engineering/loop-design-check/SKILL.md
Versions recorded
1
Latest version
git:20261011.d0306dc, committed Oct 11, 2026
Size
9,611 bytes
Repository stars
218
License
MIT

把一个任务"写成"一个目标导向的 loop,并"检查"这个 loop 写得对不对、会不会跑飞——防止空转烧钱 / Goodhart 作弊 / 把错的干到底。两个动作:① 写 loop(先做减法判该不该建 → 定可判定目标 → 选回路类型 → 选骨架)② 体检 loop(过五个崩法 + 可判定性 + 边界 + 降级 + judge 独立 + 判断留人红线)。中文触发:写 loop、设计 loop、做一个 loop、把任务变 loop、agent 自动循环、检查 loop 对不对、loop 体检、loop 会不会跑飞、loop 空转烧钱、loop 作弊、目标导向循环、可判定目标、五个崩法、plan build judge、文档驱动派活、该不该建 loop。English triggers: design an agent loop, write a loop, check a loop, loop review, prevent runaway loop, goal-oriented loop, decidable goal, plan build judge.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Loop 设计 + 体检

> **一句话前提**:LLM 本身是前馈系统(prompt 进 → token 出,跨轮之间没有内建的"朝目标纠偏"能力)。要它*表现得*像目标导向系统,得在外面包一条反馈回路(loop)。这个 skill 帮你**写对**这条回路、并**体检**它不会跑飞。

## 何时用 / 不用

**用**:
- 想把一个重复任务交给 agent 自动反复跑(写完测、测完修、改完验…)。
- 已经写了个 loop,但担心它空转 / 作弊 / 跑飞,要体检。

**不用**:
- 一次性任务 → 直接做,别套循环。
- 纯定时提醒 / 轮询 → 用 `/loop` 命令即可,不需要"设计"。
- "怎么搭循环的工程架构(管道→DAG、长跑恢复)" → 那是机制层,看 `autonomous-loops` / `continuous-agent-loop`。**本 skill 只管"目标定得对不对、会不会跑飞"这层判断,不重写机制。**

## 红线前提:两层反馈(先记死,违反则全盘皆输)

| 层 | 谁管 | 干什么 |
|---|---|---|
| **执行层**(低层) | 机器 / agent | 测"离字面目标还差多少",死磕缩到 0。机器很强。 |
| **判断层**(高层) | **人** | 判"这目标本身对不对、要不要改、要不要停"。机器跳不出自己的回路质疑目标。 |

> 空调能反馈"离 26 度差多少",但你发烧想要 28 度时,它判断不了"26 度对不对"——只会死磕 26。**"今天该设几度"永远是人。**
> 把判断 / 验收 / 最后一格交给机器 = 撤掉高层反馈 = 机器照着没人质疑的目标又快又狠地狂奔 → 出错。

---

## 动作一:写一个 loop(5 步)

### 步 0 · 先做减法:该不该建?(四条件入场券,缺一票否决)

① 任务每周以上重复 ② 验证能自动化 ③ token 预算扛得住 ④ agent 有"能真跑起来看结果"的工具

任一不满足 → **别建 loop**,手动做或换别的方式。
> 卡住大多数人的不是"会不会写循环",是"你那个仓库配不配得上一个循环"。配得上的仓库 = 有对账基线(golden sample / 上游合计)+ 单测 + lint 守护。**配不上循环的仓库,循环只会放大错。**

### 步 1 · 定一个"可判定"的目标(最吃劲,loop 成败全在这)

整条回路靠"比较器"那句"达成了吗"。**比较器能不能干活,全看你给的退出条件能不能被机器清楚判 yes/no。**

- ❌ 模糊("把这个做好""写高级点")→ 比较器没法判 → 要么永远不放行(卡死反复重试),要么瞎放行/瞎拦截。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add qshanx/docs-governance/loop-design-check@sha256:711e70d4d3301045

The line at the top of this page pins the label git:20261011.d0306dc, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_sug2revwq6wbhu7v.svg)](https://markdownregistry.com/a/art_sug2revwq6wbhu7v)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Oct 11, 2026.

versioncommittedcommitsizeaudit
git:20261011.d0306dc latest2026-10-11 d0306dc 9,611 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (9611 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

qshanx/docs-governance · 218 stars · license MIT · pushed 2026-10-16 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_sug2revwq6wbhu7v
GET https://markdownregistry.com/api/v1/resolve?ref=qshanx/docs-governance/loop-design-check
GET https://markdownregistry.com/api/v1/blob/711e70d4d3301045b5c8c24350177310281fd92dbcbe7b536077ffd78b35b38b

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from qshanx/docs-governance

AGENTS.md AGENTS.md file
qshanx/docs-governance · AGENTS.md
git:20260905.c132f0a · audit A · 218 stars
CLAUDE.md CLAUDE.md file
qshanx/docs-governance · CLAUDE.md
git:20261011.ee7c4b9 · audit A · 218 stars
agent-entrypoints SKILL.md skill
qshanx/docs-governance · skills/documentation/agent-entrypoints/SKILL.md · 创建、优化或审查项目及模块级 AGENTS.md / CLAUDE.md 等 Agent 入口文档时使用。根据项目事实精简规则、设置按需读取指针,支持模块两入口布局,并检查规则是否可执行、入口是否冲突。
git:20261011.d6d08d8 · audit A · 218 stars
agent-workflow-governance SKILL.md skill
qshanx/docs-governance · skills/documentation/agent-workflow-governance/SKILL.md · 用户要求整体检查项目治理规则的承载位置、精简常驻约束,或判断散落资料能否沉淀为 Skill、脚本或 Hook 时使用。只读识别主源、重复工作流与自动化缺口,给出证据和最小建议;单项文档维护直接使用已有专项 Skill。
git:20261011.f94e359 · audit A · 218 stars
architecture-docs SKILL.md skill
qshanx/docs-governance · skills/documentation/architecture-docs/SKILL.md · 判断项目是否需要架构文档,或生成、完善、审查 ARCHITECTURE.md 及已有架构说明。用于模块分工、状态归属、依赖关系或核心流程需要梳理时;依据项目证据记录结构,区分当前实现与已确认设计。
git:20261012.bd30f6e · audit A · 218 stars
context-and-decisions SKILL.md skill
qshanx/docs-governance · skills/documentation/context-and-decisions/SKILL.md · 兼容旧 context-and-decisions 调用;领域术语与 ADR 的形成和修改统一转交随插件提供的 domain-modeling。
git:20261012.bd30f6e · audit A · 218 stars
docs-audit SKILL.md skill
qshanx/docs-governance · skills/documentation/docs-audit/SKILL.md · 只读审计现有项目文档,检查资料散乱、入口难找、断链、内容过时、重复主源及当前与历史混用。用于用户要求“审计文档”“检查文档是否过时”“看看文档哪里乱”,或阶段交接前检查文档体系时。
git:20261012.bd30f6e · audit A · 218 stars
docs-governance SKILL.md skill
qshanx/docs-governance · skills/documentation/docs-governance/SKILL.md · 作为面向长期 AI 协作项目的知识、决策与验证治理总入口,把优秀 Agent 的一次性工作沉淀为可继承、可验证、可持续演进的项目集体能力;根据用户意图把任务路由到活文档、领域上下文与…
git:20261012.bd30f6e · audit A · 218 stars
docs-maintenance SKILL.md skill
qshanx/docs-governance · skills/documentation/docs-maintenance/SKILL.md · 每轮任务结束时同步本次变化涉及的文档。由项目收尾约定或用户要求“同步文档”“收尾”“准备交接”时调用;也用于处理已发现的文档与项目事实冲突。
git:20261012.bd30f6e · audit A · 218 stars
docs-retro SKILL.md skill
qshanx/docs-governance · skills/documentation/docs-retro/SKILL.md · 从对话、文档变更及审计记录中复盘文档管理的问题和经验,减少资料难找、同步遗漏、重复维护和旧说明误用。用户要求“复盘文档管理”“为什么文档总漏更新”“总结文档治理经验”,或项目约定文档管理阶段复盘时使用;默认只读,输出有证据、适用条件和落点的…
git:20261011.8300772 · audit A · 218 stars
docs-structure SKILL.md skill
qshanx/docs-governance · skills/documentation/docs-structure/SKILL.md · 规划、整理或只读审查项目文档结构时使用。按职责聚合同类资料,明确当前主源、历史归档与按需读取入口。
git:20261011.1b07eb2 · audit A · 218 stars
domain-modeling SKILL.md skill
qshanx/docs-governance · skills/documentation/domain-modeling/SKILL.md · Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a CONTEXT.md…
git:20261012.bd30f6e · audit A · 218 stars

Every file in qshanx/docs-governance

Browse by kind, by grade A, or by owner.