一键导入
autonomous-mode
Autonomous execution mode for GIR — unattended operation, cap fail-safe, checkpoint/resume protocol. On-demand skill loaded by /gir:run.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Autonomous execution mode for GIR — unattended operation, cap fail-safe, checkpoint/resume protocol. On-demand skill loaded by /gir:run.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
AI tool delegation patterns — Gemini-CLI, Codex, and other external AI tools. Apply when delegating tasks to external AI tools to save tokens.
Universal Claude Code best practices for any coding task. Covers tool usage patterns, anti-patterns, code review standards, commit conventions, and workflow quality standards. Apply to ALL software engineering tasks.
GIR orchestration core — routing rules, delegation tiers, cost discipline, Graphify integration, escalation trigger, and lazy-load instructions. Always loaded.
Native parallel agent execution using Claude Code's built-in Agent tool with worktree isolation. On-demand skill — load when parallel work is needed.
Continuous autonomous iteration patterns (Ralph Loops) for Claude Code. Enables self-directed build-test-fix cycles, progressive refinement, and autonomous quality improvement. Use when the user wants Claude to iterate autonomously on a task until completion.
Spec-driven quality gates (SpecKit) for Claude Code. Enforces specification verification before implementation, test coverage requirements, and acceptance criteria checks. Use when building features that require formal specifications or quality assurance workflows.
| name | autonomous-mode |
| description | Autonomous execution mode for GIR — unattended operation, cap fail-safe, checkpoint/resume protocol. On-demand skill loaded by /gir:run. |
Governs unattended plan execution, usage-cap recovery, and checkpoint/resume protocol.
The autonomous_run block lives at the bottom of MISSION.md:
autonomous_run:
status: idle | in-progress | escalated | complete
unattended: true | false
resume_after_cap: true | false
started_at: "2026-04-28T10:00:00Z"
current_phase: 2
completed_phases: [1]
current_task: "implementing auth middleware"
checkpoint_at: "2026-04-28T10:23:00Z"
scheduled_resume_id: "agent-xyz-123"
escalated_at: null
escalation_reason: null
resume_instructions: null
Never edit this block manually during a run. The autonomous-executor owns it.
Claude's session dies instantly at usage cap — no hooks fire. The fail-safe must be scheduled at run start, not at cap time.
When /gir:run starts with resume_after_cap: true:
started_at timestampstarted_at + 70 minutesstatus field:
in-progress → resume via /gir:runcomplete or idle → do nothing, exitOn every SessionStart, after reading MISSION.md:
If autonomous_run.status == "in-progress":
now - checkpoint_atresume_after_cap: trueunattended: true and elapsed > 65 min → resume without askingWhen run completes cleanly:
scheduled_resume_id from MISSION.mdautonomous_run.status = completeIf cancellation fails (agent already fired and exited): safe to ignore.
When unattended: true is set:
| Normal behavior | Unattended behavior |
|---|---|
| "Proceed? yes/no" | Skip — proceed, log decision |
| Parallel decomposition confirmation | Skip — proceed with best decomposition |
| Phase boundary check-in | Skip — continue to next phase |
| Minor ambiguity | Make reasonable call, log to REVIEW-LOG.md |
| ESCALATION condition | Always stop — never skip escalation |
| DOD failure | Always fix — never skip DOD |
Escalation and DOD are never suppressed by unattended mode.
When resuming after cap:
autonomous_run blockcurrent_phase and current_taskcompleted_phases — skip thesecurrent_task within current_phasecurrent_task is ambiguous, restart the current phase from the beginning (safe — phases should be idempotent)[timestamp] RESUMED after cap interruption. Resuming phase [N] at: [current_task]
Long runs outlive their context. At every phase boundary, update MISSION.md's autonomous_run block (current_phase, current_task, completed_phases, checkpoint_at) and rewrite .gir/CLAUDE-activeContext.md (current phase, decisions made, next steps) together, in the same checkpoint — resume logic reads both, and one going stale relative to the other points resume at the wrong work.
.gir/ file state as authoritative over remembered conversationPhases must be safe to re-run. autonomous-executor should: