break
jakubkrehel/skills · Agent Skill
回答「這個元件是否能夠生存?」的問題。它會在頁面上繪製每個可能在實踐中使用的狀態,並將此頁面作為視覺化報告傳遞,說明哪些地方出了問題。
前往安裝 ↓總覽
| 發布者 | |
|---|---|
| 儲存庫 | jakubkrehel/skills ↗ |
| 技能資料夾 | break |
| 星 | 8,643 |
| 分支 | 330 |
| 附帶檔案 | 3 |
| 授權 | MIT |
| 最近更新 | 2026年10月25日 |
| 連結 | 技能原始碼 ↗ · 儲存庫 ↗ |
Mozgi 檢查
我們在技能檔案中發現的內容。詳細資訊需訂閱。
安裝
技能就是一個含 SKILL.md 的資料夾。選擇你的代理,在專案根目錄的終端機(macOS、Linux 或 Windows 的 Git Bash)執行指令。
把提示貼到 Claude、Codex 或其他助理:它會自行檢查並安裝技能。
Install the “break” skill from mozgi.io (https://mozgi.io/skills/jakubkrehel-break/) for me. 1. Download the archive: https://mozgi.io/skills/jakubkrehel-break/download If it fails, take the skill folder from the source: https://github.com/jakubkrehel/skills/tree/main/skills/break 2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me. 3. Put the “break” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.). 4. Make sure <skills folder>/break/SKILL.md exists. 5. Briefly tell me what this skill does and offer to try it on my task. If you cannot do a step yourself, tell me what to click or type.
git clone --depth 1 --branch main https://github.com/jakubkrehel/skills.git /tmp/skills mkdir -p .claude/skills cp -r /tmp/skills/skills/break .claude/skills/break
重新啟動 Claude Code — 技能就會出現在清單中,手動呼叫:/break。要套用到所有專案,請放在 ~/.claude/skills。
git clone --depth 1 --branch main https://github.com/jakubkrehel/skills.git /tmp/skills mkdir -p .agents/skills cp -r /tmp/skills/skills/break .agents/skills/break
Codex 會從目前資料夾往上到儲存庫根目錄,在 .agents/skills 中尋找技能;用 /skills 或 $break 呼叫。所有專案:~/.agents/skills。
git clone --depth 1 --branch main https://github.com/jakubkrehel/skills.git /tmp/skills mkdir -p .cursor/skills cp -r /tmp/skills/skills/break .cursor/skills/break
Cursor 啟動時會載入技能;在 Agent 聊天輸入「/」呼叫。Cursor 也會讀取 .claude/skills 與 .agents/skills。所有專案:~/.cursor/skills。
git clone --depth 1 --branch main https://github.com/jakubkrehel/skills.git /tmp/skills mkdir -p .gemini/skills cp -r /tmp/skills/skills/break .gemini/skills/break
任務符合時,Gemini CLI 會提議啟用技能,由你確認。所有專案:~/.gemini/skills。
安裝前請先檢視 SKILL.md 與相關檔案。點擊檔案即可預覽。
SKILL.md 內容
作者原文 · 唯讀Break
This skill takes one component and renders it on a harness page under every scenario that can actually reach it. That page is the deliverable: a visual report the user scrolls through, every scenario side by side, with the breaks marked.
It observes rather than judges. A finding here is something that visibly broke on the page, named in the vocabulary of the domain skill that owns the fix. Reviewing code against a standard is interface-review and better-interface; exploring design alternatives is variant; working through a component's product states one at a time is state-machine.
Where variant insists on the real page, this skill isolates on purpose. You are not judging how the component looks in context. You are checking whether it defends itself when the content is worst-case.
The whole run is build, look once, report: minutes, not a session. Nothing in it justifies instrumentation, browser debugging or a second pass.
1. Scope one component
One component per run. "The settings page" is not a component; the profile form's text input is. Where the request spans several, list the candidates and ask which one to test.
Restate what the component is in one sentence: what it accepts, what it renders and where it will live.
2. Infer the scenarios from the component
Stress only what varies. A scenario earns a slot when the component accepts something that can take that shape in production. So read the component first: its props, its slots, its states and the data it renders.
scenarios.md ↗ holds the axes, the values on each and the cue that says whether an axis applies. Walk it against the component and keep only the axes whose cue matches. A text input gets content length and states, never item quantity. A static icon button with a fixed label gets container and environment, never long text.
Write the kept scenarios down before building, one line each. Then say which axes you dropped and why, in one line, so a wrong inference is cheap to catch.
3. Build the harness page
The harness page renders the component once per scenario in a single column, with a short text label above each instance.
A scratch route inside the app holds the real component, imported from the project and untouched. The route inherits the app's layout, fonts, global styles and providers for free.
Where the framework splits server from client components, the page is client code, "use client" in Next. Otherwise fixture data can silently vanish crossing that boundary, and the page renders empty.
Labels, container widths and fixture props are everything the page adds. No fonts or styles of its own, no simulated themes or token swaps, no probes. A component observed under any of those is a different component.
Feed scenarios as props and fixture data. The harness never imports production state, never wires to live data and production never imports from the harness.
4. Look once
Load the page once in a browser already at hand, skim every scenario top to bottom and note what visibly broke. "Text escapes the field's right edge", never "spacing feels tight". A predicted failure is not a finding.
With no browser at hand, say so and hand the URL over for the user to check. Launching, window-wrangling or debugging a browser is out of budget. When you skipped the look, the report is the URL and the scenario list, with no findings table and no page notes.
Then mark each break you did see on the page, a one-line note under that scenario's label, in a single edit. The page has to read as the report on its own.
5. Report what broke and stop
Report findings as a table, broken scenarios first:
| Scenario | Observed | Owner |
| --- | --- | --- |
| One unbreakable 60-character string | Overflows the card, no wrap and no truncation | better-typography |
| Zero items | Blank region with no message | better-writing |
This skill owns no domain rules and issues no verdict.
"Everything survived" is a complete and useful report. Say which scenarios are on the page and where it is running, so the user can see every one themselves. End there rather than padding the result with preferences.
Do not fix anything unasked. On a request to fix, follow the owner skill's rules, then re-render the failing scenarios to confirm.
6. Leave the page up, delete it on request
The page is half the report, so it outlives the findings table. Leave it running. Delete it and its fixtures only when the user says they are done with it. Then search for the route and fixture names, and check the diff leaves nothing of the harness behind.
Before you finish
| Mistake | Fix |
| --- | --- |
| Every axis run against every component | Keep only the axes whose cue matches, and say which you dropped |
| A predicted failure reported as observed | Render it, or leave it out |
| A scenario missing the content it was fed | The harness is broken, not the component; make the page client code and reload once |
| A rebuilt lookalike component in the harness | Import the real component from the project |
| The harness restyles or re-themes the component | The app's layout, fonts and tokens as they are; labels and widths are all the page adds |
| A browser launched, debugged or screenshotted per scenario | One load and one look, or hand the URL over and skip the look |
| Findings phrased as taste | Report what was visible on the page, or nothing |
| A break reported without an owner | Name the domain skill whose rules diagnose it |
| A clean run padded with suggestions | "Everything survived" plus the scenario list is the report |
| The viewport resized scenario by scenario | Widths are fixed containers on the page; one load shows them all |
| A break in the table but unmarked on the page | Note it under the scenario's label; the page reads as the report on its own |
| Page deleted in the same turn as the report | The page is half the report; delete only on the user's word |
常見問題
break 技能有什麼用途?
回答「這個元件是否能夠生存?」的問題。它會在頁面上繪製每個可能在實踐中使用的狀態,並將此頁面作為視覺化報告傳遞,說明哪些地方出了問題。
如何安裝 break?
打開本頁的「安裝」區塊並選擇你的代理 — Claude Code、Codex、Cursor 或 Gemini CLI:那裡有把技能資料夾複製到正確位置的現成指令。也可以複製「透過助理」分頁中的提示,讓助理自行檢查並安裝技能。
break 適用哪些 AI 模型?
技能是純 Markdown 指示(Agent Skills 格式),因此 break 適用任何讀取 SKILL.md 的代理:Claude Code、Codex、Cursor、Gemini CLI、GitHub Copilot、OpenCode 等。只有在任務符合技能描述時,模型才會載入指示。
break 是免費的嗎?
此技能由 jakubkrehel 公開發布,採用 MIT 授權。技能本身免費 — 你只需向 AI 供應商支付實際使用的 token 費用。
安裝技能安全嗎?
技能是代理會遵循的指示,安裝前請閱讀 SKILL.md 及相關檔案。技能資料夾中的腳本只有在代理執行時才會運行 — 留意它的動作,不要授予多餘權限。
技能和 MCP 伺服器或外掛有何不同?
MCP 伺服器或外掛為模型提供新工具 — 會執行並回傳結果的程式碼。技能提供的是知識與流程:如何處理任務、要遵循哪些步驟、好的成果長什麼樣子。它不需要伺服器或 API 金鑰。