The project has no composition to copy from yet (a new or empty project). Read first for the shape of a composition and what each element takes, so you build at once instead of searching MOGA's source.
5 stars
0 votes
0 copies
0 views
Added December 4, 2026
ai-agentsgoexpressspringaws
Works with
cli
Security analysis
A100/100
Scanned December 5, 2026
$npx -y skills add HumanHarness/MOGA --skill elements --agent claude-code
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 Elements?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/humanharness-elements)
---
name: elements
kind: guide
description: The project has no composition to copy from yet (a new or empty project). Read first for the shape of a composition and what each element takes, so you build at once instead of searching MOGA's source.
---
Everything below is what `put_composition` and `patch_composition` take. Do not read MOGA's own source or examples to find it: build from this, and lint (when your turn ends) names any prop that is wrong.
Write the whole composition in one `put_composition`, not element by element. Elements are not the only way: a complex, continuous scene (one long camera move, dense choreography, a diagram that grows) may be one code element whose `window.seek = (t) => { … }` draws the whole timeline (`add_code { composition, file }`; edit the file and call it again with the same `id` to change it). You do not have to split it into components. The trade-off: each element is selectable and editable in the Studio, a code element is one, so lay words people will change or translate over it as text elements, and declare the values someone may want to tune (a colour, a speed, where the key object sits) as its `params`, which become knobs in the Studio (suggested, not required). When a part of the scene is worth reusing in another shot or film, make it its own component (skill:component) or asset rather than copying its code: films then build from parts like building blocks.
**Small parts at their own size.** A part smaller than the frame (an icon, a badge's pulse, a spinner, a sparkle, a canvas or three.js logo) is never a full-frame layer: draw it once at its own size, as a composition (`new_composition { name, width: 40, height: 40 }`) or a code element whose `w`/`h` are the part's (add_code's box is the whole frame unless given), and place it with `nest_composition { composition, nested, x, y, loop: true }` once per use. `crop: { x, y, w, h }` (its own px) shows one region of a composition, so one picture serves several places.
## A composition
```json
{
"version": 2,
"meta": { "width": 1920, "height": 1080, "fps": 30, "duration": 12, "theme": "dark", "background": "{md.sys.color.surface}" },
"elements": [
{
"id": "s1",
"type": "composition",
"start": 0,
"end": 4,
"background": "{md.sys.color.surface}",
"elements": [
{
"id": "glow",
"type": "shape",
"props": { "x": 960, "y": 540, "w": 1400, "h": 1400, "radius": 700, "fill": "{md.sys.color.primary-container}", "opacity": 0.35 },
"allow": { "overlap": "background glow" }
},
{
"id": "title",
"type": "text",
"props": {
"text": "钱,去哪了?",
"x": 960,
"y": 500,
"w": 1600,
"fontSize": 140,
"fontWeight": 700,
"color": "{md.sys.color.on-surface}",
"split": "char",
"stagger": 0.04
},
"motion": [{ "use": "chars-rise", "at": 0.2 }],
"idle": true
},
{
"id": "rule",
"type": "shape",
"props": { "x": 960, "y": 620, "w": 240, "h": 8, "radius": 4, "fill": "{md.sys.color.primary}" },
"motion": [{ "use": "draw", "at": 0.6 }]
}
]
},
{
"id": "s2",
"type": "composition",
"start": 4,
"end": 12,
"transition": { "type": "push", "dur": 0.5 },
"elements": [
{
"id": "card",
"type": "shape",
"props": { "x": 960, "y": 560, "w": 900, "h": 560, "radius": 48, "fill": "{md.sys.color.surface-container-high}", "shadow": true },
"motion": [{ "use": "rise", "at": 0.3 }],
"idle": true
},
{
"id": "amount",
"type": "text",
"props": { "text": "¥2,520", "x": 960, "y": 520, "fontSize": 120, "fontWeight": 700, "color": "{md.sys.color.primary}", "split": "char" },
"motion": [{ "use": "chars-rise", "at": 0.5 }]
},
{
"id": "spin",
"type": "shape",
"props": { "x": 1500, "y": 300, "w": 120, "h": 120, "radius": 24, "fill": "{md.sys.color.tertiary}" },
"anim": [{ "prop": "rotate", "to": 180, "at": 0.4, "dur": 1.2, "ease": "{md.sys.motion.spring.expressive.spatial.default}" }]
}
]
}
]
}
```
- **Times** are seconds (`2.5`), frames (`"75f"`) or beats (`"4b"`, with `meta.bpm`). A nested composition's `start`/`end` place it in its parent; times inside it count from its own start.
- **Position:** `x`, `y` are an element's centre in its composition's pixels; `w`, `h` its box. A section is a nested composition (`type: "composition"` with its own `elements`, `background`, `transition`, `camera`); `transition.type` is `fade`, `push`, `zoom`, `wipe` and more (`taste` lists them).
- **Colours, sizes, eases** are tokens in braces: `{md.sys.color.primary}`, `on-surface`, `surface-container-high`, `primary-container`, `tertiary`…, `{md.sys.shape.corner.full}`, `{video.type.display-medium}`, `{md.sys.motion.spring.expressive.spatial.default}`. A raw `#hex` works too; a colour is one string, never `{light, dark}`.
- **Motion:** `motion: [{ "use": "<preset>", "at": s }]` with a preset from `<motion-presets>` (pop, rise, fade, fade-out, sink, grow, draw, squish, tap, chars-rise, chars-in, tracking-in, type-on, breathe…), `by` for a distance. **Keyframes:** `anim: [{ "prop", "to", "at", "dur", "ease" }]` (`from`/`to` may be `"+N"`/`"-N"`, relative to where the element rests) on `x`, `y`, `w`, `h`, `scale`, `rotate`, `opacity`, `blur`, a colour, `clipX/Y/W/H/R` and any number. `idle: true` keeps an element gently alive.
- **Depth:** a camera with a `lens` (px, ~1200) makes a composition a depth space: every picture element (not audio, adjustment or a nested composition itself) is drawn flat, in perspective, at its `z` (px; 0 life size, higher nearer, −3000 far away), nearer over farther whatever the order. Edit the camera as element `"@camera"` (`"<nested id>@camera"` for a nested one's) with `edit_elements`: props `x`, `y`, `zoom`, `z` (lower pushes in), `lens`, `focus`, `aperture` (lens blur), all keyframable. `focus` is a z or `"@<element id>"`, which follows that element; a focus pull is `keyframes: { focus: [{ t: 3, v: "@title" }, { t: 3.8, v: "@hero" }] }`. Changing `lens` or `aperture` resizes or blurs every element, so leave them as set unless asked. Move cards, never a whole full-frame composition as a panel, and carry a cut with an element already on screen (the depth guide). A card that flies in keyframes its `z` (and `rotate`; `tiltY`/`tiltX` turn it about its vertical/horizontal axis in perspective, a flip from 70° to 0); a card made of several elements is keyed on its background alone, the rest put on it with `edit_elements { element, card: "<background id>" }` (beside props), so it turns as one plane; one that crosses shots lives in the outer composition while the shots get `space: "shared"` (an inline nested composition, or a composition element naming another composition file: either joins the outer space, a composition element standing its shot where its `x`/`y`/`z` place it; without it a nested composition is one flat card with no z inside), so it passes between their elements. A line that flies through the space (a stroke looping toward the camera, behind one card and out in front of another) is a shape with `points`: `[[x, y, z], …]` from its own `x`/`y`/`z`, a smooth curve through them, drawn in pieces at their own depths; key `draw` 0→1 to grow it, or `draw` 0.2 with `drawStart` 0→0.8 to send a stroke along it. It draws only in a depth space.
- **`allow`:** an element that overlaps others on purpose says why (`"allow": { "overlap": "…" }`), or lint reports the overlap.
## Element types and their main props
| type | props |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `text` | `text`, `x`, `y`, `w` (wraps inside), `fontSize`, `fontWeight`, `font` (family), `color`, `align`, `letterSpacing`, `opacity`, `split` (`char`/`word`, for chars-* presets), `stagger` |
| `shape` | a box: `w`, `h`, `fill`, `radius` (half of w = circle), `stroke`, `strokeWidth`, `shadow`, `rotate`; with `d` (an SVG path in a w × h box) a drawn shape; `draw` animates its stroke on |
| `rect` | `w`, `h`, `fill`, `radius`, `rotate` |
| `image` | `src` (`/media/<file>`), `w`, `h`, `radius`, `fit` |
| `video` | `src`, `in` (seconds into the file), `start`, `rate`, `w`, `h`, `fit` |
| `audio` | `src`, `in`, `volume`, `fadeIn`, `fadeOut` (or `add_sound`) |
| `code` | `html`, `w`, `h`, `seed` (`add_code`: three.js, canvas, shaders; the three-d and generative guides) |
| `component` | `tag`, `attrs` (`search` kind component lists the project's) |
| `composition` | its own `elements`, or `props.composition` naming another composition to nest (`in`, `rate`, `loop`, `crop`): a nested shot plays for its own length (`nest_composition` sets its `end` to that), so give one you write yourself `end` = its `start` + its own duration, or `loop`/`hold` to fill a longer stretch |
## Build fast
1. `new_composition` (format, fps, duration) once, then one `put_composition` with the whole film, or one per section plus the film that nests them.
2. Lint runs when your turn ends and names what to fix (a prop, an overlap, text off the safe area). `look` at two or three moments to see it.