Loop Design logo

Loop Design

Community
HHU3637kr
loop-design

帮助用户把一个重复性任务设计成一个有边界的 Loop(运行契约 + 预算),并产出一份可复用的 loop 定义文档。 触发条件:(1) 用户想为某类反复执行的任务建立一个受控循环("每次都这样跑""反复打磨直到满足 X"), (2) 用户想为某个 R&K Flow Spec 定制阶段路径或修复循环预算, (3) 用户问"帮我写一个 loop / 设计一个循环"。 本 Skill 只负责交互式产出 loop 定义,不负责驱动执行。执行由对应的工作流 Skill 或用户自己承担。 不要用于一次性任务、简单问答,或已有明确 Spec 可直接执行的场景。

Overview

PublisherHHU3637kr
Repositoryskills
Skill nameloop-design
Stars
146
Forks
21
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by HHU3637kr on GitHub. Read the source before you install it.

Installation

Install the Loop Design AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/HHU3637kr/skills/tree/master/loop-design
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HHU3637kr/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/loop-design .claude/skills/loop-design
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Loop Design in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Loop Design on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Loop Design is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Loop Design

把一个重复性任务设计成有边界的 Loop。理念来自"先写刹车,再写循环":不先写一段无界的提示词,而是先把"读什么、能动什么、怎么算完成、什么时候停、什么时候交还给人"想清楚,落成一份可复用的 loop 定义。

运行契约

进入工作流程前先对齐这张表。loop-design 本身也是一个有边界的循环单元。

项本 Skill 的约定
输入用户对重复性任务的描述、intent-confirmation 澄清出的目标、loop-definition-template.md 骨架
权限只做"澄清 + 引导填表 + 产出一份 loop 定义文档";不驱动执行、不替用户跑循环、不修改业务代码
验证loop 定义六要素齐备(目标/输入/权限/验证/停止/升级)且停止与升级条件具体可判定
停止loop 定义文档定稿且通过用户确认即停止;不顺手去执行这个 loop
升级用户的任务其实不适合做成 loop(一次性、无明确完成标准)时,如实说明并交回用户决定

核心原则

  1. 先刹车,后循环:停止条件和升级条件是必填项,不是可选项。一个没有停止条件的 loop 不允许产出。
  2. 只产出定义,不驱动执行:loop-design 的产物是一份"定义",谁来跑、怎么跑由对应工作流 Skill 或用户决定。
  3. 复用 intent-confirmation 做澄清:目标和边界的对齐交给 intent-confirmation,本 Skill 专注把共识结构化成 loop 定义。
  4. 预算来自用户:循环次数、无进展轮数等上限不写死,由用户在定义时确认。
  5. 能复用 R&K 内核就复用:loop 定义骨架与各 Skill 头部的「运行契约」表同构,便于和 R&K Flow 衔接。

Loop 的两种类型

类型说明产物去向
R&K Flow 内的 loop为某个 Spec 定制要走的阶段路径,或定制 spec-test ↔ spec-debug 修复循环的预算写入该 Spec 的 lead/team-context.md(如「修复循环预算」、「当前运行路径」)
自定义 loop用户自己的重复任务(如"每日汇总""反复打磨直到达标""批量处理直到队列空")产出独立的 loop 定义文档,由用户保存或交给执行方

判断不清时,先用 intent-confirmation 问用户这是"一次性任务"还是"会反复执行的循环"。一次性任务不做成 loop。

工作流程

步骤 1:澄清目标(调用 intent-confirmation)

调用 intent-confirmation 与用户对齐:

  • 这个 loop 要解决的核心任务是什么?
  • 它是会反复执行的(loop),还是一次性的(不做成 loop)?
  • 属于 R&K Flow 内的 loop,还是自定义 loop?

如果是一次性任务,停止并建议走普通流程,不产出 loop 定义。

步骤 2:引导用户填写六要素

按 references/loop-definition-template.md 的骨架,逐项与用户确认。停止和升级是必填项:

