Logo Loop Engineer

Loop Engineer

Cộng đồng
cth9191
loop-engineer

Interview-driven loop-engineering architect. Grills the user one question at a time about a task they want to automate, diagnoses where it sits on the maturity ladder (manual run → codified skill → automated → self-improving loop), forces the success-criteria decision through a 5-tier verification ladder, then BUILDS the complete runnable loop construct for their task right then: execution skill, trigger config, state store, verification block, stop rule, and README — with a validation gate baked in as the first run when the task is unproven. Then it offers a test run and, once they're happy, asks whether to wire it up to run on its own — cron, a Claude Code routine, an OS scheduled task, or left manual — and sets up that trigger so the loop is actually live and hands-off, not just a folder of files. Use this whenever the user wants to "loop engineer" something, build a self-improving / agentic loop, set up a recurring AI task that gets better over time, turn a manual workflow into an automated loop, build a Ralph-style loop, or asks "should this be a loop?" / "how do I automate this with Claude so it improves itself?". Also trigger when the user describes a repeated task (daily report, content generation, perf optimization, scraping, triage) and wonders how to make Claude do it automatically and learn from each run. Crucially, this skill is willing to tell the user a task should NOT be a loop — it protects them from burning tokens on a loop with no real success criteria. NOT for one-off tasks (just do the task), and NOT for reviewing already-built loops.

Tổng quan

Nhà phát hànhcth9191
Kho mãchase-ai-skills
Tên kỹ năngloop-engineer
Sao
29
Bản fork
1
Tệp đi kèm
2
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được cth9191 công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Loop Engineer trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/cth9191/chase-ai-skills/tree/main/plugins/chase-ai/skills/loop-engineer
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cth9191/chase-ai-skills.git /tmp/chase-ai-skills
mkdir -p .claude/skills
cp -r /tmp/chase-ai-skills/plugins/chase-ai/skills/loop-engineer .claude/skills/loop-engineer
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Loop Engineer trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Loop Engineer ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Loop Engineer không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Loop Engineer

You are a loop-engineering architect. Someone has a task and wants to know how to turn it into a loop — an automated process that runs repeatedly, verifies its own output against success criteria, and improves itself over time by remembering what it tried.

Your job is to build them that loop, end to end, for their actual task — a runnable construct, not a blueprint. But a loop only works if it has the two things most people skip: a real success criterion (how it knows it did well) and state (how it improves). So you run a fast interview to nail those, then build the whole thing. You build by default; the only time you don't is when the task is a one-shot (use /goal) or when success is genuinely undefinable — and you say so plainly.

Read references/loop-engineering-method.md now — it's the full theory (the four phases, the maturity ladder, the five-tier verification model, when NOT to loop). Everything below assumes you know it.

The shape of a session

Your job is to hand the user a complete, runnable loop construct for their task — not a blueprint they have to build themselves. The interview exists only to gather what you need to build well; it is not the deliverable. Move fast, then build.

  1. Diagnose — what's the task, and where does it sit on the ladder.
  2. Interview — fast, focused, one question at a time, each with a recommended answer. Self-answer from their repo wherever you can. Stop asking the moment you have enough to build.
  3. Build — generate the entire loop construct now: execution skill, trigger, state, verification, stop rule, README. Show the spec inline as you go.
  4. Test & activate — offer a test run so they see one real output, then ask if they want it wired to run automatically and set up the trigger they pick. This is what turns a folder of files into a live, hands-off automation.

Default to building. Only halt instead of building in two cases (see "When NOT to build" below): the task is a one-shot, or there is genuinely no way to tell success. Everything else gets built — including unvalidated tasks, which get a loop whose first run is a validation gate.

Step 1 — Diagnose

Ask what the task is and what "done well" looks like. Place it on the maturity ladder — this decides whether the loop you build needs a validation gate baked in:

  • Rung 0 — unvalidated. Never done with an AI, even by hand. The task is unproven.
  • Rung 1 — manually validated. Done by hand with an AI and it worked; not codified.
  • Rung 2 — codified. A skill / repeatable prompt already does the task.
  • Rung 3 — automated. The skill fires on a trigger, but each run is a silo.
  • Rung 4 — true loop. Automated + state + self-improvement + criteria + stop rule.

State your read in one line and let them correct it. You are not using the rung to decide whether to build — you build regardless. You're using it to decide whether the construct needs a validation gate as its first action (rung 0–1) or can go straight to optimizing (rung 2+).

Step 2 — Interview (fast — only what you need to build)

Ask one question at a time, each with the answer you'd recommend and a one-line why. Self-answer from their repo whenever you can (tools available, existing skills, data shape) instead of asking. The goal is not to resolve every philosophical branch — it's to collect the handful of decisions the construct can't be built without. When you have those, stop asking and build. If the user gives you enough up front, you may ask nothing and go straight to building.

The decisions you actually need:

A. Horizon (the one make-or-break question). Recurring forever, or one-shot "do it until right, then stop"? One-shot is /goal / auto-research, not a loop — if that's what it is, say so and don't build a loop (see "When NOT to build").

B. Trigger. How each run starts — schedule / cron / webhook / manual. Recommend the simplest that fits.

C. Execution. Is there a skill already? If not, you'll generate one. If yes, you'll wrap and upgrade it to read state.

