lookbkdev/lookbk-skills / skills/story-rail-kit
story-rail-kit
VerifiedBuild a horizontal rail of rich cards for a website from one rail.json done properly instead of as a janky carousel. Native scroll-snap, Previous and Next buttons that move by exactly one card whatever its width, and a scale under the rail drawn from the cards themselves with a bracket framing what is on screen, so a visitor always knows where they are and how much is left. Five card kinds in a rhythm the build checks (wide, tall, quote, number with its source, and a view-all end card), loops that play only on screen, keyboard support, a mouse drag that never opens a card by accident, and touch that never traps vertical scroll. No auto-advance unless you turn it on. A self-contained page plus a paste-in embed, a check at four widths including keyboard, drag and vertical scrolling, and a frame-by-frame recorder. Use for a home page band of case studies, recipes, articles, collections or products that leads to a "view all" page.
| File | Kind | Size |
|---|---|---|
| NOTICE.md | markdown | 1.5 KB |
| SKILL.md | skill md | 13.7 KB |
| TESTED.json | config | 405 B |
| examples/kestle/rail.json | config | 2.7 KB |
| examples/larder/rail.json | config | 2.7 KB |
| kit/drawn.mjs | script | 22.2 KB |
| kit/fonts/dm-mono-500.woff2 | binary | 14.6 KB |
| kit/fonts/dm-mono-OFL.txt | markdown | 4.4 KB |
| kit/fonts/fraunces-OFL.txt | markdown | 4.4 KB |
| kit/fonts/fraunces-italic.woff2 | binary | 146.2 KB |
| kit/fonts/fraunces.woff2 | binary | 118.2 KB |
| kit/fonts/geist-OFL.txt | markdown | 4.4 KB |
| kit/fonts/geist.woff2 | binary | 28.7 KB |
| kit/fonts/plex-mono-500.woff2 | binary | 14.5 KB |
| kit/fonts/plex-mono-OFL.txt | markdown | 5.2 KB |
| kit/rail.css | other | 11.3 KB |
| kit/runtime.js | script | 16.8 KB |
| scripts/build.mjs | script | 138 B |
| scripts/check.mjs | script | 138 B |
| scripts/chrome.mjs | script | 3.6 KB |
| scripts/kit/build.mjs | script | 12.4 KB |
| scripts/kit/cdp.mjs | script | 4.9 KB |
| scripts/kit/check.mjs | script | 21.7 KB |
| scripts/kit/record.mjs | script | 6.9 KB |
| scripts/kit/schema.mjs | script | 12.6 KB |
| scripts/kit/serve.mjs | script | 2.5 KB |
| scripts/record.mjs | script | 140 B |
| scripts/serve.mjs | script | 138 B |
examples/larder/rail.json
View on GitHub{
"site": "https://lanternlarder.example",
"page": { "brand": "Lantern Larder", "nav": ["Recipes", "Pantry", "Shop", "Journal"] },
"theme": {
"mode": "dark",
"bg": "#15110d", "surface": "#201a14", "ink": "#f3eadc", "mute": "#b6a690", "rule": "#3a3027",
"accent": "#eaa441", "onAccent": "#1a1108",
"chart": ["#b6a690", "#eaa441", "#d9482c"],
"display": "fraunces", "mono": "dm-mono", "radius": 6
},
"head": {
"eyebrow": "This week’s cooking",
"title": "Fire first, _then_ the recipe.",
"dek": "{Count} recipes from the test kitchen this week, and the one move each depends on."
},
"link": "Cook this",
"cards": [
{ "kind": "wide", "name": "Charred lime broth", "meta": "25 min · Serves 4",
"claim": "The depth comes from a lime burnt black in a dry pan, not from stock.",
"href": "/recipes/charred-lime-broth",
"media": { "drawn": "broth", "alt": "A bowl of amber broth from above, oil drifting on it, with two charred lime halves beside it." } },
{ "kind": "tall", "name": "Blood orange, fennel", "meta": "10 min · Raw",
"claim": "Cut the orange across, never into wedges, and the salt lands on every segment.",
"href": "/recipes/blood-orange-fennel",
"media": { "drawn": "orange", "alt": "A blood orange cut across, deep red segments and pale pith, with fennel fronds." } },
{ "kind": "number", "figure": "38", "unit": "min",
"label": "median time from cold pan to table across our weeknight recipes.",
"source": "64 recipes, timed in the test kitchen, 2026",
"split": [["Prep", 12], ["Cook", 22], ["Rest", 4]],
"href": "/journal/how-we-time-recipes", "link": "See the method" },
{ "kind": "quote",
"text": "Burn the lime. Properly black. That is the whole trick.",
"by": "Marisol Teague", "role": "Head cook", "href": "/journal/burn-the-lime", "link": "Read the story" },
{ "kind": "wide", "name": "Black beans, slow", "meta": "3 h · Mostly waiting",
"claim": "Salt the water at the start; the skins stay whole and the middles go creamy.",
"href": "/recipes/black-beans-slow",
"media": { "drawn": "beans", "alt": "Black beans in a red enamelled pot from above, with soured cream, coriander and a wooden spoon." } },
{ "kind": "tall", "name": "Chilli oil, two ways", "meta": "40 min · Keeps 3 months",
"claim": "Pour the oil at 120 °C and the flakes toast without turning bitter.",
"href": "/recipes/chilli-oil",
"media": { "drawn": "jar", "alt": "A glass jar of red chilli oil with flakes settled at the bottom and a plain paper label." } }
],
"end": { "title": "All 64 recipes", "note": "Sorted by time, then by pan", "href": "/recipes" },
"behaviour": { "autoplay": false }
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |