/fluencyloop:diagram-designfrom FluencyLoop
Creates technical and product diagrams as standalone HTML files with inline SVG. Covers architecture, flow, sequence, state, data, and process diagrams with a fast path for FluencyLoop product-overview and architectural-record diagrams.
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.
Read when SKILL.md points to them.
Create one self-contained HTML file with inline SVG and CSS. Use a diagram only when it explains a relationship, flow, or structure better than prose or a table.
Use this path when FluencyLoop asks for either
docs/fluencyloop/diagrams/product-overview.html or a file under
docs/fluencyloop/diagrams/records/. For a product overview, its prose is always
docs/fluencyloop/distillations/product.md; its companion is always
docs/fluencyloop/diagrams/product-overview.html. Never write docs/fluencyloop/product.md.
It is a focused companion inside FluencyLoop's local site, not a branded design-system deliverable.
FluencyLoop owns the surrounding site design, but the diagram must still describe the product
faithfully. Use a self-contained HTML document with inline SVG and CSS: no scripts, remote URLs,
remote fonts, iframes, or embedded executable content. Support the reader's themes with local
light tokens and a :root[data-fluencyloop-theme="dark"] token override.
Choose the rendering path by topology, not by the convenience of the renderer:
Use the native renderer only when one of its layouts faithfully captures every material node
and relationship: linear for a 2–6 step path, hub for a shared service/boundary with 2–7
direct participants, merge for inputs or short chains that end at one result, or layered
for one-to-one adjacent-layer mappings. It supports 2–8 nodes and at most 10 edges. A graph
with parallel flows that merge and then continue to another boundary does not fit these
layouts; never recast the architecture merely to make the command pass.
For a fitting native graph, run exactly one fluencyloop diagram command. Give each node its
short id, label, and detail as separate fields, then give the directed edges. For example:
fluencyloop diagram --output docs/fluencyloop/diagrams/product-overview.html --layout hub \
--title "Dog selection" --hub selection \
--node list --label "Dog list" --detail "Chooses a dog" \
--node selection --label "Selection service" --detail "Owns selected dog" \
--node detail --label "Dog detail" --detail "Reads selected dog" \
--edge list selection --edge selection detail
Add --edge-label <short relationship> directly after an edge in a merge diagram. Keep node
labels at 20 characters or fewer, details at 32 or fewer, and relationship labels at 24 or
fewer. The renderer owns canvas height, card positions, routes, attachment points, arrows,
relationship labels, dark theme, and no-scroll geometry. Never edit its generated HTML.
For any graph that does not fit, use the general workflow: read
the full guide, then read exactly one relevant type reference
(type-architecture.md for component topology or type-data-flow.md for role-scoped flows).
Apply its hierarchy, connector, and pre-output rules. For this embedded fallback, retain the
FluencyLoop contract above instead of the full guide's remote-font, first-time style gate, or
page-chrome examples. The generated artifact must be a static, local, theme-aware HTML/SVG
document at the fixed FluencyLoop path.
Do not omit a diagram solely because the native renderer rejects a valid graph. Omit it only
when prose or a table communicates the relationship better. Confirm the generated file is
nonempty, contains no active or remote content, and can be opened through
fluencyloop site --ensure --open-once --json when available. Node remains optional.
An embedded diagram that the reader rejects is not delivered. The full guide's Google-font
<link> example and any remote-font, icon, image, stylesheet, or script snippet are forbidden in
this path. Use only inline SVG and CSS with a system/local font stack; an SVG fragment reference
such as url(#arrow) is fine, but an external URL is not.
Before writing diagram metadata or reporting completion, run a static scan of the finished HTML.
It must reject <link>, <script>, <iframe>, <object>, and <embed> tags; event-handler
attributes; remote or protocol-relative src, href, or CSS url(...); and CSS @import.
Then open the diagram through its local reader route and confirm it renders with no Diagram unavailable notice. If either check fails, remove the external or executable content and repeat
both checks after every revision. Do not record or hand off a diagram merely because its file
exists.
The local reader already supplies the figure frame and caption. The embedded document contains only
the diagram: no HTML page title, eyebrow, header, footer, outer .frame wrapper, or body padding.
It must include a visible, concise title as an SVG <text> element near the top. An HTML
<title> is metadata, not a visible title. Reserve a dedicated top band of at least 40 SVG units
for it, then measure the title's rendered bounding box. The first zone, connector, or node must
start at least 32 CSS pixels below the title's rendered bottom in the reader iframe. Do not rely on
the nominal band alone and do not let a zone, connector, or node occupy that gap. Set html, body { margin: 0; padding: 0; overflow: hidden; } and render the SVG with display: block; width: 100%; max-width: 100%; height: auto; min-width: 0. Never add overflow: auto,
overflow-x: auto, or a positive SVG min-width to an embedded diagram.
Before handoff, inspect the iframe at the reader's actual dimensions. Its document must satisfy
scrollWidth <= clientWidth and scrollHeight <= clientHeight; there must be no horizontal or
vertical scrollbar. Calculate the SVG's rendered height from its viewBox and available iframe
width, and keep it within the reader's fixed 33rem height. If the composition does not fit, reduce
its visual density, choose a wider/shorter layout, or split the explanation—never add a scroller.
Before delivering an embedded diagram, validate the rendered SVG in the local reader at its actual iframe width. This applies to native-renderer candidates and fallback HTML alike:
tspan line with the chosen font and size (for
example, with SVG getBBox() in a browser); character count is not a fit check. Its measured
bounds must remain inside the node's inner content rectangle with at least 16 SVG units of
horizontal and 12 SVG units of vertical clearance. Also confirm at the reader's actual scale
that the glyph bounds have at least 8 CSS pixels of side clearance. Widen or heighten the node,
then use deliberate line breaks; never compress text with textLength, let it escape, or clip.For any other target, read the full diagram guide before generating.
It contains the style-guide gate, type-selection table, visual system, and output checklist. Then
read only the one matching references/type-*.md file; do not scan the template gallery.
LICENSE (opens in a new tab)THIRD_PARTY_LICENSES.md (opens in a new tab)assets/example-architecture-dark.html (opens in a new tab)assets/example-architecture-full.html (opens in a new tab)assets/example-architecture.html (opens in a new tab)assets/example-bar-dark.html (opens in a new tab)assets/example-bar-full.html (opens in a new tab)assets/example-bar.html (opens in a new tab)assets/example-data-flow-dark.html (opens in a new tab)assets/example-data-flow-full.html (opens in a new tab)assets/example-data-flow.html (opens in a new tab)assets/example-datalake-dark.html (opens in a new tab)assets/example-datalake-full.html (opens in a new tab)assets/example-datalake.html (opens in a new tab)assets/example-dp-integration-dark.html (opens in a new tab)assets/example-dp-integration-full.html (opens in a new tab)assets/example-dp-integration.html (opens in a new tab)assets/example-dp-security-matrix-dark.html (opens in a new tab)assets/example-dp-security-matrix-full.html (opens in a new tab)assets/example-dp-security-matrix.html (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
5 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"./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".npx claudepluginhub baokhang83/fluencyloop --plugin fluencyloopOther plugins' skills for the same job