Close of day

From rcarmo/piclaw · View interactive version

Close of day is an AI agent skill from the GitHub repository rcarmo/piclaw. Run a daily end-of-day sweep: refresh situation notes, back up state, clean low-value timeline traffic, and run the daily-notes summarisation flow before declaring the day closed.

How to use this skill

Skill file

Close of Day

Run this skill once per day to:

  1. generate a situation report
  2. back up state before cleanup, if needed
  3. clean low-value timeline traffic
  4. update daily notes in the same task

Workflow

This skill runs:

Use the messages tool for cleanup and summarisation where available:

For web:*, the session scope covers all web session trees (root chats plus branches), not just the visible tab.

Usage

bun run /workspace/.pi/skills/close-of-day/close-of-day.ts \
  --days 1 \
  --chat-jid web:default \
  --report /workspace/exports/close-of-day.md \
  --cleanup

Common modes

Flags

Completion criteria

Do not report “day closed” until all of the following are done:

  1. situation report generated
  2. backup run, unless explicitly skipped
  3. cleanup run
  4. /workspace/.pi/skills/situate-daily-notes/SKILL.md followed and the relevant daily notes updated in the same task

If you use --situate-only or --cleanup-only, treat the run as a partial maintenance pass, not as a completed close-of-day.

Behaviour

Output artifacts

Expect these to remain consistent after a full run:

For ad-hoc cleanup groups without the daily-note workflow, use timeline-cleanup directly.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.