Use when the user says "plan my day" or "plan my morning", or wants to fill out morning journaling (Gratitude, Better Day, Daily Affirmation) and personal/work tasks for today's daily note.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Plan Day?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/landonschropp-plan-day)
---
name: plan-day
description: Use when the user says "plan my day" or "plan my morning", or wants to fill out morning journaling (Gratitude, Better Day, Daily Affirmation) and personal/work tasks for today's daily note.
---
# Plan Day
Invoke the `ls-notes:daily-note` skill first, for vault context and file path conventions.
The planning happens in `plan-day`, a terminal app on the user's `PATH` that writes the results into the daily notes itself. It also carries tasks forward from earlier daily notes. Let it, and don't carry tasks into today's note by hand unless `plan-day` has already run today.
## Open Pull Requests
Before opening `plan-day`, fill in the subtasks of today's `Update/merge open pull requests` Work task. Add the task to the Work section when today's note doesn't have it, and delete it when it ends up with no subtasks. Skip this on a weekend, or when the `plan-day` draft (see [Planning](#planning)) exists.
Find the user's pull requests in their work GitHub organization (the domain of their work email, without the TLD):
```bash
gh search prs --author=@me --owner=<organization> --state=open --draft=false --json title,url,repository
gh search prs --author=@me --owner=<organization> --merged --merged-at=">=<today's ISO date>T00:00:00<UTC offset>" --json title,url,repository
```
Use midnight in the user's time zone, since GitHub otherwise compares the date in UTC.
Check each open one, taking the owner, repository and number for the review threads from its URL:
```bash
gh pr view <url> --json author,reviewDecision,statusCheckRollup,reviewRequests,mergeable,mergeStateStatus,latestReviews,headRefName,baseRefName
gh api graphql -F owner=<owner> -F repo=<repository> -F number=<number> -f query='
query($owner: String!, $repo: String!, $number: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $number) {
reviewThreads(first: 100) { nodes { isResolved comments(first: 1) { nodes { author { login } } } } }
}
}
}'
```
Give it every status that applies, comma-separated:
- `💬 Feedback`: Any of these is true:
- `reviewDecision` is `CHANGES_REQUESTED`.
- A reviewer or bot started a review thread that isn't resolved, even if the pull request is approved.
- The pull request isn't approved, and a reviewer or bot left a `COMMENTED` review in `latestReviews`.
- `⏱️ Awaiting Review`: `reviewRequests` isn't empty.
- `☠️ CI Failing`: An entry in `statusCheckRollup` has a `state` or `conclusion` of `FAILURE` or `ERROR`.
- `🚫 Blocked`: `mergeable` is `CONFLICTING`, or `mergeStateStatus` is `BLOCKED` and no other status applies. `BLOCKED` also covers a missing approval or failing check, which the other statuses already name.
- `❓ Pending`: `mergeable` is `UNKNOWN`, or an entry in `statusCheckRollup` has a `status` other than `COMPLETED` or a `state` of `PENDING`.
- `🟢 Ready to Merge`: `reviewDecision` is `APPROVED`, `mergeStateStatus` is `CLEAN`, and no other status applies.
A pull request merged today gets `🚀 Merged` alone and is checked off. A draft gets `📝 Draft` alone and is marked `[<]`.
Write one subtask per pull request. Title it with the repository name, a colon, and the pull request's title with any conventional commit prefix (`feat: `) or ticket ID (`[EX-123] `) removed, keeping its casing. Leave the parent task's text as it is. List a stack from bottom to top: a pull request whose `baseRefName` is another's `headRefName` comes after it.
```markdown
- [/] Update/merge open pull requests
- [ ] [widget-service: Add pagination to the widget list](https://github.com/example-org/widget-service/pull/42) (💬 Feedback, ☠️ CI Failing)
- [ ] [widget-service: Sort the widget list by date](https://github.com/example-org/widget-service/pull/43) (⏱️ Awaiting Review)
- [x] [webapp: Fix the login redirect](https://github.com/example-org/webapp/pull/7) (🚀 Merged)
```
If the task already has pull request subtasks, update them in place: refresh each status, add new pull requests, and remove ones that were closed, or merged before today and not forwarded (see [Earlier Notes](#earlier-notes)). Never add a second line for the same pull request.
Each time you fill in or refresh the subtasks, mark the parent `[x]` when every subtask is `[x]` or `[-]`, `[/]` when only some are, and `[ ]` when none are.
Draft pull requests stay off the list until they're ready, except for an existing subtask. Set it back to `[ ]` once its pull request is ready.
### Earlier Notes
Never leave a pull request subtask open on an earlier note. On the most recent earlier daily note that has an `Update/merge open pull requests` task, check each of its subtasks that isn't `[x]`, `[-]` or `[>]` with `gh pr view <url> --json state,isDraft,mergedAt`, and mark it:
- `[x]`, with `🚀 Merged` alone: It merged on or before that note's day, in the user's time zone. Nothing else changes.
- `[>]`: It's open and not a draft, or it merged after that day. Today's task lists it, as `[x]` with `🚀 Merged` if it merged.
- `[<]`, with `📝 Draft` alone: It's a draft. `plan-day` moves it into today's task.
- `[-]`: It was closed without merging.
Mark the parent `[>]` when a subtask is `[>]` or `[<]`, and `[x]` otherwise.
`plan-day` matches a task across notes by its text, or by a block ID at the end of the line. A forwarded line whose status changed no longer matches today's line, so `plan-day` would carry it into today as a duplicate. End each `[>]` line and its line on today's note with the same block ID: the earlier line's, if it has one, or six new random hex characters.
```markdown
- [>] Update/merge open pull requests
- [>] [widget-service: Sort the widget list by date](https://github.com/example-org/widget-service/pull/43) (⏱️ Awaiting Review) ^3fa91c
```
```markdown
- [ ] Update/merge open pull requests
- [ ] [widget-service: Sort the widget list by date](https://github.com/example-org/widget-service/pull/43) (💬 Feedback) ^3fa91c
```
## Standup
After filling in the pull requests and before opening `plan-day`, draft the user's standup reply. Invoke the `ls-writing:standup` skill. Skip this on a Friday or a weekend, since there's no standup then, or when the `plan-day` draft exists.
## Planning
Invoke the `ls-interactivity:interactive-command` skill with `plan-day > /tmp/plan-day-<date>.md 2> /tmp/plan-day-<date>.log` as the command, where `<date>` is today's ISO date, and `plan-day` as the tab name. With its output redirected, `plan-day` draws on the terminal and prints only a summary to the file.
When the tab closes, read the summary and the log.
**Never edit a daily note while the `plan-day` tab is open.** `plan-day` holds back any planned change that conflicts with an edit made after it read the note, so an edit made mid-session can undo what the user planned. This covers every daily note, not just today's, and every edit, even a one-character typo fix the user asked for. Tell the user each edit is queued, hold it until the tab closes, then apply it along with the comments.
The one exception is a session the user hasn't started. `plan-day` saves a draft to `${XDG_STATE_HOME:-$HOME/.local/state}/plan-day/draft.json` the first time the user turns a page or clicks a tab. While that file doesn't exist, close the tab (follow the `ls-interactivity:interactive-command` skill's rules for closing a tab), do what the user asked, then open `plan-day` again as above. Once the draft exists, queue the edit, even if the user has gone back to the first page: a reopened session resumes from the draft and still holds back the conflicting changes.
## Errors
Before carrying out any comment, resolve every problem the summary or the log reports by following the instructions `plan-day` prints with it.
## Comments
Each comment is an instruction about its task. Carry out every one, editing the notes directly; ask the user only when a comment is ambiguous or needs a decision from them.
## More Tasks
Once every comment is carried out, ask the user whether there are any other tasks they'd like to add to today's daily note, and add them.
Once the user has no more tasks to add, tell the agent in the Orchestrate workspace that today's tasks are queued up in the daily note. Use the `ls-agent:delegate` skill to send it to the workspace whose project is `orchestrate`.
Then use the `ls-agent:close-workspace` skill to close this workspace.