@jini-ai/agent-plugins 0.4.0
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/CHANGELOG.md +57 -0
- package/LICENSE +201 -0
- package/README.md +261 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/dist/lifecycle/activation.d.ts +177 -0
- package/dist/lifecycle/activation.js +874 -0
- package/dist/lifecycle/bundled-digests.d.ts +27 -0
- package/dist/lifecycle/bundled-digests.js +149 -0
- package/dist/lifecycle/bundled-source-archive.d.ts +13 -0
- package/dist/lifecycle/bundled-source-archive.js +96 -0
- package/dist/lifecycle/capability-projection.d.ts +11 -0
- package/dist/lifecycle/capability-projection.js +60 -0
- package/dist/lifecycle/fetch-archive.d.ts +88 -0
- package/dist/lifecycle/fetch-archive.js +215 -0
- package/dist/lifecycle/index.d.ts +174 -0
- package/dist/lifecycle/index.js +94 -0
- package/dist/lifecycle/install-from-url.d.ts +78 -0
- package/dist/lifecycle/install-from-url.js +73 -0
- package/dist/lifecycle/install.d.ts +52 -0
- package/dist/lifecycle/install.js +286 -0
- package/dist/lifecycle/layout.d.ts +20 -0
- package/dist/lifecycle/layout.js +30 -0
- package/dist/lifecycle/manifest.d.ts +214 -0
- package/dist/lifecycle/manifest.js +409 -0
- package/dist/lifecycle/mcp-provisioning.d.ts +20 -0
- package/dist/lifecycle/mcp-provisioning.js +14 -0
- package/dist/lifecycle/node.d.ts +11 -0
- package/dist/lifecycle/node.js +34 -0
- package/dist/lifecycle/package-paths.d.ts +12 -0
- package/dist/lifecycle/package-paths.js +74 -0
- package/dist/lifecycle/ports.d.ts +81 -0
- package/dist/lifecycle/ports.js +2 -0
- package/dist/lifecycle/resolve-agent-plugin-refs.d.ts +18 -0
- package/dist/lifecycle/resolve-agent-plugin-refs.js +143 -0
- package/dist/lifecycle/retire-bundled.d.ts +36 -0
- package/dist/lifecycle/retire-bundled.js +69 -0
- package/dist/lifecycle/search.d.ts +23 -0
- package/dist/lifecycle/search.js +50 -0
- package/dist/lifecycle/seed-bundled.d.ts +29 -0
- package/dist/lifecycle/seed-bundled.js +118 -0
- package/dist/lifecycle/set-enabled.d.ts +21 -0
- package/dist/lifecycle/set-enabled.js +39 -0
- package/dist/lifecycle/trusted-plugin-files.d.ts +29 -0
- package/dist/lifecycle/trusted-plugin-files.js +82 -0
- package/dist/lifecycle/types.d.ts +20 -0
- package/dist/lifecycle/types.js +2 -0
- package/dist/lifecycle/uninstall.d.ts +41 -0
- package/dist/lifecycle/uninstall.js +148 -0
- package/dist/lifecycle/yauzl-archive-reader.d.ts +62 -0
- package/dist/lifecycle/yauzl-archive-reader.js +73 -0
- package/dist/manifest.d.ts +68 -0
- package/dist/manifest.js +38 -0
- package/package.json +92 -0
- package/ui-ux-design/com.anthropic.claude-code/hooks/hooks.json +4 -0
- package/ui-ux-design/mcp.json +4 -0
- package/ui-ux-design/plugin.json +5 -0
- package/ui-ux-design/skills/frontend-accessibility/SKILL.md +60 -0
- package/ui-ux-design/skills/gstack-design/SKILL.md +53 -0
- package/ui-ux-design/skills/gstack-design/references/consultation.md +30 -0
- package/ui-ux-design/skills/gstack-design/references/html.md +29 -0
- package/ui-ux-design/skills/gstack-design/references/review.md +28 -0
- package/ui-ux-design/skills/gstack-design/references/shotgun.md +33 -0
- package/ui-ux-design/skills/gstack-design/references/upstream-notes.md +23 -0
- package/ui-ux-design/skills/interface-design/ORIGINAL.md +16 -0
- package/ui-ux-design/skills/interface-design/SKILL.md +41 -0
- package/ui-ux-design/skills/interface-design/references/commands/audit.md +40 -0
- package/ui-ux-design/skills/interface-design/references/commands/critique.md +21 -0
- package/ui-ux-design/skills/interface-design/references/commands/extract.md +34 -0
- package/ui-ux-design/skills/interface-design/references/commands/init.md +31 -0
- package/ui-ux-design/skills/interface-design/references/commands/status.md +22 -0
- package/ui-ux-design/skills/interface-design/references/examples/system-precision.md +29 -0
- package/ui-ux-design/skills/interface-design/references/examples/system-warmth.md +29 -0
- package/ui-ux-design/skills/interface-design/references/system-template.md +57 -0
- package/ui-ux-design/skills/shadcn-ui/README.md +244 -0
- package/ui-ux-design/skills/shadcn-ui/SKILL.md +326 -0
- package/ui-ux-design/skills/shadcn-ui/examples/auth-layout.tsx +177 -0
- package/ui-ux-design/skills/shadcn-ui/examples/data-table.tsx +313 -0
- package/ui-ux-design/skills/shadcn-ui/examples/form-pattern.tsx +177 -0
- package/ui-ux-design/skills/shadcn-ui/resources/component-catalog.md +481 -0
- package/ui-ux-design/skills/shadcn-ui/resources/customization-guide.md +516 -0
- package/ui-ux-design/skills/shadcn-ui/resources/migration-guide.md +463 -0
- package/ui-ux-design/skills/shadcn-ui/resources/setup-guide.md +412 -0
- package/ui-ux-design/skills/shadcn-ui/scripts/verify-setup.sh +134 -0
- package/ui-ux-design/skills/ui-ux-design/SKILL.md +77 -0
- package/ui-ux-design/skills/ui-ux-design/references/brand-and-voice.md +72 -0
- package/ui-ux-design/skills/ui-ux-design/references/components-and-states.md +107 -0
- package/ui-ux-design/skills/ui-ux-design/references/delight-and-motion.md +65 -0
- package/ui-ux-design/skills/ui-ux-design/references/foundations.md +144 -0
- package/ui-ux-design/skills/ui-ux-design/references/inclusive-ai-imagery.md +57 -0
- package/ui-ux-design/skills/ui-ux-design/references/kole-jain-uiux-concepts.md +102 -0
- package/ui-ux-design/skills/ui-ux-design/references/openai-frontend-skill.md +139 -0
- package/ui-ux-design/skills/ui-ux-design/references/premium-ui.md +63 -0
- package/ui-ux-design/skills/ui-ux-design/references/research-and-validation.md +78 -0
- package/ui-ux-design/skills/ui-ux-design/references/sam-crawford-premium-websites.md +93 -0
- package/ui-ux-design/skills/ui-ux-design/references/self-made-web-designer-core-skills.md +123 -0
- package/ui-ux-design/skills/ui-ux-design/references/visual-storytelling.md +57 -0
- package/ui-ux-design/skills/vercel-web-design-guidelines/SKILL.md +39 -0
- package/ui-ux-design/skills/web-compliance/SKILL.md +129 -0
- package/ui-ux-design/skills/web-compliance/references/audit-evidence.md +59 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gstack-design
|
|
3
|
+
version: 0.1.0
|
|
4
|
+
last_updated: 2026-06-05
|
|
5
|
+
description: Use when a user manually invokes gstack-inspired design workflows for product design consultation, visual variants, frontend implementation handoff, or UI design review.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Skill: gstack Design
|
|
9
|
+
|
|
10
|
+
Manual/slash-invoked domain skill adapted from gstack design workflows. This skill is not wired into the default pipeline.
|
|
11
|
+
|
|
12
|
+
## Execution
|
|
13
|
+
|
|
14
|
+
- Determine the user's requested design mode from the prompt or slash command arguments.
|
|
15
|
+
- Select exactly one mode per invocation: `consultation`, `shotgun`, `html`, or `review`.
|
|
16
|
+
- Read exactly one matching reference file from `references/` before taking action.
|
|
17
|
+
- Do not load all references, chain modes, or silently expand into pipeline agent dispatch.
|
|
18
|
+
- Preserve existing AI Dev Shop design rules, accessibility expectations, and project constraints.
|
|
19
|
+
- If the user request spans multiple modes, ask which mode to run first.
|
|
20
|
+
|
|
21
|
+
## Guardrails
|
|
22
|
+
|
|
23
|
+
- Do not assume upstream-specific runtime services, generated boards, analytics hooks, or external binaries exist.
|
|
24
|
+
- Do not implement code during `consultation`, `shotgun`, or `review` unless the user explicitly changes scope.
|
|
25
|
+
- In `html` mode, treat "html" as a legacy shorthand for frontend implementation/prototype handoff; do not force raw HTML when the project has a framework.
|
|
26
|
+
- Do not replace existing brand or design systems without explicit user approval.
|
|
27
|
+
- Do not claim browser or screenshot evidence unless it was actually captured in the current host.
|
|
28
|
+
|
|
29
|
+
## Output
|
|
30
|
+
|
|
31
|
+
Return a concise design artifact for the selected mode:
|
|
32
|
+
|
|
33
|
+
- selected mode and reference used
|
|
34
|
+
- inputs inspected
|
|
35
|
+
- recommendation or findings
|
|
36
|
+
- open questions or approval gates
|
|
37
|
+
- next action, if any
|
|
38
|
+
|
|
39
|
+
## Reference
|
|
40
|
+
|
|
41
|
+
Read exactly one reference based on intent:
|
|
42
|
+
|
|
43
|
+
- `references/consultation.md` - new product direction, design system, brand/aesthetic proposal, or design strategy.
|
|
44
|
+
- `references/shotgun.md` - multiple visual directions, option exploration, comparison, or taste feedback.
|
|
45
|
+
- `references/html.md` - approved design to frontend implementation guidance or static prototype.
|
|
46
|
+
- `references/review.md` - audit existing UI for hierarchy, spacing, accessibility, consistency, or AI slop.
|
|
47
|
+
- `references/upstream-notes.md` - provenance only; do not load for normal execution unless reviewing upstream drift.
|
|
48
|
+
|
|
49
|
+
## Failure Path
|
|
50
|
+
|
|
51
|
+
- If no mode is clear, ask for one choice.
|
|
52
|
+
- If required product context is missing, produce a bounded assumption list rather than inventing facts.
|
|
53
|
+
- If a requested action conflicts with AI Dev Shop frontend/design guardrails, state the conflict and ask for approval before proceeding.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Design Consultation
|
|
2
|
+
|
|
3
|
+
## When
|
|
4
|
+
|
|
5
|
+
Use for a new product surface, design direction, brand/aesthetic pass, or design-system proposal before implementation.
|
|
6
|
+
|
|
7
|
+
## Workflow
|
|
8
|
+
|
|
9
|
+
1. Gather product context: target users, core workflow, business goal, platform, existing brand, and UI constraints.
|
|
10
|
+
2. Inspect existing UI or design artifacts when available before proposing a new direction.
|
|
11
|
+
3. Identify the design problem in plain terms: what must be easier, clearer, faster, more trusted, or more memorable.
|
|
12
|
+
4. Optionally research comparable products or patterns when the user asks for market/landscape awareness.
|
|
13
|
+
5. Propose one primary design direction and one credible alternative.
|
|
14
|
+
6. Define foundations only as far as needed: layout principles, typography direction, color role, spacing scale, motion posture, and component tone.
|
|
15
|
+
7. Call out tradeoffs: implementation complexity, accessibility risk, brand risk, and where taste decisions need human input.
|
|
16
|
+
|
|
17
|
+
## Output
|
|
18
|
+
|
|
19
|
+
- Context summary
|
|
20
|
+
- Recommended design direction
|
|
21
|
+
- Alternative direction
|
|
22
|
+
- Foundations and component implications
|
|
23
|
+
- Decisions needed from the user
|
|
24
|
+
- Suggested next mode: `shotgun`, `html`, or `review`
|
|
25
|
+
|
|
26
|
+
## Guardrails
|
|
27
|
+
|
|
28
|
+
- Do not invent user research or brand evidence.
|
|
29
|
+
- Do not prescribe a full redesign when a smaller design repair would solve the problem.
|
|
30
|
+
- Do not pick decorative visual trends over usability, accessibility, or product fit.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Frontend Implementation Handoff
|
|
2
|
+
|
|
3
|
+
## When
|
|
4
|
+
|
|
5
|
+
Use after a design direction is approved and the user wants a frontend implementation plan, static prototype, or production handoff. The `html` mode name is legacy shorthand; it is not a raw HTML-only constraint.
|
|
6
|
+
|
|
7
|
+
## Workflow
|
|
8
|
+
|
|
9
|
+
1. Confirm the approved design source: consultation output, shotgun winner, screenshot, mockup, or user description.
|
|
10
|
+
2. Detect the project frontend stack when a repo is present; prefer the existing framework and design system.
|
|
11
|
+
3. Convert design intent into implementable structure: layout, components, states, tokens, responsive rules, and content hierarchy.
|
|
12
|
+
4. If producing static HTML/CSS, keep it semantic, responsive, accessible, and clearly labeled as a prototype.
|
|
13
|
+
5. If producing framework guidance, specify components, props, state handling, CSS strategy, and verification steps.
|
|
14
|
+
6. Verify the result against the approved direction using browser evidence when browser automation is available.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
- Implementation target and assumptions
|
|
19
|
+
- Component/layout plan
|
|
20
|
+
- Token and style notes
|
|
21
|
+
- Accessibility and responsive checks
|
|
22
|
+
- Prototype or implementation handoff
|
|
23
|
+
- Verification checklist
|
|
24
|
+
|
|
25
|
+
## Guardrails
|
|
26
|
+
|
|
27
|
+
- Do not assume upstream-specific prototype tooling or generated design-board services exist.
|
|
28
|
+
- Do not ignore the host app's current framework or design system.
|
|
29
|
+
- Do not skip final visual verification when browser automation is available.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Design Review
|
|
2
|
+
|
|
3
|
+
## When
|
|
4
|
+
|
|
5
|
+
Use to audit an existing UI for design quality, usability, accessibility, visual consistency, or AI-generated slop patterns.
|
|
6
|
+
|
|
7
|
+
## Workflow
|
|
8
|
+
|
|
9
|
+
1. Identify the target screen, flow, or component set.
|
|
10
|
+
2. Inspect available evidence: screenshots, browser state, DOM, component code, design docs, or user reports.
|
|
11
|
+
3. Audit hierarchy, spacing, alignment, typography, color contrast, responsive behavior, component states, loading/empty/error states, and interaction clarity.
|
|
12
|
+
4. Look for common AI slop: generic gradients, meaningless decorative visuals, mismatched radii, low-density cards, vague copy, and inconsistent spacing.
|
|
13
|
+
5. Classify findings as blocker, should-fix, or polish.
|
|
14
|
+
6. Recommend the smallest design change that fixes the issue before proposing a broad redesign.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
- Evidence inspected
|
|
19
|
+
- Findings by severity
|
|
20
|
+
- Specific recommended fixes
|
|
21
|
+
- Accessibility and responsive notes
|
|
22
|
+
- Follow-up mode if needed
|
|
23
|
+
|
|
24
|
+
## Guardrails
|
|
25
|
+
|
|
26
|
+
- Do not claim visual evidence without inspection.
|
|
27
|
+
- Do not rewrite the product's visual direction unless the user asks.
|
|
28
|
+
- Do not bury accessibility blockers under polish comments.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Design Shotgun
|
|
2
|
+
|
|
3
|
+
## When
|
|
4
|
+
|
|
5
|
+
Use when the user wants visual options, competing design directions, or a fast comparison before committing to one direction.
|
|
6
|
+
|
|
7
|
+
## Workflow
|
|
8
|
+
|
|
9
|
+
1. Confirm the target surface and constraints: product, audience, platform, existing UI, and non-negotiable brand or accessibility rules.
|
|
10
|
+
2. Generate 3-6 meaningfully distinct directions. Avoid small variations of the same idea.
|
|
11
|
+
3. For each direction, provide:
|
|
12
|
+
- name
|
|
13
|
+
- core idea
|
|
14
|
+
- visual language
|
|
15
|
+
- interaction posture
|
|
16
|
+
- accessibility and implementation tradeoffs
|
|
17
|
+
4. Compare directions across brand fit, clarity, speed to build, accessibility, novelty, and maintenance cost.
|
|
18
|
+
5. Ask the user for structured preference feedback: keep, reject, combine, or revise.
|
|
19
|
+
6. Capture taste signals as explicit notes so the next mode can reuse them.
|
|
20
|
+
|
|
21
|
+
## Output
|
|
22
|
+
|
|
23
|
+
- Variant list
|
|
24
|
+
- Comparison matrix
|
|
25
|
+
- Recommended short list
|
|
26
|
+
- Preference questions
|
|
27
|
+
- Next step recommendation
|
|
28
|
+
|
|
29
|
+
## Guardrails
|
|
30
|
+
|
|
31
|
+
- Do not auto-select a final direction without user feedback.
|
|
32
|
+
- Do not generate implementation code in this mode.
|
|
33
|
+
- Do not present impossible or inaccessible designs as production-ready.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Upstream Notes
|
|
2
|
+
|
|
3
|
+
## Source
|
|
4
|
+
|
|
5
|
+
- Repo: `https://github.com/garrytan/gstack`
|
|
6
|
+
- Local source: `/Users/la/Desktop/Multi-Agent Swarm Foundation/other-repos-to-learn-from/gstack`
|
|
7
|
+
- Source commit: `cab774cc`
|
|
8
|
+
- Adapted source files: `design-consultation/SKILL.md`, `design-shotgun/SKILL.md`, `design-html/SKILL.md`, `design-review/SKILL.md`
|
|
9
|
+
|
|
10
|
+
## Kept
|
|
11
|
+
|
|
12
|
+
- Product-context-first design consultation
|
|
13
|
+
- Multiple visual directions before commitment
|
|
14
|
+
- Structured comparison and taste feedback
|
|
15
|
+
- Approved-design implementation/prototype handoff
|
|
16
|
+
- UI review for hierarchy, spacing, accessibility, and AI slop
|
|
17
|
+
|
|
18
|
+
## Stripped
|
|
19
|
+
|
|
20
|
+
- Generated shared preambles and Claude-specific AskUserQuestion plumbing
|
|
21
|
+
- Telemetry/config setup, taste databases, and local state scripts
|
|
22
|
+
- gstack design daemon, comparison board binary, and Pretext runtime assumptions
|
|
23
|
+
- Any hardcoded gstack install paths or external service requirements
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Original Source Notes
|
|
2
|
+
|
|
3
|
+
Imported from `Dammyjay93/interface-design`.
|
|
4
|
+
|
|
5
|
+
Source characteristics:
|
|
6
|
+
|
|
7
|
+
- plugin-oriented package for Claude Code
|
|
8
|
+
- active command set under `.claude/commands`
|
|
9
|
+
- source examples and system template under `reference/`
|
|
10
|
+
- markdown-first design workflow centered on craft, memory, and consistency
|
|
11
|
+
|
|
12
|
+
This repo normalizes that package into a single runtime skill with supporting material under `references/`.
|
|
13
|
+
|
|
14
|
+
Source URL:
|
|
15
|
+
|
|
16
|
+
- https://github.com/Dammyjay93/interface-design
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: interface-design
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
last_updated: 2026-03-18
|
|
5
|
+
description: Use when designing interfaces for dashboards, apps, tools, or admin panels where craft, memory, and consistency matter. Not for marketing sites.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Skill: Interface Design
|
|
9
|
+
|
|
10
|
+
Interface design here means deliberate visual systems, not generic UI output. Use this skill when the user wants a project-specific look and repeatable design decisions across sessions.
|
|
11
|
+
|
|
12
|
+
## Scope
|
|
13
|
+
|
|
14
|
+
- Use for product interfaces, internal tools, dashboards, admin panels, and workflow apps.
|
|
15
|
+
- Do not use for marketing sites or copy-first landing pages.
|
|
16
|
+
- Prefer this skill when the user wants a visual system rather than isolated component styling.
|
|
17
|
+
|
|
18
|
+
## Load Strategy
|
|
19
|
+
|
|
20
|
+
Read this file for the runtime contract. Open references only when you need the heavier material:
|
|
21
|
+
|
|
22
|
+
- `references/system-template.md` for the `.interface-design/system.md` shape and token scaffold
|
|
23
|
+
- `references/commands/init.md` for the build-first workflow
|
|
24
|
+
- `references/commands/audit.md` for checking existing code against a system
|
|
25
|
+
- `references/commands/extract.md` for deriving a system from existing code
|
|
26
|
+
- `references/commands/status.md` for reporting the active design system
|
|
27
|
+
- `references/commands/critique.md` for craft-focused review and rebuild guidance
|
|
28
|
+
- `references/examples/system-precision.md` and `references/examples/system-warmth.md` for two concrete directions
|
|
29
|
+
|
|
30
|
+
## Core Contract
|
|
31
|
+
|
|
32
|
+
- Establish or load `.interface-design/system.md` before making repeated UI decisions.
|
|
33
|
+
- Reuse spacing, radius, depth, and typography choices consistently.
|
|
34
|
+
- State the design direction explicitly before building a component or screen.
|
|
35
|
+
- Capture new stable patterns in `.interface-design/system.md` instead of letting them drift across files.
|
|
36
|
+
|
|
37
|
+
## Practical Defaults
|
|
38
|
+
|
|
39
|
+
- Keep the system tangible: direction, foundation, depth, tokens, patterns.
|
|
40
|
+
- Prefer a small number of explicit design choices over a long list of vague principles.
|
|
41
|
+
- When an existing interface already has a recognizable pattern set, preserve it and extend it rather than replacing it wholesale.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# interface-design:audit
|
|
2
|
+
|
|
3
|
+
Check existing interface code against the active design system.
|
|
4
|
+
|
|
5
|
+
## When a System Exists
|
|
6
|
+
|
|
7
|
+
Audit for:
|
|
8
|
+
|
|
9
|
+
- spacing values that are off-grid
|
|
10
|
+
- depth violations such as unsupported shadows or borders
|
|
11
|
+
- colors outside the defined palette
|
|
12
|
+
- pattern drift in buttons, cards, inputs, tables, or surfaces
|
|
13
|
+
|
|
14
|
+
## Report Format
|
|
15
|
+
|
|
16
|
+
```text
|
|
17
|
+
Audit Results: src/components/
|
|
18
|
+
|
|
19
|
+
Violations:
|
|
20
|
+
Button.tsx:12 - Height 38px (pattern: 36px)
|
|
21
|
+
Card.tsx:8 - Shadow used (system: borders-only)
|
|
22
|
+
Input.tsx:20 - Spacing 14px (grid: 4px, nearest: 12px or 16px)
|
|
23
|
+
|
|
24
|
+
Suggestions:
|
|
25
|
+
- Update Button height to match pattern
|
|
26
|
+
- Replace shadow with border
|
|
27
|
+
- Adjust spacing to grid
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## When No System Exists
|
|
31
|
+
|
|
32
|
+
- State that no design system is available yet.
|
|
33
|
+
- Recommend building one by implementing a screen or extracting patterns from existing code.
|
|
34
|
+
|
|
35
|
+
## Implementation Notes
|
|
36
|
+
|
|
37
|
+
- Read the active system file.
|
|
38
|
+
- Read the target files.
|
|
39
|
+
- Compare the code against the active direction, tokens, and patterns.
|
|
40
|
+
- Report violations with the smallest practical fix.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# interface-design:critique
|
|
2
|
+
|
|
3
|
+
Critique a completed interface for craft, then rebuild the parts that defaulted.
|
|
4
|
+
|
|
5
|
+
## Review Pass
|
|
6
|
+
|
|
7
|
+
Look for:
|
|
8
|
+
|
|
9
|
+
- flat or monotone composition
|
|
10
|
+
- weak rhythm or spacing
|
|
11
|
+
- unclear hierarchy
|
|
12
|
+
- generic surfaces or border/shadow choices
|
|
13
|
+
- missing interactive states
|
|
14
|
+
- structure held together with layout hacks
|
|
15
|
+
|
|
16
|
+
## Process
|
|
17
|
+
|
|
18
|
+
1. Review the output as a design lead would.
|
|
19
|
+
2. Identify where the work defaulted instead of deciding.
|
|
20
|
+
3. Rebuild those parts from the decision, not from a patch.
|
|
21
|
+
4. Keep the critique focused on the visible interface.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# interface-design:extract
|
|
2
|
+
|
|
3
|
+
Extract a design system from existing UI code.
|
|
4
|
+
|
|
5
|
+
## What to Look For
|
|
6
|
+
|
|
7
|
+
- repeated spacing values
|
|
8
|
+
- repeated radius values
|
|
9
|
+
- common button sizes and padding
|
|
10
|
+
- repeated card treatment
|
|
11
|
+
- depth strategy, especially borders vs shadows
|
|
12
|
+
|
|
13
|
+
## Output Shape
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
Extracted patterns:
|
|
17
|
+
|
|
18
|
+
Spacing:
|
|
19
|
+
Base: 4px
|
|
20
|
+
Scale: 4, 8, 12, 16, 24, 32
|
|
21
|
+
|
|
22
|
+
Depth: Borders-only
|
|
23
|
+
|
|
24
|
+
Patterns:
|
|
25
|
+
Button: 36px h, 12px 16px pad, 6px radius
|
|
26
|
+
Card: 1px border, 16px pad
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Workflow
|
|
30
|
+
|
|
31
|
+
1. Scan UI files.
|
|
32
|
+
2. Aggregate repeated values and component patterns.
|
|
33
|
+
3. Propose a system that matches the dominant pattern set.
|
|
34
|
+
4. Let the user customize before saving.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# interface-design:init
|
|
2
|
+
|
|
3
|
+
Build UI with a craft-first system instead of ad hoc component choices.
|
|
4
|
+
|
|
5
|
+
## Workflow
|
|
6
|
+
|
|
7
|
+
1. Read `SKILL.md`.
|
|
8
|
+
2. Check whether `.interface-design/system.md` already exists.
|
|
9
|
+
3. If it exists, apply the existing direction and patterns.
|
|
10
|
+
4. If it does not exist, infer a direction from the product context and ask for confirmation before locking it in.
|
|
11
|
+
5. Build the UI using the chosen direction.
|
|
12
|
+
6. Offer to save any stable decisions into `.interface-design/system.md`.
|
|
13
|
+
|
|
14
|
+
## Before Building Each Component
|
|
15
|
+
|
|
16
|
+
State the intent and the technical approach before writing code:
|
|
17
|
+
|
|
18
|
+
- who the human is
|
|
19
|
+
- what they need to accomplish
|
|
20
|
+
- what the screen should feel like
|
|
21
|
+
- palette choice and why it fits
|
|
22
|
+
- depth choice and why it fits
|
|
23
|
+
- surfaces and why they fit
|
|
24
|
+
- typography and why it fits
|
|
25
|
+
- spacing base
|
|
26
|
+
|
|
27
|
+
## Guardrails
|
|
28
|
+
|
|
29
|
+
- Do not default to generic UI if the product has a distinct world or tone.
|
|
30
|
+
- Do not skip the system decision step when repeated UI work is likely.
|
|
31
|
+
- Do not narrate internal process to the user unless they need the design decision explained.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# interface-design:status
|
|
2
|
+
|
|
3
|
+
Show the current design system state.
|
|
4
|
+
|
|
5
|
+
## If a System Exists
|
|
6
|
+
|
|
7
|
+
Display:
|
|
8
|
+
|
|
9
|
+
- direction
|
|
10
|
+
- foundation
|
|
11
|
+
- depth
|
|
12
|
+
- spacing base and scale
|
|
13
|
+
- color token count
|
|
14
|
+
- core component patterns
|
|
15
|
+
- last updated timestamp
|
|
16
|
+
|
|
17
|
+
## If No System Exists
|
|
18
|
+
|
|
19
|
+
State that no design system is present yet and suggest:
|
|
20
|
+
|
|
21
|
+
- build a screen to establish patterns
|
|
22
|
+
- run `interface-design:extract` on existing code
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Design System Example - Precision & Density
|
|
2
|
+
|
|
3
|
+
Use this when the interface is a dense dashboard, admin panel, or technical tool.
|
|
4
|
+
|
|
5
|
+
## Direction
|
|
6
|
+
|
|
7
|
+
**Personality:** Precision & Density
|
|
8
|
+
**Foundation:** Cool
|
|
9
|
+
**Depth:** Borders-only
|
|
10
|
+
|
|
11
|
+
## Tokens
|
|
12
|
+
|
|
13
|
+
- Spacing base: 4px
|
|
14
|
+
- Radius scale: 4px, 6px, 8px
|
|
15
|
+
- Font: system-ui or Geist
|
|
16
|
+
- Scale: 11, 12, 13, 14, 16, 18
|
|
17
|
+
- Weights: 400, 500, 600
|
|
18
|
+
|
|
19
|
+
## Patterns
|
|
20
|
+
|
|
21
|
+
- Button: 32px height, compact padding, 4px radius, border-first
|
|
22
|
+
- Card: faint border, 12px padding, 6px radius, no shadow
|
|
23
|
+
- Table cell: 8px 12px padding, tabular numbers
|
|
24
|
+
|
|
25
|
+
## Decision Bias
|
|
26
|
+
|
|
27
|
+
- Prefer information density over decorative lift.
|
|
28
|
+
- Prefer borders and tonal separation over heavy shadows.
|
|
29
|
+
- Use compact sizing for power-user workflows.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Design System Example - Warmth & Approachability
|
|
2
|
+
|
|
3
|
+
Use this when the interface should feel friendly, collaborative, or consumer-oriented.
|
|
4
|
+
|
|
5
|
+
## Direction
|
|
6
|
+
|
|
7
|
+
**Personality:** Warmth & Approachability
|
|
8
|
+
**Foundation:** Warm
|
|
9
|
+
**Depth:** Subtle shadows
|
|
10
|
+
|
|
11
|
+
## Tokens
|
|
12
|
+
|
|
13
|
+
- Spacing base: 4px
|
|
14
|
+
- Radius scale: 8px, 12px, 16px
|
|
15
|
+
- Font: Inter or another approachable UI face
|
|
16
|
+
- Scale: 13, 14, 15, 16, 18, 20, 24
|
|
17
|
+
- Weights: 400, 500, 600
|
|
18
|
+
|
|
19
|
+
## Patterns
|
|
20
|
+
|
|
21
|
+
- Button: 40px height, comfortable padding, 8px radius
|
|
22
|
+
- Card: soft shadow, 20px padding, rounded corners
|
|
23
|
+
- Input: 44px height, generous padding, visible focus state
|
|
24
|
+
|
|
25
|
+
## Decision Bias
|
|
26
|
+
|
|
27
|
+
- Prefer soft depth and generous whitespace.
|
|
28
|
+
- Prefer readable, inviting surfaces over technical density.
|
|
29
|
+
- Use this when the product benefits from calm and friendliness.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Design System Template
|
|
2
|
+
|
|
3
|
+
Use this as the starting shape for `.interface-design/system.md`.
|
|
4
|
+
|
|
5
|
+
## Direction
|
|
6
|
+
|
|
7
|
+
**Personality:** [Precision & Density | Warmth & Approachability | Sophistication & Trust | Boldness & Clarity | Utility & Function | Data & Analysis]
|
|
8
|
+
|
|
9
|
+
**Foundation:** [warm | cool | neutral | tinted]
|
|
10
|
+
|
|
11
|
+
**Depth:** [borders-only | subtle-shadows | layered-shadows]
|
|
12
|
+
|
|
13
|
+
## Tokens
|
|
14
|
+
|
|
15
|
+
### Spacing
|
|
16
|
+
Base: [4px | 8px]
|
|
17
|
+
Scale: [4, 8, 12, 16, 24, 32, 64]
|
|
18
|
+
|
|
19
|
+
### Colors
|
|
20
|
+
```css
|
|
21
|
+
--foreground: [slate-900]
|
|
22
|
+
--secondary: [slate-600]
|
|
23
|
+
--muted: [slate-400]
|
|
24
|
+
--faint: [slate-200]
|
|
25
|
+
--accent: [blue-600]
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Radius
|
|
29
|
+
Scale: [4px, 6px, 8px] (sharp) or [8px, 12px, 16px] (soft)
|
|
30
|
+
|
|
31
|
+
### Typography
|
|
32
|
+
Font: [system | Inter | Geist]
|
|
33
|
+
Scale: 12, 13, 14 (base), 16, 18, 24, 32
|
|
34
|
+
Weights: 400, 500, 600
|
|
35
|
+
|
|
36
|
+
## Patterns
|
|
37
|
+
|
|
38
|
+
### Button Primary
|
|
39
|
+
- Height: 36px
|
|
40
|
+
- Padding: 12px 16px
|
|
41
|
+
- Radius: 6px
|
|
42
|
+
- Font: 14px, 500 weight
|
|
43
|
+
- Usage: primary actions
|
|
44
|
+
|
|
45
|
+
### Card Default
|
|
46
|
+
- Border: 0.5px solid (faint)
|
|
47
|
+
- Padding: 16px
|
|
48
|
+
- Radius: 8px
|
|
49
|
+
- Background: white
|
|
50
|
+
- Usage: content containers
|
|
51
|
+
|
|
52
|
+
## Decisions
|
|
53
|
+
|
|
54
|
+
| Decision | Rationale | Date |
|
|
55
|
+
|---|---|---|
|
|
56
|
+
| Borders-only depth | Dashboard tool, users want density. Shadows add visual weight without information value. | YYYY-MM-DD |
|
|
57
|
+
| 4px spacing base | Tight enough for data tables, divisible by common UI sizes | YYYY-MM-DD |
|