/platty-mcp:design-pack-editfrom platty-mcp
Modifies the Heroines design knowledge pack by editing upstream seeds (tokens, components, screen roles, recipes, principles, usability checks, reference screens), then rebuilds and verifies a new pack version.
Ships in platty-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
엔진이 행마다 해시를 upstream-manifest.json과 대조한다(validatePackProvenance).
손으로 고치면 바뀐 팩이 나오는 게 아니라 로드되지 않는 팩이 나온다.
그리고 팩이 읽는 12개 소스 파일도 대부분 고칠 수 없다 — 그것들도 빌드 산출물이다. 사람이 고치는 것은 그 위의 씨앗이다.
씨앗 수정 → 상류 재생성 → build-pack.py → 새 버전 팩 → 사람 승인 → 새 케이스가 채택
python3 scripts/pack_edit.py doctor
이 머신에서 무엇이 가능하고 무엇이 막혔는지 말한다. 막힌 것을 우회하지 않는다.
| 검사 | 막히면 |
|---|---|
upstream_present | 상류 체크아웃이 없다 → --source-root 또는 BA_DESIGN_PIPELINE_SOURCE_ROOT |
sibling_repos | heroines-design-system·heroines-webview가 없다 → 토큰과 컴포넌트 계약은 불가능 |
upstream_matches_pack | 상류가 앞서 있다 → 아직 반영 안 된 변경이 있다 |
recipe_roles_exist | 발화 못 하는 레시피가 있다 → 빌드 자체가 거부된다. 먼저 고친다 |
pack_approved | 미판정이 남았다 → 그 위의 도출은 미승인 합성이다 |
python3 scripts/pack_edit.py route # 전체 표
python3 scripts/pack_edit.py route role # 하나만
| 대상 | 씨앗 | 재생성 |
|---|---|---|
token | HDS 저장소 core.tokens.json, user.semantic.json | scripts/tokens.py |
component-contract | HDS/WebView TypeScript 소스 | extract-ui.mjs, component-source.mjs |
component-promote | tools/design-pipeline/component-knowledge.json | 없음 |
role | expansion/type-guidance.json | expansion/build-rulebook.py |
recipe | inputs/recipe-decisions.json | scripts/recipes.py |
principle | design/required/principles.json | 없음 — 정본 파일 |
usability | design/required/usability.json | 없음 — 정본 파일 |
reference | inputs/figma-*.json | scripts/inventory.py, archive-expansion.py |
route가 각 대상의 규칙도 같이 준다. 규칙을 읽지 않고 씨앗을 고치면 빌드가 거부하거나,
더 나쁘게는 통과하고 틀린 팩이 나온다.
계약이 팩에 있다는 것과 와이어프레임이 쓸 수 있다는 것은 다르다.
팩에는 컴포넌트 계약이 수백 개 있지만 엔진이 쓸 수 있는 건 componentKnowledge에 있는 것뿐이다.
엔진이 supportedStates를 함께 요구하는데, 그것은 파서가 만들어내지 못하는 사람의 판단이다.
python3 scripts/pack_edit.py promote-component \
--component Radio --role checkbox \
--states "visible,checked,disabled,focus,value,invalid" \
--source-path components/props.json \
--origin upstream-derived-contract \
--interface-file "src/libs/hds/base/controls/radio/Radio.tsx" \
--interface-name RadioProps --kind hds-interface \
--limitation "Closed RadioProps are validated; label ReactNode and onChange callback are not." \
--dry-run
반드시 --dry-run으로 먼저 본다. 검사하는 것:
--states는 엔진의 10개 상태 축 안에만 있어야 하고 visible을 포함해야 한다.
엔진이 단정할 수 없는 축은 지원 상태가 아니다.--interface-*를 주면 팩의 componentProps에 실재해야 한다. 없으면 엔진이 계약을 못 찾는다.--origin upstream-derived-contract는 닫힌 인터페이스를 가리켜야 한다.
인터페이스가 없으면 그것은 ba-authored-adapter다. 라벨을 섞으면 팩 로드가 거부된다.--source-path는 팩이 빌드하는 12개 소스 중 하나여야 한다. 아니면 revision을 기록할 수 없다.--limitation은 이 행이 약속하지 않는 것을 적는다. 빈칸으로 두지 않는다.승격은 component-knowledge.json을 바꿀 뿐이고, 새 팩을 빌드해야 반영된다.
python3 scripts/pack_edit.py build --version heroines/2026-11-20 --regenerate role,recipe
hash mismatch로 깨지고 승인이 stale이 된다. --overwrite는 그래서 있고,
사용자가 그것을 명시적으로 요구할 때만 쓴다.--regenerate에 고친 대상만 적는다. 적지 않은 것은 상류의 현재 산출물을 그대로 쓴다.빌드는 끝이 아니다. 순서대로:
python3 scripts/pack_approval.py. 팩 버전마다 한 번, 팩 해시에 묶인다.
승인 없이는 그 위의 3단계 도출 전체가 미승인 합성 위에 놓인다.python3 scripts/pack_review.py <새 버전>, 디자이너가 눈으로 본다.python3 scripts/pack_edit.py diff <이전> <새 버전>.진행 중인 케이스는 knowledge_binding에 팩 버전이 박혀 있어 옛 팩으로 계속 돈다.
freeze된 run은 당시 팩 기준의 증거로 영원히 남는다 — 소급 수정하지 않는다.
새 팩을 쓰려면 3단계부터 다시 도출한다. 3단계가 화면·상태·조판을 팩에서 가져오므로, 팩이 바뀌면 그 도출 자체가 무효다.
pack.json·upstream-manifest.json 직접 편집heroines-*) 쓰기 — 읽기 전용이다status를 approved로 적기 — 승인은 pack_approval.py가 기록한다What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub paradigmshift-labs/platty --plugin platty-mcp24 skills in this plugin
/heroines-low-fi-wireframesUse when turning a Heroines FSD or confirmed screen behavior into a low fidelity wireframe, reviewing its visual hierarchy, or adding interactions to that wireframe./ba-interviewOrchestrate a BA interview through JTBD, PRD, user experience, storyboard and Notion delivery, screen behavior, and verified wireframes. Use to start or resume an interview; it routes to exactly one current stage./design-pack-reviewRender the Heroines design knowledge pack — tokens, components, screen roles, recipe rules, principles, reference screens — as one HTML page a designer can open and judge. Use when someone asks to see, review, or check what the design system currently contains.Other plugins' skills for the same job