Borrowing it
Nothing to install: this file belongs to akaghef/M3E. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/akaghef/M3E/main/.claude/skills/nightly-autopilot/SKILL.mdgit clone --depth 1 https://github.com/akaghef/M3EWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/akaghef/m3e/nightly-autopilot)<a href="https://agentmods.dev/skills/akaghef/m3e/nightly-autopilot"><img src="https://agentmods.dev/badge/skills/akaghef/m3e/nightly-autopilot/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/akaghef/m3e/nightly-autopilot"><img src="https://agentmods.dev/badge/skills/akaghef/m3e/nightly-autopilot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00321 | $0.01779 |
| Opus 5.5 | $0.00128 | $0.00712 |
| Sonnet 5.5 | $0.00064 | $0.00356 |
| Haiku 4.5 | $0.00032 | $0.00178 |
Grade A, and why
nightly-autopilot scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
nightly-autopilot
dev-beta を「最新かつ green」に保ち、M3E データを版管理バックアップする保守ジョブ。 ハイブリッド構成:決定論パートは shell スクリプト、判断が要る PR/CI はエージェントが担う。 production(final/・main)と Syncthing には一切触れない。
2つのモード
| モード | 起動 | 用途 |
|---|---|---|
| 1-shot(朝・手動) | エージェントにこのスキルを実行させる(/nightly-autopilot 等) |
夜間が失敗した時の取り戻し/日中の手動同期 |
| scheduled(夜・自動) | Codex automation(~/.codex/automations/.../automation.toml、rrule 定期、prompt がこのスキルを起動) |
寝ている間の無人実行 |
どちらも実行内容は同じ。launchd LaunchAgent は使わない(撤去済み)。
実行手順(ハイブリッド)
Step 1 — 決定論パート(スクリプト)
scripts/ops/nightly-autopilot.sh --no-pr --no-ci-fix
これが Stage A: データ SQL ダンプ・バックアップ(3 ws を lock-safe に .backup→.dump →
akaghef/m3e-data の snapshots ブランチへ日付 commit/push)と Stage 0: dev-beta 最新化
(pull --ff-only→git add -u→chore: nightly auto-commit (日付)→push)を実行し、
logs/nightly-autopilot-YYYY-MM-DD.md に途中経過を残す。ガードレール(単一ロック・90分予算・
force-push 禁止・非ff abort)はスクリプト側で効く。まず --dry-run を付けて副作用ゼロを確認してから本番を。
Step 2 — green PR マージ(エージェント判断)
gh pr list --base dev-beta --state open --json number,title,mergeable,statusCheckRollup,headRefName
各 PR について:CI(statusCheckRollup)が全 success で、mergeable == MERGEABLE のものだけ
gh pr merge <n> --squash --delete-branch。
重要:GitHub は mergeability を非同期算出し初回は UNKNOWN を返す(既知の落とし穴)。
UNKNOWN の時は数秒待って再照会し、MERGEABLE/CONFLICTING が確定してから判断する。
赤・競合・保留は触らず理由を記録。マージ後は git pull --ff-only origin dev-beta。
Step 3 — CI green 化(エージェント判断・最小修正)
push 後、gh run list --branch dev-beta で現 HEAD の run が登録されるのを少し待ってから完了までポーリング
(直後は run 未登録のことがある/対象ワークフローが無いコミットは neutral 扱い)。
赤い run があれば gh run view <id> --log-failed でログを取り、最小修正を dev-beta に commit→push→再確認。
最大3回で打ち切り、それでも赤なら停止して報告。final/・main は触らない/force-push しない。
Step 4 — 報告
実施内容(データ snapshot / auto-commit / マージ&skip した PR+理由 / CI 結末 / 中断理由 / 総合判定)を簡潔に報告。
触らないもの(安全境界)
- final/ と main には一切触れない。 本番昇格は別途
majorupdateで人間が行う。 - Syncthing 設定は変更しない。 データの定常同期(DP2)は Syncthing が担い、本ジョブは版管理バックアップ(Stage A)のみ。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 100 lines · 321 tokens per session scan A 2243a7b66934
nightly-autopilot is a skill published in the GitHub repository akaghef/M3E (16 stars, last pushed 2d ago), licensed MIT. It adds 321 tokens to every session and 1,779 once invoked, about $0.0013 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.
nightly-autopilot compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nightly-autopilotakaghef/M3E | Skill | 16 | 2d ago | MIT | A | 321 | Claude Code |
| github-release-managementruvnet/RuView | Skill | 106k | today | MIT | A | 27 | Claude Code |
| agent-github-modesruvnet/ruflo | Skill | 83k | today | MIT | A | 21 | Claude Code |
| xberg-releasexberg-io/xberg | Skill | 9.6k | today | MIT | A | 16 | Claude Code, Codex |
| releaseprcompozy/compozy | Skill | 2.9k | today | MIT | A | 53 | Claude Code, Codex |
| gitlab-devopsautomateyournetwork/netclaw | Skill | 739 | today | Apache-2.0 | A | 67 | Claude Code, Codex |
| seed-snapshot-releasedaangn/seed-design | Skill | 1.2k | today | Apache-2.0 | A | 19 | Claude Code, Codex |