Communityコーディング&開発github.com

overnight-build (夜間自動ビルド)

Claude Codeの利用制限リセット後も継続可能な、自律的な無人ビルドプロンプトを作成します。BUILD_LOG.mdによるチェックポイント管理と、再起動用ランチャーを提供します。

overnight-build (夜間自動ビルド) とは?

このスキルは、ユーザーが就寝中などの無人環境で長時間のビルドタスクをClaude Codeに自律実行させるためのプロンプトとランチャーを生成します。中核となるのは、利用制限(usage-limit reset)が発生してもビルドが最初からやり直しにならないよう、BUILD_LOG.mdにチェックポイントを記録し、再開時に最新のチェックポイントから継続する仕組みです。スキルはテンプレート(`references/overnight-build-template.md`)をベースに、ユーザーの具体的なビルド仕様、フェーズ(4〜8段階)、時間配分、ピボットプレイブックを入力として、単一のコピー可能なプロンプトを生成します。対応プラットフォームはClaude Codeで、ランチャーとしてOSスケジューラ、bashループ、スケジュールタスクMCPの3種類から選択可能。注意点として、データベースマイグレーションや本番デプロイなど、人間の判断が必要な操作はプロンプト内で禁止するガードレールが組み込まれています。また、ビルド完了時には`BUILD_COMPLETE`を最終行に出力するよう指示し、bashループランナーがこれを検出して終了する仕組みになっています。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tderoussel/agent-skills/tree/main/skills/overnight-build

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

夜間ビルドプロンプト

完全なテンプレートは references/overnight-build-template.md にあります。作成前に必ず読んでください。 ルール構造を記憶から再導出しないでください。テンプレートの [角括弧] セクションをユーザーの具体的な内容で埋め、ユーザーが自身のコピーに加えた編集は保持してください。

不可欠な要件

すべての出力には ルール8(利用制限リセットを乗り切る) と ランチャーセクション を含めなければなりません。これらがビルドを再起動可能にする要素です。これらがないプロンプトは、最初の利用制限リセット後に静かに最初からやり直し、夜を無駄にします。

作成手順

  1. テンプレートを読む。 ユーザーが編集済みのコピーを保持している場合、ユーザーのコピーを優先し、その変更を保持します。
  2. 仕様を記入する — 何をビルドするか、コンテキスト、設計要件、技術要件、優先順位付きの機能、シードデータ、デプロイ、成功基準。ここでの具体性が全てです。曖昧な仕様は曖昧な夜を生みます。
  3. フェーズを設定する — 4〜8段階。各フェーズは独立して完了・検証可能で、時間配分の合計が予算に一致すること。
  4. ピボットプレイブック に、テンプレートの定常的なブロッカーに加えて、プロジェクト固有のブロッカーを記入します。
  5. ランチャーの種類を1回だけ尋ねる(A: OSスケジューラ · B: bashループ · C: スケジュールタスクMCP)。リクエストに明示されていない場合のみ。1回だけ尋ね、その後は進めます。
  6. 単一のコピー可能なコードブロックとして出力し、プロジェクトルートに overnight-build-prompt.txt として保存してから起動するようユーザーに注意を促します。

完了シグナル

プロンプトは、ビルドが最終行として BUILD_COMPLETE を出力するよう指示しなければなりません — bashループランナーはこれをgrepして終了します。プロンプト内で明示的に、P0基準のいずれかが真に満たされていない場合、BUILD_COMPLETE を出力しないことが正しい動作である と述べてください。未完了のビルドでランナーが終了するのは、継続するよりも悪い結果を招きます。

ガードレール

無人エージェントには質問できる相手がいないため、プロンプトは自身の境界を持たなければなりません。

ターゲットが既存の本番コードベースの場合、まずファイルの所有権とDO-NOTリストを導出し(fleet-brief スキルが両方を生成します)、プロジェクトの検証チェックをテストフェーズに組み込んで、「完了」が「マージされた」ではなく「検証された」を意味するようにします。

夜間プロンプトに決して許可してはいけないこと: データベースマイグレーションの適用、スキーマのプッシュ、ホスティングCLIを介したデプロイ、電話番号やドメインの購入・リリース、実際の連絡先への送信メッセージ。これらには人間が起きている必要があります。プロジェクト固有の不可逆操作もそのリストに追加してください。

ビルドが書き出すべき成果物

  • BUILD_LOG.md — フェーズエントリ、決定、ピボット、既知の問題、および正確な次のステップを示す ## CHECKPOINT — <ISO> ブロック
  • RESEARCH_NOTES.md — 実装開始前の調査結果

再開時、ビルドの最初のアクションは BUILD_LOG.md を最初から最後まで読み、最新のチェックポイントから続行することです — 再調査、再スキャフォールディング、再起動は決して行わないでください。

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

tderoussel/codebase-audit

Runs a ranked, evidence-backed audit of a product, codebase, or subsystem, ending in a verify list that separates proven findings from inferred ones. Use when the user asks for an audit, a gap analysis, a deep read, a bug hunt, a readiness check, a re-audit, a state reconciliation, or asks what they are not seeing. Trigger phrases include "audit", "gap analysis", "what am I missing", "deep audit", "readiness", "bug hunt", "review the whole thing". Produces findings and a verify list; does not fix.

tderoussel/competitive-teardown

Researches a competing product against your own and produces a ranked build-or-ignore verdict, plus optional comparison-page copy. Use when the user names a competitor or asks how their product stacks up against one. Trigger phrases include "vs us", "competitor", "what does X have", "should we copy", "competitive gap", "teardown", "are we behind". Produces a ranked verdict with effort estimates and an explicit not-worth-copying list.

tderoussel/decision-council

Run a structured multi-perspective review of a decision instead of getting one agreeable answer. Use when the user says run a council, get me perspectives on this, should I do X, stress-test this decision, or is this a good idea.

tderoussel/fleet-brief

Authors a workstream brief for dispatching multiple parallel build agents across one codebase, with per-lane file ownership, shared-ground warnings, and a derived DO-NOT list. Use whenever work is about to be split across concurrent agents, workers, lanes, or waves — even if the user does not say "write a brief". Trigger phrases include "fan out", "parallel agents", "orchestrate this", "split into lanes", "workstreams", "run these in parallel", "review-gated build". Produces the brief; does not dispatch.

tderoussel/inbox-triage

Triage an email inbox — sort what needs a reply, draft the replies, flag what needs a decision, and surface what can be ignored or unsubscribed. Use when the user says triage my inbox, do my email, what's in my inbox, or clean up my email.

tderoussel/session-log

Write a durable record of a work session — what was built, root-caused, or shipped — into the project's notes. Use when the user says log this session, write a session log, record this, or when a substantial piece of work has just finished and needs to be handed off to a future session.

tderoussel/ship-gate

Verification gate for a Next.js-on-Vercel + Supabase + GitHub Actions stack, to run before claiming anything is shipped, deployed, live, merged, passing, or done. Use before saying a change is in production, before merging a PR, before reporting CI green, and before writing any status into a document — even if the user does not ask for verification. Trigger phrases include "is it live", "did it deploy", "ship it", "merge it", "is CI green", "confirm prod", "did that work". Encodes traps where the obvious check returns a false pass.

tderoussel/vault-doctor

Audits and repairs an Obsidian vault's structural health — broken [[wikilinks]], ambiguous duplicate filenames, missing or malformed frontmatter, stale status markers, and hub notes whose state sections have gone cold. Use when the user asks about vault health, broken links, vault cleanup, dead links, orphan notes, tag consistency, or says the vault feels messy or out of date. Trigger phrases include "vault health", "broken links", "clean up the vault", "audit the vault", "is the vault current". Read-only by default; every repair is proposed before it is made.

関連スキル