/insights:applyfrom insights
Use when the user has reviewed a day's session-insights note in their kasten vault and wants the kept fixes carried out, for example "apply the insights", "I kept 1 and 3, go" or "apply the insights for 2026-10-08", or when insights:digest finds a note renamed to "## Keep". Opens a pull request per kept fix (never merges), adds daily-note todos and newspaper feedback, and records each line's verdict. Not for finding problems (use insights:digest).
Ships in insights. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Carry out the fixes the user kept in one day's review note. The note is the
only signal: a line kept is a yes, a line deleted is a no, a line starting
no: is a no with a reason. A bullet indented under a line is the user's
note on that fix: an instruction ("done", "use the port instead"), a doubt
("works as intended, no?") or a question. Follow it for that item, answer the
question in ## Done, and treat an indented no: as a no for its parent.
Who approved it. On the cron path (insights:digest step 2) only a note
renamed ## Keep counts as reviewed; a note still under ## Proposed
decided nothing. When the user runs /insights:apply by hand, the run is the
approval: act on the note whether ## Proposed was renamed or not, and say
so in ## Done.
May run headless inside insights:digest. Never stop to ask; when a kept fix
cannot be carried out, say why in ## Done and move on.
/insights:apply [--vault PATH] [--date YYYY-MM-DD] [--periodic FOLDER]
Vault and periodic folder resolve as in ../digest/SKILL.md ## Arguments.
The date is the day the note covers, default yesterday in Europe/Berlin.
Below, ARGS and IN mean what they mean there.
Every line ends in exactly one verdict, which remember.py stores per
problem and the next digest judges by:
| Verdict | When | ref / reason / until |
|---|---|---|
applied | a todo or feedback line was added, or the PR merged | ref: "todo", "feedback" or the PR URL |
pending | a PR was opened or found open; it counts as applied only once it merges | ref: the PR URL |
already-done | the fix is in place already, nothing to change | reason: what you checked |
deferred | the user says not now (other work first, waiting on something) | reason, and until: what ends the wait |
rejected | the line was deleted, or a no: line | reason: the user's words, empty if deleted |
watch | a kept Watch-only line |
A deferral is not a rejection: do not write rejected for "later" or "not
until X". A line you could not carry out (push refused, gh logged out) gets
no verdict, so the next run tries it again.
uv run "${CLAUDE_SKILL_DIR}/../digest/scripts/review.py" ARGS
prints state, handled, kept, no, dropped, unsure, unmatched
and other. End this apply run for the date when state is done
(every line has a verdict), or when it is proposed and the digest called
you; go on when the user ran apply. When the digest called you, ending
here means going back to its next date or its step 3, not ending the
session. handled lists problems an earlier run already settled;
leave them alone, so a partly applied note picks up where it stopped.
unmatched lines carry an id that is not on the page and unsure
problems may be what they meant: record nothing for either and list them
in the report and in ## Done as not matched: <line>.action, reading its
notes first. An edited line means the user changed the fix: follow
their words over the page's. When a note says the fix is done already or
not needed, check it (command -v, a grep of the destination) and record
already-done, or rejected with the note as the reason.
target.repo, read its AGENTS.md or CLAUDE.md
first and follow its conventions (branch names, commit format, version
bumps, formatting, checks). Check gh pr list --head fix/insights-<id>
first; an open PR for this id is linked, not opened twice. Then:
git -C "<repo>" fetch origin
git -C "<repo>" worktree add ~/Code/.worktrees/<repo name>/insights-<id> -b "fix/insights-<id>" "origin/<default branch>"
The worktree sits outside the repo, so the repo's .gitignore needs no
entry. Make the change from the problem's fix in that worktree. Run the repo's own format, lint and test commands: the
mise run tasks where a mise.toml exists (mise tasks lists them),
else what its instructions name. If a check fails because of your change,
fix the change. If it also fails on the untouched default branch, open
the PR anyway and say so in its body. If you cannot tell which within a
few tries, write not done: <the failing check> in ## Done, record no
verdict for the line, and go on. Commit (Conventional Commits, lowercase
subject, no AI attribution of any kind), git push -u origin fix/insights-<id>,
and gh pr create with a body that cites the problem: title, hits,
evidence, its cause in one or two sentences and whether that cause was
verified, one line for each change beyond the fix itself, and the page <periodic>/06 Insights/<date>.html. No
attribution line in the body either. Never merge. Remove the worktree
afterwards (git -C "<repo>" worktree remove ~/Code/.worktrees/<repo name>/insights-<id>).
Never touch the repo's own working tree. Record pending with the PR
URL; the digest turns it into applied when the PR merges.- [ ] <what to do, in one full sentence that names the command, file or host> (insights #<id>) #insights ➕ <today>
under ## TODOs in today's daily note (<periodic>/00 Daily/<today>.md),
creating that section at the end when missing. Today means the Berlin
date of this run.- <the fix in plain words> (insights #<id>)
under ## Open in <periodic>/05 Newspaper/feedback.md; the next edition
applies it.watch./tmp/insights-verdicts-<date>.json,
one {"fingerprint", "id", "verdict", "ref", "reason", "until"} per line
settled this run (see Verdicts), including rejected for every dropped
problem and every no line that names an id. Then
uv run "${CLAUDE_SKILL_DIR}/../digest/scripts/remember.py" ARGS --verdicts /tmp/insights-verdicts-<date>.json.
It skips a verdict the problem already holds, so the first date stays.no reason, each deferral and each other
line goes under ## Open in IN/feedback.md as
- <date> #<id>: <the words> (recorded: <verdict>); the next digest
turns those whose words reach past one problem into rules and, seeing
recorded:, does not record the verdict again. Write a no line with no reason there only if it says
something a rule could use.IN/<date>.md, under the existing ## Done
when there is one, else under a new one:
## Done
- #<id> -> <PR URL (pending) | todo added | feedback line added | already in place: why | deferred: why, until | rejected: why | watching | not done: why | not matched: the line>
One line per line settled or tried this run, plus the answer to any
question the user asked under it. Memory, not this section, decides what
a later run skips.| Step | Claude Code | Codex |
|---|---|---|
| Scripts | uv run "${CLAUDE_SKILL_DIR}/../digest/scripts/…" | uv run <the digest skill's directory>/scripts/… |
| PRs | git and gh through Bash | git and gh in the shell |
gh not logged in or push refused: leave the worktree, write
not done: <the error> in ## Done, record no verdict for that line, and
go on with the rest.worktree add -b fails. Check
gh pr list --head fix/insights-<id> --state all and act on what it shows:
pending with its URL;applied with its URL;rejected with "PR closed unmerged" as the
reason, and open no new one;git worktree add <path> fix/insights-<id>, no -b), finish the change
and its checks, then push and open the PR as above.already-done with what you checked as the reason.rejected for a line review.py could not match.~/.claude/projects/*/memory/.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pgoell/pgoell-claude-tools --plugin insights3 skills in this plugin
/activityUse when the user wants to know what their agents did on a day and what now waits for them, for example "what did my agents do yesterday", "what needs me this morning" or "build the activity page", or when cron runs it. Counts one day per repository (pull requests, issues, failed CI, commits, loop ledger lines, sessions, cost), writes one HTML page in the kasten vault and links it from the daily note. Not for what went wrong in sessions (use insights:digest)./digestUse when the user wants yesterday's (or a given day's) Claude Code sessions and newspaper runs checked for problems, for example "run the session insights" or "what went wrong in my sessions yesterday", or when cron runs it. Groups recurring errors, guard refusals and typed corrections into problems, and proposes one fix each on an HTML page in the kasten vault, linked from the daily note. Not for acting on a reviewed note (use insights:apply).Other plugins' skills for the same job