要素引导问题
目标每一轮循环要达成什么?整个 loop 的最终目标是什么?
输入每轮读什么、依赖什么上游产物或数据?
权限这个 loop 允许动什么、禁止动什么?
验证怎么判断一轮是否成功?谁来验证(最好不是执行者自己)?
停止满足什么条件就停?最大轮数?最大无进展轮数?最大时长/预算?
升级什么情况必须停下来交还给人,而不是继续自动跑?

对"停止",至少要落一个最大轮数和一个最大无进展轮数(建议默认 3 轮 / 连续 2 轮无进展,用户可改)。

步骤 3:定义"进展"

和用户确认这个 loop 里"一轮算有进展"的判据(用于无进展检测)。例如:新增通过的检查项、缩小了问题范围、产生了新的可验证证据。判据要具体,避免"写了新内容就算进展"这种空转。

步骤 4:产出 loop 定义文档

按模板产出一份完整的 loop 定义:

  • R&K Flow 内的 loop:把预算写入对应 Spec 的 lead/team-context.md(「修复循环预算」/「当前运行路径」),并说明由哪些 Skill 执行。
  • 自定义 loop:产出独立的 loop 定义文档(Markdown),交给用户保存或交给执行方。文档放在用户指定路径;未指定时建议放当前工作目录并提示用户。

步骤 5:用户确认

向用户展示 loop 定义全文,确认:

  • 六要素是否齐备、准确
  • 停止和升级条件是否真的能挡住失控
  • "进展"判据是否具体

用户确认后即停止。不要顺手去执行这个 loop。

与其他 Skill 的协作

用户提出重复性任务
  → loop-design → intent-confirmation(澄清 What)
  → loop-design 引导填六要素 + 进展判据
  → 产出 loop 定义
      ├─ R&K Flow 内:写入 lead/team-context.md,交给 spec-* Skill 执行
      └─ 自定义:产出独立定义文档,交给用户/执行方
场景协作 Skill
澄清目标和边界→ intent-confirmation
R&K Flow 内的修复循环预算→ spec-start(修复循环预算)、spec-test / spec-debug 执行
把 loop 固化成可复用流程→ skill-creator(如该 loop 值得变成一个新 Skill)

后续动作

完成 loop 设计后确认:

  1. loop 定义六要素齐备,停止和升级条件具体可判定
  2. "进展"判据已与用户确认
  3. R&K Flow 内的 loop 已写入对应 lead/team-context.md;自定义 loop 已产出独立定义文档
  4. 已向用户确认 loop 定义全文
  5. 未越界去执行这个 loop

常见陷阱

  • 产出了没有停止条件的 loop(违背"先写刹车")
  • 把一次性任务硬做成 loop
  • "进展"判据太宽(写了新内容就算进展,导致无进展检测失效)
  • loop-design 自己跑起了这个 loop(应只产出定义)
  • 把循环次数、无进展轮数写死,而不是让用户确认

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Loop Design AI skill do?

帮助用户把一个重复性任务设计成一个有边界的 Loop(运行契约 + 预算),并产出一份可复用的 loop 定义文档。 触发条件:(1) 用户想为某类反复执行的任务建立一个受控循环("每次都这样跑""反复打磨直到满足 X"), (2) 用户想为某个 R&K Flow Spec 定制阶段路径或修复循环预算, (3) 用户问"帮我写一个 loop / 设计一个循环"。 本 Skill 只负责交互式产出 loop 定义,不负责驱动执行。执行由对应的工作流 Skill 或用户自己承担。 不要用于一次性任务、简单问答,或已有明确 Spec 可直接执行的场景。

Why use Loop Design on TypingMind?

Because you install it once and use it with any model. Loop Design is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Loop Design in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/HHU3637kr/skills/tree/master/loop-design. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Loop Design?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Loop Design?

As many as you like. As long as a model supports skills, you can use Loop Design with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Loop Design AI skill free?

It is published on GitHub by HHU3637kr. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