Skip to content
Back to skills

Ztx14 Best Motion Docs Api Version Gate

ASecurity

Prevent agents from copying current Motion APIs into older projects without checking package versions and migration requirements.

  • 14 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
documentationtypescriptreactapi

Works with

  • api

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add Realjustawall/Perfect-AI --skill ztx14-best-motion-docs-api-version-gate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ztx14 Best Motion Docs Api Version Gate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ztx14 Best Motion Docs Api Version Gate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/realjustawall-ztx14-best-motion-docs-api-version-gate/badge)](https://www.skillsdirectory.com/skills/realjustawall-ztx14-best-motion-docs-api-version-gate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ztx14-best-motion-docs-api-version-gate
description: Prevent agents from copying current Motion APIs into older projects without checking package versions and migration requirements.
---

# Gate Motion examples on the installed API version

> Best-practice implementation skill. Inspect the real project, installed package versions, current component contract, and existing animation ownership before changing code. This skill adds guidance only; it does not install dependencies by itself.

## When to use
Any Motion implementation, refactor, or use of newly documented hooks/components.

## Procedure
1. Inspect `package.json`, the lockfile, package manager, and actual import specifiers before selecting APIs.
2. Check whether the project uses `motion/react`, legacy `framer-motion`, or another animation package. Do not interchange import paths blindly.
3. Consult the relevant official page for the exact feature and compare it with the installed package version and changelog/migration notes.
4. Prefer the project’s already installed API when it meets the requirement. Propose an upgrade separately if necessary.
5. Use TypeScript or build diagnostics as evidence that the API exists in the installed version; do not treat a webpage example alone as compile proof.

## Avoid
- Do not add a second animation package just because a tutorial imports it.
- Do not upgrade the package lockfile incidentally.
- Do not assume names and import paths from Framer Motion are identical to current Motion.

## Acceptance checks
- [ ] Version and import path were confirmed.
- [ ] Any upgrade is a deliberate separate change.
- [ ] Build/typecheck evidence is reported accurately.

## Primary references
- https://motion.dev/docs/react
- https://motion.dev/docs/ai-kit-install

## Reporting requirement
State which files were inspected, what changed, and which checks actually ran. Do not claim a browser/device was verified unless it was tested.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.