anbeime/skill / skills/hairline/hairline
hairline
Flagged一句话生成跟随鼠标的交互式等轴测线框图(单文件、零依赖、双击即开),或把已有 SVG/Logo 重建为可交互线框。
packages/hairline/test/skill/adopt.test.ts
View on GitHubimport { readdirSync, readFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
import { expect, it } from "vitest";
/** The door: one file that sends an SVG to hairline-create's step 0. */
const SKILL = fileURLToPath(new URL("../../../../skills/hairline-adopt/", import.meta.url));
const text = readFileSync(SKILL + "SKILL.md", "utf8");
it("holds exactly its one file", () => {
expect(readdirSync(SKILL)).toEqual(["SKILL.md"]);
});
it("opens with a name that is its folder's, a description that says when to use it, and an argument hint", () => {
const m = /^---\nname: (.+)\ndescription: (.+)\nargument-hint: (.+)\n---\n/.exec(text);
expect(m).not.toBeNull();
expect(m![1]).toBe("hairline-adopt");
expect(m![2]).toMatch(/^Use when someone has an SVG/);
expect(m![2]).toContain("/hairline-adopt");
expect(m![2].length).toBeLessThanOrEqual(1024);
expect(m![3]).toBe('"<file.svg> [what the pointer does]"');
});
it("says what it does and does not do, and hands over to /hairline-create by name, never by path", () => {
expect(text).toMatch(/never animates the SVG itself/);
expect(text).toMatch(/never traces it/);
expect(text).toMatch(/one figure at a time/);
expect(text).toContain("Invoke `/hairline-create`");
expect(text).toContain("step 0");
expect(text).not.toMatch(/\.\.\/hairline-create/);
expect(text).not.toMatch(/`[\w./-]+\.(?:mjs|js|html|md)`/);
expect(text.split("\n").length).toBeLessThan(40);
});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |