/synapdeck:synapdeck-card-syntaxfrom Synapdeck
Use when writing, fixing, reviewing or explaining Synapdeck template or field markup — {{ Field }} placeholders and filters, cloze deletions and contexts, type-in answers, hints, reveal-dependent content, field and cloze conditionals, color coding, language tags, ruby, math, sequences, variable text, image quizzes and template rendering criteria — and when diagnosing why a card renders wrong or doesn't exist.
Ships in Synapdeck. 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 note type's templates each have a front and a back, written in
Markdown extended with {{ Field }} placeholders and :directive[…]{…}
constructs. Text field values use the same markup, and a placeholder
expands its field recursively, so a field can carry clozes, ruby or math of
its own. Each template renders a note into one card, or one card per key for
clozes, sequences and image quizzes.
The full reference, with every construct, its attributes and its warnings, is references/card-syntax.md. Read it before writing anything beyond the rules below.
{{ @front }} (or restate the question). By
default reviewers see the back without the front, unless the back renders
empty. {{ @front }} replays the front revealed, hints included; restate
the question instead if a front hint shouldn't reappear. A template's
hideQuestionOnRevealOverride: false always keeps the question visible.{{ Name }}. Chain filters with |, never commas.{{ Text | cloze }}, field Paris is the :c1[capital of :c2[France]].
Without | cloze (or :cloze[…]) deletions render as plain text and make
no cards. Keys are c + digit, - or _ (c1, c_es). A key nested
entirely inside another becomes its prereq.:c1[Tokyo]{hint="capital"}. Click-to-reveal
hints anywhere: :hint[text]{label="Mnemonic"}.:type-in[{{ Word }}] goes on the back, around the answer; the input
box appears on the front by itself. One per card. Flags: ignore-case,
ignore-diacritics, ruby="reading". Typed cloze blanks:
{{ Text | cloze | type-in }}.[Error: missing audio file], so write :if-nonblank[{{ Audio }}]{field="Audio"}. Also
:if-blank, and :if-true / :if-false for boolean and enum fields.:after-reveal[…] / :before-reveal[…] belong on the front.:color-coding[{{ Word }}]{field="Part of speech" when="always"} (or
when="after reveal"). The enum's options need colors.[漢|字]^{かん|じ}; show with {{ F | kana }} / {{ F | kanji }}.$…$, $$…$$, \cloze{c1}{2xy}[hint], \fieldvalue{Field}.
Write \$ for every literal dollar, in math and prose alike.fieldNonblank (a text, image or audio field is filled in),
onEnumFieldValue, onBooleanFieldValue, onTags, composite,
always, never.{{ F | plain }} flattens markup, {{ F | strip-cloze }}
shows clozes as text. Platform filters: uppercase, lowercase, nfd,
nfc, strip-diacritics.Only apply_deck_blueprint checks template text, and only for field names.
create_note_type, update_note_type, add_template and update_template
accept an unknown placeholder, a directive naming a missing field, or color
coding on an uncolored enum. Find mistakes by rendering.
get_note_type. Before
add_template, check no template already has that name.preview_card on a real note of that type with templateId (required
for edits.templateFront / edits.templateBack) and edits.fields.
Nothing is written. edits.fields takes text fields only: to check an
empty or null enum, boolean or media path, use a note that has that value,
making one with create_note if needed.diagnostics (one line per warning, with template, side and code)
and the card HTML: a few mistakes are silent, such as missing media,
a comma filter list or a placeholder split across lines. A clean render
has no diagnostics key at all. @deck, @subdeck and @tags always
preview empty.cards list shows per-key cards, but also returns cards whose front
is blank. To confirm a card is not generated, read get_note's
cards[].shouldRender (or create_note's cardIds[].renders).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub synapdeck/skills --plugin synapdeck3 skills in this plugin
/synapdeck-ad-hoc-scriptsUse when writing, debugging, or reviewing the Python ad hoc script attached to a Synapdeck note — the script that runs immediately before every card render to produce extra text fields, above all randomized parameters in math and science questions. Covers what scripts are for, when they run and deliberately don't, how to read the note's fields, the return contract, the preview-then-save authoring loop, and the field-name matching rule that silently returns None./synapdeck-deck-designUse when a Synapdeck user wants to start studying a new subject, restructure an existing deck, or think through how to organize a body of knowledge into flashcards — designing the deck hierarchy, note types, fields, templates, derivation methods and the prerequisite ordering between templates, then creating it with apply_deck_blueprint. Also use when choosing between reusing or extending an existing note type and creating a new one.