@motion.page/sdk 0.1.2 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@ A high-performance animation SDK with a declarative API. Scroll-triggered animat
|
|
|
12
12
|
|
|
13
13
|
- [Installation](#installation)
|
|
14
14
|
- [Quick Start](#quick-start)
|
|
15
|
+
- [AI Agent Support](#ai-agent-support)
|
|
15
16
|
- [Core Concept](#core-concept)
|
|
16
17
|
- [Implicit Values](#implicit-values)
|
|
17
18
|
- [API Reference](#api-reference)
|
|
@@ -137,6 +138,24 @@ Motion('audio-fade', state, {
|
|
|
137
138
|
|
|
138
139
|
---
|
|
139
140
|
|
|
141
|
+
## AI Agent Support
|
|
142
|
+
|
|
143
|
+
This package includes built-in support for AI coding assistants.
|
|
144
|
+
|
|
145
|
+
**`llms.txt` included** — An `llms.txt` file (per the [llmstxt.org](https://llmstxt.org) standard) ships with the package and is automatically discoverable by AI assistants when `@motion.page/sdk` is installed in `node_modules`. It provides a structured index of the entire SDK API so agents can answer questions and generate correct code without hallucinating APIs.
|
|
146
|
+
|
|
147
|
+
**Full skill plugin** — For comprehensive AI-assisted development — complete API reference, 50+ examples, and GSAP / Framer Motion migration guides — install the official plugin:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
# Universal (40+ agents)
|
|
151
|
+
npx skills add motion-page/claude-plugin
|
|
152
|
+
|
|
153
|
+
# Claude Code
|
|
154
|
+
/install-plugin npm:@motion.page/claude-plugin
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
140
159
|
## Core Concept
|
|
141
160
|
|
|
142
161
|
Every animation in the SDK is a **named timeline**. The name is the first argument to `Motion()` and acts as a registry key — calling `Motion('same-name')` always returns the same `Timeline` instance.
|