long-horizon-prompting
できること
このスキルは、数時間から数日にわたって自律的に動くAIエージェントのための、最初のプロンプトの書き方を扱います。単独でも、多数の並列ワーカーとでも動きます。難しく長いタスクを開始し、成功の正確な定義が必要な人向けです。
使う場面
- ✓数時間から数日にわたって自律的に動くことが期待されるAIエージェントを開始するとき。
- ✓多数の並列ワーカーで1つの難しい問題を扱い、明確な指示書が必要なとき。
- ✓長い実行がいつ止まるか、いつ報告するか、いつ続けるかを正確に知る必要があるとき。
スキルのリンク
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/long-horizon-prompting/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“1日かけて難しい研究問題に取り組むエージェントの開始プロンプトを書いてください。成功の基準は明確にしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、主要な用語を定義し、正確な成功の判定を示し、考えられる結果を列挙し、いつ止まるべきか、いつ報告すべきかのルールを設定するよう導きます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Long-Horizon Prompting
This skill covers the design of the prompt that launches an agent expected to work autonomously for hours or days, alone or as an orchestrator managing many parallel workers. The central technique is the pseudo-formal task brief: a specification written with the rigor of formal verification but expressed linguistically, because most hard problems have no machine-checkable success condition. The exemplar is the published prompt behind GPT-5.6 Sol Ultra's candidate proof of the Cycle Double Cover Conjecture, produced by a 64-subagent orchestration (claim-long-horizon-cdc-run). The prompt structure generalizes far beyond mathematics: any domain where success can be stated precisely and failure modes can be enumerated can use the same brief anatomy. In orchestrated runs the same discipline applies at every handoff: when a model optimized its own multi-agent workflow text in Sakana AI's MASS work, task information moved out of worker roles and into output contracts and call order (claim-long-horizon-contract-information-shift).
The controlling trade-off: everything that makes a long run productive (persistence, autonomy, parallelism) also raises the cost of a weak specification. A short interactive prompt fails cheaply; a long-horizon brief with a loophole burns hours of compute producing an answer-shaped artifact that does not solve the problem.
When to Activate
Activate this skill when:
- Writing or reviewing the prompt for a long-running autonomous run before launching it
- Converting a vague hard problem ("solve X", "figure out why Y happens") into an explicit brief with a success predicate and non-counting outcomes
- Writing the root or orchestrator prompt that manages many parallel workers on an open-ended search problem
- Adding persistence instructions, stop conditions, effort floors, or return gates to an agent prompt
- Writing the output contract and acceptance checks each delegated worker must satisfy, or the rule for which review findings block a return
- Diagnosing a failed long run whose failure traces to the brief: premature return, an answer-shaped near miss, all workers converging on one approach, or fabricated completion claims
- Building a pre-launch review step that enhances and evaluates prompts before expensive agent time is committed
Do not activate this skill for adjacent work owned by other skills:
- Agent topology, supervisor versus swarm choice, handoff protocols, and coordination mechanics:
multi-agent-patterns. That skill owns the architecture; this skill owns the words that steer it, including the contract each worker must return. - Runtime control surfaces, locked evaluators, rollback, durable logs, and approval boundaries around an autonomous loop:
harness-engineering. Constraints that must survive optimization pressure belong in the harness, not the prompt. - Building the evaluator, regression suite, or deterministic quality gates a run is scored by:
evaluation. - LLM-as-judge design, rubrics, pairwise comparison, and bias mitigation:
advanced-evaluation. - Compaction, note-taking, and cross-session memory mechanics for surviving context limits:
context-compression,memory-systems,filesystem-context. - Loops that modify their own harness or prompts:
self-improvement-loops. - Remote sandboxes and background execution infrastructure:
hosted-agents.
Core Concepts
Pseudo-Formal Task Specification
Formal verification requires a machine-checkable specification. Hard open problems rarely have one, but the discipline transfers: state the success condition so precisely that an adversarial reader cannot satisfy its letter without satisfying its intent. Four components, in order of leverage:
- Definitions with degenerate cases. Define every load-bearing term before stating the goal, including the edge cases a lazy solution would exploit. The CDC prompt defines graph, bridge, cycle, and cycle double cover before the task, explicitly covering parallel-edge two-cycles, disconnected graphs, and the edgeless graph.
- Exact success predicate. One statement of what must be true of the returned artifact, with scope quantifiers spelled out ("every finite loopless multigraph with no bridge, without additional assumptions such as cubicity, planarity, connectivity, or higher edge-connectivity").
- Non-counting outcomes. An enumerated list of results that do not count: partial progress, special-case solutions, reductions to another un
よくある質問
疑似形式的なタスクの指示書とは何ですか?
自動の検査者がなくても、用語と成功の基準を明確に定義した、正確な書面の仕様です。
なぜ長い実行には強い指示書が必要なのですか?
弱い仕様では、正しく見えても問題を解決しない答えのために、何時間もの作業が無駄になることがあるからです。
数学だけに当てはまりますか?
いいえ。成功と失敗を正確に述べられる分野なら、同じ指示書の構造を使えるとスキルは述べています。
詳細
作者による元の説明
This skill should be used when writing, enhancing, or evaluating the launch prompt for a long-running autonomous agent or a parallel multi-agent orchestration attacking a hard problem: pseudo-formal task briefs that define terms and an exact success predicate linguistically, enumerate non-counting outcomes, set persistence rules with explicit stop and return conditions and effort floors, manage a diverse portfolio of parallel approaches with an approach registry and blocked-route bookkeeping, and gate the return on adversarial audit. Route agent topology and coordination protocols to multi-age
人気
- GitHubのスター
- 18k
- ランキング
- #10646
- ライセンス
- MIT
- 更新日
- 2026/10/11
コメント
- …
このリポジトリの他のスキル
context-engineering-collection
18kエージェントが、AIモデルのコンテキストウィンドウに何を入れるかを管理するよう支援します。メモリやツールから、マルチエージェントの構成、評価までを扱います。
advanced-evaluation
18kエージェントが、スコアリング、並べての比較、バイアスの確認を使って、別のAIによりAIの回答を判定する方法を教えます。
bdi-mental-states
18kエージェントが、BDIの方法を使って信念、目標、計画をモデル化するよう教えます。そのため、各決定を追跡して説明できます。
context-compression
18kエージェントが、長いAIのセッションを、決定、ファイル、リスク、次のステップを残した要約に短縮するよう支援します。
似ているスキル
writing-skills
311k新しいスキルを書き、それぞれをまず試すようエージェントに教えます。そのスキルが実際にエージェントの動作を変えることを確認します。
writing-for-agents
310kスキル、AGENTS.md、CLAUDE.mdを含め、AIエージェントのための明確な指示の書き方を説明し、エージェントが予測可能に動くようにします。
bengali-nlp
280kエージェントがベンガル語のテキストを処理できるようにします。テキストの正規化など、ベンガル語特有の性質に対応しながら、言語を理解して扱えるようにします。