本文へ移動
cccskills
無料GitHub で公開

fp-iterate

Phase 4 of the feature-pipeline suite. Use this after /fp-review has posted a sandbox review comment — it reads the outstanding checkbox items, applies fixes, then watches CI until green (or exits cleanly so you can retry). Trigger phrases: "address review items", "fix review feedback", "resolve review checklist", "watch CI", "poll CI", "check if CI is green", "iterate on PR", "fp-iterate", "Phase 4", "after review comment", "fix the review issues and watch CI". Always bounded — max 10 poll rounds, never loops forever. Exits with a clear status: green (hands off to /fp-drift), still-pending (re-invoke), or failed (diagnose before touching anything).

インストール方法を見る

含まれるファイル(2)

  • SKILL.md4.5 KB
  • scripts/ci-poll.sh1.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

fp-iterate — Phase 4: Address Review & Watch CI

Fix the outstanding [ ] items from the Phase 3 review comment, push the commits, then poll CI until it resolves. This skill is intentionally bounded: it always exits, which keeps you in control of what happens next.

Why bounded?

Unbounded CI loops can burn tokens and obscure stalled checks. Instead, ci-poll.sh runs a fixed number of rounds and hands control back — you decide whether to retry, escalate, or investigate.

Setup

Load the state written by earlier pipeline phases:

STATE=".agents/skills/feature-pipeline/scripts/state.sh"
branch=$($STATE get branch)
pr=$($STATE get prNumber)
reviewUrl=$($STATE get reviewCommentUrl)
ciRound=$($STATE get ciRound)

Switch to the feature branch so your fixes land in the right place:

git checkout "$branch"

Step 1 — Read and address review items

Fetch the review comment body:

gh api "$reviewUrl" --jq '.body'

For each - [ ] <description> item under "Issues found":

  1. Understand the issue before touching code — a misread fix creates a second review cycle.
  2. Apply the fix.
  3. Commit with context so future reviewers understand the change: fix(<scope>): <description> (per review)
  4. Push.
  5. Print: ✓ Fixed: <description>

If a review item is genuinely ambiguous or requires architectural input, do not guess. Leave it unchecked, note the ambiguity, and surface it in the stop hook message so the human can decide.

Step 2 — Bounded CI poll

.agents/skills/fp-iterate/scripts/ci-poll.sh "$pr" --max 10 --interval 30
poll_exit=$?

Increment the round counter so escalation logic knows how many attempts have run:

$STATE set ciRound $(( ciRound + 1 ))

Exit 0 — CI green

$STATE set ciStatus "green"
$STATE set phase 6

Remove in-progress label, add ready-for-review, and undraft the PR via mcp__github__update_pull_request. Then print the M4 stop hook and end your turn:

╔══ STOP HOOK M4 ══════════════════════════════════════════════════════════════╗
║  CI green ✅  PR #<N> ready for review                                       ║
║  Run /fp-drift for the final drift check and summary.                        ║
╚══════════════════════════════════════════════════════════════════════════════╝

Exit 1 — still pending after 10 rounds

$STATE set ciStatus "pending"

Print and end your turn. Do not improvise another polling loop — re-invoking is the designed retry path:

⏱ CI still pending after round <ciRound>. Re-run /fp-iterate to check again.

Exit 2 — CI failed

$STATE set ciStatus "failed"

Fetch the failure log to give the human actionable context:

gh run view --log-failed 2>/dev/null | head -60

Print the diagnosis (root cause, file, line when identifiable) and end your turn. Do not push a blind fix — the failure may indicate a problem the human needs to decide on. Wait for explicit confirmation before acting.

If the same check has failed across 3 or more consecutive runs (ciRound >= 3 and ciStatus == "failed"), include the full log excerpt in your message before suggesting any fix. Repeated silent attempts waste context and can mask a systemic issue.

Constraints

  • ci-poll.sh is the only CI mechanism. A manual sleep loop bypasses the exit code contract and breaks the retry/escalation logic downstream.
  • No force-pushes.
  • Re-invoking /fp-iterate is the intended path for exit code 1 — do not extend the poll window by hacking the --max flag to compensate.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

ci-churn

無料

Measure CI churn cost for a pull request: how many commits and how many CI-compute seconds were burned on avoidable "fix the CI" push rounds. Use when you want to understand the efficiency cost of a PR's iteration cycle, get actionable pre-push check suggestions, or include a churn summary in a pipeline report. Triggers: "ci churn", "how much CI did we burn", "avoidable commits", "ci efficiency", "wasted CI time", "churn report", "/ci-churn". Called automatically by /fp-drift at pipeline close.

日本語の概要は準備中です。原文の説明を表示しています。

gaia-research/gaia-skill-tree232026年10月13日 更新

Produce the rendered evidence a human-gated frontend PR owes its reviewer: capture each changed surface (plus the before state for anything modified, plus mobile width), then generate one self-contained local HTML page the founder can open and review without checking anything out. Use when a PR is gated by the "Frontend changes are HUMAN-GATED" section of CLAUDE.md, or when the user says "/design-gate", "screenshot evidence for this PR", "prep this for founder review", "build the design evidence page", "what does this look like before and after". The page comes from a template script, not hand-written markup. Output is session-local and never committed. Do NOT use for non-gated changes: typo/grammar/factual fixes in an unchanged block, dead link targets, alt/ARIA fixes with no visual change, cache-bust bumps, or refactors with no rendered diff.

日本語の概要は準備中です。原文の説明を表示しています。

gaia-research/gaia-skill-tree232026年10月13日 更新

One-fix-at-a-time, approval-gated design fix recovery. Given a checklist of fixes (handover doc, CHECKLIST.md, or inline list), applies each individually, presents a diff, and waits for an explicit APPROVE / REJECT / NO CHANGES decision before committing. Trigger phrases: /design-iteration, "go through the checklist one by one", "fix these one at a time", "bucket recovery", "design fix pass".

日本語の概要は準備中です。原文の説明を表示しています。

gaia-research/gaia-skill-tree232026年10月13日 更新

Playbook for correcting a named skill's star level to match its computed Trust Magnitude grade, with an independent post-calibration verification pass and a CLI-logged timeline event (never hand-written). Use when: recalibrating a skill's level, fixing a stale or drifted star rating, running a batch of `gaia dev calibrate` corrections, or confirming a past calibration actually landed. Triggers: "calibrate <skill>", "recalibrate the trust magnitude backlog", "promote/demote <skill> to N stars", "why is <skill> still N stars", "verify a calibration actually landed", "Hall of Heroes ranking is wrong".

日本語の概要は準備中です。原文の説明を表示しています。

gaia-research/gaia-skill-tree232026年10月13日 更新

Close out a completed EPIC / sprint end-to-end: author a fact-verified meta-post announcing what shipped, archive the EPIC's handovers, snapshot orchestrator memory, gate the integration→main merge on CI-green + explicit human go, drive the version bump (merge-commit conventions that auto-sync classifies), and verify the release reached the registry/PyPI. Use when the user says "close out EPIC <n>", "wrap up the sprint", "ship the meta shift", "/epic-close", or asks to finalize an integration branch that is ready to merge to main. Generalizes the EPIC 1002 (Yggdrasil II) close-out. This skill orchestrates — it authors founder docs directly (superadmin) and delegates code/regen to workers; it NEVER merges to main without the human gate.

日本語の概要は準備中です。原文の説明を表示しています。

gaia-research/gaia-skill-tree232026年10月13日 更新

Run this skill for Phase 3 of the evidence verification pipeline — the adversarial audit step. Use when you need to check the evidence data lake for bad data before ingestion: dead links, wrong URL formats (tree/ vs blob/), subjective wording ("elite", "high-quality"), stale migration notes, benchmark catalog misuse/vendor-claim leakage, or skills whose star evidence conflicts with classified evidence level. Triggers on phrases like: "audit the data lake", "adversarial check", "ev-adversarial-audit", "check for noise in evidence", "flag bad evidence", "run the audit phase", "quality check the by-type files", or any reference to Phase 3 of the pipeline.

日本語の概要は準備中です。原文の説明を表示しています。

gaia-research/gaia-skill-tree232026年10月13日 更新

gaia-research のスキルをすべて見る

このスキルの問題を報告する