[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115051":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":9,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":14,"starSnapshotCount":14,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},115051,"craft","diego3g\u002Fcraft","diego3g","Design skills for AI agents: \u002Fcraft-setup writes your design brief, \u002Fcraft designs screens with every state from your design system and reviews them. Works with Paper, pen.dev, Figma or HTML.",null,"JavaScript",452,23,1,0,44,362,245,94.14,"Other",false,"main",[23,24,25,26,27,28,29],"agent-skills","claude-code","claude-code-plugin","design-system","figma","paper","ui-design","2026-11-23 18:07:48","2026-11-23 20:40:45","\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fbanner.png\" alt=\"craft\" width=\"100%\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cb>Design skills for AI agents.\u003C\u002Fb> Complete screens with every state, and a design system that stays consistent.\u003Cbr>\n  Works with Paper, pen.dev, Figma or plain HTML, in Claude Code, Codex, OpenCode, Cursor and other agents.\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fskills.sh\u002Fdiego3g\u002Fcraft\">\u003Cimg src=\"https:\u002F\u002Fskills.sh\u002Fb\u002Fdiego3g\u002Fcraft\" alt=\"skills.sh\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n---\n\nAsk your agent for \"a pricing page\" and, with craft installed, it works like a careful designer:\n- it writes a short design brief first;\n- it lists every state the screen can be in;\n- it uses your design system's pieces;\n- it checks its own work before showing it.\n\nIt stops for your \"yes\" where it matters and writes its decisions down for next time.\n\n## Install\n\n### Claude Code, Claude Desktop and claude.ai\n\nInstall craft as a plugin. Inside a Claude Code session:\n\n```\n\u002Fplugin marketplace add diego3g\u002Fcraft\n\u002Fplugin install craft@craft\n```\n\n- The plugin adds a session-start hook, so every request goes to the right skill by itself.\n- Skills carry the plugin name: `\u002Fcraft:craft`, `\u002Fcraft:craft-setup` and so on.\n- Update from your shell with `claude plugin update craft@craft`.\n\nIn Claude Desktop or claude.ai, go to Customize › Plugins › Add › Add marketplace, then enter `diego3g\u002Fcraft`.\n\n### Codex, OpenCode, Cursor and other agents\n\nInstall the skills with the [skills CLI](https:\u002F\u002Fskills.sh):\n\n```\nnpx skills add diego3g\u002Fcraft\n```\n\nIt asks which agents to install into. You can also name the agent yourself:\n\n| Agent | Command |\n|---|---|\n| Codex | `npx skills add diego3g\u002Fcraft -a codex` |\n| OpenCode | `npx skills add diego3g\u002Fcraft -a opencode` |\n| Cursor | `npx skills add diego3g\u002Fcraft -a cursor` |\n| Gemini CLI | `npx skills add diego3g\u002Fcraft -a gemini-cli` |\n| GitHub Copilot | `npx skills add diego3g\u002Fcraft -a github-copilot` |\n| Windsurf | `npx skills add diego3g\u002Fcraft -a windsurf` |\n\n- Add `-g` to install for every project instead of only the current one.\n- Run `npx skills update` to update later.\n\nThese agents don't run the session-start hook. Paste the routing below into your `AGENTS.md` so the agent still picks the right skill.\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Routing for AGENTS.md\u003C\u002Fb>\u003C\u002Fsummary>\n\n```markdown\n## Design skills\nBefore responding to anything that designs, reviews or changes a UI, check this table and use the skill.\nFirst look whether DESIGN.md exists at the project root.\n- No DESIGN.md and a design task → craft-setup, then craft\n- Design \u002F create \u002F redesign a page, screen, flow or element → craft\n- \"Options\", \"alternatives\", \"I don't like it\" → craft-explore\n- \"Review\", \"refine\", \"make it better\", or before showing your own design → craft-critique\n- Tokens, style guide, a component, \"audit\" → craft-system\n- \"Bring our design system into \u003Ctool>\", \"apply the guide changes to the code\" → craft-sync\n- \"What states are missing?\" → craft-states\nSmall edits the person described exactly (one value, label or size): just make them.\nA stop means ending your turn with the question. Never decide a stop for the person.\n```\n\n\u003C\u002Fdetails>\n\n**By hand:** copy the folders in `skills\u002F` into your project's `.agents\u002Fskills\u002F`, then add the routing above.\n\n## The skills\n\n| Skill | What it does |\n|---|---|\n| **`craft-setup`** | Interviews you one question at a time: product, audience and voice, mood, brand, references, constraints. It then writes `DESIGN.md` and builds the foundations (tokens and base components). |\n| **`craft`** | The main command, for designing a page, screen, flow or element. It confirms the scope, then for each screen lists the states, draws with your system's pieces and checks the result. |\n| **`craft-states`** | Lists every state a screen can be in (empty, loading, error, long content, permissions, offline…) using realistic messy data, then draws and names each one. |\n| **`craft-explore`** | Draws three directions that really differ in structure, interaction or density, never just new colours. They sit next to the current design, with a recommendation first. |\n| **`craft-system`** | Looks after the design system: role-named tokens, interaction rules defined once, a states matrix per component, and a component index. Before a change spreads, it lists the screens the change affects. |\n| **`craft-sync`** | Brings a design system that already lives in code into your design tool. Later it sends the guide's changes back to the code as a reviewed diff. |\n| **`craft-critique`** | Renders the design and looks at it, then checks hierarchy, spacing, contrast, text, consistency and motion. Findings are ranked by impact. In review mode it changes nothing. |\n\nThe hidden `using-craft` skill does the routing: it sends each request to the right skill.\n\nAgents with slash commands run them by name: `\u002Fcraft`, `\u002Fcraft-setup`… (`\u002Fcraft:craft`, `\u002Fcraft:craft-setup`… with the Claude Code plugin). In any agent you can also just ask in plain words.\n\n## The best workflow\n\n1. **Start with the brief.** Run `craft-setup` once per project. It writes `DESIGN.md`, which every other skill reads first. If your repo already has a component library or token files, `craft-setup` offers `craft-sync` instead, so nothing gets invented twice.\n2. **Design with `craft`.** Describe what you need (\"a settings page with billing and team\"). It stops to confirm the scope and the list of states, then draws.\n3. **Unsure about the direction?** Say \"give me options\" and `craft-explore` draws three directions. Pick one, or mix two.\n4. **Review before you ship.** Say \"review this\" for a `craft-critique` report. `craft` already runs this check on its own work before showing it.\n5. **Keep the system healthy.** Ask for \"an audit\" from time to time (`craft-system`). After changing the guide in your design tool, say \"apply the guide changes to the code\" (`craft-sync`).\n\nSmall edits (\"make the button 2px taller\") skip all of this: the agent makes the change, and says so when it touches a shared piece.\n\n## Good to know\n\n- **`DESIGN.md`** has eight short sections: Product, Audience and voice, Mood, Brand, References, Constraints, a dated Decisions log and Open questions. It's how Monday's decisions survive into Thursday's session.\n- **Your project wins.** Every rule about *look* is a default. If your design system does something else, the agent follows yours.\n- **Some rules hold in every project**, because they're about process, not taste:\n  - cover the states;\n  - stop for approval;\n  - give options that really differ;\n  - make every colour a token;\n  - use one icon set;\n  - change design and code together.\n- **Tool-agnostic.** The skills describe actions (\"create a board\", \"render and look\"), and adapters map them to Paper (MCP), pen.dev (MCP), Figma (MCP) or plain HTML. Plain HTML is also the fallback. The Figma adapter hasn't been tested in real runs yet, so reports are welcome.\n\n## Contributing\n\n```\nnpm test        # validator and hook tests\nnpm run check   # skill format, links, no tool names outside adapters\n```\n\nEvery skill was written test-first: scenarios ran without the skill, then with it (see [`tests\u002Fscenarios\u002F`](tests\u002Fscenarios\u002F)). Changes to a skill should come with a scenario that fails before the change and passes after it.\n\n## Credits\n\nThe session-start hook and the \"one entry skill that routes to the rest\" idea come from [obra\u002Fsuperpowers](https:\u002F\u002Fgithub.com\u002Fobra\u002Fsuperpowers) (MIT). The banner uses [Departure Mono](https:\u002F\u002Fdeparturemono.com) (OFL).\n\n## License\n\nMIT\n","craft 是一个为 AI 编程助手（如 Claude Code、Cursor、Codex 等）提供 UI 设计能力的插件工具。它支持自动撰写设计简报、基于设计系统生成含完整交互状态的界面（如加载、错误、空态等），并内置自我审查机制；可输出至 Figma、Paper、pen.dev 或 HTML，确保设计一致性与可追溯性。适用于需要将产品需求快速转化为合规、可落地 UI 的开发者、AI 工程师及设计协同场景，尤其适合已建立组件库或设计规范的中前期项目。",2,"2026-11-24 04:50:10","CREATED_QUERY"]