M3E: Skill for Claude Code

.claude/skills/nightly-autopilot/SKILL.md

nightly-autopilot is a skill for Claude Code from akaghef/M3E. It costs 321 tokens per session (1,779 once invoked), scanned A, original, MIT.

An automated maintenance job for the dev-beta branch and project workspace data. It creates SQL backups, pushes pending changes, merges pull requests whose checks pass, and can attempt limited fixes when CI fails.

In plain words
What is it for?
Use it for scheduled or one-off backups, branch updates, eligible pull-request merges, and small CI repair attempts.
Why use it?
It reduces routine overnight maintenance while protecting production branches and recording what happened. CI means automated checks that build and test the project.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; reads ~/.codex paths; mentions Codex.

This is akaghef/M3E's own configuration. It tells Claude Code how to work on M3E itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything M3E configures →

View source ↗ akaghef/M3E
Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/akaghef/M3E/main/.claude/skills/nightly-autopilot/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/akaghef/M3E

Made for: Claude Code.

Wrote 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.

agentmods badge for nightly-autopilot

README.md
[![agentmods](https://agentmods.dev/badge/skills/akaghef/m3e/nightly-autopilot/github.svg)](https://agentmods.dev/skills/akaghef/m3e/nightly-autopilot)
Your own site
<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.

agentmods 80×15 button for nightly-autopilot

Your own site · 80×15
<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>
Per session 321 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,779 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 2243a7b66934, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/skills/nightly-autopilot/SKILL.md · 100 lines

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)のみ。

Read the full file on GitHub · 100 lines

Changes

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.

  1. 1mo ago First seen · 100 lines · 321 tokens per session scan A 2243a7b66934

Subscribe to this mod's changes

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.

Related

nightly-autopilot compared with skills from other repositories

nightly-autopilot next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nightly-autopilotakaghef/M3ESkill162d agoMITA321Claude Code
github-release-managementruvnet/RuViewSkill106ktodayMITA27Claude Code
agent-github-modesruvnet/rufloSkill83ktodayMITA21Claude Code
xberg-releasexberg-io/xbergSkill9.6ktodayMITA16Claude Code, Codex
releaseprcompozy/compozySkill2.9ktodayMITA53Claude Code, Codex
gitlab-devopsautomateyournetwork/netclawSkill739todayApache-2.0A67Claude Code, Codex
seed-snapshot-releasedaangn/seed-designSkill1.2ktodayApache-2.0A19Claude Code, Codex