nexu-io/openmotion / packages/motion-package/examples/product-story
product-story
VerifiedAdapt the Product Story recipe to a supplied product or lesson brief using its visual identity, three-scene rhythm and input limits. Use when the user selects this package or asks to adapt its recipe.
| File | Kind | Size |
|---|---|---|
| DESIGN.md | markdown | 2.3 KB |
| LICENSE | other | 11.1 KB |
| MOTION.md | markdown | 3.8 KB |
| README.md | markdown | 2.7 KB |
| SKILL.md | skill md | 1.5 KB |
| elements/emphasis.svg | other | 283 B |
| inputs.schema.json | config | 529 B |
| materials/requirements.md | markdown | 1.2 KB |
| materials/sequence.json | config | 332 B |
| motion-package.json | config | 2.6 KB |
| presets/lesson.json | config | 198 B |
| presets/product.json | config | 199 B |
| scripts/plan.mjs | script | 1.3 KB |
scripts/plan.mjs
View on GitHubimport { readFile } from 'node:fs/promises';
try {
if (process.argv.length !== 3) throw new Error('Usage: node scripts/plan.mjs <preset.json>');
const input = JSON.parse(await readFile(process.argv[2], 'utf8'));
const schema = JSON.parse(await readFile(new URL('../inputs.schema.json', import.meta.url), 'utf8'));
if (!input || Array.isArray(input) || typeof input !== 'object') throw new Error('Expected an input object');
for (const name of Object.keys(input)) {
if (!Object.hasOwn(schema.properties, name)) throw new Error(`Unknown input: ${name}`);
}
for (const name of schema.required) {
const rule = schema.properties[name];
if (typeof input[name] !== 'string' || !input[name].trim()
|| [...input[name]].length < rule.minLength || [...input[name]].length > rule.maxLength) {
throw new Error(`${name} must contain 1–${rule.maxLength} Unicode code points of nonblank text`);
}
}
const sequence = JSON.parse(await readFile(new URL('../materials/sequence.json', import.meta.url), 'utf8'));
console.log(JSON.stringify({
status: 'plan-only', subject: input.subject, design: 'DESIGN.md', unit: sequence.unit,
scenes: sequence.scenes.map(scene => ({ ...scene, text: input[scene.input] })),
audio: 'silent',
}, null, 2));
} catch (error) {
console.error(error.message);
process.exitCode = 1;
}
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: 194k | 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: 194k | 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: 194k | Updated | Claude CodeCodex | Verified | Install |