본문으로 건너뛰기
cccskills
무료GitHub에 공개

kta-design-spec

Per-screen design spec generator for AI design tools (Stitch / Figma AI / Claude artifacts). Consumes per-feature PRDs from kta-prd-pipeline. Emits tool-agnostic markdown specs. Triggers — design spec, AI design prompt, screen mockup brief, Figma AI input, Stitch prompt, design system tokens, post-PRD design phase, generate design specs, design brief, mockup spec. DOES NOT generate Compose code, Kotlin code, or @Preview stubs.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Figma
설치 방법 보기

포함된 파일(5)

  • SKILL.md7.4 KB
  • references/phase-1-style-foundation.md4.6 KB
  • references/phase-2-screen-spec.md6.7 KB
  • references/screen-spec-template.md5.1 KB
  • scripts/bundle_design_specs.py4.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Design Spec Pipeline (Per-Screen)

Three phases — style-foundation (once) → per-screen spec (loop) → bundle into single upload file. Consumes plans/{slug}/prd/*.md, emits plans/{slug}/design/ with per-screen specs plus one consolidated design-bundle.md ready to upload to any Design AI Tool.

When to Use

  • After running kta-prd-pipeline — per-feature PRDs with screen lists exist
  • "Generate design specs for my AI design tool"
  • "Write Stitch / Figma AI / Claude design prompts for these screens"
  • "I need design briefs to feed into a text-to-UI tool"
  • Re-running per-screen to refresh after PRD changes

CRITICAL CONSTRAINTS

  • SKILL EMITS DESIGN SPECS ONLY — NEVER GENERATE COMPOSE CODE, KOTLIN, OR @PREVIEW STUBS
  • COMPONENT-STATES LIST IS MANDATORY — SKILL REFUSES INCOMPLETE SPEC
  • REAL COPY ONLY — NO LOREM IPSUM

These rules are absolute. Every reference file reinforces them. If the LLM is tempted to produce Kotlin / @Composable / @Preview, STOP and re-read this section.

How the pipeline works

The pipeline pre-fills sensible defaults (component-state defaults, copy options) and walks the student through each screen step by step. There are no modes, no levels, no toggles — pre-fill, the student picks from options, move forward.

Pre-flight Validation (GATE — runs FIRST, before Phase 1)

Before any phase runs, validate the input. If validation fails, STOP and return — do NOT proceed to Phase 1.

Run these checks in order, in plans/{slug}/:

  1. PRD directory exists — plans/{slug}/prd/ is a directory.
  2. At least one feature PRD file — at least one prd/{NN}-{feature-slug}.md exists (NN = 2-digit prefix).
  3. prd/INDEX.md exists — produced by kta-prd-pipeline Phase 3.
  4. Every feature PRD has a ## Screens section with ≥1 screen named in PascalCase.
  5. No empty PRD files — each feature PRD is >200 chars (sanity check, not a TBD-only stub).

If any check fails, STOP and emit (no further phases run):

[kta-design-spec] Cannot proceed — input not qualified.

Failed checks:
- {check that failed} — {what was found vs expected}
- ...

Required input shape:
  plans/{slug}/prd/
    INDEX.md
    01-{feature}.md   (with `## Screens` section, screens in PascalCase)
    02-{feature}.md
    ...

Fix path:
  → Run `kta-prd-pipeline` first to generate the PRD set.
  → Or check the slug — passed dir must point to a plans/{slug}/ root.

This skill emits no design specs until input is qualified.

Then return. Do NOT prompt the user to "fix and continue inline" — the upstream skill (kta-prd-pipeline) is the right place to repair PRD shape. The student can re-invoke kta-design-spec after.

Workflow

  1. Phase 1 — Style Foundation (once per app) — read references/phase-1-style-foundation.md. Capture mood/voice, color tokens (or "use Material 3 default"), typography, spacing/radii/elevation, references (3 inspirations + 1 anti), motion intent, a11y floor. Save plans/{slug}/design/style-foundation.md. Phase 2 GATES on this file existing.
  2. Phase 2 — Per-Screen Spec — read references/phase-2-screen-spec.md. Loop screens across all PRDs. Emit one spec per screen at plans/{slug}/design/{NN-feature-slug}/{NN-screen-slug}.md. Component-states list MANDATORY. Validate before emit.
  3. Phase 3 — Bundle (MANDATORY) — after all per-screen specs are written, run scripts/bundle_design_specs.py to concatenate style-foundation.md + INDEX.md + every per-screen spec into a single plans/{slug}/design/design-bundle.md. This single file is the canonical output the student uploads to Stitch / Claude / Figma AI. See "Bundle Step" section below.

There is no per-tool reformatting phase. Modern Design AI tools accept generic markdown; the bundle is tool-agnostic by design. If a specific tool ever chokes on bundle size, paste a single feature folder's screens instead — the per-screen files are still on disk for that.

Bundle Step (Phase 3)

Run after Phase 2 completes — non-optional unless the student explicitly opts out.

Command (use the project venv Python; fallback to python3 if venv missing):

~/.claude/skills/.venv/bin/python3 .claude/skills/kta-design-spec/scripts/bundle_design_specs.py plans/{slug}/design/

The script produces plans/{slug}/design/design-bundle.md containing, in order:

  1. Bundle header (title + generation timestamp + upload instructions)
  2. style-foundation.md (full content)
  3. INDEX.md (full content if present)
  4. Each feature directory in NN order, each per-screen spec inside in NN order, with separator comments between sections

After the script runs, surface the absolute output path back to the student in one line, then call AskUserQuestion:

header: "Next Step"
question: "Bundle written to {abs path}. What next?"
multiSelect: false
options:
  - label: "Open in tool", description: "Print upload instructions for Stitch/Claude/Figma AI"
  - label: "Exit",         description: "Stop here — I'll upload the bundle myself"

If the script fails (missing style-foundation.md or no feature dirs), surface stderr and DO NOT proceed to the handoff prompt. Re-run Phase 2 first.

Inputs

  • plans/{slug}/prd/*.md (required) — feature PRDs with screens
  • plans/{slug}/idea-brief.md (recommended) — for value-prop context

Outputs

  • plans/{slug}/design/style-foundation.md — once per app
  • plans/{slug}/design/INDEX.md — feature → screens → spec file map
  • plans/{slug}/design/{NN-feature-slug}/{NN-screen-slug}.md — one per screen
  • plans/{slug}/design/design-bundle.md — single concatenated file ready to upload to Stitch / Claude / Figma AI (produced by scripts/bundle_design_specs.py in Phase 3)

Integration

  • Previous stage — kta-prd-pipeline (provides per-feature PRDs)
  • Next stage — paste spec into AI design tool (Stitch / Figma AI / Claude artifacts) to generate mockups. NOT into a code generator.

Constraints

  • Pre-flight gate — input MUST pass all pre-flight checks (PRD dir, ≥1 feature PRD, INDEX.md, screens section in each PRD, non-stub files). If not qualified, skill returns immediately with a fix path; no design specs emitted.
  • Design spec only — no Compose / Kotlin / @Preview / DSL snippets. Reinforced in every reference file.
  • Component-states list mandatory — every component must list 6 states (default / pressed / disabled / loading / empty / error). Skill refuses incomplete spec.
  • Real copy — every visible string spelled out; no lorem ipsum, no placeholders like {title}.
  • Style-foundation gate — Phase 2 refuses to run if style-foundation.md missing.
  • Tool-agnostic — Phase 2 output is pure markdown. Phase 3 bundle is the canonical upload artifact for any AI design tool. No per-tool reformatting phase.
  • No project-stack-specific tokens leaking in — generic Material 3 defaults are fine; "DRE-KT" / "Compose" mentions forbidden.
  • Skill emits markdown only.
  • Default working directory — plans/{slug}/.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Senior Kotlin specialist code review — framework-agnostic. Use whenever the user asks to review, audit, critique, or get feedback on Kotlin code, a file, a class, a function, a module, a diff, a branch, a commit, or a pull request. Judges Kotlin language idioms, logic correctness, architecture and layering, concurrency (coroutines, Flow, structured concurrency, cancellation, race conditions), null safety, exception safety, testability, performance, and security. Detects force-unwraps, unchecked casts, GlobalScope, leaked mutability, broken structured concurrency, hidden side effects, weak abstractions, untestable seams, allocation hot spots, weak crypto, input-validation gaps, and PII logging. Outputs prioritized findings with file:line anchors and minimal-diff fixes. No assumptions about DI framework, UI framework, or build system.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dantech0xff/dreams62026년 9월 21일 업데이트

Create Kotlin Compose design tokens from one of three supported sources — Google Stitch (MCP), Figma (MCP or JSON), or Codex Design (kta-design-spec output, Codex HTML/markdown artifacts). Three-layer architecture (Primitive/Semantic/Component) with code generation. Use when user asks to "generate design tokens", "create theme from Figma/Stitch/Codex design", "build Compose tokens from design spec", or "convert design source to tokens". Refuses any other input source and asks user for correct seed data.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dantech0xff/dreams62026년 9월 21일 업데이트

Create Kotlin Compose design tokens from one of three supported sources — Google Stitch (MCP), Figma (MCP or JSON), or Claude Design (kta-design-spec output, Claude HTML/markdown artifacts). Three-layer architecture (Primitive/Semantic/Component) with code generation. Use when user asks to "generate design tokens", "create theme from Figma/Stitch/Claude design", "build Compose tokens from design spec", or "convert design source to tokens". Refuses any other input source and asks user for correct seed data.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dantech0xff/dreams62026년 9월 21일 업데이트

Optimize a single Jetpack Compose @Composable function. Use when the user wants to improve, polish, animate, or refactor ONE Composable — keywords like "optimize this composable", "make this smoother", "add animation to this", "split this composable", "fix recomposition", "this composable is laggy", "polish this UI", or when user pastes/points to a single @Composable function. Analyzes the target for recomposition issues, missing animations, size/concern splits, and stability problems, then iterates with the user via AskUserQuestion to pick which optimizations to apply, then delegates implementation to the kta-compose-developer agent and summarizes changes. Input MUST be exactly one Composable (file path + function name, or function name alone).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dantech0xff/dreams62026년 9월 21일 업데이트

Per-screen design spec generator for AI design tools (Stitch / Figma AI / Codex artifacts). Consumes per-feature PRDs from kta-prd-pipeline. Emits tool-agnostic markdown specs. Triggers — design spec, AI design prompt, screen mockup brief, Figma AI input, Stitch prompt, design system tokens, post-PRD design phase, generate design specs, design brief, mockup spec. DOES NOT generate Compose code, Kotlin code, or @Preview stubs.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dantech0xff/dreams62026년 9월 21일 업데이트

End-to-end Android indie idea workflow — feature-build phase only (no monetization). Phased — discover (if no idea) → generate 2 candidates → refine scope (offline/online, sharing, MVP vs full, core-value features) → risk/reward/tradeoff analysis when scoping down → emit idea brief. Use for greenfield app concepts, new feature ideation, idea discovery, or pre-design discovery before writing a design document. Triggers — new app idea, feature concept, indie dev brainstorm, validate idea, refine idea, what should I build, find an app idea, idea pipeline, I have no idea, help me find an app idea, scope down, MVP scoping, core value features.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dantech0xff/dreams62026년 9월 21일 업데이트

dantech0xff의 스킬 모두 보기

이 스킬의 문제 신고