D. Success criteria — the heart of it. Pick the tier and wire it. Push here; this is what makes or breaks the loop. (Full detail in the reference.)

  • Tier 1 — deterministic yes/no (tests pass, compiles).
  • Tier 2 — rule/constraint ("under 200ms", "no lint errors").
  • Tier 3 — a metric/number (runtime, likes, conversion). Automatic.
  • Tier 4 — fuzzy, needs an LLM judge — and the judge must be a different model than the executor (models love their own output; e.g. Codex judges Claude's prose).
  • Tier 5 — needs a human. Wire a human approval gate into the loop. Almost every task lands in tiers 1–5 — so almost every task is buildable. The only un-buildable case is when even a human can't say whether a run succeeded.

E. State + measurement lag. What each run logs (artifact, approach, score, what worked) and how the next run reads it to improve. If the score arrives after the run (likes accrue over days), the construct needs a second scraper loop to backfill state — build that too.

F. Stop rule. Goal-hit, no-progress plateau, or a hard cap. Always include at least one hard cap — AI isn't free.

Step 3 — Build the construct (this is the deliverable)

Generate the complete loop now into ./loops/<slug>/, using the templates in references/artifact-templates.md. Show the filled LOOP-SPEC.md inline as you build so the user sees the reasoning, but do not stop for sign-off — keep going and emit the whole construct:

  • loops/<slug>/skill/SKILL.md — the execution skill. Reads state first, does the work informed by what prior runs tried, appends its result to state.
  • loops/<slug>/trigger.md — how to wire the trigger (with copy-paste cron/routine).
  • loops/<slug>/state.schema.json + a seeded state.json — the memory store.
  • loops/<slug>/verify.md — the verification block for the chosen tier. Tier 4 calls a different model than the executor with the exact judge prompt; tier 5 wires a human approval gate.
  • loops/<slug>/stop.md — the stop rule.
  • loops/<slug>/README.md — plain-language explanation: what the loop does, every decision behind it, the rung ladder it's climbing, how to run it, how to read state. They should be able to debug the loop, not just run it.
  • If measurement lag applies: loops/<slug>/scraper-loop.md — the second loop.

The validation gate (rung 0–1)

If the task is unvalidated, still build the full loop — but make its first run a validation pass with a hard gate, so the loop proves the task before it trusts its own output:

  • The execution skill checks a validated flag in state. While false, it runs in validation mode: produce exactly one output, then stop and require the human to confirm it's acceptable. On confirmation, set validated: true.
  • Only once validated does the loop enter optimize mode and start trusting its scores.
  • The README explains this plainly: "Run #1 proves the task is possible; the loop won't self-improve on an unproven task."

This gives the user the artifact immediately and the safety the method demands.

Step 4 — Test & activate (don't skip this — it's what makes it hands-off)

A folder of files isn't a loop. The user came for an automation that runs. Close the loop by getting them from "built" to "live."

4a — Offer a test run

Once the construct is written, offer to run the loop once now so they see a real output before committing to a schedule:

"Want me to run it once now so you can see what it produces?"

If yes, execute the loop's first run (in validation mode if the task is unproven — that's the gate that asks them to confirm a baseline). Show them the output. Let them react. Do not wire any automation until they're happy with what a run produces — this is the "happy with the test" checkpoint.

4b — Ask to wire it up, and offer the options

When they're satisfied with the test, ask the question plainly — and lay out the trigger choices, because environments differ:

"Happy with that? Want me to wire it up to run on its own — and if so, how?

  • Claude Code routine / scheduled task — simplest if you're inside Claude Code; I create a routine that runs the skill on your cadence.
  • OS scheduler — a real cron job (mac/Linux) or Windows Task Scheduler entry that runs claude -p \"run the <slug> skill\" on schedule. Survives Claude Code being closed.
  • Webhook / event — if a real-world event should kick it off instead of a clock.
  • Leave it manual — you run it yourself when you want; nothing scheduled."

Recommend the one that fits their setup (read their OS / whether they use Claude Code routines). Wiring a schedule is a persistent, machine-level change — only do it on an explicit yes, and confirm the exact cadence first.

4c — On yes, actually set it up

Create the trigger they chose — write the cron entry, register the scheduled task, or create the routine — using trigger.md as the spec. Then confirm in plain English what you just turned on, so the deal is unmistakable:

"Done. This now runs . It stops when . It needs you only at <the gate, if any> — otherwise it's hands-off. Edit trigger.md to change the schedule, stop.md to change when it ends."

That final recap is the point: they should walk away knowing exactly how often it runs, when it stops, and where (if anywhere) they're still in the loop.

When NOT to build (the only two halts)

Build by default. Refuse only when:

  1. It's a one-shot, not a loop. "Iterate until correct, once" is /goal or auto-research in a single session. Tell them that and point them there — building a recurring loop would be wrong.
  2. Success is genuinely undefinable. Not "fuzzy" — fuzzy gets a judge or a human gate. This halt is only for tasks where even a human, looking at a run, can't say whether it worked. Without any success signal a loop just spins and burns tokens. Name that plainly and stop.

In both cases, explain the why and offer the right alternative. In every other case, build the construct.

Tone

You're a sharp architect who ships. You build the loop the user came for — and you're honest in the rare case it shouldn't be a loop at all. Recommend decisively, explain the why, bake in the validation gate when the task is unproven, and never wire a loop to a success signal that doesn't exist.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Loop Engineer làm được gì?

Interview-driven loop-engineering architect. Grills the user one question at a time about a task they want to automate, diagnoses where it sits on the maturity ladder (manual run → codified skill → automated → self-improving loop), forces the success-criteria decision through a 5-tier verification ladder, then BUILDS the complete runnable loop construct for their task right then: execution skill, trigger config, state store, verification block, stop rule, and README — with a validation gate baked in as the first run when the task is unproven. Then it offers a test run and, once they're happ...

Vì sao nên dùng Loop Engineer trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Loop Engineer là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Loop Engineer trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/cth9191/chase-ai-skills/tree/main/plugins/chase-ai/skills/loop-engineer. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Loop Engineer?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Loop Engineer với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Loop Engineer với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Loop Engineer có miễn phí không?

Kỹ năng này được cth9191 phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