night-shift
Skill0 starsChanged 5 months agoMITView on GitHub
Run a bounded overnight AOSwarm-style analysis across recently active repos, using isolated workers to inspect architecture, tests, tooling, performance, safety, and agent-readiness, then synthesize a self-contained morning HTML report. Use for unattended nightly work blocks, architecture review swarms, cross-repo improvement mining, and robust fallback execution across Claude, Codex, and Gemini.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- morethanwords/twebtheir own version, first seen Nov 9, 2026
- Cynthia-wlan9509/offline-game-revivaltheir own version, first seen Nov 1, 2026
- andrewcamerongraham/claude-skillstheir own version, first seen Oct 13, 2026
- committed-nightly/opstheir own version, first seen Oct 13, 2026
- profbernardoj/everclawtheir own version, first seen Oct 8, 2026
- khoderTomas/claude-skillstheir own version, first seen Oct 8, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- morethanwords/tweb★ 2.7ksame name
- profbernardoj/everclaw★ 112same name
- Cynthia-wlan9509/offline-game-revival★ 83same name
- andrewcamerongraham/claude-skills★ 0same name
- committed-nightly/ops★ 0same name
- khoderTomas/claude-skills★ 0same name
- queglay/claude-skills★ 0same name
- Sean-Michael/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository83 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- shep/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- shep/CLAUDE.mdCLAUDE.md
- advisory-version-checkSkill
- aeo-llm-content-plannerSkill
- agency-command-centerSkill
- agency-morning-briefSkill
- agency-scorecardSkill
- agent-runbookSkill
- agent-usageSkill
- autonomy-budgetSkill
- backlink-pr-angle-generatorSkill
- brand-kit-from-urlSkill
- browser-automationSkill
- building-autonomous-agentsSkill
- capability-mapSkill
- case-study-engineSkill
- clickup-apiSkill
- client-dashboardSkill
- client-health-scoreSkill
- client-onboarding-osSkill
- cli-llm-routingSkill
- codebase-mapSkill
- command-from-your-phoneSkill
- competitor-content-gap-analysisSkill
- connection-monitorSkill
- content-brief-generatorSkill
- determinism-patternSkill
- dispatch-and-briefSkill
- division-operating-modelSkill
- dreamingSkill
- durable-stateSkill
- entity-topical-authority-mapperSkill
- first-real-jobSkill
- founding-circle-ai-securitySkill
- gbp-competitor-auditSkill
- goal-modeSkill
- host-your-agentSkill
- html-reportsSkill
- instinct-bridgeSkill
- evolveSkill
- learn-evalSkill
- learnSkill
- promoteSkill
- skill-createSkill
- internal-linking-auditorSkill
- keyword-deep-diveSkill
- ladder-auditSkill
- lanes-momentum-frameworkSkill
- launch-websiteSkill
- llm-citation-auditSkill
- migration-seo-paritySkill
- migration-visual-checkSkill
- model-gear-routerSkill
- multi-account-gatewaySkill
- multi-model-councilSkill
- novaSkill
- per-client-memory-routerSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. 0 are common, 21 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
21
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 8
Run the computer while the human sleeps, but keep the loop bounded, auditable, and reversible.
- Distinctive: line 14
Every run must have:
- Distinctive: line 22
no writes to production code unless the user explicitly starts a follow-up AOSwarm execution phase.
- Distinctive: line 26
Use AOSwarm as the SDLC shape:
- Distinctive: line 40
Run workers as independent scouts.
- Distinctive: line 59
Ensure at least two default Claude CLI remote-control sessions are running:
- Very specific: line 65
If fewer than two are found and tmux is installed, start missing sessions with the default claude binary:
- Distinctive: line 94
Use CLIs only. Never call model REST APIs directly.
- Distinctive: line 99
After one failure, retry once with exponential backoff.
- Distinctive: line 100
After three consecutive failures for a provider, mark it unavailable for the rest of the run.
- Distinctive: line 101
When falling back, reduce concurrency by half for the next provider when the runner supports dynamic throttling.
- Distinctive: line 102
If all providers fail, stop launching model workers and produce an evidence-only HTML report.
- Distinctive: line 103
Always preserve partial findings.
- Distinctive: line 105
Do not spin. Do not keep re-authenticating unattended.
- Distinctive: line 162
Run status: completed, partial, or failed.
- Distinctive: line 174
Use X/Twitter only as a discovery index.
- Distinctive: line 188
Do not run destructive commands.
- Distinctive: line 189
Do not push, merge, deploy, or create tickets unattended.
- Distinctive: line 190
Do not let workers edit code in the main checkout.
- Distinctive: line 191
Do not run unlimited workers because the machine is idle.
- Distinctive: line 192
Do not trust X/Twitter claims without verification.
- Distinctive: line 193
Do not hide rate-limit failures.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
night-shift
Run the computer while the human sleeps, but keep the loop bounded, auditable, and reversible.
night-shift is an unattended analysis skill. It fans out read-only workers across recently active repositories, captures findings, synthesizes architectural leverage, and produces a morning HTML report. It is not a license to edit production code or burn unlimited model quota.
Core Contract
Every run must have:
- a time box;
- a worker cap;
- a repo cap;
- a provider fallback policy;
- a failure ledger;
- a self-contained HTML report;
- no writes to production code unless the user explicitly starts a follow-up AOSwarm execution phase.
AOSwarm SDLC
Use AOSwarm as the SDLC shape:
- Scout swarm: read-only workers inspect independent repos or domains.
- Synthesis lead: one agent clusters findings, identifies themes, and writes the morning report.
- Human gate: the user reviews the report and chooses follow-up work.
- Execution swarm: approved code-changing work is dispatched through
ao spawnorao batch-spawn, one PR/MR per task. - Verification: merged only after normal repo verification and review gates.
The nightly phase is phases 1 and 2 only. Phases 3 to 5 require explicit human approval.
The bundled nightly runner uses direct read-only CLI scouts (claude, codex, gemini) for phases 1 and 2 so it can collect local Markdown artifacts deterministically. Use ao spawn / ao batch-spawn for phase 4 code-changing execution after the human gate.
Worker Types
Run workers as independent scouts. Assign each worker one repo and one lens unless the repo is small.
| Worker | Looks for | Output |
| Architecture mapper | module boundaries, dependency direction, data flow, service boundaries, ownership gaps | boundary map, coupling risks, missing docs |
| Testability auditor | missing contracts, brittle fixtures, flaky setup, unverified workflows | highest-value tests and exact invariants |
| Performance scout | N+1 queries, redundant IO, cache gaps, bundle size, long jobs | bottleneck hypotheses and verification commands |
| Tooling/DX auditor | broken scripts, unclear setup, missing one-command checks | repo setup friction and script candidates |
| Security/data-flow reviewer | secrets handling, auth checks, tenant boundaries, unsafe input | risk scenarios and mitigation candidates |
| Agent-readiness reviewer | AGENTS.md quality, codebase maps, local commands, acceptance criteria | what future agents need to move faster |
| Cross-repo pattern miner | duplicated helpers, divergent APIs, repeated architecture motifs | consolidation or standardization candidates |
| Research scout | current docs, GitHub examples, X/Twitter leads, AOSwarm patterns | verified external ideas and links |
Preflight
Before launching workers:
- Print repo root, output directory, time window, repo cap, worker cap, and provider order.
- Confirm tools when available:
claude,codex,gemini,ao,tmux. - Ensure at least two default Claude CLI remote-control sessions are running:
ps -axo command | grep -F "claude --remote-control" | grep -v grepIf fewer than two are found and tmux is installed, start missing sessions with the default claude binary:
tmux new-session -d -s agentic-nightly-remote-1 "claude --remote-control agentic-nightly-remote-1"
tmux new-session -d -s agentic-nightly-remote-2 "claude --remote-control agentic-nightly-remote-2"Record the before/after count in the report.
Repo Selection
Rank repositories by:
- dirty worktree state;
- commits in the selected time window;
- recently modified
.planning,.gsd,.omc, reports, or skill files; - current branch not being the default branch;
- explicit user-provided repo list.
Skip dependency directories, generated artifacts, archived repos, and repos without readable project context.
Provider Fallback Protocol
Default provider order:
- Claude CLI: best first pass for repo-aware analysis.
- Codex CLI: fallback for hard engineering reasoning and current OpenAI-side availability.
- Gemini CLI: fallback for long-context synthesis and external research.
Use CLIs only. Never call model REST APIs directly.
Rate-limit and failure handling:
- Detect provider failures from exit code plus error text containing
rate limit,quota,overloaded,429,insufficient_quota,authentication,invalid api key, orusage limit. - After one failure, retry once with exponential backoff.
- After three consecutive failures for a provider, mark it unavailable for the rest of the run.
- When falling back, reduce concurrency by half for the next provider when the runner supports dynamic throttling; otherwise cap the next run and record the requested lower concurrency.
- If all providers fail, stop launching model workers and produce an evidence-only HTML report.
- Always preserve partial findings. A partial report is better than a hidden failed run.
Do not spin. Do not keep re-authenticating unattended. Do not print secrets.
Worker Prompt Contract
Each worker prompt must include:
- repo path and lens;
- read-only rule;
- explicit files to inspect first;
- max time or max command count;
- output schema;
- "do not modify files";
- "do not run network or credentials-heavy commands unless the prompt says so";
- fallback instruction: if blocked, write what was checked and what evidence is missing.
Worker output schema:
# <repo> - <lens>
## Highest-Leverage Finding
<one paragraph>
## Evidence
- <file/command/log references>
## Architecture or Workflow Insight
<compound lesson>
## Follow-Up AOSwarm Candidate
<prompt-ready task, or "none">
## Verification Command
<command or "not applicable">
## Confidence
High | Medium | Low, with reasonMorning HTML Report
Write outputs to:
reports/nightly/YYYY-MM-DD/
index.html
dreaming.md
night-shift-summary.md
workers/
<repo>-<lens>.md
run.jsonindex.html must be self-contained, light-mode, and open automatically at the end of the run on macOS with open <path> unless disabled.
Required report sections:
- Run status: completed, partial, or failed.
- Provider health: Claude, Codex, Gemini availability, fallbacks used, rate limits.
- Claude remote-control health: before count, after count, sessions started.
- Repo coverage: selected repos, skipped repos, reason.
- Top insights: cross-repo compound findings.
- Architecture findings: grouped by repo and severity.
- AOSwarm queue: candidate
ao spawnorao batch-spawnprompts, gated for human approval. - Research leads: docs, GitHub, X/Twitter categories worth studying, with verification status.
- Failure ledger: every partial or failed worker.
X/Twitter Study Categories
Use X/Twitter only as a discovery index. Study these categories, then verify elsewhere:
- Karpathy-style autoresearch loops: editable surface, locked metric, results log, keep/revert.
- Parallel experiment waves: many hypotheses per decision instead of serial hill-climbing.
- Worktree-isolated coding agents: separate branches/worktrees to prevent file collisions.
- Reflection/heartbeat loops: agents summarize progress and recover from crashes or compaction.
- Strategy evolution:
program.md,strategy.md,results.tsv, and prompt-as-parameter systems. - Non-ML transfers: growth, market analysis, prompt optimization, product architecture, backtesting.
- Goodhart defenses: independent evaluators, anti-reward-hacking checks, evaluator audits.
- Human approval gates: morning review before ticket creation or code execution.
- Knowledge stores: markdown memories, BM25/vector retrieval, and curated reusable lessons.
What Not To Do
- Do not run destructive commands.
- Do not push, merge, deploy, or create tickets unattended.
- Do not let workers edit code in the main checkout.
- Do not run unlimited workers because the machine is idle.
- Do not trust X/Twitter claims without verification.
- Do not hide rate-limit failures; they belong in the report.
Completion Criteria
A night-shift run is complete when:
- at least one scout worker or evidence-only scan has run;
- provider and Claude remote-session health are recorded;
- partial failures are captured;
- a morning HTML report exists and opens;
- AOSwarm follow-up candidates are prompt-ready but not dispatched without approval.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

