Skip to content

176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.

feat: a Claude Code plugin marketplace in .claude-plugin whose one plugin installs the skill, with its check in the skill test

matine006e67ce9fc
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
new file mode 100644
index 00000000..6e8c9328
--- /dev/null
+++ b/.claude-plugin/marketplace.json
@@ -0,0 +1,23 @@
+{
+ "name": "animation-handbook",
+ "owner": {
+ "name": "Matin Monshizadeh"
+ },
+ "description": "Animation Handbook as a Claude Code plugin: web animation techniques with live demos, plain-words build prompts and settings.",
+ "plugins": [
+ {
+ "name": "animation-handbook",
+ "description": "Builds web animations from Animation Handbook: finds the technique that fits what you describe and builds it in your project from its tested prompt and settings.",
+ "source": "./",
+ "strict": false,
+ "skills": ["./skills/animation-handbook"],
+ "author": {
+ "name": "Matin Monshizadeh"
+ },
+ "homepage": "https://matinmonshizadeh.github.io/animation-handbook/",
+ "repository": "https://github.com/matinmonshizadeh/animation-handbook",
+ "license": "MIT",
+ "keywords": ["animation", "css", "javascript", "web", "ui", "motion"]
+ }
+ ]
+}
diff --git a/tests/skill.test.js b/tests/skill.test.js
index bcedd022..384caad4 100644
--- a/tests/skill.test.js
+++ b/tests/skill.test.js
@@ -1,5 +1,5 @@
// Checks the AI skill (skills/animation-handbook/) and llms.txt, which tools/make-skill.mjs writes from the pages and the
-// home page's cards.
+// home page's cards, and the Claude Code plugin marketplace that installs the skill (.claude-plugin/marketplace.json).
// Run from the repo root: node --test "tests/*.test.js"
const test = require('node:test');
const assert = require('node:assert/strict');
@@ -154,6 +154,22 @@ test('llms.txt lists every card once, in the order of CATS, with its live addres
});
});
+test('the plugin marketplace parses and its one plugin installs the skill folder', () => {
+ const market = JSON.parse(read(path.join(ROOT, '.claude-plugin', 'marketplace.json')));
+ assert.equal(market.name, 'animation-handbook');
+ assert.ok(market.owner && market.owner.name, 'the marketplace names its owner');
+ assert.equal(market.plugins.length, 1, 'one plugin');
+ const [plugin] = market.plugins;
+ assert.equal(plugin.name, 'animation-handbook');
+ // Without a version, an install follows the commits on main instead of staying on one version.
+ assert.equal(plugin.version, undefined, 'the plugin has no version');
+ assert.equal(market.version, undefined, 'the marketplace has no version');
+ assert.ok(Array.isArray(plugin.skills) && plugin.skills.length === 1, 'the plugin lists one skill folder');
+ for (const dir of plugin.skills) {
+ assert.ok(fs.existsSync(path.join(ROOT, plugin.source, dir, 'SKILL.md')), `${plugin.source} + ${dir} holds SKILL.md`);
+ }
+});
+
test('every reference file over 100 lines starts with a contents list that links each of its sections', () => {
for (const file of fs.readdirSync(REFS)) {
const text = read(path.join(REFS, file));