/mora:daily-brief-loopfrom mora
Runs Mora's durable daily brief automation: performs source syncs, writes dated artifact and run log, advances brief watermark. Only activates when user explicitly requests execution.
Ships in mora. 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.
Read when SKILL.md points to them.
Requires the local mora CLI on PATH and shell execution with observable exit codes. The Mora MCP server is optional for read-back and governed memory capture. If the CLI is unavailable, say so up front and STOP; there is no web fallback, and fabricating a brief would be a lie about the user's day.
This is an operator/automation skill, not a read-only briefing skill. It performs configured read-only connector syncs, writes a dated local artifact and log entry, and advances Mora's brief watermark. The pulse-daily scheduler can perform the same advancing effect; the begin gate below safely no-ops when another authorized caller already completed it that day.
This loop NEVER takes an outbound action. It must not email, reply, draft, post, DM, message, create calendar events/tickets, or trigger a notification—even when the brief surfaces something that needs a reply. Configured connectors may make read-only network requests to fetch Gmail, Google Calendar, or GitHub data. The loop must not send vault-derived names, message text, calendar details, or other private context to web, map, recommendation, or unrelated external tools. The selected agent/model may process the rendered brief under its own data policy; this instruction boundary is not a technical sandbox.
The loop's only mutations are Mora-local: the dated brief artifact, watermark, run log, and an optional policy-governed write_memory after explicit user acceptance.
This loop is durable, idempotent, and human-checkpointed: it runs once per logical day, the second run is a no-op, and you advance Mora's state only at explicit gates—never speculatively.
Run exactly:
mora loop begin daily-brief --json
Branch on the result — do nothing else until you have. Both
already-succeeded and effect-already-committed are exit-10 no-op results;
the latter means the watermark transaction completed but later presentation or
terminal bookkeeping did not:
{"skip":"already-succeeded"} → today's brief already ran and succeeded. Do NOT sync, do NOT pulse, do NOT call the MCP brief tool, do NOT advance anything. Print today's existing dated artifact verbatim and STOP. Read it through the stable interface mora brief --json and present it with a one-line note: "Already ran today — this is the saved brief." Then end the turn. Re-running after a skip to "fill gaps" is a contract violation: the dated artifact is the source of truth.{"skip":"effect-already-committed"} → the advancing transaction completed, but the prior process did not finish presentation or loop done. Apply the exact same no-op rule: read and present the saved dated artifact, then STOP. Never issue another --advance."run_id" — note it now; you pass it back to loop done in Step 4 (--run <run_id>) so a late or duplicate close can never clobber a newer run. Proceed to Step 2.effect_started_at record with no commit checkpoint). Report the error verbatim and STOP. An uncertain effect may already have advanced some or all watermarks; inspect read-only status/artifacts if useful, but never issue another same-day --advance.Guardrail: there is exactly ONE entry point. Never skip
loop beginand jump straight topulse/sync/brief— the begin gate is what makes the day idempotent and what owns the lock. If you did not see exit 0 fromloop beginin THIS run, you have no authority to sync or advance.
Refresh the lease once before starting work:
mora loop heartbeat daily-brief --run <run_id>
If heartbeat says the run is superseded, terminal, or no longer owns the lease, STOP. Do not pulse and do not try to reclaim the run in-place.
Then the day's work is one command that does sync → build → advance → persist atomically while actively heartbeating the same durable run:
mora pulse --digest --sync --advance --brief-file --write --loop daily-brief --loop-run <run_id>
What each flag means and why it must be exactly this set:
--sync — refresh the user's enabled sources first so the brief reflects current data. Sync errors are non-fatal by design (honest-but-don't-abort): a failed source surfaces as stale/unavailable inside the brief. Do not abort the loop on a sync warning — a partial honest brief beats no brief. Do surface the warning to the user; do not hide it.--advance — commits the delta watermark. This is the ONLY surface in all of Mora that advances the watermark, and it must run AT MOST ONCE per logical day. Advancing twice double-consumes the delta, so the second run's brief looks empty and the day's real changes are silently lost.--brief-file — persists the dated artifact briefs/<UTC-date>-brief.md (same-day re-write overwrites; one file per day).--write — records the run in the local log.--loop daily-brief --loop-run <run_id> — binds the non-idempotent advance to the run opened in Step 1. Mora heartbeats it while sync/build runs and owner-fences it again immediately before committing the watermark. A stalled process that has already been reaped cannot continue advancing.Guardrail (the single most dangerous failure): in one run you execute at most one command that contains both
mora pulseand--advance. If that command has already executed in this run — even if you are unsure whether it succeeded — do NOT run it again. To check what happened, READ the brief artifact (mora brief --json) or callmora loop done daily-brief --fail "<reason>"; never re-issue the advancing pulse to "retry." A re-issued--advanceis an un-undoable watermark double-advance.
Guardrail: do NOT decompose this into separate
mora sync+mora pulse --advancecalls, and do NOT add a secondpulse --advance"just to be sure." The one combined command is the atomic unit of the day.
Read back via the preview-only tool, not a second advance. After the advancing pulse, when you need to re-read or re-render the brief during this turn (e.g. to present it, to apply a filter, to answer a follow-up), use the read-only brief tool from the Mora MCP server or mora brief. These are preview-only by construction — they NEVER sync and NEVER advance the watermark. Treat the MCP brief tool as a window onto the already-committed state, never as a substitute for the gated advancing pulse and never as a way to "advance again."
Guardrail: the MCP
brieftool /mora briefare read-only previews. They are the right tool for reading back and for follow-up questions. They are the WRONG tool for "running the brief" — the real run is the singlepulse --advancein Step 2, which already happened.
Present the rendered brief to the user. Then, in the dining-concierge style, end with an explicit "What Mora does NOT know" line that names the real gaps, for example:
--sync warnings) and are therefore showing stale/last-good data — name them.Cite only what the brief actually contains. Do not invent items, do not infer sentiment or "priority scores" the brief did not produce, and do not paste private message bodies or phone numbers into the summary beyond what the brief already renders.
Mark the loop done — but only after the brief has actually been presented to the user in Step 3:
mora loop done daily-brief --ok --run <run_id>mora loop done daily-brief --fail "<short reason>" --run <run_id><run_id> is the value from an exit-0 Step 1 loop begin response. Never call loop done after a begin failure or exit-10 skip: no run was acquired, so there is no run ID or close authority. If loop done reports the run was superseded, a newer run has replaced yours — do not retry, just stop. (--run is optional for manual CLI use, but the loop ALWAYS passes it so a stalled run can't close over a fresh one.)
Guardrail: never call
loop done --okbefore the brief is on screen. "Done --ok" asserts the human saw today's brief; calling it early breaks the idempotency contract (tomorrow's begin gate trusts this flag) and would make a future same-day run skip with nothing real to show.
Guardrail: if anything between
loop begin(exit 0) and a presented brief goes wrong and you must stop, close withloop done daily-brief --fail "<reason>"— do not leave the loop open. A loop opened withbeginmust always be closed withdone(--okor--fail) in the same run.
Then offer write_memory only after explicit user acceptance: a task-minimal, one-line memory of the date, headline items, and anything the user asked Mora to retain. Never fall back to mora write when MCP policy refuses. Report the tool result honestly: open returns a saved memory ID; propose returns a pending proposal that is not yet in the vault; readonly refuses the write. Never say "saved" until the response proves it.
Keep these four invariants in working context:
mora loop begin daily-brief --json before any sync, pulse, brief read, or advance.mora pulse … --advance command; never retry it after success or uncertainty.mora brief --json and STOP.run_id.When any command returns an unexpected, skip, uncertain, superseded, or failure result, read the recovery decision table before acting. Never improvise a retry.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/dining-conciergeUse when recommending a restaurant, bar, cafe, happy hour, or other food or drink outing—especially when the request names people the user knows. Grounds live recommendations in task-minimal Mora history before using public web information./memory-captureSave durable information or session handoffs to Mora when the user asks to remember, save, capture, or hand off a fact, decision, insight, task, or session state. Use for governed write-back through Mora's write policy (tentative, propose, open, readonly), never for deletion./mora-recallRetrieve the user's own history, project rules, decisions, and session handoffs before answering questions about their projects, people, meetings, messages, commitments, or past work. Use for requests such as "what did we discuss", "what did I decide", "what do you know about", "catch me up", "what changed", and "where did we leave off".npx claudepluginhub pyranthus-hq/mora --plugin moraOther plugins' skills for the same job