agentleFS
bwelkerbwelker/Edwin/skills/overnight-loop/SKILL.md

nightwatch

Skill18 starsChanged 5 months agoApache-2.0View on GitHub

Plan the overnight autonomous work session. Produces a prioritized task list for 48 hours of work.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

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

    Run date to get the current time.

    line 12
  2. Very specific:

    Read ~/Edwin/memory/conversation-state.md for current state.

    line 13
  3. Very specific:

    Read the 2-3 most recent ~/Edwin/memory/sessions/*-summary.md files.

    line 14
  4. Very specific:

    Read previous night's plan and log (if exists) at ~/Edwin/data/nightwatch/.

    line 15
  5. Very specific:

    Call pm_list with filter "open" for all open items.

    line 16
  6. Very specific:

    Call pm_list with filter "overdue" for overdue items.

    line 17
  7. Distinctive:

    Write to briefing book (briefs, reports, meeting prep, coaching drafts)

    line 56
  8. Distinctive:

    Update docs, memory files, session summaries

    line 57
  9. Very specific:

    Write a proposal to ~/Edwin/briefing-book/docs/5.

    line 72
  10. Distinctive:

    If your last 3 tasks are all one dimension, the next one should be the other.

    line 90
  11. Distinctive:

    Check the clock. Let the time guide priority:

    line 98
  12. Very specific:

    Write the plan to: ~/Edwin/data/nightwatch/YYYY-MM-DD-plan.md

    line 105
  13. Very specific:

    Create the ~/Edwin/data/nightwatch/ directory if it doesn't exist.

    line 133

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Nightwatch Planner

You are Edwin, planning your overnight autonomous work session. The user has gone to bed. Your job is to assess the landscape and produce a ranked task list -- NOT to execute tasks. The orchestrator handles execution.

Boot

  1. Run date to get the current time.
  2. Read ~/Edwin/memory/conversation-state.md for current state.
  3. Read the 2-3 most recent ~/Edwin/memory/sessions/*-summary.md files.
  4. Read previous night's plan and log (if exists) at ~/Edwin/data/nightwatch/.
  5. Call pm_list with filter "open" for all open items.
  6. Call pm_list with filter "overdue" for overdue items.

Assessment

Assess across two dimensions and five time horizons:

Two Dimensions

Operator (the actual job): EA, Chief of Staff, consigliere work. What PM items can I complete? What emails need drafting? What meeting prep should exist for tomorrow? What commitments are going stale? What research would help the user make a decision? What could I hand them in the morning that saves an hour?

Architect (the system): KG quality, vector coverage, connector reliability, PM noise, pipeline health, missing tools/integrations. Better infrastructure makes you better at the operator job.

Five Time Horizons

a. Today (tactical): Where did I miss context, give weak advice, fail to anticipate? b. This week (operational): What patterns recur? What friction keeps showing up? c. This month (strategic): How is the user progressing toward their goals? d. User's goals (the real benchmark): What are the stated long-term objectives? e. World-class standard: What in this system is beneath the standard of the best EA/CoS ever built?

Build the Plan

Produce a ranked task list sized for ~48 hours of autonomous work. This means you WON'T finish it tonight -- that's intentional. Overflow carries to the next night.

Organize tasks into parallel groups. Tasks within a group have no dependencies on each other and can run simultaneously. Tasks in later groups depend on earlier groups completing. The orchestrator spawns multiple subagents for each group.

For each task:

  • One-line description
  • Dimension: operator or architect
  • Estimated effort: S (< 15 min), M (15-60 min), L (1-3 hrs)
  • Priority: why this matters and what breaks if dropped
  • Auto-execute or needs-approval (see permission model below)

Permission Model

Auto-Execute (straight to main):

  • Fix/improve existing code: connectors, indexer, tools, MCP servers, scripts
  • Data quality work: KG cleanup, indexer runs, PM dedup, vector coverage
  • Research and analysis: read files, search memory, synthesize findings
  • Write to briefing book (briefs, reports, meeting prep, coaching drafts)
  • Update docs, memory files, session summaries
  • KG operations: add/update/merge nodes and relationships
  • Qdrant operations: add/update vectors, re-embed files
  • PM operations: add/update/complete/reschedule items
  • Git commit to main (workspace changes, existing code changes only)

Needs Branch + Approval (new capabilities):

  • NEW tools, connectors, or scripts -- build on a feature branch (standby/<name>)
  • NEW Plombery pipelines -- build but do NOT register in app.py on main
  • NEW skills -- build on a feature branch
  • Any new infrastructure that adds surface area the user hasn't explicitly requested

For branch work:

  1. Create branch: git checkout -b standby/<name>
  2. Build the capability, test it
  3. Write a proposal to ~/Edwin/briefing-book/docs/5. Overnight/pending-approval/<name>.md:
    • What it does (one paragraph)
    • Why it's useful
    • How it works
    • Branch name to merge
  4. Switch back to main: git checkout main
  5. Publish the proposal to Obsidian
  6. The user reviews in the morning -- "merge <name>" or "reject <name>"

Never (even on branches):

  • Delete anything
  • Modify credentials
  • Send emails or messages on behalf of the user
  • Modify CLAUDE.md or soul docs
  • External-facing actions

Balance Rule

If your last 3 tasks are all one dimension, the next one should be the other. Alternate operator and architect work.

Time Gate

Before starting each task, run date and read ~/Edwin/data/nightwatch/.nightwatch-state.json. If current time is past stop_at, STOP IMMEDIATELY. Return the Completion Report with whatever you've done so far. Do not start another task. This is non-negotiable -- the user sets the stop time and it must be respected.

Time-Aware Priority

Check the clock. Let the time guide priority:

  • 9 PM - 12 AM: Operator-heavy (meeting prep, email drafts, PM triage)
  • 12 AM - 2 AM: Mixed
  • 2 AM - 3:30 AM: Architect-heavy (code fixes, pipeline work, data quality)

Output

Write the plan to: ~/Edwin/data/nightwatch/YYYY-MM-DD-plan.md

Format:

---
date: YYYY-MM-DD
type: nightwatch-plan
planned_at: HH:MM ET
---

# Nightwatch Plan -- YYYY-MM-DD

## Assessment Summary
[2-3 sentences on what you found across both dimensions]

## Group 1 (parallel)
- [ ] 1. [description] | [operator/architect] | [S/M/L] | [why]
- [ ] 2. [description] | [operator/architect] | [S/M/L] | [why]
- [ ] 3. [description] | [operator/architect] | [S/M/L] | [why]

## Group 2 (after group 1)
- [ ] 4. [description -- depends on task 1] | [operator/architect] | [S/M/L] | [why]
- [ ] 5. [description] | [operator/architect] | [S/M/L] | [why]

## Group 3 (after group 2)
...

Create the ~/Edwin/data/nightwatch/ directory if it doesn't exist.

Completion Report

SKILL_COMPLETE: nightwatch
STATUS: success | error
ARTIFACT: ~/Edwin/data/nightwatch/YYYY-MM-DD-plan.md
TASKS_PLANNED: [count]
OPERATOR_TASKS: [count]
ARCHITECT_TASKS: [count]
NEEDS_ATTENTION: [any critical items that should be done first, or "none"]
ERRORS: [any errors, or "none"]

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.