loop-5plus1-architecture

loop-5plus1-architecture is a skill for Claude Code, Codex from kangarooking/loop-engineering-skill. It costs 116 tokens per session (1,550 once invoked), scanned A, original, MIT.

A blueprint for a complete repeating agent system, covering scheduled starts, isolated workspaces, project rules, connections to outside tools, separate worker and reviewer agents, and stored memory.

In plain words
What is it for?
Use it to design or audit a full repeating workflow that runs code, connects to issue systems or databases, reviews its results, and records history.
Why use it?
It helps find missing parts in an automated system and keeps multiple agents from interfering with each other or forgetting past work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Claude Code.

Good fit Use it to design or audit a full repeating workflow that runs code, connects to issue systems or databases, reviews its results, and records history.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kangarooking/loop-engineering-skill/loop-5plus1-architecture
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kangarooking/loop-engineering-skill --skill loop-5plus1-architecture
Clone the repo
git clone --depth 1 https://github.com/kangarooking/loop-engineering-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for loop-5plus1-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/kangarooking/loop-engineering-skill/loop-5plus1-architecture/github.svg)](https://agentmods.dev/skills/kangarooking/loop-engineering-skill/loop-5plus1-architecture)
Your own site
<a href="https://agentmods.dev/skills/kangarooking/loop-engineering-skill/loop-5plus1-architecture"><img src="https://agentmods.dev/badge/skills/kangarooking/loop-engineering-skill/loop-5plus1-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for loop-5plus1-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/kangarooking/loop-engineering-skill/loop-5plus1-architecture"><img src="https://agentmods.dev/badge/skills/kangarooking/loop-engineering-skill/loop-5plus1-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,550 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00116 $0.01550
Opus 5.5 $0.00046 $0.00620
Sonnet 5.5 $0.00023 $0.00310
Haiku 4.5 $0.00012 $0.00155

Measured 2mo ago against content hash 1087cba747e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

loop-5plus1-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

loop-5plus1-architecture/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Source Metadata

Original cangjie-skill frontmatter from the distillation run:

name: loop-5plus1-architecture
description: |
  设计或审计完整 Loop 系统的组件架构: 5 大组件 + 1 根脊柱。
  当用户需要搭建一个完整的 (而非最小可用的) loop 系统、或审计现有系统的组件完整性时使用。
  不适用于: 最小可用 loop 的设计、或单次任务的自动化。
  关键 trigger: "设计一个完整的 loop 系统"、"我的 loop 缺什么"、"loop 系统怎么组织"。
source_book: "Loop Engineering 视频合集"
source_chapter: 视频3 (小木头) / 视频4 (Idoos Money)
tags: [architecture, system-design, components, blueprint]
related_skills: [loop-three-elements, maker-checker, goal-verification]

5+1 循环系统架构 — 完整 Loop 的设计蓝图

R — Reading (原文)

"ados money把它拆成了5块,外加一根脊柱。第一块心跳(定时触发),第二块工作树(work tree,隔离分支),第三块skill(项目规则),第四块连接器(MCP,接入真实工具),第五块子智能体(写代码和审代码分开)。最后就是那根脊柱——支撑起整个loop循环系统的记忆。" — 小木头 (视频3)

I — Interpretation (自述)

任何完整的 Loop 系统都可以拆解为 5 个组件 + 1 根脊柱:

  1. 心跳 (Heartbeat): 定时触发器 (cron),到点自动启动循环。
  2. 工作树 (Work Tree): 隔离的工作空间,多个 agent 并行时不踩踏。
  3. Skill: 项目规则和约束,写入 SKILL.md,每个 agent 自动读取。
  4. 连接器 (Connector): 通过 MCP 接入外部工具 (issue 系统、数据库等)。
  5. 子智能体 (Sub-agent): 拆分生产和审查,避免自产自检。
  6. 脊柱 (Spine): 持久化记忆层,记录历史操作、尝试结果、待办事项。

脊柱是关键: Agent 会遗忘 (上下文有限),所以必须在对话之外建立持久化记忆。

A1 — Past Application (书中案例)

案例1: Boris 的多 Loop 系统 (视频2)

  • 心跳: 每 30 分钟触发 support loop
  • Work Tree: 每个 agent 独立分支
  • Skill: 项目规则写入 agents.md
  • 连接器: MCP 接入 Intercom、Stripe、Supabase
  • 子智能体: 写代码和审代码分开
  • 脊柱: 共享 signals 文件夹

案例2: 选题 Loop (视频3)

  • 心跳: 每天早上 8 点 cron
  • Work Tree: 独立分支
  • Skill: research + topic-score 技能
  • 连接器: research API
  • 子智能体: topic-score 作为评级 agent
  • 脊柱: inbox.md 文件

A2 — Future Trigger (未来触发)

  1. 搭建完整 loop 系统时: "我要做一个完整的 X 自动化系统"
  2. 审计现有系统时: "我的 loop 缺什么组件?"
  3. 从单 loop 扩展到多 loop 时: "怎么让多个 loop 协同?"
  4. 团队推广 loop 时: 用这个架构作为"完整 loop 长什么样"的蓝图

语言信号: "设计一个完整的 loop 系统"、"我的 loop 缺什么"、"loop 系统怎么组织"、"多 loop 协同"

与相邻 skill 的区别:

  • loop-three-elements: 最小可用单元 (本 skill 是完整系统)
  • maker-checker: 子智能体分工的具体实现 (本 skill 是整体架构)
  • loop-build-path: 构建步骤 (本 skill 是静态结构)

E — Execution (可执行步骤)

Step 1: 审计现有系统

对照 5+1 清单,逐项检查:

□ 心跳: 有定时/事件触发吗?
□ Work Tree: 有隔离工作空间吗?
□ Skill: 规则写成了 SKILL.md 吗?
□ 连接器: 接入了外部工具吗?
□ 子智能体: 生产和审查分开了吗?
□ 脊柱: 有持久化记忆吗?

Read the full file on GitHub · 120 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 120 lines · 116 tokens per session scan A 1087cba747e6

Subscribe to this mod's changes

loop-5plus1-architecture is a skill published in the GitHub repository kangarooking/loop-engineering-skill (28 stars, last pushed 4mo ago), licensed MIT. It adds 116 tokens to every session and 1,550 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

loop-5plus1-architecture compared with skills from other repositories

loop-5plus1-architecture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loop-5plus1-architecturekangarooking/loop-engineering-skillSkill284mo agoMITA116Claude Code, Codex
imagegenopenai/codexSkill135ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill100ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill80k6d agoMITA200Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
systematic-debuggingobra/superpowersSkill317k9d agoMITA21Claude Code