long-horizon
Use when the agent should operate autonomously for an extended task and make reasonable decisions without interrupting the user for every choice. Trigger when the user says to just do it, work independently, run for a long time, avoid asking constant questions, or when configuring autonomous sub-workflows. 中文触发:自主执行、别问我、自己做、长时间运行、自动跑、不用问我、自己决定、后台跑。
- License 许可
- Apache-2.0
- 最近更新
- 2026-06-08
- Stars
- ★ 2
- Forks
- 1
01 前言 Front Matter
- name
- long-horizon
- description
- Use when the agent should operate autonomously for an extended task and make reasonable decisions without interrupting the user for every choice. Trigger when the user says to just do it, work independently, run for a long time, avoid asking constant questions, or when configuring autonomous sub-workflows. 中文触发:自主执行、别问我、自己做、长时间运行、自动跑、不用问我、自己决定、后台跑。
02 资源文件 1
- 参考文档agents/openai.yaml245 B
03 SKILL.md 正文
Long Horizon
Framework for autonomous decision-making during extended work. The core rule is:
exhaust your own judgment before consuming the user's attention
Use this skill when progress matters more than constant confirmation and the task can tolerate well-reasoned autonomous decisions.
The escalation ladder
Work through uncertainty from lowest-cost resolution to highest-cost resolution. Only escalate when the current level does not resolve the issue.
- Convention check -> decide silently when the codebase already answers it
- Codebase research -> decide and log
- External research -> decide and log with reasoning
- North-star reasoning -> decide, log, and flag for later review
- Ask the user -> last resort; batch questions together
Level 1: Convention check
First ask: does the repository already answer this?
Check:
- project instruction files such as
AGENTS.md,CLAUDE.md, or repo-specific docs - existing code in the same subsystem
- config such as linters, formatters, CI, and generators
- recent git history if it clarifies an established pattern
If a clear convention exists, follow it without stopping to discuss it.
Typical examples:
- quote style
- test framework choice
- file placement
- naming conventions
Level 2: Codebase research
If the answer is not obvious, spend a short bounded period reading nearby files, related modules, READMEs, comments, or commit history.
Use this level for questions like:
- how errors are usually handled
- how transactions or side effects are structured
- what endpoint naming pattern is already in use
At this level and above, leave a decision trail the user can review later.
Example log entry:
Used repository pattern for new data access (L2: consistent with adjacent modules)
Level 3: External research
If the repository is not enough, research outside it:
- official docs
- primary library/framework docs
- issue trackers
- source code of dependencies
- comparable open-source implementations
Use this for technical choices where the answer is discoverable but not already encoded in the project.
Example log entry:
Chose zod over joi (L3: better TypeScript inference, aligns with maintainability)
Level 4: North-star reasoning
When multiple options remain viable, use the project's objectives as the tie-breaker.
For each option, evaluate how it affects the project's top goals, such as:
- maintainability
- simplicity
- reliability
- performance
- clarity
Then choose the best trade-off, continue the work, and flag the decision for later review rather than blocking on approval.
Example:
[flagged] Kept duplication over extracting a base class (L4: simpler and easier to maintain)
Level 5: Ask the user
Only ask after exhausting Levels 1-4, and only when the user is genuinely required.
Legitimate reasons include:
- strategic scope or direction changes
- missing access, secrets, or credentials
- ambiguous requirements that research could not clarify
- high-risk irreversible actions
- conflicting signals that materially affect the outcome
When you ask, batch all unresolved questions together and include the reasoning you already did so the user can answer quickly.
Decision logging
For any Level 2+ decision, keep a lightweight decision log in a repo-visible place such as decisions.md unless the project already has a preferred path.
Useful fields:
- date
- decision
- level (
L2,L3,L4) - short reasoning
- whether it was flagged for later review
The log helps with:
- session continuity
- user review
- future calibration of autonomous behavior
Anti-patterns
Avoid:
- asking too early
- making significant decisions with no trail
- shallow "research" that never compared options
- spending too long on low-level decisions
- interrupting the user repeatedly instead of batching questions
Autonomy tuning
Different tasks need different autonomy levels:
- High autonomy: decide through L4 and only ask for credentials, irreversible actions, or major strategic changes
- Medium autonomy: decide through L3, flag L4, ask for L5
- Low autonomy: decide through L2, ask earlier on subjective trade-offs
If the project tracks autonomy preferences, respect them. Otherwise default to medium and bias toward progress.
Integration notes
dev-loopuses this skill for the non-metric decisions that happen during repeated iterationsnotifycan surface flagged L4 decisions asynchronously instead of blocking execution- any optional telemetry or correction logging is best-effort and should not interrupt delivery
Migration notes
This Codex version preserves the decision ladder from the Claude skill but removes Claude-specific frontmatter fields such as category. Logging paths and command details should be adapted to the current repository instead of assuming a Claude-specific runtime.
04 同仓库更多 Skills
workbuddy-guide
Explain and operate workbuddy: what it is, which command to reach for, and where to find deeper references. **Trigger whenever the user mentions 'workbuddy' in any context** — including operational requests (register/onboard a repo, add/bind a worker, 注册仓库, 加仓库, 接入新仓库, onboard repo, set up worker), explanatory questions (how to use workbuddy, workbuddy guide, teach me workbuddy, 怎么用workbuddy, 使用指南), deployment/running/operating/debugging workbuddy, and questions about how issues/tasks are scheduled or how dependencies between issues work (depends_on, blocked, dependency gate, 依赖, 调度, 排队, '为什么没派发'), and questions about parallel-development workflows (rollouts:N fan-out, synthesize/synthesis reduce step, cherry-pick, '并行开发', '多个方案', 'rollout'). Invoke this skill before running workbuddy CLI commands so the documented onboarding flow (coordinator register + worker repos add) and the dependency/scheduling model aren't re-derived from scratch.
web-debug
Validate the workbuddy webui (SPA + auth + JSON API) end-to-end on the same machine workbuddy runs on, using browser-use's headless harness. Use when the user says 'verify the frontend', 'test the SPA', 'check dashboard loads', '前端验证', '验下 webui', or after merging changes that touch internal/webui, web/, or the auth/cookie path.
setup-repo
Configure a GitHub repository for workbuddy orchestration — creates labels, the two canonical agent configs (dev + review), workflow definitions, issue templates, and config.yaml. Use when the user says 'set up repo', 'configure repo for workbuddy', 'initialize workbuddy', '配置仓库', '初始化workbuddy', or wants to onboard a new repo.
pipeline-monitor
Monitor the workbuddy agent pipeline, detect stuck issues, zombie processes, and missed redispatches. Works for both the 3-unit bundle (supervisor + coordinator + worker) and single-process `serve`. Use when the user says 'monitor the pipeline', 'check workbuddy status', '监工', '看看跑完了没', or asks to watch issue progress.
merge-flow
Merge a batch of approved workbuddy PRs into main: order them, resolve conflicts against design intent, validate post-merge health, and report. Use when the user asks to 'merge the batch', 'merge approved PRs', 'integrate finished issues', '批量合并', '处理冲突'; or when the merge-agent is invoked.
deploy
Workbuddy deployment topology guide — explains the 3-unit bundle (supervisor + coordinator + worker), the rolling-restart property, and the cutover from the legacy single-process `serve` install. Use when the user says 'how should I deploy workbuddy', 'install workbuddy as a service', 'switch to bundle', 'rolling restart', '部署 workbuddy', '升级到 bundle'.