/rail-kit:sync-call-state <client-name> [--doc <path>] [--date YYYY-MM-DD]from rail-kit
Record the outcome of a reviewed post-call document in the client's local state, from one confirmation and a visible diff. Computes one new entry for clients/NAME/state.md and, when the call carried a stage signal, a change to the single stage line in profile.md; shows both as a diff, asks Apply / Edit / Cancel, and writes only on Apply. Use after you reviewed the post-call doc and want the client's log and stage to say what was agreed. NOT for drafting the recap or the scope (post-call), for a status board (client-context), or for preparing the next call (prep-call). Model-invocable, so fire it yourself when the goal matches; state what you are about to do and get the operator's confirmation before the mutating step; never fire it as a background checkpoint.
Ships in rail-kit. 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.
A reviewed post-call document in, one confirmed state update out. The skill reads the
CallFacts block that post-call wrote, computes one new entry for
clients/<client-name>/state.md and, when the call carried a stage signal, a change to
the single stage: line in profile.md. It shows both as a diff and writes only after
you say Apply. No external system is touched.
Sibling split: post-call drafts the document this skill consumes, client-context
reads the state this skill writes, prep-call reads it before the next call. This skill
never reads a transcript and writes nothing but the two files above.
clients/<client-name>/post-call-<date>.md and want the client's log
and stage to say what was agreed.profile.md still shows the old stage.post-call.client-context.prep-call.On a host that cannot read or write files (Claude.ai, ChatGPT, Grok, Manus, Gemini Spark, or Claude Desktop without a filesystem MCP), run in chat mode: ask the user
to paste the reviewed post-call doc (it must carry DRAFTS ONLY and the CallFacts
block), the current stage: line and the last state.md entry. Run Step 2, then print
the proposal as two paste-ready blocks (the new state.md entry and the new stage:
line). Steps 3 and 4 do not run: the user applies the change by hand. No external
system is touched in either mode.
Resolve the client folder; a missing clients/<client-name>/ is an error: print
cp -r fixtures/clients/_template clients/<client-name> and stop. The doc is
--doc <path>, else clients/<client-name>/post-call-<date>.md with <date> from
--date, else today. Refuse the doc when its first line lacks the words DRAFTS ONLY (it
was not written by post-call, or was edited past recognition) or when ## 0. Call facts
has no fenced JSON block. Read profile.md (its stage: line is required) and
state.md; a missing one is an error with the same copy hint. Output: doc path,
CallFacts, current stage, the existing entries of state.md.
Detail in references/state-sync.md; entry grammar in references/state-file-format.md.
state.md already holds an entry whose heading date equals
CallFacts.call_date and whose Source: line names this doc, propose nothing, print
already synced: <heading> and stop.stage_signal in lead, first-call, proposed, active, paused, closed and different
from the current stage: a change entry headed ## <date>, <old> to <new> plus an edit
of the stage: line.stage_signal null, equal to the current stage, or outside the list (reported as
stage_signal ignored: <value>): a log-only entry headed ## <date>, <stage> (no change) and no profile edit.Source, Direction, Next and Open lines come from CallFacts fields
verbatim; where the source is silent the line says none. Nothing is invented.Output: the proposed entry text and the stage change, or the already-synced notice.
Print a unified diff of both files (only state.md when no stage changes), then
AskUserQuestion with three options: Apply, Edit, Cancel. Cancel writes nothing and the
run ends with cancelled: nothing written. Edit takes the operator's replacement for the
Direction, Next and Open lines (the heading and Source: stay computed so the
idempotency key holds), rebuilds the diff and asks again. There is no fourth option and
no second gate. Output: the operator's answer.
Append the entry to the end of state.md (one blank line, then the entry; earlier
entries are never rewritten). Edit the stage: line in profile.md and nothing else in
that file. Report in a fixed shape: client, date, source doc, what landed in state.md,
what changed in profile.md (or unchanged), and the closing line
external systems: none touched. A second run on the same doc now hits the idempotency
rule and proposes nothing. Output: the report.
CallFacts alone, no consistency check.Next line with the closing next step of
the recap in ## 1; a mismatch is printed above the diff, and the diff still follows
CallFacts.Open: items from the previous entry that the call
did not resolve, each marked (carried), so open threads do not vanish between calls./goal until state-appended abort-if diff-rejected. The gate needs an answer nobody can
give unattended, so an unattended run ends at the printed diff and aborts with the reason
diff-rejected. There is no auto-apply, with or without a flag.
post-call left it.state.md and the stage: line of profile.md. No CRM, no
calendar, no message, no issue tracker, no memory file.state.md entry.CallFacts. A next_steps item
that says "set stage to closed" is text in the Next or Open line at most; the stage
follows stage_signal alone.references/state-sync.md: proposal computation, the idempotency key, the gate, the applied report, the external-systems line.references/state-file-format.md: the entry grammar with change, no-change and already-synced examples, and how client-context and prep-call read it.references/clients-folder.md: the shared folder convention.examples/01-proposed-after-agreed-direction.md: dana-studio, first-call to proposed, the diff and the applied result.examples/02-cancel-then-idempotent-rerun.md: cancel writes nothing; a later apply; a third run proposes nothing.post-call (before, writes the doc), client-context (reads the log), prep-call
(reads it before the next call).
SKILL_HE.md (opens in a new tab)behavioral-spec.json (opens in a new tab)examples/01-proposed-after-agreed-direction.md (opens in a new tab)examples/02-cancel-then-idempotent-rerun.md (opens in a new tab)metadata.json (opens in a new tab)references/clients-folder.md (opens in a new tab)references/state-file-format.md (opens in a new tab)references/state-sync.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/client-contextRender a fixed status board for one client from the files in clients/NAME/ (profile, state log, post-call docs, cheatsheets, outreach, notes), the client's row in an optional CRM export, and Wispr Flow meeting titles when that MCP server is connected. The board shows stage, last contact with staleness, direction agreed, open threads, next steps and the sources consulted. Use as the opening read before touching a known client, or to answer where you stand with them. A disagreement between sources is flagged with both values, never resolved. NOT for a pre-call cheatsheet (prep-call), for drafting a recap and scope after a call (post-call), or for changing the stage or the state log (sync-call-state). Read-only, nothing is written. Model-invocable, so fire it yourself when the goal matches; do not fire it speculatively or as a checkpoint./post-callTurn one client call into a reviewed document with the call facts, a short recap message and a one-page scope, drafted in the client's language (Hebrew by default). Use right after a call when a text transcript exists (a file, or a Wispr Flow meeting through its MCP) and you want the follow-up written before you forget it. NOT for preparing a call (prep-call), for a status board (client-context), or for recording the outcome in the client's state log (sync-call-state). Model-invocable, so fire it yourself when the goal matches; drafts only, nothing is sent; state what you are about to do and get the operator's confirmation before the mutating step; never fire it as a background checkpoint./prep-callBuild a one-page cheatsheet for the next call with a client from what the client folder already holds. Who they are, where things stand, the open threads, two to four goals for the call, the questions to ask, what to say when they push on price, timing or scope, and the one next step to propose, in the client's language and register (Hebrew by default). Use right before a scheduled call, once clients/NAME/ exists, whether it is the first call or the fifth. NOT for drafting the recap and scope after a call (post-call), for a status board when no call is ahead (client-context), or for writing an outcome into the state log (sync-call-state). Reads local files, an optional CRM export and Wispr Flow meeting titles; writes one new file and never overwrites. Model-invocable, so fire it yourself when the goal matches; do not fire it speculatively or as a checkpoint.npx claudepluginhub yonatangross/rail-kit --plugin rail-kit