[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ABFMJTVP25N5SMAQN4WMBS":3,"skill-same:01M7ABFMJTVP25N5SMAQN4WMBS":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7ABFMJTVP25N5SMAQN4WMBS","css-audit",null,"Audit whole CSS files for defects the per-edit hook never re-checks — duplicated rules, unused or undefined custom properties — review a CSS or motion diff, or gate styles in CI. Reads stylesheets, CSS-in-JS, Vue\u002FSvelte\u002FAstro\u002FHTML component styles. Not mechanics — css-craft; not motion decisions — motion-craft; nothing to audit in Tailwind utilities.","j0hanz\u002Fj0hanz-marketplace","j0hanz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F159924955?v=4","01M7ABFK415CKHXYV9GZRJ16T7","Linus Johansson","01M7ABFK52FCPP2PNBH1YR7ZPA",0,"MIT","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fcss\u002Fskills\u002Fcss-audit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: css-audit\ndescription: Audit whole CSS files for defects the per-edit hook never re-checks — duplicated rules, unused or undefined custom properties — review a CSS or motion diff, or gate styles in CI. Reads stylesheets, CSS-in-JS, Vue\u002FSvelte\u002FAstro\u002FHTML component styles. Not mechanics — css-craft; not motion decisions — motion-craft; nothing to audit in Tailwind utilities.\n---\n\n# CSS Audit\n\nTwo scales, one bar — only provable defects; a motion review adds feel judgment. An **audit** reads the whole file, catching what the per-edit hook cannot see because it only reads the lines you touch. A **review** reads the changed lines of a diff.\n\n## Audit — whole file\n\n```sh\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcss-audit\u002Faudit.mjs\" \u003Cfile|dir|glob>... [--strict] [--json]\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcss-audit\u002Faudit.mjs\" --help\n```\n\n`${CLAUDE_PLUGIN_ROOT}` is this plugin's root. A client that leaves it literal: use the directory two levels up from the folder holding this `SKILL.md`.\n\nPass every file that holds CSS in one run — a directory recurses, a glob expands inside the script, so any enumeration of the project's files works in any shell. `--help` prints the file types it reads, the flags and the exit codes. Two things the run itself does not explain:\n\n- **Scope decides the custom-property findings.** They resolve only across the files passed in one run, so a single sheet reports every token it exports as dead and every token it imports as undefined. The script says so when it happens — that note means the scope was too narrow, not that the sheet is dirty.\n- **Whole-file structure checks run on stylesheets only.** A host file's styles become synthetic blocks that are siblings by construction, so every component with two styled objects would read as a duplicate rule.\n\nSuppress a false positive with `\u002F* csspro-ignore *\u002F` above the finding. Use it sparingly; a block of ignores says the rule is wrong for this codebase, not that the code is right. In CI, `--strict` gates ADVISE and whole-file findings too — and an intentional finding gets the marker, next to the code it explains, rather than a CI exclusion.\n\n**Done when** every target file has been re-run and is clean, or carries only items kept on purpose — every remaining BLOCK a `file:line` with its keep-reason, every ADVISE and whole-file finding either confirmed intentional or fixed.\n\n### Read the output\n\nGroups print highest impact first, in the rule table's own sentences — report them as written. Each line is `path:line,line,…  message`: one message that fired on several lines collapses to a single line listing every site, so a sheet with fifteen `calc()` defects shows one line, not fifteen. The trailing count is defect occurrences, not displayed lines.\n\n**BLOCK** — provable from the file alone; what the hook blocks on a write. Fix these.\n\n**ADVISE** — measurable cost or accessibility risk, often intentional: handled globally, or a known trade-off.\n\n**WHOLE-FILE** — only visible at file scale. Each message names the finding, its line and its fix; the threshold that made it fire is not printed:\n\n- _Repeated declarations_ — two different selectors carrying the same declarations, in any order, under the same at-rule conditions. Merging them onto one selector list or a shared class changes nothing a browser can observe. Fewer than two shared declarations is not reported.\n- _Overlapping declarations_ — one declaration short of identical: a block copied from another and then drifted. Needs at least four shared declarations _and_ most of both blocks, so a long rule that merely agrees on some `font-*` lines does not fire.\n- _Unused \u002F undefined custom property_ — with the run scoped wide enough (above), a remaining one is dead or a typo (`--color-primayr`). Confirm before deleting.\n\nA finding inside an object-form style — `style={{ }}`, `sx`, `styled.div({ })` — is reported against the line its object literal opens on, because the declarations are read out of camelCase keys into one synthetic block. That line is also where the `\u002F* csspro-ignore *\u002F` marker goes.\n\n## Review — a diff\n\nScope is what the diff changes; a general code review asked for, say out of scope.\n\n**Run the checks before reading the diff** — the rule table is executable, so no declaration the script can decide gets judged from memory:\n\n```sh\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcss-audit\u002Faudit.mjs\" \u003Cchanged-file>...\n```\n\nThe audit reads the whole file, so keep the findings whose line falls inside a changed hunk and drop the rest — those are the audit's business, not this review's. A file the diff touches that the audit reports as clean has no provable defects in it; say so rather than re-deriving it.\n\nThen read the diff for what the script cannot decide: css-craft's \"What bites\" for the mechanical gotchas, and for a motion diff the bar below plus feel. Default to flagging — unsure whether motion feels right, delete it. Report each issue once; where the motion bar and the rule table both reach a line, the motion tier wins.\n\n### The motion bar\n\nRead every changed line against `## Done when` in motion-craft's [`SKILL.md`](..\u002Fmotion-craft\u002FSKILL.md) — that list is the bar, every line of it the diff misses is a finding, and the values it cites sit in the sections above it in the same file. When feel cannot be judged from code alone, say so and point at [`TECHNIQUES.md`](..\u002Fmotion-craft\u002FTECHNIQUES.md)'s `## Debugging`.\n\n### Output format\n\nTwo parts.\n\n**Part 1 — Findings table.** Single markdown table, one row per issue.\n\n| Before                                | After                                | Why                                                                       |\n| ------------------------------------- | ------------------------------------ | ------------------------------------------------------------------------- |\n| `transform: scale(0)`                 | `transform: scale(0.95); opacity: 0` | Nothing appears from nothing — `scale(0)` looks like it came from nowhere |\n| `transform-origin: center` on popover | `var(--transform-origin)` (Base UI)  | Popovers scale from the trigger, not center (modals exempt)               |\n\n**Part 2 — Verdict.** Group remaining commentary by impact, highest first. Close with an explicit decision. **Block** on a provable defect — a rule-table BLOCK, or a measurable motion defect — or, in a motion review, on a design judgment the bar names; say which kind each blocking item is. **Approve** when every provable defect is cleared and, for motion, feel holds with nothing left worth deleting. Cite `file:line`.\n\n**Done when** the checks above have been run and their output quoted, every changed line measured against the bar (and the motion bar, plus feel, if motion), every provable defect flagged with `file:line`, and a Block\u002FApprove verdict closes. ADVISE findings are reported in the table, not disposed — a review is lighter than an audit. A review that never ran the script is not done, however careful the reading was.\n","# CSS Audit\n\nTwo scales, one bar — only provable defects; a motion review adds feel judgment. An **audit** reads the whole file, catching what the per-edit hook cannot see because it only reads the lines you touch. A **review** reads the changed lines of a diff.\n\n## Audit — whole file\n\n```sh\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcss-audit\u002Faudit.mjs\" \u003Cfile|dir|glob>... [--strict] [--json]\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcss-audit\u002Faudit.mjs\" --help\n```\n\n`${CLAUDE_PLUGIN_ROOT}` is this plugin's root. A client that leaves it literal: use the directory two levels up from the folder holding this `SKILL.md`.\n\nPass every file that holds CSS in one run — a directory recurses, a glob expands inside the script, so any enumeration of the project's files works in any shell. `--help` prints the file types it reads, the flags and the exit codes. Two things the run itself does not explain:\n\n- **Scope decides the custom-property findings.** They resolve only across the files passed in one run, so a single sheet reports every token it exports as dead and every token it imports as undefined. The script says so when it happens — that note means the scope was too narrow, not that the sheet is dirty.\n- **Whole-file structure checks run on stylesheets only.** A host file's styles become synthetic blocks that are siblings by construction, so every component with two styled objects would read as a duplicate rule.\n\nSuppress a false positive with `\u002F* csspro-ignore *\u002F` above the finding. Use it sparingly; a block of ignores says the rule is wrong for this codebase, not that the code is right. In CI, `--strict` gates ADVISE and whole-file findings too — and an intentional finding gets the marker, next to the code it explains, rather than a CI exclusion.\n\n**Done when** every target file has been re-run and is clean, or carries only items kept on purpose — every remaining BLOCK a `file:line` with its keep-reason, every ADVISE and whole-file finding either confirmed intentional or fixed.\n\n### Read the output\n\nGroups print highest impact first, in the rule table's own sentences — report them as written. Each line is `path:line,line,…  message`: one message that fired on several lines collapses to a single line listing every site, so a sheet with fifteen `calc()` defects shows one line, not fifteen. The trailing count is defect occurrences, not displayed lines.\n\n**BLOCK** — provable from the file alone; what the hook blocks on a write. Fix these.\n\n**ADVISE** — measurable cost or accessibility risk, often intentional: handled globally, or a known trade-off.\n\n**WHOLE-FILE** — only visible at file scale. Each message names the finding, its line and its fix; the threshold that made it fire is not printed:\n\n- _Repeated declarations_ — two different selectors carrying the same declarations, in any order, under the same at-rule conditions. Merging them onto one selector list or a shared class changes nothing a browser can observe. Fewer than two shared declarations is not reported.\n- _Overlapping declarations_ — one declaration short of identical: a block copied from another and then drifted. Needs at least four shared declarations _and_ most of both blocks, so a long rule that merely agrees on some `font-*` lines does not fire.\n- _Unused \u002F undefined custom property_ — with the run scoped wide enough (above), a remaining one is dead or a typo (`--color-primayr`). Confirm before deleting.\n\nA finding inside an object-form style — `style={{ }}`, `sx`, `styled.div({ })` — is reported against the line its object literal opens on, because the declarations are read out of camelCase keys into one synthetic block. That line is also where the `\u002F* csspro-ignore *\u002F` marker goes.\n\n## Review — a diff\n\nScope is what the diff changes; a general code review asked for, say out of scope.\n\n**Run the checks before reading the diff** — the rule table is executable, so no declaration the script can decide gets judged from memory:\n\n```sh\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcss-audit\u002Faudit.mjs\" \u003Cchanged-file>...\n```\n\nThe audit reads the whole file, so keep the findings whose line falls inside a changed hunk and drop the rest — those are the audit's business, not this review's. A file the diff touches that the audit reports as clean has no provable defects in it; say so rather than re-deriving it.\n\nThen read the diff for what the script cannot decide: css-craft's \"What bites\" for the mechanical gotchas, and for a motion diff the bar below plus feel. Default to flagging — unsure whether motion feels right, delete it. Report each issue once; where the motion bar and the rule table both reach a line, the motion tier wins.\n\n### The motion bar\n\nRead every changed line against `## Done when` in motion-craft's [`SKILL.md`](..\u002Fmotion-craft\u002FSKILL.md) — that list is the bar, every line of it the diff misses is a finding, and the values it cites sit in the sections above it in the same file. When feel cannot be judged from code alone, say so and point at [`TECHNIQUES.md`](..\u002Fmotion-craft\u002FTECHNIQUES.md)'s `## Debugging`.\n\n### Output format\n\nTwo parts.\n\n**Part 1 — Findings table.** Single markdown table, one row per issue.\n\n| Before                                | After                                | Why                                                                       |\n| ------------------------------------- | ------------------------------------ | ------------------------------------------------------------------------- |\n| `transform: scale(0)`                 | `transform: scale(0.95); opacity: 0` | Nothing appears from nothing — `scale(0)` looks like it came from nowhere |\n| `transform-origin: center` on popover | `var(--transform-origin)` (Base UI)  | Popovers scale from the trigger, not center (modals exempt)               |\n\n**Part 2 — Verdict.** Group remaining commentary by impact, highest first. Close with an explicit decision. **Block** on a provable defect — a rule-table BLOCK, or a measurable motion defect — or, in a motion review, on a design judgment the bar names; say which kind each blocking item is. **Approve** when every provable defect is cleared and, for motion, feel holds with nothing left worth deleting. Cite `file:line`.\n\n**Done when** the checks above have been run and their output quoted, every changed line measured against the bar (and the motion bar, plus feel, if motion), every provable defect flagged with `file:line`, and a Block\u002FApprove verdict closes. ADVISE findings are reported in the table, not disposed — a review is lighter than an audit. A review that never ran the script is not done, however careful the reading was.\n",{"name":5,"description":7},"main","534498267dccbe415f22f31fceac9da6771c195f","plugins\u002Fcss\u002Fskills\u002Fcss-audit","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace","https:\u002F\u002Fj0hanz-marketplace.vercel.app","https:\u002F\u002Fgithub.com\u002Fj0hanz","linus-johansson-cv-d308be9b73e1.herokuapp.com","2026-11-15 02:42:07",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add j0hanz\u002Fj0hanz-marketplace --skill css-audit",{"tool":38,"command":39},"bunx","bunx skills add j0hanz\u002Fj0hanz-marketplace --skill css-audit",{"tool":41,"command":42},"pnpm","pnpm dlx skills add j0hanz\u002Fj0hanz-marketplace --skill css-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fcss\u002Fskills\u002Fcss-audit\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"audit.mjs","SCRIPT","脚本",13079,"https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fcss\u002Fskills\u002Fcss-audit\u002Faudit.mjs",[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7ABP78JFYBMCXJ9GMETCYZM","unslop","Use when writing or editing prose a person will read, or when text sounds AI-generated.","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwriteup\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7ABP52BNV7NRPNBR6PCNZWC","show-me","Use when asked to show, diagram, or walk through how code fits together or what a change does, or before explaining a multi-file flow in prose.","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwriteup\u002Fskills\u002Fshow-me\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7ABP3EPN4KFB4HPJNMY31NR","pr","Use when writing or updating a pull request description, or before running `gh pr create`.","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwriteup\u002Fskills\u002Fpr\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7ABP08MXTHPZYTG4HKEP7WQ","commit","Use when writing a commit message, or before running `git commit`.","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwriteup\u002Fskills\u002Fcommit\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7ABNV9J7DN1AFRBGDBHVBY2","write-specs","Spec a feature's observable behavior. Use when asked for requirements, when a request says what the system should do but not how, or to capture what a built system already guarantees. Not for how to build it (write-plan).","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fworkbench\u002Fskills\u002Fwrite-specs\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7ABNPK2GVG8EB3SSEAMK4FZ","write-skills","Write, fix, or audit a skill's frontmatter, trigger description, and body. Use when a skill is asked for, never fires, or fires at the wrong moment. Not for a hook (write-hooks) or the plugin manifest and catalog.","https:\u002F\u002Fgithub.com\u002Fj0hanz\u002Fj0hanz-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fworkbench\u002Fskills\u002Fwrite-skills\u002FSKILL.md",[],[]]