/synapdeck:synapdeck-deck-designfrom Synapdeck
Use 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.
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.
The user is the expert on their subject. Your job is to turn what they know about it into a structure that teaches it: which kinds of things they learn, what facts each one carries, which directions they need to recall them in, and what has to come first. Most users can't program and won't use these terms, so ask in plain language and translate the answers yourself.
| Synapdeck term | What it is | Database analogy |
|---|---|---|
| Deck | A folder of notes; decks nest into subdecks. | Partition |
| Note type | A kind of thing being learned (a word, a drug, a problem). | Table |
| Field | One attribute of a note type: text, enum, boolean, image or audio. | Column |
| Note | One thing being learned: a note type with its field values filled in. | Row |
| Template | One way of asking about a note. It has a Markdown front (the question) and back (the answer). | View |
| Card | One template rendered for one note. Cards are what the user reviews. | View row |
| Derivation method | Computes one field from others (for example romanization or a molecule diagram). | Generated column |
| Template prereq / peer | Ordering between a note type's templates. A prereq is learned first. Peers spoil each other, so they are never shown on the same day. | — |
One note with three templates gives three cards. Add templates for the recall directions the user needs, not for every field.
list_note_types({ expand: "schema" }),
list_derivation_methods() and list_decks(). If an existing note type
already models the subject, propose extending it (update_note_type to
add fields, add_template) rather than a near-duplicate. An empty
survey is normal on a new account: design from scratch, and never tell
the user about types or decks that the survey didn't return. Content
unrelated to the new subject needs no mention. The new deck goes at the
top level unless the user wants it under an existing one.apply_deck_blueprint with dryRun: true. Every
error comes back at once, so fix them all and dry-run again until
validationErrors is empty, and fix any validationWarnings too. You
then propose a design that is known to apply.idempotencyKey, so that a retry can't create
a second copy.preview_card on
it. Read every diagnostics entry.
Fix templates with update_template, and show the user the rendered
cards.create_notes, up to
50 per call). Notes are never part of the blueprint. If the design orders
one note type before another, link the notes afterwards (see
Template prereqs and peers).| Answer | Becomes |
|---|---|
| Subject, course or book structure | Deck hierarchy (decks, nested with parentHandle). Each note lives in one deck, so use the main way the user studies. Cross-cutting categories (a drug used in two body systems) become tags on the notes. |
| A kind of thing to learn | A note type |
| An attribute of it | A field. Use enum for a short closed set of about a dozen or fewer (part of speech, gender, prefix/root/suffix): it can color text and drive rendering criteria. A long or growing list (drug classes) stays text. Use boolean for yes/no. |
| An attribute with several values (brand names, synonyms) | One text field holding the list. Don't put :type-in on it: a typed answer has to match the whole field. |
| A recall direction | A template |
| "Learn X before Y" | A template prereq: Y's template depends on X's |
| Two cards that give each other away (A→B and B→A) | A template peer |
| Information that follows mechanically from another field | A derivation method (below) |
| The language a text field is written in | Set lang to its BCP 47 tag ("ja", "ru", "en") on every text field, the user's own language included. It picks fonts, casing rules and type-in comparison. Leave it off fields that hold math or code. |
| Printable worksheets | writingSpaceHint: small, medium, large or show-work |
Templates are Markdown with {{ Field name }} placeholders. A design
commonly needs only these constructs:
| Want | Write |
|---|---|
| Insert a field | {{ Meaning }} |
| Repeat the question on the back | {{ @front }} |
| Typed answer | On the back: :type-in[{{ Word }}] |
| Optional field or media | :if-nonblank[{{ Audio }}]{field="Audio"} |
| Hint behind a click | :hint[{{ Part of speech }}]{label="Part of speech"} |
| Color text by an enum field | :color-coding[{{ Word }}]{field="Gender" when="always"} |
| Cloze deletion | Template {{ Text | cloze }}; note text The capital is :c1[Paris]. |
Design traps:
{{ @front }} or restate
the question. {{ @front }} replays the front's hint too, so restate the
question when the front has one.:if-nonblank: a bare {{ Audio }} on a note
without audio renders an error.fieldNonblank criterion;
it works on text, image and audio fields.templateRelations refers to templates by name.references/card-syntax.md covers everything
else. To fix a template that renders wrong, use the synapdeck-card-syntax
skill.
Default: recognition before production. Production ("How do you say to eat?") depends on Recognition ("食べる → ?"). Listening depends on Recognition as well. In a problem set, "choose the method" comes before "solve it".
Use a peer, not a prereq, for two directions of equal difficulty that spoil each other (country → capital and capital → country). If one direction is harder, for example because only it has a typed answer, make it depend on the easier one instead. Prereqs must not form a cycle; the dry run rejects one.
Relations between different note types (word parts before the terms
built from them) are note-level relations: add them to notes after creation
with add_prerequisite. They are not part of a blueprint.
references/template-prereq-conventions.md
has more cases.
Bind a field to a platform method from list_derivation_methods when its
value follows mechanically from another field. Examples: romanization from
Cyrillic, Greek or Armenian; Devanagari from romanized Sanskrit; a molecule
diagram from SMILES; audio from a tone sequence:
{ "type": "text", "name": "Romanization",
"derivation": { "method": { "kind": "platform", "internalName": "russian-to-latin" },
"inputs": { "sourceText": "Word" } } }
list_derivation_methods lists each platform method's inputs (bind them
by internalLabel) and options (by internalKey). The plan's
derivedFields shows the user what each binding will run.
Don't write new Python derivation methods as part of designing a deck. If
the user needs a computed field that no platform method provides, make it an
ordinary field they fill in, and tell them a custom method can be added
later. Randomized numbers in practice problems are not derivations: they are
ad hoc scripts on individual notes (the synapdeck-ad-hoc-scripts skill),
which you can add after the deck exists.
assets/example-blueprints/japanese-vocabulary.json (opens in a new tab)assets/example-blueprints/kinematics-problems.json (opens in a new tab)assets/example-blueprints/medical-terminology.json (opens in a new tab)references/blueprint.md (opens in a new tab)references/card-syntax.md (opens in a new tab)references/note-type-design-patterns.md (opens in a new tab)references/template-prereq-conventions.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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-card-syntaxUse 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.Other plugins' skills for the same job