iterating-to-completion
Prevents premature exit and infinite loops. Three mechanisms: Completion Promises, Scratchpads, Loop Detection.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Prevents premature exit and infinite loops. Three mechanisms: Completion Promises, Scratchpads, Loop Detection.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deterministic AI development workflow orchestrator. Manages task boards (.jonggrang/jonggrang-tasks.json), runs 16-phase pipelines (BUGFIX/SMALL/MEDIUM/LARGE), installs lifecycle hooks for Claude Code and OpenCode, and coordinates five specialist roles (Lead/Developer/Reviewer/TestLead/Tester). Use when planning features, executing multi-step development workflows, or orchestrating AI coding agents. Run via npx jonggrang.
16-phase feature orchestration workflow. Runs in the main thread as Kernel Mode. Coordinates the Lead→Developer→Reviewer→TestLead→Tester assembly line.
Protocol for agents to write structured outputs that survive session resets and are findable by the orchestrator.
GitHub workflow automation with the gh CLI — pull requests, issues, releases, the REST/GraphQL API, and safe message escaping. Auth via GH_TOKEN (set in global settings, attached to the sandbox env).
GitLab workflow automation with the glab CLI — merge requests, issues, CI, releases, and safe message escaping. Auth via GITLAB_TOKEN (set in global settings, attached to the sandbox env).
Deep knowledge about deploying applications to AWS (EC2, ECS, S3, CloudFront, Cloud Run).
| name | iterating-to-completion |
| description | Prevents premature exit and infinite loops. Three mechanisms: Completion Promises, Scratchpads, Loop Detection. |
| type | orchestrate |
| tier | core |
| trigger | keep iterating, don't exit early, loop until done, completion signal, stuck detection |
This skill prevents two failure modes:
Every agent task has an explicit completion signal. The agent outputs this string ONLY when success criteria are truly met:
| Role | Signal | Meaning |
|---|---|---|
| Lead | ARCHITECTURE_PLAN_COMPLETE | Architecture JSON is complete and valid |
| Developer | IMPLEMENTATION_COMPLETE | Code compiles, lints pass, basic sanity checked |
| Reviewer | REVIEW_COMPLETE | Review report generated (approved or rejected) |
| Test Lead | TEST_PLAN_COMPLETE | Test plan JSON is complete |
| Tester | ALL_TESTS_PASSING | All tests pass, coverage met |
Rule: Never output the completion signal unless the criteria are truly met. The orchestrator blocks on this signal.
Maintain a scratchpad file at .jonggrang/.ephemeral/scratchpad-{task_id}.md:
# Task: {task_id} — {title}
## Completed Steps
- [x] Step 1 — what was done
- [x] Step 2 — outcome
## Current Focus
- [ ] Step 3 — what you're working on now
## Failures & Learnings
- Attempt 2: Failed because X. Will try Y instead.
## Next Step
Clear description of what you do next iteration.
Update this EVERY iteration. If you're stuck, the scratchpad shows why.
The orchestrator reads your last 3 outputs. If similarity > 90%, you're stuck.
Signs you're stuck:
When stuck:
BLOCKED: [reason] and stopMax 10 iterations per agent spawn. After 10:
ITERATION_LIMIT_REACHED: [what's left]The feedback-loop.sh / OpenCode session.idle hook enforces this: