authoring
Write or revise a Genie skill so it survives the shipped contract — frontmatter, house size, starter card, and runtime-neutral voice.
Resolve blocking review gaps through bounded repairs and independent re-review; diagnose stalled attempts without expanding scope.
$ npx -y skills add automagik-dev/genie --skill fix --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/fixContext preview
The summary Claude sees to decide when to auto-load this skill.
Resolve blocking review gaps through bounded repairs and independent re-review; diagnose stalled attempts without expanding scope.
name: fix description: "Resolve blocking review gaps through bounded repairs and independent re-review; diagnose stalled attempts without expanding scope." category: lifecycle mutates: repo
Given a FIX-FIRST review, the original criteria, and validation commands, dispatch a fixer for the blocking gaps and a different reviewer for the result. The fixer changes only the assigned scope. Reuse the existing worker context when appropriate; a reviewer never reviews its own edits.
Resolve `B` once per group from `genie config get budgets.maxEscalationsPerGroup`, default 2 when the key is unset; `genie doctor` echoes the resolved value. A different positive integer applies only when that key or an explicit user instruction supplies it, and the handoff states the active value and which of the two it came from. Carry `B`, attempts used, and effort-escalation counters across handoffs. Switching skills or correcting a diagnosis never resets them. An override does not expand scope, permit unchanged retries, or skip diagnosis or independent re-review.
1. Diagnose the failure before choosing a repair. An `overdesigned-plan` returns to planning without consuming a fix attempt. 2. Dispatch the fixer with the gap evidence, criteria, owned files, validation, and remaining budget. 3. Run the relevant checks and independent `review` after each repair; record the evidence and attempt count. 4. SHIP returns to the caller. FIX-FIRST may repeat up to `B` loops only with a changed approach or new evidence. At the cap, on unchanged failure, or on BLOCKED, take the diagnostic route below.
| Cause | Required response | |---|---| | `missing-context` | Obtain the absent files, logs, history, or criteria; keep model/effort unchanged. | | `ambiguous-spec` | Resolve the competing interpretations with the user or plan owner. | | `env-tool-failure` | Repair the demonstrated environment/tool problem or report its exact blocker. | | `overdesigned-plan` | Remove or defer machinery lacking a present requirement or measurement; return to design/plan review. Do not spend retries defending it. | | `model-capacity` | Only after ruling out the other causes with new evidence may model/effort increase one step in runtime configuration. Inherit the active model otherwise. |
Allow at most two escalation attempts per group. More requires an explicit human decision recorded with group, old/new settings, evidence, approver, and timestamp. Repeated verdicts are not new evidence and do not grant more repairs. A user-approved simplification invalidates superseded design/plan evidence and requires fresh review.
If reviewers disagree, record both verdicts, the contested criterion, evidence, and human resolution. Do not silently override either verdict.
Recursive confidence is not approval: attempts that converge on the same repair prove consistency, not authorization. A repair touching release machinery, retirement or backup paths, the install record, the tracked roadmap snapshot, or anything outside the worktree stays a dry run or a preview no matter how many attempts agreed, until an independent re-review passes and the coordinator records a human ruling naming the change, its blast radius, the approver, and the timestamp. Attempt count never substitutes for that ruling, and a converged repair that cannot obtain it is reported as blocked rather than applied.
Return resolved and remaining gaps with file locations, checks and results, cause and next route, `attempts=<used>/B`, and `effort_escalations=<used>/2`, and `budget_source=<config|instruction|default>`. Report any unresolved review disagreement.
The fixer never changes task status and posts nothing to the card. The group stays `in_progress` through repair and review; only its coordinator marks it done after SHIP and passing validation. Each re-review verdict is relayed to the card by the coordinator as one `genie task comment <task-id> --worker orchestrator -- 'review: … — …'`; an exhausted loop or diagnosed route gets one `blocked: <cause> — <route>` comment. Without a task row, use the review evidence directly. Continue independent groups while one group is blocked.
Wishes in, PRs out. CLI agent that interviews you, plans the work, dispatches parallel agents in isolated worktrees, and reviews code before you see it.
Repo: automagik-dev/genie
Write or revise a Genie skill so it survives the shipped contract — frontmatter, house size, starter card, and runtime-neutral voice.
Explore an ambiguous idea with the user, settle scope and success criteria, and produce an independently reviewed design for wish.
Assess a proposal through independent technical, product, risk, and dissenting lenses, then synthesize a decision without mutating unless explicitly requested.
Audit documentation and developer experience against the live product — drift, onboarding, error messages — and write or fix docs when asked.
Batch-execute SHIP-ready wishes overnight — pick wishes, orchestrate workers, review PRs, wake up to results.
Browse, search, and contribute community hacks — real-world patterns for provider switching, teams, skills, hooks, cost optimization, and more.