frontend-spec
為有 UI 的規格定前端真相:路由表、四態頁面與 style tokens 寫進前端合訂本(docs/05_frontend_spec.md,章節標能力)、.pen mockup 常駐 docs/mockup/ — 都在 feature branch 上改,與程式碼同 PR 合併。/to-spec…
Skill by Luca0x5755
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/luca0x5755-frontend-spec
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/frontend-spec
What's inside
- Skill name
frontend-spec- Description
- 為有 UI 的規格定前端真相:路由表、四態頁面與 style tokens 寫進前端合訂本(docs/05_frontend_spec.md,章節標能力)、.pen mockup 常駐 docs/mockup/ — 都在 feature branch 上改,與程式碼同 PR 合併。/to-spec 之後、/to-tickets 之前跑,可選。
- License
- MIT
- Instructions
- 72 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Frontend Spec Turn a spec's UI surface into frontend truth plus Pencil mockups. Runs after `/to-spec` (and `/to-architecture` if it ran), before `/to-tickets` — tickets that can cite `dashboard.pen`'s Empty frame are verifiable; "make a nice dashboard" is not. **Optional step.** No UI in the spec → skip entirely. **Not `/prototype`.** Prototype answers "does this interaction work" with throwaway code that gets deleted. This skill produces truth: the frontend volume's page sections and `.pen` files that tickets build against. Never let a prototype graduate into a mockup — redraw the answer here. ## Truth layer, branch as staging Edits land in the **truth layer**, on the feature branch, merging in the same PR as the code — `main` never describes UI it doesn't have: - `docs/05_frontend_spec.md` — the consolidated frontend volume: routes table, page sections, and a style-tokens section (chosen archetype, colors, type, density — set once via Pencil variables, shared by every screen; extend it, never fork per-feature tokens or restyle per page). Specs stay consolidated — never split pages into per-capability spec files. Touch only the sections this spec changes. - `docs/mockup/<page>.pen` — durable layout truth: updated when the page changes, never redrawn from scratch per feature. **Cross-mapping is mechanical.** Every page section this skill writes or touches in `05` names its capabilities (`### 排場頁(能力:排場)`); the owning `docs/capabilities/<name>.md` lists them back. A section naming no capability is an orphan and goes red. No truth layer yet? An inherited legacy project goes through `/bootstrap-truth` first; a young project just starts its `05` and first capability file here. ## Shape In `docs/05_frontend_spec.md`: ```markdown ## Routes | Page | Path | Auth | 能力 | One-line purpose | | --- | --- | --- | --- | --- | ## Pages ### <page>(能力:<capability>)→ `docs/mockup/<page>.pen` - **Story**: as <role>, I want <action>, so that <goal>. - **Dominant region**: the one question this page answers, and its one primary action. - **States**: Loading / Empty / Error / Success — each is a frame in the .pen file. A page missing a state frame is not done. ``` ## Pencil workflow — per .pen file, in order `.pen` files are encrypted: only `pencil` MCP tools may touch them — never Read/Grep/Edit. 1. `get_app_state` (all four include flags) — no schema, no other Pencil calls. 2. `get_guidelines` — pick the guide matching the product type and the archetype `05`'s style-tokens section records (choose one there first if the section is new); tokens live as shared Pencil variables. 3. Design — one screen per file, filename from the route table. Reusable components live in `components.pen`; other screens reference them, never redraw. 4. `get_screenshot` — look at the screenshot before calling a screen done. Desktop and mobile frames both; hierarchy must survive every breakpoint. ## Rules - **The .pen file is the source of truth for layout.** `05`'s page sections carry briefs and acceptance state lists; pixels live in Pencil. Never hand-write HTML/CSS as a stand-in for a mockup. - **Write the post-merge truth.** Routes and pages state what is true once this PR merges — no "we will", no history of what the page used to be. - **All four states, every page.** Silent failure is not a design. An Empty state nobody drew becomes an Error state nobody handled. - **No standards sections.** Coding conventions, browser support, API-client choices belong to the target repo's CLAUDE.md — not here. - **Do not invent flows.** A page or interaction not settled in the spec goes back to `/grill-with-docs`, or through a `/prototype` detour if it needs a runnable answer. - **Show the draft before writing.** Document sections first, then mockups; let the user redirect before pixels get expensive. ## Finish **Commit — mandatory, commit only.** Follow the `/git-commit` rules for the files this skill wrote; read `git-commit/SKILL.md` first, in the parent of this skill's base directory. Nothing written → no commit. Report the files edited and the `.pen` files produced, each verified by screenshot. Say the next step: `/to-tickets` — tickets cite pages and state frames by name — or `/implement` when the build is one session of work; the truth-layer edits and mockups ride the feature branch and merge with the code. ## Rationalization table | Excuse | Reality | | --- | --- | | "The prototype already looks right, I'll reuse its code as the mockup" | Prototype code carries every shortcut it was born with. Keep the answer, redraw the design. | | "Success state is obvious, I'll skip Empty/Error frames" | The undrawn states are where users actually live. Four frames or the page is not specced. | | "I'll restyle this one page, it's special" | One shared token set in `05`'s style-tokens section. A special page today is an inconsistent app in a month. | | "Faster to edit the docs on main directly" | Then main describes UI that doesn't exist. The branch is the staging area; the PR is the atomic unit of truth. | | "Screenshot looks fine in my head, no need to render it" | Layouts overlap in ways schemas don't show. Look at the screenshot before you call it done. |
From Luca0x5755/luca-skills, MIT.
More from Luca0x5755/luca-skills
- 0.601score
code-review
Luca0x5755
沿三條軸審查自某個定點以來的 diff — Standards(有沒有遵守這個 repo 的規範?)、Spec(有沒有做到票要求的事?)與 Reuse(倉庫裡有沒有現成的?)。當使用者要審查一個分支、一個 PR 或進行中的工作時使用,也對應 "code review"、"review this…
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
consolidate-docs
Luca0x5755
對專案內凌散的規格文件動一次 brownfield 手術:全量盤點→提案報告(目標樹、映射表、衝突表)→核准後按 capability 分批遷移成 docs/specs/ 真相層,原檔進 archive 不刪。日常維護走管線,不重跑這把刀。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
setup-skills
Luca0x5755
為這個 repo 設定工程技能所需的組態 — 議題追蹤器、領域文件位置、git 護欄 hook,以及本機議題用的 CI 檢查。初始化跑一次;重跑可換追蹤器或補裝、更新護欄。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
grilling
Luca0x5755
就一個計畫、決策或想法窮追不捨地拷問使用者。當使用者想壓力測試自己的思路、想被質疑一個設計,或說出 "grill"、「拷問我」、「戳破我」這類觸發語時使用。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
browser-evidence
Luca0x5755
把既定案例清單跑成可交付的證據 — 截圖或原始回應、網路紀錄與被測版本 manifest。瀏覽器是預設通道,無 UI 案例走 api/cli,卡人一步由操作者接手;落在 docs/uat/,走 evidence 分支 PR 合回基底分支。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
diagnosing-bugs
Luca0x5755
對付硬 bug、間歇性失敗與效能回歸的紀律迴圈 — 重現、最小化、立假說、下探針、修好、補回歸測試。當東西壞了而原因不明顯時使用,也對應 "flaky"、"regression"、「時好時壞」、「找不到原因」等說法。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
domain-modeling
Luca0x5755
建立並磨利一個專案的領域語言 — 挑戰模糊術語、拆開超載的詞、把難以回頭的決策寫成 ADR。當討論程式庫術語、直接撰寫或編輯 GLOSSARY.md 或 ADR、命名含糊、或同一個詞在不同地方意思不同時使用。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
implement-spec
Luca0x5755
依規格與票的阻塞圖,在隔離工作樹平行建置整份規格並整合至單一分支;支援已設定的追蹤器,可由操作者介入,PR 視需要建立。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
prototype
Luca0x5755
做一個用完即丟的原型來回答一個設計問題 — 狀態與邏輯用可執行的程式,UI 則做幾個可切換的變體。當一個設計問題在紙上定不下來時使用,也對應 "prototype"、"spike"、「先做個雛形看看」等說法。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
tdd
Luca0x5755
測試驅動開發,紅—綠—重構。當要以測試先行的方式建置功能或修 bug、當使用者提到 "TDD"、"red-green"、「紅綠」,或要求寫出能撐過重構的測試時使用。
SkillAFreshness: A★ 3Claude Code +9 - 0.595score
git-release
Luca0x5755
先在終端機預覽繁體中文發布摘要,使用者確認後才更新版本、commit、打 tag、推送並發佈 release 頁面。
SkillAFreshness: A★ 3Claude Code +9 - 0.595score
improve-codebase-architecture
Luca0x5755
勘查程式庫的深化機會,排序後呈上,再對你挑中的那一個進行拷問。
SkillAFreshness: A★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Oct 2, 2026 (27 days ago)
- Last release
- Oct 8, 2026 (21 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Luca0x5755/luca-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Luca0x5755
- 0.601score
code-review
Luca0x5755
沿三條軸審查自某個定點以來的 diff — Standards(有沒有遵守這個 repo 的規範?)、Spec(有沒有做到票要求的事?)與 Reuse(倉庫裡有沒有現成的?)。當使用者要審查一個分支、一個 PR 或進行中的工作時使用,也對應 "code review"、"review this…
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
consolidate-docs
Luca0x5755
對專案內凌散的規格文件動一次 brownfield 手術:全量盤點→提案報告(目標樹、映射表、衝突表)→核准後按 capability 分批遷移成 docs/specs/ 真相層,原檔進 archive 不刪。日常維護走管線,不重跑這把刀。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
browser-evidence
Luca0x5755
把既定案例清單跑成可交付的證據 — 截圖或原始回應、網路紀錄與被測版本 manifest。瀏覽器是預設通道,無 UI 案例走 api/cli,卡人一步由操作者接手;落在 docs/uat/,走 evidence 分支 PR 合回基底分支。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
setup-skills
Luca0x5755
為這個 repo 設定工程技能所需的組態 — 議題追蹤器、領域文件位置、git 護欄 hook,以及本機議題用的 CI 檢查。初始化跑一次;重跑可換追蹤器或補裝、更新護欄。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
diagnosing-bugs
Luca0x5755
對付硬 bug、間歇性失敗與效能回歸的紀律迴圈 — 重現、最小化、立假說、下探針、修好、補回歸測試。當東西壞了而原因不明顯時使用,也對應 "flaky"、"regression"、「時好時壞」、「找不到原因」等說法。
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
domain-modeling
Luca0x5755
建立並磨利一個專案的領域語言 — 挑戰模糊術語、拆開超載的詞、把難以回頭的決策寫成 ADR。當討論程式庫術語、直接撰寫或編輯 GLOSSARY.md 或 ADR、命名含糊、或同一個詞在不同地方意思不同時使用。
SkillAFreshness: A★ 3Claude Code +9
Cite this page
frontend-spec skill. Agent Mart. https://agentmart.dev/skills/luca0x5755-frontend-spec (last updated 2026-10-24)