/fluencyloop:planfrom FluencyLoop
Plans large initiatives by designing architecture, breaking work into task items, sequencing a roadmap with critical path, and optionally creating GitHub milestones. Use before starting multi-feature work.
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.
Sits upstream of /fluencyloop:feature. A feature is one branch; a plan is an
initiative that will spawn several features. You will: (1) frame the chunk, (2) analyse
requirements and surface material gaps, (3) design and show the overall architecture, (4) break
it into task items, (5) sequence them into a roadmap with a critical path, (6) offer to open
GitHub tickets under a milestone, (7) hand each task off to /fluencyloop:feature. The plan is a
map you build against, not a spec to ratify —
do not over-invest. Keep the developer the architect.
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.
For a real answer, choice, or confirmation, use AskUserQuestion in Claude Code. Codex has
no equivalent question-form tool, so ask a concise standalone question in chat and stop; do not
create issues, write a settled choice, or advance the workflow until the developer answers.
Understanding checks are self-report, never quizzes. After teaching, ask only whether the developer understands and whether anything needs clarification: "Do you understand this explanation, or should I clarify anything?" Then trust their answer. Never ask them to prove understanding by restating the mechanism, explaining it "in your own words," predicting behavior, selecting an answer, or answering any other topic-specific question. Familiarity probes before teaching and real technical choices remain valid, but they are not learning verification.
Run the bundled fluencyloop check --json and parse its output. If git_repo or fluency is
false, run the bundled fluencyloop init --json without asking the developer. It initialises Git
in the current project directory when needed, then creates FluencyLoop's state. Parse its
docs_dir, and verify that it is the repository's docs/fluencyloop directory before
continuing. Only stop if init itself fails. Do not hand-create .fluencyloop, docs, or
.claude/skills.
Migrate imported history before planning. Parse legacy_migration_pending from the bundled
fluencyloop check --json before reading the constitution, calibration, requirements, or the
initiative intent. When it is true, do not ask the developer anything or scaffold a plan. This
is an automatic, repository-wide migration. Build its architectural record map up front without
opening every historical feature separately:
fluencyloop import --assess-unconfirmed. This records one unconfirmed assessment for each
imported feature; legacy Markdown is not independent verification.fluencyloop import --semantic-map once. Review that compact repository map rather than
reading all imported feature directories one by one.fluencyloop concept --feature <representative-slug> --session 000-legacy-import. Reuse records,
add one to three familiar, filter-useful tags to every record, and do not invent one per
feature. The map lists existing records: append a replacement for each legacy record with
missing tags, keeping its name and complete fields and adding tags. This is append-only. Do not
mark the migration complete while tagged_architectural_records is zero.fluencyloop import --semantic-status --json; once it reports an architectural record, run
fluencyloop import --mark-semantic-complete and then fluencyloop check --json. Continue to
planning only when legacy_migration_pending is false.Read the constitution up front — docs/fluencyloop/constitution.md, and if it's a pointer
(a Source of truth: line naming another file, e.g. .specify/memory/constitution.md), read
that file. The architecture you design in §2 is checked against it. If it's still the empty
stub, this plan is where the constitution is born — see §5.
Load the learner's knowledge base — parse it via fluencyloop calibration show --json (a
dimension → level map, level ∈ {fluent, familiar, learning, new}; per-developer, global,
never committed) — to set the depth you explain architectural choices at. Missing is fine.
Planning is also teaching: the same "teach the why, ask whether it is understood, don't lecture"
posture from /fluencyloop:feature applies to the architecture decisions here. Apply the
self-report-only rule above to every architecture explanation.
Is this actually a plan? If the work fits one branch, skip straight to /fluencyloop:feature —
don't manufacture an initiative. Plans are for chunks that genuinely decompose into several
features.
Take the user's initiative intent and scaffold the plan doc:
fluencyloop plan --json "<intent>"
This creates docs/fluencyloop/plans/<slug>/plan.md from the template on the current branch
(a plan is a committed doc, not a branch). Parse the JSON for slug, plan_dir, plan. Do not
create or update docs/fluencyloop/README.md; it is not a planning artifact.
Nail down goal, in-scope, and non-goals with the user before designing — a plan's value is
mostly in what it excludes. Fill the ## Goal & scope section from that exchange.
Before §2, analyse the initiative intent against all three sources of evidence:
Source of truth: pointer, as read
in §0.docs/fluencyloop/store/, which may capture
established concepts, decisions, requirements, and open questions that the intent does not
repeat.Identify only gaps whose answer would materially change the work. Name the category for each:
Do not ask about anything with an obvious default. This is a focused analysis pass, not a ritual that turns every plan into a questionnaire.
Reuse Question delivery — preserve the pause above; do not invent a second delivery mechanism. Gap questions are real technical choices. Ask all material gaps once, batched in one round, then continue to §2 with the answers. Do not trickle questions through architecture, decomposition, and roadmap work.
If the developer explicitly leaves a gap unanswered, or directs you to proceed without resolving
it, add it to ## Open questions in plan.md with why it matters. Never resolve an unanswered gap silently or convert it into an assumed requirement.
Record the same outcome in the store exactly once per gap. For each answer the developer provides, run:
fluencyloop requirement --gap "<what was unstated or conflicted>" \
--answer "<the developer's decision>" \
--consequence "<what it changes about the work>"
For each explicitly unanswered gap, run:
fluencyloop requirement --open "<the unresolved gap>" \
--matters "<why leaving it open matters>"
When a later planning round resolves an earlier open question, append the answered
requirement for the same gap. Never edit or delete the earlier open_question; readers
supersede it on read.
Draft the big concepts: the components/modules, their boundaries and relationships, and the main flow(s). This is coarser than feature-level implementation detail — the load-bearing structure the features will fill in.
Architecture is a model of concepts and relationships, not a fixed visual form. Capture the
reasoning directly in plan.md under ## Architecture: name the concepts, state how they connect
or depend on one another, and describe the important flow and choice. A small relationship table
is fine when it is clearer than prose.
Do not require class or sequence diagrams, publish a rendered artifact, or direct the developer to
a preview. Diagrams are not banned: F5 may later choose one for the site when it genuinely explains
the subject better than prose or a table. Check the concepts and relationships against the
constitution; if one conflicts with a principle, say so plainly in ## Constitution check. Refine
once with the user's input, then move on.
When the plan genuinely establishes or changes an architectural concept a new joiner would need explained, capture it in the global stream — not as a once-per-plan ritual and not for ordinary component inventory:
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>"
Use a later record with the same name to refine it as the implementation teaches more; relations may connect concepts to other concepts, components, or planned features.
When a planned concept already has implementation evidence, put the exact existing
project-relative path in --realized-by (for example src/mcp/server.ts). Add #Lx-Ly only for
a stable, small evidence range. Do not use absolute paths, URLs, invented source paths, or a
symbol name in place of a path. The reader can then link the record to source without making the
plan guess at a future implementation. Cite Constitution principles by their recorded §N.
A plan is never implementation evidence. Never use plan.md, a roadmap, a design document,
or any other planning Markdown file as --realized-by. If a concept has no existing source path,
explain it in the plan but wait for the feature that implements it to append or replace the concept
record with real source paths. Do not create a placeholder realization merely to make the concept
appear in the reader.
plan.md is planning prose, not a local-reader page. Do not add raw Markdown file links to it.
When later distillation prose needs inspectable support, use [[record-slug]],
[[src/path/to/file.ts]], [[ed8821a]], or [[§8]] only after the target exists.
Decompose the initiative into task items — each a future /fluencyloop:feature. For each,
capture in the ## Task breakdown table: an id (T1, T2, …), a slug-able intent, a rough
size (S/M/L), and its dependencies (by id). Aim for items that are independently
build-and-mergeable. Keep them coarse; a task that's really two features is two rows.
Order the tasks by dependency into ## Roadmap & critical path:
T1 → T3 → T6) so it's scheduled first and watched. Teach
why it's the critical path — that's an architectural insight worth the developer holding.Read docs/fluencyloop/constitution.md. If it contains a Source of truth: pointer, leave
that pointer in place and amend the cited source instead, following its conventions. In particular,
amend SpecKit's .specify/memory/constitution.md rather than forking a second constitution; keep
its version and Sync Impact Report conventions intact. Otherwise amend the existing local
constitution in place — whether it is the empty stub or already has principles.
Ask one short, open, batched preconditions question using Question delivery — preserve the pause above. Prefer this wording:
Do you have any preconditions for Guardrails, Architecture, Test strategy, or Security?
Do not enumerate six questions or require a position on every constitution area. The developer may also state data/state or dependency constraints in the same reply. Use their terms; do not supply or imply a stance.
Do not infer, fill, or soften an answer from the architecture, existing code, or general best
practice. A question with no answer is still useful: retain that area in constitution.md as
_No stance recorded yet._ so the gap stays visible. Do not pad an unanswered area with a
platitude.
For every developer-stated stance, preserve its rule and scope faithfully, then distill it into a
checkable principle: a short title, a non-negotiable rule, and the failure its why prevents.
When the developer gives a rule but no rationale, add one short rationale that follows directly
from that rule. It must explain the obvious practical benefit or failure avoided, not introduce a
new mandate, technology, exception, or trade-off. For example, Use SOLID and Clean Code principles can carry the why Keeps responsibilities focused and dependencies understandable, so changes remain localized as the codebase evolves. Never leave Why: No further rationale was recorded. for a stated rule. Append the principle to the active constitution under ## Principles
using the next matching citation §N, then append the same values to the store:
fluencyloop principle --number "§N" --title "<title>" --rule "<developer-stated rule>" --why "<failure it prevents>"
The Markdown citation and record number must match exactly. Later corrections append another
principle record with the same number; do not rewrite the earlier JSONL line. The constitution
may grow from later decisions, but the model must always ask rather than invent a new stance.
gh setupCheck gh auth status first:
gh is available and authed — offer to turn the task breakdown into GitHub issues under a
milestone (one issue per task item; the milestone is the initiative), confirmed per plan:
"Create these N issues + the '' milestone now?" On yes, create the milestone then
the issues (title = task intent, body = intent + dependencies, --milestone set) and record the
links back into plan.md under ## Tickets. That task-to-issue mapping is the feature's
tracking prefix: when its task starts, pass the mapped issue number to fluencyloop feature --prefix without asking the developer again.
gh is missing or unauthed — this is worth a one-time setup offer, because gh unlocks
real automation. Check ~/.fluencyloop/preferences.md for a settled gh-setup choice:
gh, FluencyLoop files your whole task breakdown as GitHub issues under a milestone for you,
and opens prepopulated PRs at review — instead of you running commands by hand. Frame it so
yes is the easy call, e.g. "Want me to set up gh so I can file these N tasks as issues +
a milestone for you? One-time — I won't ask again." Options: Yes, set it up (recommended,
list first) / Not now. Record the answer to preferences.md as gh-setup: done or
gh-setup: declined, and never ask again.
gh the way that fits their OS. Don't work from a hardcoded list of
package managers (it rots); the canonical, always-current installer for every platform is
https://cli.github.com — point there and pick the obvious command for their environment.
Then gh auth login (uniform everywhere), and create the issues + milestone.gh issue create … commands into ## Tickets and move on.declined — don't re-offer; just save the runnable commands to ## Tickets.The plan is complete either way — no friction.
The plan is the map; each task item is built with /fluencyloop:feature (one branch per
task, from the active development branch — dev for the 0.3 milestone), in roadmap order along
the critical path first. Tell the user that — and that
/fluencyloop:review assembles each feature's PR view when it's done. Do not open feature
branches yourself here; §7 hands off, it doesn't build.
gh; fall back to a runnable script if
gh is unavailable or declined.plan.md is committed — record the work, never
anyone's competence. Per-developer knowledge stays only in ~/.fluencyloop/ (uncommitted).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
/backfillFluencyLoop safety net. Reconstruct store records for work that shipped without going through the loop — reads a merged diff, records the feature, session, decisions, knowledge, and architectural concepts, and defaults reconstructed decisions to unverified. Use post-merge, or when the user says "fluencyloop backfill", "document this PR after the fact", or "we skipped the loop on this one"./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./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