loop-it
Automated issue loop with checkpoint/resume: fetch open GitHub issues → dependency-aware topological sort → implement each issue end-to-end → review with /review-it → document with /note-it → ship with /ship-it → repeat. Persists state to .loop-state.json for crash recovery. Triggers on: loop-it, loop issues, auto implement, 批量实现, 循环实现, 实现所有issue, 恢复循环, resume loop.
npx skills add smallnest/goal-workflow --skill loop-it --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# loop-it — 带检查点恢复的自动化 Issue 实现循环 Fetch all open GitHub issues, resolve dependency order, implement each through the full pipeline (内联实现 → `/review-it` → `/note-it` → `/ship-it`), persist progress to state file, and resume from checkpoint on crash. > **⚠️ 关键前提:实现步骤由 agent 内联自主完成,不依赖任何外部 `/goal` 命令。** > 本环境中不存在可调用的 `goal` 命令或 skill。因此「实现 issue」这一步**必须由 agent 内联完成**:直接读取该 issue 的标题与正文(含其引用的 PRD/SPEC 与验收条件),自主完成"理解需求 → 写/改代码 → 跑测试与 lint → 满足全部验收条件"的闭环,持续工作直到该 issue 的验收条件全部满足且测试/构建通过。**不要**尝试用 Skill 工具调用 `goal`(会报 `goal is a UI command, not a skill`),也**不要**因为找不到 `/goal` 而中止循环。`/review-it`、`/note-it`、`/ship-it` 仍是真实 skill,经 Skill 工具调用。 --- ## Overview ``` 前置检查 → 读取状态文件 → Fetch Issues → 构建依赖图 → 拓扑排序 | ┌───────────────────────────────────────────────────────────┘ | v ┌──────────────── 单 Issue 循环 ────────────────┐ | | | 从检查点恢复?—— 跳过已完成/失败的 | | | | 分支准备 (checkout main, pull, create branch) | | | | | Skip/Blocked? ── 是 → 标记 skipped/blocked, 写检查点 | | | | | 否 | | | | | 内联实现 → 出错?→ 分类 → 恢复 → 重试 | | | | | | | 失败 → 检查点, 下一个 | | | | | /review-it → 有问题?→ 修复 → 重跑 review | | | | | /note-it (捕获实现笔记, best-effort) | | | | | /ship-it → 出错?→ 分类 → 恢复 | | | | | 分支清理 (checkout main, pull, delete branch) | |
- Overview
- 前置检查
- Check 1: gh CLI 认证
- Check 2: Git 仓库
- Check 3: Git 工作树清洁度
- Check 4: 在默认分支上
- Check 5: 远程可达
- Check 6: 状态文件存在?
- 状态文件
- 位置
- 格式
- 状态值
- 写入规则
- Step 1: Fetch Issues & Build Dependency Graph
gh auth status
git rev-parse --is-inside-work-tree
git status --porcelain
git branch --show-current
git ls-remote --heads origin
cat .loop-state.json
gh issue list --state open --json number,title,labels,body --limit 100
git checkout main
git pull
git checkout -b feat/issue-{N}-{short-desc}What does the loop-it skill do?
Automated issue loop with checkpoint/resume: fetch open GitHub issues → dependency-aware topological sort → implement each issue end-to-end → review with /review-it → document with /note-it → ship with /ship-it → repeat. Persists state to .loop-state.json for crash recovery. Triggers on: loop-it, loop issues, auto implement, 批量实现, 循环实现, 实现所有issue, 恢复循环, resume loop.
How do I install it?
Run `npx skills add smallnest/goal-workflow --skill loop-it --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From smallnest/goal-workflow, a repository with 199 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
