loop-engineering
Use when a software or repository development task requires multiple actions, repeated verification, recovery from failed attempts, or explicit completion, blocking, or user-decision criteria.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- loop-engineering
- description
- Use when a software or repository development task requires multiple actions, repeated verification, recovery from failed attempts, or explicit completion, blocking, or user-decision criteria.
02 资源文件 2
- 参考文档references/loop-protocol.md3.9 KB
- 参考文档references/stop-conditions.md3.1 KB
03 SKILL.md 正文
Loop Engineering
Overview
Use a bounded control loop where each iteration reduces uncertainty or advances an observable result.
Entry Contract
Before acting, establish:
- one objective and its boundaries;
- observable completion evidence;
- safety, authority, and compatibility constraints;
- an iteration, time, or tool budget;
- the smallest verification command or observation that can test the next action.
Infer only reversible, low-risk defaults. If missing information would materially change public behavior, cost, scope, or an irreversible action, return needs-user-decision.
Classify the task before acting:
- trivial: run
goal → action → verificationonce; - local: run the full loop with local evidence;
- cross-cutting: run the full loop and apply Graph Escalation.
Read loop-protocol.md before iterating and stop-conditions.md before declaring an outcome.
Run the Loop
Repeat plan → act → verify → decide:
- Plan: choose one falsifiable hypothesis, one bounded action, and its expected evidence.
- Act: perform the smallest authorized action that tests the hypothesis or advances the objective.
- Verify: run the planned check and compare expected with actual evidence.
- Decide: complete, retry with new evidence, replan, block, or request user direction.
Track the protocol state in task memory or temporary scratch space. Never add loop transcripts, chain-of-thought, or speculative reasoning to durable project documentation.
Graph Escalation
Broaden local evidence into a map when:
- a public interface, shared schema, global configuration, or deployment boundary changes;
- failures appear in multiple components or layers;
- the same dependency knowledge is repeatedly rediscovered;
- impact or rollout order cannot be established from the local module.
When graph-engineering is installed, it is a REQUIRED SUB-SKILL for those cross-cutting cases. If unavailable, build a compact evidence-backed impact map inline and continue; do not fail only because the companion skill is absent.
graph-engineering never needs to invoke this skill.
Progress and Final Output
During long tool work, report evidence, the decision, and next action at least every 60 seconds without exposing private reasoning.
Finish with exactly one outcome:
| Outcome | Required report |
|---|---|
complete |
acceptance evidence, verification commands or observations, test limitations, and intentional changes |
blocked |
blocking condition, attempts made, recoverable workspace state, and next action |
needs-user-decision |
decision required, evidence, and materially different options |
Common Mistakes
| Mistake | Correction |
|---|---|
| Repeating the same action | Require new evidence or replan. |
| Treating a passing check as sufficient | Match it to every completion criterion. |
| Expanding scope after each failure | Expand only across an observed dependency boundary. |
| Calling ambiguity a technical blocker | Use needs-user-decision when user intent must govern. |
| Persisting execution history as architecture | Persist only stable, evidence-backed project knowledge. |
04 同仓库更多 Skills
template-skill
Replace with description of the skill and when the agent should use it.
writing-project-readme
Use when explicitly invoked to write or fully rewrite a project README that must cover tech stack, architecture, features, and service description in a single document — readable by non-engineers (PM, design, ops, domain experts) as well as developers. Triggers on requests like "write the README", "redo README.md based on the whole project", "make a comprehensive README everyone can understand". Skip for one-section edits, badge tweaks, or generating a CHANGELOG.
ux-writing-korean
한국어로 UI/UX 문구를 작성하거나 검수할 때 사용합니다. 해요체, 능동형, 긍정형, 캐주얼 경어, 명사 조합 회피 등 5가지 핵심 원칙과 예외 규칙을 적용합니다.
token-audit
Audit a Claude Code or Codex CLI project for token waste and fix it with the user's approval. Use whenever the user wants to check, reduce, or optimize token usage, context bloat, or API/subscription costs of an agent project — phrases like "토큰 점검", "토큰 낭비 찾아줘", "토큰 최적화", "컨텍스트 최적화", "Claude Code 비용 줄여줘", "API 비용이 너무 나와", "audit token efficiency", "check my CLAUDE.md/AGENTS.md/MCP setup". Also trigger when the user complains that sessions hit context limits too fast, that costs jumped unexpectedly, or asks whether their project setup is token-efficient — even if they don't say the word "token".
release-showcase
정식 릴리스의 변경을 이전·이후 스크린샷, 클릭 흐름 녹화 영상, 비교·단계·탭·흐름도 같은 HTML 컴포넌트로 보여 주는 파일 하나짜리 릴리스 문서를 만든다. 텍스트뿐인 릴리스 노트로는 어떤 UX가 바뀌었고 새 기능을 어떻게 쓰는지 감이 안 올 때 쓴다. '릴리스 노트 문서 만들어 줘', '릴리스 쇼케이스', '이번 배포 변경사항 정리해서 공유', '릴리즈 노트 HTML', '변경사항을 화면으로 보여 주는 문서', '업데이트 소개 페이지', 'what's new 페이지', 'release notes with screenshots', 'changelog page', '배포 공지 자료'처럼 버전 태그 사이의 변경을 팀·고객에게 시각적으로 알릴 때 반드시 사용한다. git 태그로 릴리스하는 저장소라면 웹·데스크톱·모바일 어느 앱이든 쓴다. 커밋 목록만 필요한 CHANGELOG.md 갱신, 릴리스 태그·배포 자체, 마케팅 영상 제작에는 쓰지 않는다.
public-sector-rfp-authoring
Use when drafting or revising Korean government or local-government bid notices, requests for proposals, statements of work, or public-sector service/project specifications from the ordering agency's perspective.