[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BY0SFWJFZBMY28XXW5P8ZM":3,"skill-same:01M6BY0SFWJFZBMY28XXW5P8ZM":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":12,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6BY0SFWJFZBMY28XXW5P8ZM","motion-curves",null,"Write NodeTool timeline animation curves by hand or bake a JavaScript body into curves once. Use for overshoot, bounce, anticipation, arcs, path draw-on, style-property animation, or motion a preset cannot express.","nodetool-ai\u002Fnodetool","nodetool-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F164873569?v=4","01M6BXPFDW36K9K1MR8ZH63HG2","nodetool.ai","01M6BXPFJ893XM219GQN60B0WK",635,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fpackages\u002Fsystem-skills\u002Fmotion-curves\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"curves","motion curves","motion","draw","body","draw-on","for","path","hand","style","express","javascript","use","write","nodetool","Animation","timeline","preset","2026-11-10 10:12:30",false,"---\nname: motion-curves\ndescription: Write NodeTool timeline animation curves by hand or bake a JavaScript body into curves once. Use for overshoot, bounce, anticipation, arcs, path draw-on, style-property animation, or motion a preset cannot express.\n---\n\n# Motion Curves → animation nobody had a preset for\n\nAn `animate_clip` input with `{\"preset\":\"custom\"}` carries exactly one of\n`curves` (keyframes you write) or `code` (a JS body baked into curves once,\nhost-side). Add `mask` when a curve drives `wipeProgress`. A stored document\nanimation can instead carry `styleTracks` or `textAnimator` without numeric\ncustom curves.\n\n`timeline-edit-ops` carries the op contract and the preset catalog this file is\nthe escape hatch from. `motion-principles` gives the duration and the shape a\ncurve should hit before you write its keyframes.\n\nFor numeric custom curves, call `edit_timeline` with an `animate_clip` op or\nthe in-product `ui_timeline_animate_clip` tool. Both accept the flat `curves`\nor `code` input shown below. For stored `styleTracks`, `textAnimator`, or\n`beat`, read `get_timeline`, edit the full clip animation in its document,\nthen call `set_timeline_document` with every existing document field. The\n`animate_clip` input does not author those stored fields.\n\n## When to write one\n\nWrite curves as soon as a preset is close but not right. The catalog is eight\nentrance shapes and a handful of beats — where motion starts, not where it\nstops — and a piece whose every title arrives with `pop` reads like a template.\nA curve costs one field and a few numbers, and the recipes below are the shapes\nworth reaching for: an entrance that overshoots twice, a hold in the middle of a\nmove, two channels on different schedules, a decay, an arc, a wiggle, a path\ndraw-on.\n\nTwo shapes need no curve, and writing one anyway only makes the document harder\nto read: a single overshoot and a physical settle are already `easing` strings.\n`cubic-bezier(0.16,1,0.3,1)` and `spring(180,12,1)` on an ordinary preset do\nboth. Everything past that is this file.\n\n## Curves by hand\n\n```json\n{\"op\": \"animate_clip\", \"target\": \"Title\", \"animations\": [\n  {\"role\": \"in\", \"preset\": \"custom\", \"durationMs\": 600,\n   \"curves\": [\n     {\"property\": \"offsetY\", \"keyframes\": [\n       {\"t\": 0, \"value\": 80}, {\"t\": 0.7, \"value\": -12, \"easing\": \"easeOut\"},\n       {\"t\": 1, \"value\": 0, \"easing\": \"easeInOut\"}]},\n     {\"property\": \"opacity\", \"keyframes\": [\n       {\"t\": 0, \"value\": 0}, {\"t\": 0.4, \"value\": 1}]}]}]}\n```\n\n`t` runs 0..1 over the animation's **window**, not the clip. `easing` on a\nkeyframe eases the segment **ending** there. Keyframes are sorted, `t` is clamped\nto 0..1, and a curve that stops short of either end is extended by holding its\nend value — so sampling 0.05..0.95 does what it looks like.\n\nLimits: 16 curves per animation, one per property, 4096 keyframes each.\n\n`durationMs` defaults to the clip's own duration, so curves span the whole clip\nunless you say otherwise.\n\n## The channels, and how they combine\n\nSeveral animations can drive one channel. How they fold decides whether the\nsecond adds to the first or throws it away.\n\n| Fold | Channels | Identity | Result |\n|---|---|---|---|\n| add | `offsetX`, `offsetY`, `rotation` (radians), `rotationX`, `rotationY` (deg), `blur` (px), `brightness` (−1..1), `hue` (deg), `temperature`, `tint`, `cameraAzimuth`, `cameraElevation`, `cameraFov` (deg, 3D clips only) | 0 | Values sum |\n| multiply | `scale`, `scaleX`, `scaleY`, `opacity` (0..1), `saturation` (0..4), `contrast` (0..4), `cameraZoom` (3D clips only) | 1 | Values multiply |\n| min | `wipeProgress` (0..1) | 1 | The tightest wipe wins |\n| replace | `positionX`, `positionY` (canvas px), `anchorX`, `anchorY` (0..1), `trimStart`, `trimEnd` (0..1) | none | The last animation in document order wins; the other is discarded |\n\nThe replace row is the trap. Two animations driving `positionX` over the same\ninstants means one does nothing, reported as `replace_curves_overlap`. Move a\nclip with `offsetX` when it should compose with other motion, and with\n`positionX` only for an absolute placement nothing else touches.\n\nLand the last keyframe on the identity value unless you mean the clip to stay\nwhere the curve stopped — and remember the role decides whether it stays: an\n`in` window holds its `t: 0` values before it and contributes nothing after, an\n`out` window holds its `t: 1` values after it, `emphasis` holds neither, and\n`loop` repeats its cycle, so a loop curve must end on the value it started on.\n\n`list_animation_presets` reports this table from the engine. Read it there rather\nthan from memory when a channel's range matters.\n\n## Style curves in a document\n\nUse `styleTracks` on a stored animation when the target is a visual property\nrather than a numeric motion channel. The target names a clip style such as\n`text.color`, `shape.cornerRadius`, `mask.featherPx`, or\n`clip.borderRadius`; an effect target is\n`effect.\u003Ceffect-id>.\u003Cnumeric-field>` or a supported effect color such as\n`effect.bg-field.colorB`. A target needs the matching style,\nmask, or effect on the clip. Color values interpolate through the supported\nCSS color parser. `shape.d` and `mask.d` paths need matching commands and point\ncounts. Glyph targets need a text stagger. `validate_timeline` reports an\ninvalid target, incompatible path, or unsupported color.\n\nThis is one complete stored animation object to merge into an existing clip's\n`animations` array before the full-document write:\n\n```json\n{\"id\":\"round-in\",\"role\":\"in\",\"preset\":\"fade\",\"durationMs\":600,\"styleTracks\":[{\"target\":\"clip.borderRadius\",\"keyframes\":[{\"t\":0,\"value\":0},{\"t\":1,\"value\":30,\"easing\":\"easeOutExpo\"}]}]}\n```\n\n`styleTracks` can accompany a preset, so a title can fade while its color\nchanges. The `id` is required in the stored document; `animate_clip` creates\none for its own inputs. Use `timeline-edit-ops` § Document motion fields for\nlinks, text animators, beat binding, and the document write boundary.\n\n## The code body\n\nA JavaScript body run **once**, at author time, in the QuickJS sandbox. It\nreturns keyframes; the keyframes are stored on the clip; every renderer samples\nthose. Nothing evaluates per frame, which is why a body cannot react to playback\nand why the same animation looks identical in the preview, the export and the\nheadless compositor.\n\nThe bake is hermetic: no toolbelt, no `nodetool.*`, no network, no secrets. Just\narithmetic, a 10-second ceiling, and `inputs`:\n\n| `inputs` field | What it is |\n|---|---|\n| `role` | `in`, `out`, `emphasis` or `loop` |\n| `durationMs` | The animation's own window |\n| `clipDurationMs` | The clip it sits on |\n| `canvasWidth`, `canvasHeight` | Sequence pixels — turn a normalized distance into px here |\n| `params` | The animation's `params`, untouched |\n| `staggerCount` | Units a text clip splits into, or 0 |\n| `sampleCount` | Suggested density for a continuous function |\n\nReturn `{curves}` — the same shape as the JSON above — or `{samples}`, one bag\nper point in time:\n\n```js\nconst n = inputs.sampleCount;\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  samples.push({ t, offsetY: 80 * (1 - t), opacity: t });\n}\nreturn { samples };\n```\n\nReturning both is an error, as is returning neither. A property present on some\nsamples and absent from others is an error rather than a hole — interpolating\nacross the gap would invent motion nobody wrote. A sample needs a finite numeric\n`t`; `easing` on a sample is optional and applies to the segment ending there.\nAt most 4096 samples.\n\nBecause the bake runs once, a body using `Math.random` is frozen at the value it\ndrew: the result is stable forever after, but re-baking gives different motion.\nSeed your own generator when the same body has to produce the same wiggle twice.\n\n## Recipes\n\n**Overshoot and settle.** Two overshoots, the second smaller — what a single\n`easeOutBack` cannot express.\n\n```js\nconst p = [[0, 0.6], [0.45, 1.09], [0.68, 0.97], [0.85, 1.02], [1, 1]];\nreturn { curves: [{ property: \"scale\",\n  keyframes: p.map(([t, value]) => ({ t, value, easing: \"easeInOut\" })) }] };\n```\n\n**Decaying bounce.** Hops that die out and land exactly at rest.\n\n```js\nconst n = inputs.sampleCount, h = 0.06 * inputs.canvasHeight, hops = 3;\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  samples.push({ t, offsetY: -h * Math.abs(Math.sin(Math.PI * hops * t)) * (1 - t) });\n}\nreturn { samples };\n```\n\n**Anticipation.** A counter-move before the action, 60–120ms of the window.\n\n```js\nreturn { curves: [{ property: \"offsetY\", keyframes: [\n  { t: 0, value: 0 }, { t: 0.18, value: 10, easing: \"easeInOut\" },\n  { t: 0.8, value: -4, easing: \"easeOut\" }, { t: 1, value: 0 }] }] };\n```\n\n**Shaped wiggle.** For a steady seeded wiggle, use a stored\n`animationLinks` entry with `kind: \"wiggle\"` as described in\n`timeline-edit-ops` § Document motion fields. Bake a curve when its amplitude must fade in or out. This\nseeded generator reproduces the same shape on a re-bake.\n\n```js\nconst n = inputs.sampleCount;\nconst amp = Number(inputs.params.amplitude ?? 6);\nlet seed = Number(inputs.params.seed ?? 1);\nconst rand = () => (seed = (seed * 1103515245 + 12345) % 2147483648) \u002F 2147483648 - 0.5;\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  const fade = Math.min(1, 4 * t, 4 * (1 - t));   \u002F\u002F rest at both ends\n  samples.push({ t, offsetX: rand() * amp * fade, offsetY: rand() * amp * fade });\n}\nreturn { samples };\n```\n\n**Inertia.** A trailing part that lags the body and catches up — follow-through\nwithout a second clip.\n\n```js\nconst n = inputs.sampleCount, lag = 0.12;\nconst ease = (t) => 1 - Math.pow(1 - t, 3);\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  const behind = ease(Math.max(0, t - lag) \u002F (1 - lag));\n  samples.push({ t, offsetX: (1 - behind) * -0.1 * inputs.canvasWidth });\n}\nreturn { samples };\n```\n\n**Arc.** Straight-line travel looks mechanical. Drive one axis linearly and the\nother as a shallow parabola over the same window; both fold as `add`.\n\n```js\nconst n = inputs.sampleCount;\nconst dx = 0.25 * inputs.canvasWidth, rise = 0.06 * inputs.canvasHeight;\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  samples.push({ t, offsetX: -dx * (1 - t), offsetY: -rise * 4 * t * (1 - t) });\n}\nreturn { samples };\n```\n\n**Pendulum.** A decaying rotation, in radians.\n\n```js\nconst n = inputs.sampleCount, a = 0.12, cycles = 2.5;\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  samples.push({ t, rotation: a * Math.cos(2 * Math.PI * cycles * t) * (1 - t) });\n}\nreturn { samples };\n```\n\n**A loop with no visible join.** Any `loop` curve must return to its start, so\nbuild it from a whole number of cycles of a periodic function.\n\n```js\nconst n = inputs.sampleCount, amp = 0.02 * inputs.canvasHeight;\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  samples.push({ t, offsetY: -amp * Math.sin(2 * Math.PI * t) });\n}\nreturn { samples };\n```\n\n**Path draw-on.** `trimEnd` 0 to 1 on a `path` shape clip. Both trim channels\nfold as `replace`, so one animation drives each and their windows must not\noverlap.\n\n```js\nreturn { curves: [{ property: \"trimEnd\",\n  keyframes: [{ t: 0, value: 0 }, { t: 1, value: 1, easing: \"easeInOut\" }] }] };\n```\n\n**Wipe with a shaped edge.** A `wipeProgress` curve needs the mask on the same\nanimation, because direction and softness cannot be inferred:\n\n```json\n{\"role\": \"in\", \"preset\": \"custom\", \"durationMs\": 700,\n \"mask\": {\"direction\": \"left\", \"softness\": 0.1},\n \"curves\": [{\"property\": \"wipeProgress\", \"keyframes\": [\n   {\"t\": 0, \"value\": 0}, {\"t\": 0.6, \"value\": 0.8, \"easing\": \"easeOut\"},\n   {\"t\": 1, \"value\": 1}]}]}\n```\n\n## Failure modes\n\n- A body returning nothing, or both shapes, fails the bake with the reason. Read\n  it: the bake returns the error and the body's logs rather than throwing.\n- A property name outside the channel list fails the bake and names the ones it\n  will take.\n- A curve driving `wipeProgress` with no `mask` is refused.\n- An easing string the grammar cannot read eases linearly and shows up as\n  `unknown_easing` on `validate_timeline`. It is `easeOut`, not `ease-out`.\n- A window that does not fit the clip after its delay is `animation_exceeds_clip`\n  — the motion is clamped or never runs.\n- A runaway loop hits the 10-second ceiling. A curve generator is arithmetic over\n  a few hundred points; if it is slow, it is wrong.\n\n## Check the shape you wrote\n\nCurves are the one place where reading the numbers is not enough. Use\n`preview_timeline_frame` with a `range` across the animation's window and\n`sheet: true`, which tiles the sweep into one labelled contact sheet — the way\nto watch an overshoot actually overshoot rather than checking three instants\nthat all happen to look right.\n","# Motion Curves → animation nobody had a preset for\n\nAn `animate_clip` input with `{\"preset\":\"custom\"}` carries exactly one of\n`curves` (keyframes you write) or `code` (a JS body baked into curves once,\nhost-side). Add `mask` when a curve drives `wipeProgress`. A stored document\nanimation can instead carry `styleTracks` or `textAnimator` without numeric\ncustom curves.\n\n`timeline-edit-ops` carries the op contract and the preset catalog this file is\nthe escape hatch from. `motion-principles` gives the duration and the shape a\ncurve should hit before you write its keyframes.\n\nFor numeric custom curves, call `edit_timeline` with an `animate_clip` op or\nthe in-product `ui_timeline_animate_clip` tool. Both accept the flat `curves`\nor `code` input shown below. For stored `styleTracks`, `textAnimator`, or\n`beat`, read `get_timeline`, edit the full clip animation in its document,\nthen call `set_timeline_document` with every existing document field. The\n`animate_clip` input does not author those stored fields.\n\n## When to write one\n\nWrite curves as soon as a preset is close but not right. The catalog is eight\nentrance shapes and a handful of beats — where motion starts, not where it\nstops — and a piece whose every title arrives with `pop` reads like a template.\nA curve costs one field and a few numbers, and the recipes below are the shapes\nworth reaching for: an entrance that overshoots twice, a hold in the middle of a\nmove, two channels on different schedules, a decay, an arc, a wiggle, a path\ndraw-on.\n\nTwo shapes need no curve, and writing one anyway only makes the document harder\nto read: a single overshoot and a physical settle are already `easing` strings.\n`cubic-bezier(0.16,1,0.3,1)` and `spring(180,12,1)` on an ordinary preset do\nboth. Everything past that is this file.\n\n## Curves by hand\n\n```json\n{\"op\": \"animate_clip\", \"target\": \"Title\", \"animations\": [\n  {\"role\": \"in\", \"preset\": \"custom\", \"durationMs\": 600,\n   \"curves\": [\n     {\"property\": \"offsetY\", \"keyframes\": [\n       {\"t\": 0, \"value\": 80}, {\"t\": 0.7, \"value\": -12, \"easing\": \"easeOut\"},\n       {\"t\": 1, \"value\": 0, \"easing\": \"easeInOut\"}]},\n     {\"property\": \"opacity\", \"keyframes\": [\n       {\"t\": 0, \"value\": 0}, {\"t\": 0.4, \"value\": 1}]}]}]}\n```\n\n`t` runs 0..1 over the animation's **window**, not the clip. `easing` on a\nkeyframe eases the segment **ending** there. Keyframes are sorted, `t` is clamped\nto 0..1, and a curve that stops short of either end is extended by holding its\nend value — so sampling 0.05..0.95 does what it looks like.\n\nLimits: 16 curves per animation, one per property, 4096 keyframes each.\n\n`durationMs` defaults to the clip's own duration, so curves span the whole clip\nunless you say otherwise.\n\n## The channels, and how they combine\n\nSeveral animations can drive one channel. How they fold decides whether the\nsecond adds to the first or throws it away.\n\n| Fold | Channels | Identity | Result |\n|---|---|---|---|\n| add | `offsetX`, `offsetY`, `rotation` (radians), `rotationX`, `rotationY` (deg), `blur` (px), `brightness` (−1..1), `hue` (deg), `temperature`, `tint`, `cameraAzimuth`, `cameraElevation`, `cameraFov` (deg, 3D clips only) | 0 | Values sum |\n| multiply | `scale`, `scaleX`, `scaleY`, `opacity` (0..1), `saturation` (0..4), `contrast` (0..4), `cameraZoom` (3D clips only) | 1 | Values multiply |\n| min | `wipeProgress` (0..1) | 1 | The tightest wipe wins |\n| replace | `positionX`, `positionY` (canvas px), `anchorX`, `anchorY` (0..1), `trimStart`, `trimEnd` (0..1) | none | The last animation in document order wins; the other is discarded |\n\nThe replace row is the trap. Two animations driving `positionX` over the same\ninstants means one does nothing, reported as `replace_curves_overlap`. Move a\nclip with `offsetX` when it should compose with other motion, and with\n`positionX` only for an absolute placement nothing else touches.\n\nLand the last keyframe on the identity value unless you mean the clip to stay\nwhere the curve stopped — and remember the role decides whether it stays: an\n`in` window holds its `t: 0` values before it and contributes nothing after, an\n`out` window holds its `t: 1` values after it, `emphasis` holds neither, and\n`loop` repeats its cycle, so a loop curve must end on the value it started on.\n\n`list_animation_presets` reports this table from the engine. Read it there rather\nthan from memory when a channel's range matters.\n\n## Style curves in a document\n\nUse `styleTracks` on a stored animation when the target is a visual property\nrather than a numeric motion channel. The target names a clip style such as\n`text.color`, `shape.cornerRadius`, `mask.featherPx`, or\n`clip.borderRadius`; an effect target is\n`effect.\u003Ceffect-id>.\u003Cnumeric-field>` or a supported effect color such as\n`effect.bg-field.colorB`. A target needs the matching style,\nmask, or effect on the clip. Color values interpolate through the supported\nCSS color parser. `shape.d` and `mask.d` paths need matching commands and point\ncounts. Glyph targets need a text stagger. `validate_timeline` reports an\ninvalid target, incompatible path, or unsupported color.\n\nThis is one complete stored animation object to merge into an existing clip's\n`animations` array before the full-document write:\n\n```json\n{\"id\":\"round-in\",\"role\":\"in\",\"preset\":\"fade\",\"durationMs\":600,\"styleTracks\":[{\"target\":\"clip.borderRadius\",\"keyframes\":[{\"t\":0,\"value\":0},{\"t\":1,\"value\":30,\"easing\":\"easeOutExpo\"}]}]}\n```\n\n`styleTracks` can accompany a preset, so a title can fade while its color\nchanges. The `id` is required in the stored document; `animate_clip` creates\none for its own inputs. Use `timeline-edit-ops` § Document motion fields for\nlinks, text animators, beat binding, and the document write boundary.\n\n## The code body\n\nA JavaScript body run **once**, at author time, in the QuickJS sandbox. It\nreturns keyframes; the keyframes are stored on the clip; every renderer samples\nthose. Nothing evaluates per frame, which is why a body cannot react to playback\nand why the same animation looks identical in the preview, the export and the\nheadless compositor.\n\nThe bake is hermetic: no toolbelt, no `nodetool.*`, no network, no secrets. Just\narithmetic, a 10-second ceiling, and `inputs`:\n\n| `inputs` field | What it is |\n|---|---|\n| `role` | `in`, `out`, `emphasis` or `loop` |\n| `durationMs` | The animation's own window |\n| `clipDurationMs` | The clip it sits on |\n| `canvasWidth`, `canvasHeight` | Sequence pixels — turn a normalized distance into px here |\n| `params` | The animation's `params`, untouched |\n| `staggerCount` | Units a text clip splits into, or 0 |\n| `sampleCount` | Suggested density for a continuous function |\n\nReturn `{curves}` — the same shape as the JSON above — or `{samples}`, one bag\nper point in time:\n\n```js\nconst n = inputs.sampleCount;\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  samples.push({ t, offsetY: 80 * (1 - t), opacity: t });\n}\nreturn { samples };\n```\n\nReturning both is an error, as is returning neither. A property present on some\nsamples and absent from others is an error rather than a hole — interpolating\nacross the gap would invent motion nobody wrote. A sample needs a finite numeric\n`t`; `easing` on a sample is optional and applies to the segment ending there.\nAt most 4096 samples.\n\nBecause the bake runs once, a body using `Math.random` is frozen at the value it\ndrew: the result is stable forever after, but re-baking gives different motion.\nSeed your own generator when the same body has to produce the same wiggle twice.\n\n## Recipes\n\n**Overshoot and settle.** Two overshoots, the second smaller — what a single\n`easeOutBack` cannot express.\n\n```js\nconst p = [[0, 0.6], [0.45, 1.09], [0.68, 0.97], [0.85, 1.02], [1, 1]];\nreturn { curves: [{ property: \"scale\",\n  keyframes: p.map(([t, value]) => ({ t, value, easing: \"easeInOut\" })) }] };\n```\n\n**Decaying bounce.** Hops that die out and land exactly at rest.\n\n```js\nconst n = inputs.sampleCount, h = 0.06 * inputs.canvasHeight, hops = 3;\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  samples.push({ t, offsetY: -h * Math.abs(Math.sin(Math.PI * hops * t)) * (1 - t) });\n}\nreturn { samples };\n```\n\n**Anticipation.** A counter-move before the action, 60–120ms of the window.\n\n```js\nreturn { curves: [{ property: \"offsetY\", keyframes: [\n  { t: 0, value: 0 }, { t: 0.18, value: 10, easing: \"easeInOut\" },\n  { t: 0.8, value: -4, easing: \"easeOut\" }, { t: 1, value: 0 }] }] };\n```\n\n**Shaped wiggle.** For a steady seeded wiggle, use a stored\n`animationLinks` entry with `kind: \"wiggle\"` as described in\n`timeline-edit-ops` § Document motion fields. Bake a curve when its amplitude must fade in or out. This\nseeded generator reproduces the same shape on a re-bake.\n\n```js\nconst n = inputs.sampleCount;\nconst amp = Number(inputs.params.amplitude ?? 6);\nlet seed = Number(inputs.params.seed ?? 1);\nconst rand = () => (seed = (seed * 1103515245 + 12345) % 2147483648) \u002F 2147483648 - 0.5;\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  const fade = Math.min(1, 4 * t, 4 * (1 - t));   \u002F\u002F rest at both ends\n  samples.push({ t, offsetX: rand() * amp * fade, offsetY: rand() * amp * fade });\n}\nreturn { samples };\n```\n\n**Inertia.** A trailing part that lags the body and catches up — follow-through\nwithout a second clip.\n\n```js\nconst n = inputs.sampleCount, lag = 0.12;\nconst ease = (t) => 1 - Math.pow(1 - t, 3);\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  const behind = ease(Math.max(0, t - lag) \u002F (1 - lag));\n  samples.push({ t, offsetX: (1 - behind) * -0.1 * inputs.canvasWidth });\n}\nreturn { samples };\n```\n\n**Arc.** Straight-line travel looks mechanical. Drive one axis linearly and the\nother as a shallow parabola over the same window; both fold as `add`.\n\n```js\nconst n = inputs.sampleCount;\nconst dx = 0.25 * inputs.canvasWidth, rise = 0.06 * inputs.canvasHeight;\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  samples.push({ t, offsetX: -dx * (1 - t), offsetY: -rise * 4 * t * (1 - t) });\n}\nreturn { samples };\n```\n\n**Pendulum.** A decaying rotation, in radians.\n\n```js\nconst n = inputs.sampleCount, a = 0.12, cycles = 2.5;\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  samples.push({ t, rotation: a * Math.cos(2 * Math.PI * cycles * t) * (1 - t) });\n}\nreturn { samples };\n```\n\n**A loop with no visible join.** Any `loop` curve must return to its start, so\nbuild it from a whole number of cycles of a periodic function.\n\n```js\nconst n = inputs.sampleCount, amp = 0.02 * inputs.canvasHeight;\nconst samples = [];\nfor (let i = 0; i \u003C n; i++) {\n  const t = i \u002F (n - 1);\n  samples.push({ t, offsetY: -amp * Math.sin(2 * Math.PI * t) });\n}\nreturn { samples };\n```\n\n**Path draw-on.** `trimEnd` 0 to 1 on a `path` shape clip. Both trim channels\nfold as `replace`, so one animation drives each and their windows must not\noverlap.\n\n```js\nreturn { curves: [{ property: \"trimEnd\",\n  keyframes: [{ t: 0, value: 0 }, { t: 1, value: 1, easing: \"easeInOut\" }] }] };\n```\n\n**Wipe with a shaped edge.** A `wipeProgress` curve needs the mask on the same\nanimation, because direction and softness cannot be inferred:\n\n```json\n{\"role\": \"in\", \"preset\": \"custom\", \"durationMs\": 700,\n \"mask\": {\"direction\": \"left\", \"softness\": 0.1},\n \"curves\": [{\"property\": \"wipeProgress\", \"keyframes\": [\n   {\"t\": 0, \"value\": 0}, {\"t\": 0.6, \"value\": 0.8, \"easing\": \"easeOut\"},\n   {\"t\": 1, \"value\": 1}]}]}\n```\n\n## Failure modes\n\n- A body returning nothing, or both shapes, fails the bake with the reason. Read\n  it: the bake returns the error and the body's logs rather than throwing.\n- A property name outside the channel list fails the bake and names the ones it\n  will take.\n- A curve driving `wipeProgress` with no `mask` is refused.\n- An easing string the grammar cannot read eases linearly and shows up as\n  `unknown_easing` on `validate_timeline`. It is `easeOut`, not `ease-out`.\n- A window that does not fit the clip after its delay is `animation_exceeds_clip`\n  — the motion is clamped or never runs.\n- A runaway loop hits the 10-second ceiling. A curve generator is arithmetic over\n  a few hundred points; if it is slow, it is wrong.\n\n## Check the shape you wrote\n\nCurves are the one place where reading the numbers is not enough. Use\n`preview_timeline_frame` with a `range` across the animation's window and\n`sheet: true`, which tiles the sweep into one labelled contact sheet — the way\nto watch an overshoot actually overshoot rather than checking three instants\nthat all happen to look right.\n",{"name":5,"description":7},"main","c7226baa82daca42a19a5855c116544f97aa8bac","packages\u002Fsystem-skills\u002Fmotion-curves",91,"https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool","https:\u002F\u002Fnodetool.ai\u002F","https:\u002F\u002Fgithub.com\u002Fnodetool-ai","No-code AI development","2026-11-15 03:27:49",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add nodetool-ai\u002Fnodetool --skill motion-curves",{"tool":57,"command":58},"bunx","bunx skills add nodetool-ai\u002Fnodetool --skill motion-curves",{"tool":60,"command":61},"pnpm","pnpm dlx skills add nodetool-ai\u002Fnodetool --skill motion-curves","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fpackages\u002Fsystem-skills\u002Fmotion-curves\u002FSKILL.md",true,[],[66,75,110,140,155,171],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"01M742MX3Y2ZYK884ZXTRFKB9P","humanizer","Rewrite AI-sounding text so it reads like the writer without changing what it says.\nUse when editing or reviewing prose for AI tells: not-X-but-Y contrasts, one-line\nclosers, staged openers, forced triads, dashes everywhere, inflated claims, sales\nlanguage, stock AI words, bold labels, or filler.","MIT","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhumanizer\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":76,"name":33,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":90,"publishedAt":37},"01M6BY4D93R0Q9400ZHJ04DXP1","Use the NodeTool MCP server to build, validate, run, and debug visual AI workflows, and to work with assets, collections, and jobs. Use when the user mentions NodeTool or asks for a workflow graph, a node, or a media generation run on their NodeTool server.","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fplugins\u002Fchatgpt\u002Fnodetool\u002Fskills\u002Fnodetool\u002FSKILL.md",[80,85],{"categoryNo":81,"categoryName":82,"taxonomyType":83,"taxonomyTypeDesc":84},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",{"categoryNo":86,"categoryName":87,"taxonomyType":88,"taxonomyTypeDesc":89},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[33,91,92,93,94,95,96,97,98,31,99,25,100,101,102,103,104,105,106,107,108,109],"MCP","Media","workflows","when","generation","media generation","with","visual","collections","node","work","debug","graph","validate","assets","run","server","mcp server","workflow",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":119,"publishedAt":37},"01M6BY4AEB05ZPBRVD078ATR2H","wan-2-6-prompting","Prompt Alibaba's Wan 2.6 video — text-to-video with a global style line plus timing-bracketed shots, and image-to-video that describes only what changes over time. Covers the shot-mode switch per provider, the prompt budget, negative prompts, motion intensity wording, audio input and prompt expansion. Use whenever the model id names a Wan 2.6 video route (alibaba\u002Fwan-2.6\u002Ftext-to-video, alibaba\u002Fwan-2.6\u002Fimage-to-video, wan-video\u002Fwan-2.6-t2v, wan-video\u002Fwan-2.6-i2v, wan-video\u002Fwan2.6-i2v-flash) on generate_video, animate_image or a TextToVideo node. Not for Wan 2.5 or 2.7, or the Wan 2.6 image routes.","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fpackages\u002Fsystem-skills\u002Fwan-2-6-prompting\u002FSKILL.md",[116],{"categoryNo":117,"categoryName":118,"taxonomyType":83,"taxonomyTypeDesc":84},"01JBSEEDCAT000000000000016","图像与多媒体",[120,121,122,123,124,125,126,100,127,128,129,130,131,132,133,134,135,136,137,138,139],"prompting","wan 2 6 prompting","line","expansion","input","image-to-video","text-to-video","route","only","mode","time","flash","Budget","generate","text","image","animate","model","Audio","Video",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":148,"publishedAt":37},"01M6BY47T4748ZG5ZMTAR97ZWZ","video-workflow","Build a reusable NodeTool video workflow for batches or repeated inputs. For a single finished piece, use a storyboard skill.","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fpackages\u002Fsystem-skills\u002Fvideo-workflow\u002FSKILL.md",[146,147],{"categoryNo":117,"categoryName":118,"taxonomyType":83,"taxonomyTypeDesc":84},{"categoryNo":81,"categoryName":82,"taxonomyType":83,"taxonomyTypeDesc":84},[109,149,139,150,151,152,153,31,154,33,25],"video workflow","reusable","storyboard","build","batches","single",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":162,"publishedAt":37},"01M6BY4587N2SYN315SXGEMZC3","video-clone","Analyze a reference video and recreate its shot structure with a new product or cast in NodeTool.","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fpackages\u002Fsystem-skills\u002Fvideo-clone\u002FSKILL.md",[161],{"categoryNo":117,"categoryName":118,"taxonomyType":83,"taxonomyTypeDesc":84},[163,164,139,97,165,166,33,167,168,169,170],"clone","video clone","cast","new","analyze","product","structure","reference",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":178,"publishedAt":37},"01M6BY4257C2KQYYMD9EK6DK8E","video-audio-continuity","Keep sound continuous across a multi-scene piece cut from generated video — why one clip per scene hard-cuts the audio at every boundary, when to write all the scenes into a single generation instead, the sound-design vocabulary that survives a provider's copyright filter, and how to check the length, the aspect ratio and the mix of what came back. Use when a piece has more than one scene and the video model writes its own audio (Seedance 2, Veo 3, MiniMax H3, Kling 2.6 and later), or when a cut's sound drops out at the shot changes.","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fpackages\u002Fsystem-skills\u002Fvideo-audio-continuity\u002FSKILL.md",[177],{"categoryNo":117,"categoryName":118,"taxonomyType":83,"taxonomyTypeDesc":84},[179,139,138,180,32,181,182,183,184,185,186,187,188,94,189,190,137,191,192,193,194],"video audio continuity","continuity","why","back","veo 3","at","cut","later","across","filter","generated","how to","mix","design","boundary","how"]