/fluencyloop:backfillfrom FluencyLoop
Reconstructs FluencyLoop store records for work that shipped without going through the loop. Reads a merged diff, records feature/session/decisions/knowledge/architectural concepts, and defaults reconstructed decisions to unverified. Use post-merge or when the user says
Ships in FluencyLoop. 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.
FluencyLoop never blocks a merge. The safety net for work that skipped the loop is
post-merge backfill: it gives ad-hoc work a home retroactively. Backfilled rationale
usually had no real-time teaching in FluencyLoop's format to force honesty, so it is the entry
most at risk of plausible post-hoc fiction — which is why every backfilled entry is stamped
trust: ⚠ unverified by default. It lands immediately and never asks for a confirmation; a
contemporaneous record can strengthen the reconstruction without changing that default.
Backfill is not just bookkeeping. Its job is to recover the durable explanation of the components the work touched — the fluency the missing real-time loop never gave them. Record that explanation as the same feature, session, decision, knowledge, and concept records a live loop would write, while making uncertainty visible in the record rather than turning it into a conversation gate.
Before invoking a deterministic command, use this plugin's bundled launcher:
"${CLAUDE_PLUGIN_ROOT}/bin/fluencyloop" <arguments>. Every fluencyloop … command below
means that exact Bash-tool command; it is never a chat instruction or a globally installed
command.
Do not hand-scaffold .fluencyloop/, .claude/skills/, designs, sessions, state, or helper
scripts. The bundled CLI creates the deterministic files and returns their paths.
Before the first user-visible response, invoke
"${CLAUDE_PLUGIN_ROOT}/bin/fluencyloop" site --ensure --open-once --json. This ensures the
reader for every workflow entry, but opens a browser tab only once while that managed reader is
alive. If it reports running: true and no earlier assistant message in this session starts with
FluencyLoop site:, say FluencyLoop site: <url> (opened in browser). once, using its returned
URL. Do not mention an unavailable site or repeat the announcement.
Write generated user-facing technical prose in ASD-STE100 style: use short, direct sentences, active voice, one main action per sentence, and stable, unambiguous terms. Preserve product names, code identifiers, CLI commands, field names, and exact recorded values. Do not claim formal ASD-STE100 compliance: that requires checking the official controlled dictionary and rules.
Backfill never asks for a trust confirmation. It records uncertainty as trust: unverified; only
a later, volunteered correction may append a superseding trust: verified record.
Identify what to backfill — a merged PR, a commit range, or the current branch's diff vs its base:
git log --oneline <base>..<ref>
git diff <base>..<ref>
If .fluencyloop/state.json exists, read it for the feature slug and base_ref rather than
guessing. Usually it's absent for backfill (the work skipped the loop, so nothing wrote it) —
derive the base from git as above; §3 writes a fresh state record when it reconstructs the feature.
Quantify the drift deterministically with fluencyloop check --json: its unjournaled_commits
counts commits since the last journaled session. A non-zero count with no matching sessions is exactly the skipped-loop work
backfill exists to catch — let it scope how much there is to reconstruct.
Look for a contemporaneous record first. Work that skipped FluencyLoop's loop may still
have a real-time log — a SESSION.md, ADRs, a spec-kit session summary, design notes, a rich PR
description. If one exists, reconstruct from it, cite it as a source, and frame the entries
as backed by a contemporaneous record (stronger than post-hoc memory) — do not write "no
real-time teaching happened" when it did. Only a genuine from-nothing reconstruction gets the
blind-backfill framing. Such a log is also the best raw material for a rich knowledge-transfer
record (step 4).
When automatic import has found a pre-0.3 history (feature records carry imported_from and
docs/fluencyloop/features/ contains multiple historical feature directories), the default scope
is every imported feature, not the current branch or the first plausible release. Enumerate
those feature directories in a stable order, read their imported decisions and knowledge plus the
relevant history, and examine every one before reporting migration complete. Only use a narrower
scope when the developer explicitly names one PR, commit range, or feature.
The importer has already declared each historical feature and its 000-legacy-import session.
Do not call fluencyloop feature or fluencyloop session for them: those commands create or
switch branches. Attribute concrete reconstructed records directly to the existing imported
session instead:
fluencyloop decision --feature "<legacy-slug>" --session 000-legacy-import ...
fluencyloop knowledge --feature "<legacy-slug>" --session 000-legacy-import ...
fluencyloop concept --feature "<legacy-slug>" --session 000-legacy-import ...
Every legacy feature must be assessed, but not every feature merits a new architectural record. Skip unsupported records rather than inventing a concept per feature. At completion, report the number of imported features examined and the decisions, knowledge records, concepts, and relations actually added; never call a one-feature reconstruction a completed repository migration.
Do the evidence work first. Before running fluencyloop feature, fluencyloop session, or any
writer, prepare a concrete, non-empty record plan in the conversation: feature intent, session
intent, and the exact fields for each supported decision, component, condition, concept, or
relationship. Examples below are templates, never commands to execute with placeholders omitted.
Never invoke a bare writer to discover its syntax. Do not run fluencyloop decision,
fluencyloop knowledge, or fluencyloop concept without arguments. If the evidence supports no
record of one type, skip that command entirely and say why; an empty command is neither a check
nor a harmless no-op.
Each command has a complete minimum payload:
--title, --where, --why, --alternative, and --trust unverified;--component "name|role|conditions" or
--gotcha "subject|why";--name, --problem, --how, and at least one --realized-by; or a complete
--relate "from|to|kind".Only after that plan exists, create the feature and session for a new backfill, or use the existing legacy target above, then append the concrete records. This keeps an evidence-free reconstruction from changing branches or leaving an empty session behind.
Read the diff, the history, and the code (plus any ADR/spec/notes the work cites) and infer the decisions that were actually made — the genuine forks, not every line. For each, the field values are:
where — the file/area it lives in.why — your best reconstruction of the rationale from the code and its cited sources.
Do not embellish beyond what they support.alternative — the plausible rejected option, if the code implies one; otherwise say the
alternative is unknown rather than inventing a tidy story.constitution — the principle it serves, by the current constitution's numbering (if a
cited source uses older numbers, map it when the evidence is clear; otherwise omit it rather
than asking for confirmation.trust — always unverified at this stage, with no exceptions.Create the feature + session to hold them:
fluencyloop feature --json "<inferred feature intent>"
fluencyloop session --json --slug "<feature-slug>" "<inferred slice intent>"
Then append each block with fluencyloop decision (the script formats it — you supply only the
values), marking every one backfilled and unverified:
fluencyloop decision --title "chose X over Y" --where "<file/area>" --why "<reconstructed why>" \
--alternative "<rejected — why, or 'unknown'>" [--constitution §N] --trust unverified
These commands write .fluencyloop/state.json (feature, branch, stage: build, the session as
last_session, base_ref) and the same feature/session/decision records as a live loop. If the
work's real base was not the branch you ran this from, correct base_ref to the ref your §1 diff
used. Do not create or edit session journals, design.md, diagrams, or any other Markdown.
Backfill the feature's component inventory and hard-won conditions in one batched store write. Cover the whole relevant pipeline, not just the files that contained a decision; this is the durable explanation a later reader needs:
fluencyloop knowledge \
--component "<name>|<role>|<conditions>" \
--component "<name>|<role>|<conditions>|follow-up" \
--gotcha "<subject>|<why it is this way or what breaks otherwise>"
Decide from the already-shipped code whether it establishes an architectural concept a new joiner would need explained. This is often more valuable in backfill than another decision: the code exists, so the transferable thing is how the product works. Capture only genuine concepts, never a ritual concept per feature:
fluencyloop concept --name "<concept>" --problem "<product-specific problem>" --how "<how it works>" --realized-by "<component|file|area>" [--realized-by "<...>" ...]
fluencyloop concept --relate "<from>|<to>|<kind>"
Both commands append store records; neither creates Markdown. Keep their prose person-neutral: record what the code does and why, never anyone's competence or prior knowledge.
Do not ask for trust confirmation. If the developer later volunteers an independent verification
or correction, append a new fluencyloop decision record with the same title and where
identity, the corrected values, and --trust verified when they can vouch for it firsthand. A
later line supersedes the earlier unverified record on read; never edit or delete the original
JSONL line. Otherwise, leave the existing trust: unverified record honest.
After the decisions, knowledge, and concepts are settled, recommend one bounded distillation
pass. Do not create a turn-by-turn summary while reconstructing: the store already preserves the
evidence and the individual decision rationale. Start with docs/fluencyloop/distillations/product.md
when the recovered history makes the product's problem, shape, or major flow legible. Then add
feature deltas for the most consequential backfilled features and concept explanations only where
the store's problem/how fields are not enough for a reader to hold the model. Do not distill
individual decisions.
When a recovered distillation needs inspectable support, use the same constrained references as a
live feature: [[record-slug]], [[src/path/to/file.ts]], [[ed8821a]], or [[§8]]. Source
paths must exist in the project; commit references must name the exact evidence commit. Do not
invent links for uncertain reconstruction evidence.
Keep the prose person-neutral and product-level. This is the same wrap-up pass used by a live feature, delayed until the reconstructed record is stable rather than omitted because the work was backfilled.
trust: unverified. It was reconstructed after the
fact and must not overstate what was independently checked.trust: verified.fluencyloop decision, fluencyloop knowledge, and
fluencyloop concept so a backfilled feature reads exactly like a live one; never hand-write a
journal, design, or other Markdown artifact.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub baokhang83/fluencyloop --plugin fluencyloop5 skills in this plugin
/diagram-designCreate technical and product diagrams as standalone HTML files with inline SVG. Use for architecture, flow, sequence, state, data, process, and other diagrams; choose the appropriate type and follow its reference. For FluencyLoop product-overview and architectural-record diagrams, use the embedded fast path./featureFluencyLoop Stage 2–3. Declare a feature and build it while staying fluent: creates the feature branch, frames its concepts and relationships, then builds in slices, teaching the why of each real decision at the slice boundary and journaling it. Probes the concepts the work needs up front, adapts explanation depth to the developer's knowledge, and builds/maintains a per-developer knowledge base in ~/.fluencyloop. Use when starting a new unit of work in a repo that has a .fluencyloop/ directory, or when the user says "fluencyloop feature", "start a feature", or describes something they want to build with FluencyLoop./planFluencyLoop planning stage. Plan a large chunk of work before building it: design and document the overall architecture, break it into task items, sequence them into a roadmap with a critical path, and (optionally) open GitHub issues under a milestone. Produces a committed plan.md that the per-feature loop then builds from — one /fluencyloop:feature per task item. Use when the work is too big for a single feature/branch, or when the user says "fluencyloop plan", "plan this", "design the architecture for", "break this down", or "make a roadmap"./reviewFluencyLoop Stage 4. Assemble the reviewer-facing PR view from a feature's sessions — a feature is a branch, so it assembles itself from git. Use when preparing a PR description, reviewing a FluencyLoop feature, or when the user says "fluencyloop review", "assemble the PR view", or "summarise this feature for review".Other plugins' skills for the same job