agentleFS
voundbrandvoundbrand/overnight/.cursor/skills/overnight-setup/SKILL.md

overnight-setup

Skill2 starsChanged 3 months agoMITView on GitHub

Interactively install or upgrade the Overnight autonomous orchestration system in a repository. Use when the user asks to set up Overnight, install the skill library, port overnight orchestration, configure AGENTS.md, wire plan preflight, choose plan roots, or make another repo ready for autonomous implementation-plan work.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 9 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill to set up the whole Overnight system in a target repo.

    line 8
  2. Distinctive:

    Ask only what you cannot infer safely:

    line 14
  3. Distinctive:

    Target repo path: if not already clear.

    line 16
  4. Very specific:

    Base branch: default origin/main if the repo uses it.

    line 19
  5. Distinctive:

    Do not ask a question if local files answer it.

    line 31
  6. Very specific:

    If running from the packaged repo, prefer dist/overnight/install.sh <target>.

    line 45
  7. Very specific:

    Use non-destructive install by default.

    line 49
  8. Distinctive:

    Add or update a package script:

    line 54
  9. Very specific:

    If the repo has no package scripts, document the direct node command instead of inventing a package manager.

    line 58
  10. Distinctive:

    Add a concise AGENTS.md / CLAUDE.md section pointing to:

    line 62
  11. Very specific:

    If the quality layer was installed, set the quality lens source to docs/quality-lenses.md + .claude/skills/.

    line 69
  12. Very specific:

    Run the configured preflight with --no-write-state.

    line 78
  13. Distinctive:

    Run git diff --check scoped to setup files.

    line 79
  14. Distinctive:

    Never install a board, dispatcher, polling daemon, or required status file.

    line 89
  15. Very specific:

    Do not make a scheduled heartbeat wake an agent before the local preflight says ACTION_REQUIRED.

    line 90
  16. Distinctive:

    Do not silently loosen branch, PR, credential, cloud, spend, or external-send rules.

    line 92
  17. Distinctive:

    Keep setup changes separate from product implementation changes.

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Overnight Setup

Use this skill to set up the whole Overnight system in a target repo. It is the interactive entrypoint: inspect the repo, ask only the missing questions, copy or upgrade the library, and wire the repo-specific commands/instructions.

Setup Questions

Ask only what you cannot infer safely:

  1. Target repo path if not already clear.
  2. Plan root + plan slug: e.g. implementation_plans/my_plan or 000_implementation_plans_all/crm_revamp.
  3. Base branch: default origin/main if the repo uses it.
  4. PR/review surface: GitHub gh, local-only, or another provider.
  5. Harness choice for orchestrators: Codex, Claude, OpenCode, or future native harness.
  6. Quality layer: whether to install the portable quality skills (engineering-quality-lens, tdd, diagnose, architecture-review, code-structure). Default to yes for implementation-plan repos; skip them only if the target repo already has an equivalent local quality system or the user wants the smallest possible runtime.
  7. Branch/PR authorization: whether agents may create branches/draft PRs now, or must remain on the current branch.

Do not ask a question if local files answer it. Prefer one short question at a time when a choice is actually blocking.

Workflow

  1. Inspect the target.
    • git status --short --branch
    • root AGENTS.md / CLAUDE.md
    • package.json
    • plan folders and TASK_QUEUE.md
    • existing .claude/skills, scripts/agent-signals.sh, and scripts/implementation-plan-orchestrator-preflight.mjs
  2. Install or upgrade the library.
    • If running from the packaged repo, prefer dist/overnight/install.sh <target>.
    • Install the quality layer by default. If the user opts out, pass --without-quality-lenses and make sure AGENTS/CLAUDE instructions do not require the skipped quality skills.
    • Use non-destructive install by default. Use --force only when the user explicitly asks to replace existing library files.
    • Preserve unrelated dirty work. Do not overwrite product files.
  3. Wire repo-specific commands.
    • Add or update a package script:
      "plan:orchestrator:preflight": "node scripts/implementation-plan-orchestrator-preflight.mjs --plans-root <root> --plan <slug>"
    • If the repo has no package scripts, document the direct node command instead of inventing a package manager.
  4. Patch instructions.
    • Add a concise AGENTS.md / CLAUDE.md section pointing to:
      • .claude/skills/implementation-plan-builder/SKILL.md
      • .claude/skills/overnight-agent-runbook/SKILL.md
      • .claude/skills/stacked-pr-orchestrator/SKILL.md
      • scripts/agent-signals.sh
      • npm run plan:orchestrator:preflight
    • Fill the knobs table with the repo's real values.
    • If the quality layer was installed, set the quality lens source to docs/quality-lenses.md + .claude/skills/. If it was skipped, point to the target repo's existing quality docs or record none.
    • Preserve existing branch policy. If the repo says “do not create branches unless explicitly asked,” the Overnight section must repeat that constraint.
  5. Validate.
    • node --check scripts/implementation-plan-orchestrator-preflight.mjs
    • bash -n scripts/agent-signals.sh
    • Run the configured preflight with --no-write-state.
    • Run git diff --check scoped to setup files.
  6. Close out.
    • List installed/updated files.
    • Show the preflight verdict.
    • State whether any files were skipped to avoid overwriting.
    • State whether the repo was left uncommitted because of unrelated dirty work.

Guardrails

  • Never install a board, dispatcher, polling daemon, or required status file.
  • Do not make a scheduled heartbeat wake an agent before the local preflight says ACTION_REQUIRED.
  • Do not silently loosen branch, PR, credential, cloud, spend, or external-send rules.
  • Keep setup changes separate from product implementation changes.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.