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.
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- daily-agendaSkill
- decision-ledgerSkill
- devils-advocateSkill
- intent-checkSkill
- kg-curationSkill
- limitless-analysisSkill
- monday-prepSkill
- morning-brief-daily-archiveSkill
- morning-briefSkill
- ops-dashboardSkill
- pm-captureSkill
- pm-weekly-triageSkill
- pre-1on1-briefSkill
- pre-decision-briefSkill
- reply-draftsSkill
- self-retroSkill
- self-studySkill
- triage-passSkill
- weekly-archiveSkill
- weekly-dispatchSkill
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
- Very specific: line 12
Run date to get the current time.
- Very specific: line 13
Read ~/Edwin/memory/conversation-state.md for current state.
- Very specific: line 14
Read the 2-3 most recent ~/Edwin/memory/sessions/*-summary.md files.
- Very specific: line 15
Read previous night's plan and log (if exists) at ~/Edwin/data/nightwatch/.
- Very specific: line 16
Call pm_list with filter "open" for all open items.
- Very specific: line 17
Call pm_list with filter "overdue" for overdue items.
- Distinctive: line 56
Write to briefing book (briefs, reports, meeting prep, coaching drafts)
- Distinctive: line 57
Update docs, memory files, session summaries
- Very specific: line 72
Write a proposal to ~/Edwin/briefing-book/docs/5.
- Distinctive: line 90
If your last 3 tasks are all one dimension, the next one should be the other.
- Distinctive: line 98
Check the clock. Let the time guide priority:
- Very specific: line 105
Write the plan to: ~/Edwin/data/nightwatch/YYYY-MM-DD-plan.md
- Very specific: line 133
Create the ~/Edwin/data/nightwatch/ directory if it doesn't exist.
≈ “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.
Files
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
- Run
dateto get the current time. - Read
~/Edwin/memory/conversation-state.mdfor current state. - Read the 2-3 most recent
~/Edwin/memory/sessions/*-summary.mdfiles. - Read previous night's plan and log (if exists) at
~/Edwin/data/nightwatch/. - Call
pm_listwith filter "open" for all open items. - Call
pm_listwith 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:
- Create branch:
git checkout -b standby/<name> - Build the capability, test it
- 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
- Switch back to main:
git checkout main - Publish the proposal to Obsidian
- 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"]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.

