Use when building or changing a freestyle public page or /admin/freestyle/* editor: what dictionary content a page shows (aliases, decomposition, related tricks, records, media, per-section disclosure) and pedagogical authoring. Visual treatment is not here; see .claude/rules/view-layer.md.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Freestyle Dictionary Surface?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/davidleberknight-freestyle-dictionary-surface)
---
name: freestyle-dictionary-surface
description: "Use when building or changing a freestyle public page or /admin/freestyle/* editor: what dictionary content a page shows (aliases, decomposition, related tricks, records, media, per-section disclosure) and pedagogical authoring. Visual treatment is not here; see .claude/rules/view-layer.md."
paths:
- "src/views/freestyle/**"
- "src/views/admin/freestyle-*"
- "src/views/partials/{dictionary,trick,freestyle,symbolic,family,set,glossary,observed,equivalence,operator,core-tricks}-*"
---
# Skill: freestyle-dictionary-surface
## Visual standard first
Before any template or CSS edit, read `.claude/rules/view-layer.md` and follow the `add-public-page` skill. This skill governs what dictionary content a page shows and how it is explained; it defines no visual treatment, and no freestyle page invents its own classes, colours, tables, cards, or section styles.
## When to use
Invoke this skill when work touches:
- Public-facing surfaces of the freestyle dictionary (`/freestyle/tricks`, `/freestyle/tricks/:slug`, `/freestyle/tricks/:add`, `/freestyle/families/:slug`, `/freestyle/sets` and `/freestyle/sets/:slug`, `/freestyle/modifier/:slug`)
- Trick-detail page rendering, including aliases, decomposition, related tricks, records, media
- Family-page rendering: collective structure, ladder views, family-level media aggregation
- Per-section disclosure controls (collapsible regions)
- Alias rendering decisions across any user-facing surface
- Pedagogical authoring (family intros, trick descriptions)
- Media tier ordering on dictionary surfaces
- Cross-cutting browse views (by ADD, by family, by set, by modifier); grouping, ordering and the row contract belong to `add-browse-view`
If the work is purely ontology / data-layer (canonical naming decisions, alias additions, modifier table edits, dictionary CSV changes), this skill is **adjacent** but not authoritative: fall through to `footbag-freestyle-dictionary` and the doctrine of record in `freestyle/doctrine/`.
If the work is media pipeline (sidecar emit, gallery seeding, source registration), fall through to `footbag-curated-media`.
---
## 1. Purpose and intent
The freestyle dictionary's competitive edge is **structural ontology** (relationships, decomposition, families, sets, aliases, provenance), not trick count. This skill governs how that ontology gets projected onto user-facing surfaces without overwhelming users.
The load-bearing design finding:
> The dictionary's structure already encodes the things UX wants to surface. The work ahead is **projection** (services + templates + curator content), not **modeling** (schema).
When future sessions encounter requests like "let's add a `family_galleries` table" or "we need a `secondary_family` relation," push back. The default answer is: project from existing ontology, do not extend the data model.
---
## 2. Architectural invariants
These are the load-bearing patterns. Future work that quietly relaxes them is a regression.
### Projection over extension
The default answer to "how do we surface X about a trick?" is: query the existing ontology and shape at the service layer. New schema is the rare exception, not the norm.
### Disclosure by interaction, never auth gating
Public dictionary content is public. Login is reserved for member-private surfaces (club rosters, member contact info, personal practice tracking). What a reader sees is controlled by **interaction**, never by role: a trick page has no modes, and each section that can be folded away is an independent collapsible region the reader opens for itself.
### Decomposition is pedagogy at the trick level
A trick-detail page always shows its structural decomposition (`gyro + torque = 5 ADD ✓`); it is content, never removed and never gated. It is not the page's opening: plain-words orientation comes first and the decomposition sits below it. At family-page level, decomposition is compact annotation; at trick level, it's content. The notation-parser diagnostic panel (`partials/trick-structural.hbs`) is a separate thing: it is shaped only for a signed-in admin, and this rule does not cover it.
### Single mapping site
The single-mapping-site pattern: status enums, alias categories, media tier orderings all map to display values at **one** site in the service layer. Templates branch on field presence (`badgeLabel`, `showContact`, `decomposition_formula`), never on enum values for text rendering. New statuses or categories add a branch to the mapping function, not to templates or queries.
### Search resolves all aliases; display surfaces only what helps
An alias carries a curator-set type (the `alias_type` classes in `database/schema.sql`) and, separately, a display flag (`alias_display`). Search resolves any alias to the canonical trick regardless of the flag, so a misspelling or an internal shorthand still finds the move. A trick's page renders one "Also called" list holding exactly the aliases whose display flag is set; a browse row prints only a shown community nickname beside the trick name. The type sets the flag's default (common and structural shown, every other class search-only), and a curator sets the flag against it only with a recorded reason.
### The ontology is the joint model
Galleries, browse views, related-trick lists are projections of `freestyle_tricks + modifier_links + base_trick + trick_family + aliases + tags`. They are not stored as separate entities. New "views" are queries, not tables.
---
## 3. Canonical UX contract patterns
These UX contract patterns govern the live dictionary surfaces.
### Multi-family membership = primary + modifier association
The dictionary stores `trick_family` as a single value. A trick "in two families" is actually:
- **Primary family** (`trick_family` value, navigable badge)
- **Modifier association** (via `freestyle_trick_modifier_links`, informational text only: never a clickable alternative family destination; it may link to the modifier's own page)
Mobius example: primary family `torque` (data) + modifier association `gyro` (via a `freestyle_trick_modifier_links` row). The "gyro family" is narrative, not structural.
Render both honestly. Do not invent a `secondary_family` field; do not show two equal family badges.
### Hero media
Family-page and trick-page hero selection: the `footbag-curated-media` skill, "Which clip leads a page".
### Alias classes
| Category | Render rule | Example |
|---|---|---|
| Common alias | Shown by default | `Whip` → rev_whirl; `Reverse Mirage` → illusion |
| **Structural alias** | Shown by default, alongside the decomposition block | `Gyro Torque` → mobius; `Ducking Paradox Blender` → mind_bender |
| Historical name | Search-only; carries provenance | `Toe Delay` → toe_stall; the barraging forms of furious tricks |
| Technical | Search-only: abbreviation, slug form, spelling or trivial variant | `pdx_whirl`, `BW`, `atomic dlo` |
| Positional | Search-only: a side-qualified notation phrase | `stepping far double down`, `flail (ss)` |
| Suppressed | Search-only: misleading, names a different movement | `toe mobius`, `illusioning osis` |
| Ambiguous | Search-only: its meaning hangs on an open question | `toe`, `neutron torque` |
| Typo / misspelling | Search-only | `blury_whirl`, `m_bius`, `spinning_symposium_wirl` |
A shown class can be held hidden while a question is open: the alias keeps its class and carries a display reason beginning "Pending ruling:"; lifting the hold lets the class decide again.
Direction-reversed tricks are their own canonical entries, so a "Reverse X" string is only ever an alias when the folk name is canonical. `Reverse Whirl` is the canonical name of `rev_whirl`, not an alias of it; `Whip` is that row's displayed community alias. Where the folk name is canonical, the structural reading is the alias: `Reverse Around-the-World` is a displayed structural alias of `orbit`, and `Reverse Mirage` a displayed common alias of `illusion`.
Categorization is in the schema: a curator sets an alias's type in the trick editor, and a separate display flag decides whether it reaches a reader.
#### Structural aliases
Every alias class is defined in the comment above `freestyle_trick_aliases` in `database/schema.sql`. A structural alias that is flagged for display renders in Also called alongside (not duplicated by) the decomposition block: the formula (`gyro(+1) + torque(4) = 5 ✓`) and the name (`Gyro Torque`) are two presentations of one fact for different readers, and search resolves the name to the trick. When a structural alias is also a superseded name (Toe Blur, now Quantum Mirage), it is Structural while the community still uses it and Historical once it has faded; the curator's alias type, set in the trick editor, is the tiebreaker.
### Disclosure model
- A trick page has no modes and no depth toggle. One URL, one rendering.
- Sections that can be folded away are independent collapsible regions: technique notes, the explanation surrounding the structural decomposition, and the ADD derivation panel. The decomposition formula itself is never inside a closed region.
- Each starts closed and each is opened on its own. Opening one never changes another, and nothing about the choice persists across pages.
- Decomposition is always present at trick level; the region controls how much explanation sits around it, not whether the formula exists.
---
## 4. Pedagogical philosophy
### Five-question intro framework
A good intro paragraph (family or trick) answers in 1-3 sentences:
1. **Mechanical signature**: what does the leg/body do?
2. **Distinctiveness**: vs neighboring families or sibling tricks
3. **Why care**: entry point in progression, community recognition
4. **Common confusion**: pre-empt the FAQ ("distinct from a swirl, where...")
5. **Branching / connection**: preview modifiers, derivatives, or related families
Family pages weight Q3 high (selling the family). Trick pages downweight Q3 (interest already established by user navigation).
### Voice norms
- Warm and structural, not encyclopedic
- Names neighbors before naming variants
- Ontology-anchored: every claim verifiable from dictionary data
- Short sentences (1–2 clauses each); this is signage, not prose
- No expert hedges ("it's said to be...", "some consider...": erodes trust)
- No editorialized difficulty ("hard tricks ahead!"): ADD numbers speak
### Public prose: attribution and internal language
Two rules bind every word a visitor reads on a freestyle page: rendered template text, service-shaped copy, and curator prose stored in the database (descriptions and technique notes).
- **No individual named as a source or contributor.** A freestyle page never credits a person for a trick, a notation, a description, a ruling or a reference. The one standing exception is Ben Job, named as the author of the Job notation system on the notation article. A record holder named for the record is not attribution and is outside this rule. Any further exception needs an explicit ruling from the freestyle maintainer before it is written. This is the single home of the rule; the dictionary skill's description policy points here.
- **No internal-process language.** Rendered prose never carries the working vocabulary of curation: the rules expert's name, ruling identifiers, "adjudication", maintainer names, sprint or phase labels, or dated "curator-reviewed" notes. A specific outside source is named as "an outside source", except on the surfaces whose job is attribution: the glossary's sources sections, media, the observational pages, the sets pages and the notation article.
Verify both against the rendered HTML, not only the source data.
### "Show me your work" expander depth
The ontology-details expander is for trust, not information density. It includes:
- Structural decomposition with ADD math validation
- Modifier-table provenance reference
- Alias provenance with category labels
- Family-membership honesty (primary vs modifier association)
- Source attribution / curator trail
It does NOT include:
- Full git-blame of dictionary rows
- Every cross-source disagreement
- Validation results, data-quality flags
- Test data
---
## 5. Anti-patterns
- **Auth-gating dictionary depth.** Login is for member-private data; trick depth stays public.
- **Inventing schema for UX wants.** Three of four UX axes require zero new schema. The fourth degrades gracefully.
- **Hiding decomposition as "advanced only"** at trick level, or removing it. The formula IS pedagogy; it is placed below the plain-words opening, not deleted from the page.
- **Rendering typo aliases publicly.** Search resolves; display omits.
- **Treating modifier associations as parallel families.** Primary family is data; modifier association is narrative+modifier_links.
- **Editorializing difficulty in prose.** ADD numbers speak.
- **Per-relationship database tables** ("family_galleries", "secondary_families", "progression_paths"). Galleries and views are projections of ontology + tags, not new entity types.
- **Inventing tricks, aliases, or relationships not in the dictionary.** Use real data only.
- **Fragmenting depth across multiple URLs.** One trick = one URL; one family = one URL. Disclosure controls layered content, not routing.
- **Coupling status enums to template-rendered text.** Single mapping site at the service layer.
- **Rendering broken links.** "Modifier association" text without a destination is acceptable; a link to a non-existent page is not.
- **Inventing visual treatment for these surfaces.** Type ramp, heading scale, link and disclosure affordances, and callout chrome are the site-wide standard; the rule is `.claude/rules/view-layer.md`, which these surfaces follow without a freestyle variant.
- **Breaking the four-control rule** for name, hashtag, Detail and Media: the `footbag-freestyle-dictionary` skill, "Hashtag and dictionary-filter links".
---
## 6. Source-of-truth references
For design intent, not implementation:
- `docs/FREESTYLE.md`: the freestyle maintainer guide (authority tiers, table-level data model, publication gate, doc map)
- `freestyle/doctrine/` (index: its `README.md`): the doctrine of record for ontology governance and alias policy
- `.claude/skills/footbag-freestyle-dictionary/SKILL.md`: ontology layer rules (dictionary / modifiers / aliases / glossary / sequence / canonical results / media / navigation)
- `.claude/skills/footbag-curated-media/SKILL.md`: media pipeline + tier semantics + source registry
For implementation specifics (current production routes, service signatures, template paths), consult the codebase at the time of work. Those details rot; the principles in this skill do not.