autospec-stop
Use when the user wants to halt a running autospec monitor gracefully or immediately — writes the ~/.autospec/stop.flag sentinel so the monitor exits after the current issue (--graceful) or aborts at the next step boundary (--immediate). Also supports --status, --resume, and inline stop sub-mode matching `^\s*stop(\s+--\w+)*\s*$`.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- autospec-stop
- description
- Use when the user wants to halt a running autospec monitor gracefully or immediately — writes the ~/.autospec/stop.flag sentinel so the monitor exits after the current issue (--graceful) or aborts at the next step boundary (--immediate). Also supports --status, --resume, and inline stop sub-mode matching `^\s*stop(\s+--\w+)*\s*$`.
02 资源文件 5
- 参考文档codex/prompt.md6.3 KB
- 脚本install.sh10.5 KB
- 参考文档opencode/agent.md6.7 KB
- 参考文档README.md1.8 KB
- 脚本uninstall.sh3.8 KB
03 SKILL.md 正文
autospec-stop (harness-neutral)
Halt a running autospec monitor gracefully or immediately. All paths route
through bash "${AUTOSPEC_SCRIPTS_DIR:-$HOME/.autospec/scripts}/autospec-stop.sh" "$@".
Manage your own context — never exceed 60%. Delegate to subagents whenever your harness supports it.
<!-- autospec-block:startup-self-update SKILL_NAME=autospec-stop -->
Self-update mode
If the feature-request argument matches the regex ^\s*update\s*$ (case-insensitive, whitespace-padded), this skill enters self-update mode and does not run the normal pipeline:
- Detect harness by checking which install path exists for this skill:
- Claude Code:
~/.claude/skills/autospec-stop/SKILL.md - OpenCode:
~/.config/opencode/agent/autospec-stop.md - Codex CLI:
~/.codex/prompts/autospec-stop.md
- Claude Code:
- Re-install the full autospec suite from
mainby piping the canonical installer:
Run this one-liner once; it refreshes all autospec skills across all harnesses.curl -fsSL https://raw.githubusercontent.com/berlinguyinca/autospec/main/bootstrap.sh | bash -s -- --skill all --harness all --update - Show the diff between the prior installed file(s) and the freshly fetched copy.
- Stop. Do not enter any pipeline phase. Print the upgrade summary and return to the user.
If no install path is detected, print Self-update: no installed copy of autospec-stop found; run install.sh first. and exit.
Stop mode
If the feature-request argument matches the regex ^\s*stop(\s+--\w+)*\s*$
(case-insensitive), this skill enters stop mode and does not run the normal
pipeline:
- Dispatch to
bash "${AUTOSPEC_SCRIPTS_DIR:-$HOME/.autospec/scripts}/autospec-stop.sh" <args>. - Print the helper's stdout to the user.
- Stop. Do not enter Phase 0 or any pipeline phase.
Invocation
/autospec-stop [--graceful|--immediate|--status|--resume|--help]
Dispatches directly to bash "${AUTOSPEC_SCRIPTS_DIR:-$HOME/.autospec/scripts}/autospec-stop.sh" "$@". All logic lives
in the helper script.
| Flag | Behaviour |
|---|---|
--graceful (default) |
Write sentinel mode=graceful; monitor exits after current issue finishes. |
--immediate |
Write sentinel mode=immediate; process(ISSUE) commits+pushes+marks paused at next step boundary. |
--status |
Report current sentinel state, paused-by-user issue count, last monitor progress line. |
--resume |
Memory-aware: detect the monitor exit mode (silent-exit | prompt-overflow | clean | unknown — driven by docs/memory/feedback_monitor_silent_exit.md), print the matching recovery guidance, then strip paused-by-user labels from all paused issues, restore auto-implement, delete stop.flag. |
--help |
Print usage and exit. |
Harness detection (run once at skill start)
Detect your harness by checking available tools before dispatching work:
-
Claude Code — the
Agenttool with asubagent_typeparameter is available.TIER_A=opus+ultrathink(the alias, which resolves to the current Claude Opus generation)TIER_B=sonnet(the alias, which resolves to the current Claude Sonnet generation)
-
OpenCode — a
tasktool with model/tier configuration is available (nosubagent_type).TIER_A= top-tier task model + high reasoningTIER_B= smaller-tier task model + medium reasoning
-
Codex CLI — neither
Agentnor a configurabletasktool is available;apply_patchis the primary edit tool.TIER_A= current top GPT model +reasoning_effort=highTIER_B= the spark / cost-optimized variant of the configured model when one exists, else the configured model +reasoning_effort=medium
Fallback rule: If TIER_B is not available in your harness (model unknown, quota/capacity failure, authorization failure, or tool call returns an error for that model), silently retry the same dispatch with TIER_A. Preserve the parent context on retry; for Codex native subagents, fork/inherit the current conversation context and use the latest top GPT model instead of moving the work into the main session. Never ask the user.
Hold TIER_A and TIER_B for the entire skill run.
Required capabilities & harness adapter
This workflow assumes a small set of capabilities. Map each one to your harness's actual tool. If a capability is missing, use the listed fallback.
| Capability | Claude Code | OpenCode | Codex CLI | Fallback if missing |
|---|---|---|---|---|
| Run shell command | Bash |
bash tool |
shell / apply_patch |
Ask user to run manually |
| Ask the user a question | AskUserQuestion |
inline prompt | inline prompt | Ask in the response and wait for the next turn |
| Subagent model tier | Tier B: sonnet + medium thinking |
Tier B: smaller-tier task + medium reasoning |
Tier B: current spark/cost-optimized Codex + reasoning_effort=medium |
Fall back UP on unavailability |
| <!-- autospec-block:harness-adapter-core --> |
Model tier: Tier B (implementation work) — this skill is a thin dispatch wrapper.
Procedure
- Run startup self-update block above.
- Parse the user's invocation arguments (default to
--gracefulif no flag given). - Execute:
bash "${AUTOSPEC_SCRIPTS_DIR:-$HOME/.autospec/scripts}/autospec-stop.sh" "$@" - Print stdout to user and exit.
If ${AUTOSPEC_SCRIPTS_DIR:-$HOME/.autospec/scripts}/autospec-stop.sh is not found, print:
autospec-stop: helper not found at ${AUTOSPEC_SCRIPTS_DIR:-$HOME/.autospec/scripts}/autospec-stop.sh.
Reinstall autospec-stop from the autospec repo, then retry.
and exit non-zero.
Hard rules
- Never call
autospec-stop.sh --abort-current-issuefrom user invocation. That flag is internal. - Never modify issue bodies, labels, or PRs directly — the helper script owns all GitHub mutations.
- This skill is a thin wrapper. All behaviour is in the helper script.
04 同仓库更多 Skills
trio-pass-skill
暂无简介
duo-pass-skill
暂无简介
duo-divergence-skill
暂无简介
autospec
Use when the user wants to ship a feature end-to-end across multiple commits — bootstraps repo if missing, brainstorms a design spec, decomposes into linked GitHub issues, or splits an existing spec into issues, then runs an autonomous implementation loop with auto-merge.
autospec-upgrade
Use when the user wants to upgrade an Angular, Next.js, or React project to the latest official versions safely — by locking observable behavior before touching versions, upgrading one major at a time with official codemods, and gating completion on mutation score rather than coverage theater.
autospec-ui-audit
Use when a React Router application needs a deterministic whole-site route inventory before UI, UX, navigation, or evidence auditing begins.