[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79GNXXQWYYSSS2XXDXREVR8":3,"skill-same:01M79GNXXQWYYSSS2XXDXREVR8":47},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M79GNXXQWYYSSS2XXDXREVR8","saasaloy-design",null,"mimukit\u002Fsaasaloy","mimukit","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F11677026?v=4","01M79GFSERAQQ77QPQMC1N0Y6M","Mukitul Islam Mukit","01M79GFSFA4WMGEEBHA68N59WV",4,"MIT","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Ftemplates\u002Fbase\u002F_agents\u002Fskills\u002Fsaasaloy-design\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: saasaloy-design\ndescription: Keep apps\u002Fweb\u002FDESIGN.md, and apps\u002Fadmin\u002FDESIGN.md when the admin app is installed, true of the Saasaloy design layer. Use theme to choose and apply a registry style to the web app, update after packages\u002Fui changes, or audit a design contract for token drift. Under autonomy: afk in docs\u002Fproduct-brief.md, theme picks the preset from the brief without asking.\nderived-from: \"designkit (MIT), narrowed 2026-08-09\"\n---\n\n# saasaloy-design\n\nThis skill records the design system that the project already uses. It writes no components and no pages. For that work, follow `packages\u002Fui\u002FAGENTS.md`.\n\nEach app has its own token home and its own contract:\n\n| App | Token home | Contract |\n|-----|------------|----------|\n| web | `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fbrand.css` | `apps\u002Fweb\u002FDESIGN.md` |\n| admin, when installed | `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fadmin.css` | `apps\u002Fadmin\u002FDESIGN.md` |\n\n`brand.css` and `admin.css` both import `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fglobals.css`, which holds the shared Tailwind setup and no token values. The web app's stylesheet, `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fweb.css`, imports `brand.css` and adds the landing page's layout, type and motion vocabulary. Ask which app when the user does not say, and work on one contract at a time. Never read one app's tokens into the other app's contract.\n\nThe admin contract also covers the shell primitive set in `packages\u002Fui\u002Fsrc\u002Fcomponents\u002Fshell\u002F`, its blocks in `packages\u002Fui\u002Fsrc\u002Fblocks\u002Fshell\u002F`, its containers in `packages\u002Fui\u002Fsrc\u002Fcontainers\u002Fshell\u002F` and the defaults in `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fshell.css`, as `admin.css` overrides them. The web contract covers the base `components\u002F`, the other `blocks\u002F` and the web app.\n\nThe grounding rule controls every mode. Every token value must exist in the project code or in the Tailwind utility that the project uses. Do not choose a nearby value because it looks cleaner.\n\n## Modes\n\n- `theme` reads the product brief, selects a registry style with the owner, applies it, updates `DESIGN.md`, writes a new fingerprint, and lints the result.\n- `update` re-derives the contract after a design layer change, writes a new fingerprint, and lints the result.\n- `audit` checks the fingerprint and the contract. It never writes.\n\nIf the user does not name a mode, ask which mode to use. Do not choose between a write and an audit. The one exception is an unattended run: see [Unattended run](#unattended-run).\n\n## Write surface\n\n| Mode | Files |\n|------|-------|\n| `theme` | web only: `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fbrand.css`, `apps\u002Fweb\u002FDESIGN.md`, `docs\u002Fproduct-brief.md` only when the brief is absent, and `docs\u002Fbuild-log.md` under `autonomy: afk` |\n| `update` | the chosen app's `DESIGN.md`, and `docs\u002Fbuild-log.md` under `autonomy: afk` |\n| `audit` | none, under `autonomy: afk` too |\n\n`theme` never runs for the admin app. A preset targets `brand.css` through `components.json`, and nothing writes to `admin.css` but a person. When the user asks to restyle the admin app, say so, and offer `update` after they edit `admin.css`.\n\nDo not edit `components.json` during a theme change. Do not add a dependency, script, component, page, or Tailwind class.\n\n## Shared rules\n\nRead the chosen app's `DESIGN.md` and theme file, `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fglobals.css`, and the files under `packages\u002Fui\u002Fsrc\u002F` that the app renders before you derive tokens. Read the application files that use `@repo\u002Fui` when you need to confirm usage.\n\nFind the system in this order. Stop at the first match.\n\n1. Use the Tailwind 4 `@theme` block.\n2. Use the `:root` custom properties.\n3. Report that the expected Saasaloy token home is missing.\n\nRead declarations and usage. Count color values, type utilities, spacing utilities, radii, shadows, interaction states, and dark mode variants. A declared value with no use is not enough evidence for a design token.\n\nClassify each proposed token as `extracted`, `consolidated`, or `omitted`. List the source values for each consolidation. Use `omitted` when the project does not define a scale.\n\nKeep spacing omitted while the project uses Tailwind's default scale unchanged. Use this exact reason in the front matter: `Tailwind's default scale is used unchanged`.\n\nWrite elevation as prose under `## Elevation & Depth`. Never add `elevation` to `omitted`. The official linter does not accept that omission name.\n\nWrite motion as prose under `## Motion`. The alpha schema has no motion token group and no component transition token.\n\nThe landing page's layout, type and motion vocabulary lives in `web.css`, after its import of `brand.css`, and `DESIGN.md` must name all of it:\n\n- The type ramp in `@theme`: `--text-display`, `--text-section-title` and `--text-lead`. Record the largest size of each fluid `clamp()` step as the token's `fontSize`, and describe the fluid range in the Typography prose.\n- The container widths in `@theme` (`--container-page`, `--container-narrow`, `--container-wide`) and the `section-container*` and `section-y` utilities. Describe them under `## Layout`. Spacing stays omitted, because these are named widths and one section rhythm, not a spacing scale.\n- The motion utilities: `blur-in`, `beam-in`, `reveal`, `marquee`, `shine-text`, `nav-float` and `hover-lift`. Describe each under `## Motion`, and say that each one stops under reduced motion.\n- The decoration utility `grid-pattern`. Describe it under `## Components` with the landing blocks it decorates.\n\nA theme preset replaces the colour tokens and leaves this vocabulary alone. After a `theme` run, check that the vocabulary survived and that `DESIGN.md` still describes it.\n\nUse only these component token keys: `backgroundColor`, `textColor`, `typography`, `rounded`, `padding`, `size`, `height`, and `width`.\n\nKeep the sections in this order: Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Components, Do's and Don'ts, Motion, Dark Mode.\n\nThe web contract is a one-time base seed. ADR 0022 means Saasaloy has no update path for it. The admin contract is an admin module file, so `saasaloy update` lists an edited copy in its merge plan. In both cases the fingerprint detects drift, and this skill repairs the contract.\n\n## Fingerprint\n\nThe fingerprint covers only the chosen app's token home: `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fbrand.css` for the web contract, `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fadmin.css` for the admin contract. It does not cover `globals.css`, `web.css`, components, blocks, or other files. The commands and stamps below name `brand.css`; substitute `admin.css` for the admin contract.\n\nCompute the fingerprint from the file bytes. Use the first 12 lowercase hexadecimal characters of SHA-256.\n\n```sh\nnode --input-type=module -e \"import { createHash } from 'node:crypto'; import { readFileSync } from 'node:fs'; process.stdout.write(createHash('sha256').update(readFileSync('packages\u002Fui\u002Fsrc\u002Fstyles\u002Fbrand.css')).digest('hex').slice(0, 12))\"\n```\n\nThe scaffold seed ends with this stamp.\n\n```markdown\n_Seeded from the saasaloy base template · CLI \u003Cversion> · tokens sha256:\u003C12 hex> of packages\u002Fui\u002Fsrc\u002Fstyles\u002Fbrand.css_\n```\n\nAfter `theme` or `update`, replace the seed stamp with this stamp.\n\n```markdown\n_Updated from packages\u002Fui on YYYY-MM-DD · tokens sha256:\u003C12 hex> of packages\u002Fui\u002Fsrc\u002Fstyles\u002Fbrand.css_\n```\n\nDo not change the fingerprint during `audit`.\n\n## Official linter\n\nRun the official linter after each write, on the contract you wrote.\n\n```sh\npnpm dlx @google\u002Fdesign.md lint apps\u002Fweb\u002FDESIGN.md\npnpm dlx @google\u002Fdesign.md lint apps\u002Fadmin\u002FDESIGN.md\n```\n\nThe format is alpha. Read the current schema when a lint finding conflicts with this skill.\n\n```sh\npnpm dlx @google\u002Fdesign.md spec --format json\n```\n\nDo not hide a warning. Fix it when the code supports the fix. Report it with the reason when the project intentionally keeps it.\n\nIf the network or `pnpm dlx` is unavailable, continue with the fingerprint and local extraction. State that structural lint did not run. Never call an unchecked file clean.\n\n## `theme`\n\n### 1. Read the product context\n\nRead `docs\u002Fproduct-brief.md` first. When its frontmatter holds `autonomy: afk`, follow [Unattended run](#unattended-run). Use its product, audience, differentiator, tone, and language answers. Do not ask those questions again.\n\nIf the brief is absent, offer to run `saasaloy-setup`:\n\n> There's no `docs\u002Fproduct-brief.md`, so I'd be picking a theme for a product I know nothing about. `\u002Fsaasaloy-setup` asks ten questions and leaves the brief behind; then this picks up where it stops. Want me to run it now?\n\nInvoke that skill rather than reading its files. Do **not** improvise your own interview, and do not write `docs\u002Fproduct-brief.md` yourself. `saasaloy-setup` owns the brief and its format, and two skills asking overlapping questions is how an owner answers the same thing twice.\n\nAsk only for design facts that the brief does not contain. Cover the color mood, the preset direction or registry URL, and the desired density.\n\n### 2. Choose the registry style\n\nAccept a `registry:style` URL from `https:\u002F\u002Fui.shadcn.com\u002Fcreate`, `https:\u002F\u002Ftweakcn.com`, or another compatible registry. Do not invent a Saasaloy palette catalogue.\n\nPreview the URL and the files that the command can change. Get approval before you run the command.\n\n### 3. Apply the preset\n\nUse the package-local executable from the project root.\n\n```sh\npnpm --filter @repo\u002Fui exec shadcn add \u003Cregistry-style-url>\n```\n\n`components.json` points shadcn at `brand.css`, so the preset merges into the `:root`, `.dark` and `@theme inline` blocks there. Confirm that `globals.css` and `web.css` did not change, that `globals.css` still holds the `@source` rules and `@layer base`, and that `web.css` still holds the landing vocabulary. Confirm that `globals.css`, `brand.css` and `web.css` hold one `@theme inline` and one `@custom-variant dark` between them. Confirm that `components.json` did not change.\n\nStop and report the failure when the preset removes a required rule or changes `components.json`. Do not repair an unknown preset merge without approval.\n\n### 4. Re-derive the contract\n\nRun the shared extraction process against the merged `brand.css`, the landing vocabulary in `web.css`, and their usage. Update the token front matter and only the prose sections that the new tokens affect.\n\nUse the product brief to update Overview and Do's and Don'ts. Do not add product claims that the brief does not support.\n\nRecompute and replace the fingerprint stamp. Run the official linter.\n\n### 5. Report\n\nName the registry style URL. List the changed token groups and the new fingerprint. State the linter result. Tell the user that component or page work follows `packages\u002Fui\u002FAGENTS.md`.\n\n## Unattended run\n\n`autonomy: afk` in the frontmatter of `docs\u002Fproduct-brief.md` means nobody is at the keyboard. Ask nothing, and wait for no approval. When a person in this conversation asks to choose the theme or to approve it, take the attended path instead.\n\n1. **Pick the mode.** With no mode named, run `theme` for the web app. A named mode runs as named. `theme` never runs for the admin app, here as anywhere.\n2. **Read the brief instead of asking.** Take the colour mood and the density from the Tone answer, the Audience answer and the site the owner pointed at. Ask no design question.\n3. **Pick one registry style that fits the tone.** Take a tweakcn theme, served at `https:\u002F\u002Ftweakcn.com\u002Fr\u002Fthemes\u002F\u003Cname>.json`, as [step 2 of `theme`](#2-choose-the-registry-style) allows. `https:\u002F\u002Fui.shadcn.com\u002Fcreate` needs a person at a browser, so it is not an option here. Fetch the URL first and check that it serves a `registry:style` item. Do not invent a palette, and do not write token values by hand.\n4. **Apply it and re-derive the contract** with steps 3 and 4 of `theme`, with no preview and no approval. First copy `brand.css` and `components.json` to a temporary folder outside the repo, because a fresh project may have no commit to restore them from. Every check in step 3 still applies. When the preset removes a required rule or changes `components.json`, copy both files back and log the failure under `## Blocked`.\n5. **Fall back when you cannot reach a registry.** With no network, keep the shipped theme, run `update` on `apps\u002Fweb\u002FDESIGN.md` only if its fingerprint is stale, adding or deleting no section, and list the theme choice under `## Left for a human`.\n6. **Log the run** in `docs\u002Fbuild-log.md`: the registry style URL, one line on why it fits the brief's tone, and the linter result. Add the lines under the current stage's `##` section when a build is running, and under a new `## Design` section when none is. Create the log with a `# Build log` title when it does not exist. Leave the fingerprint out: the log's reader takes the first hex string in a section as its commit. The stage that commits adds its commit hash to that section.\n\n## `update`\n\n### 1. Find the change\n\nRead `git status --short`. Read the working tree diff when it exists. Otherwise, compare the current branch with its base branch.\n\nIdentify changes under `packages\u002Fui\u002F`. State which DESIGN.md sections they affect. State which sections remain unchanged.\n\n### 2. Re-derive with restraint\n\nRun the shared extraction process. Edit existing tokens and affected prose only.\n\nAsk before you add or delete a section. Do not rewrite the full file because one token changed.\n\nRecompute and replace the fingerprint stamp. Run the official linter.\n\n### 3. Report\n\nList each changed token with its old and new value. Name the sections left unchanged. State the new fingerprint and linter result.\n\n## `audit`\n\nAudit is read-only. Do not edit or format any file.\n\n### 1. Check the fingerprint offline\n\nRead the recorded 12-character fingerprint from the final stamp. Compute the current fingerprint from the chosen app's token home, `brand.css` or `admin.css`.\n\n- `current` means the two fingerprints match.\n- `stale` means they differ.\n- `unverified` means the stamp or source file is missing.\n\n### 2. Check token drift\n\nScan `packages\u002Fui\u002Fsrc\u002F` and the application usage. Report tokens whose values no longer exist. Report repeated values that no token covers.\n\nUse `orphaned` for a documented token with no current source. Use `uncovered` for a repeated source value with no documented token.\n\n### 3. Lint when possible\n\nRun `pnpm dlx @google\u002Fdesign.md lint apps\u002F\u003Capp>\u002FDESIGN.md` for the chosen app when the tool and network are available. If it cannot run, state that the fingerprint check ran offline and structural lint did not run.\n\n### 4. Report\n\nOpen with the file count that the audit scanned. Give one verdict for the fingerprint and one verdict for token coverage. Name the worst drift and recommend `saasaloy-design update` when repair is needed.\n\n## Boundaries\n\n- Never write a component or a page. That work follows `packages\u002Fui\u002FAGENTS.md`.\n- Never add a token value that the project does not contain.\n- Never change `globals.css` or `web.css` in any mode, or `brand.css` in `update` or `audit`.\n- Never write during `audit`.\n- Never claim that lint passed when the linter did not run.\n- Never treat a matching fingerprint as proof that component usage has no drift.\n","# saasaloy-design\n\nThis skill records the design system that the project already uses. It writes no components and no pages. For that work, follow `packages\u002Fui\u002FAGENTS.md`.\n\nEach app has its own token home and its own contract:\n\n| App | Token home | Contract |\n|-----|------------|----------|\n| web | `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fbrand.css` | `apps\u002Fweb\u002FDESIGN.md` |\n| admin, when installed | `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fadmin.css` | `apps\u002Fadmin\u002FDESIGN.md` |\n\n`brand.css` and `admin.css` both import `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fglobals.css`, which holds the shared Tailwind setup and no token values. The web app's stylesheet, `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fweb.css`, imports `brand.css` and adds the landing page's layout, type and motion vocabulary. Ask which app when the user does not say, and work on one contract at a time. Never read one app's tokens into the other app's contract.\n\nThe admin contract also covers the shell primitive set in `packages\u002Fui\u002Fsrc\u002Fcomponents\u002Fshell\u002F`, its blocks in `packages\u002Fui\u002Fsrc\u002Fblocks\u002Fshell\u002F`, its containers in `packages\u002Fui\u002Fsrc\u002Fcontainers\u002Fshell\u002F` and the defaults in `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fshell.css`, as `admin.css` overrides them. The web contract covers the base `components\u002F`, the other `blocks\u002F` and the web app.\n\nThe grounding rule controls every mode. Every token value must exist in the project code or in the Tailwind utility that the project uses. Do not choose a nearby value because it looks cleaner.\n\n## Modes\n\n- `theme` reads the product brief, selects a registry style with the owner, applies it, updates `DESIGN.md`, writes a new fingerprint, and lints the result.\n- `update` re-derives the contract after a design layer change, writes a new fingerprint, and lints the result.\n- `audit` checks the fingerprint and the contract. It never writes.\n\nIf the user does not name a mode, ask which mode to use. Do not choose between a write and an audit. The one exception is an unattended run: see [Unattended run](#unattended-run).\n\n## Write surface\n\n| Mode | Files |\n|------|-------|\n| `theme` | web only: `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fbrand.css`, `apps\u002Fweb\u002FDESIGN.md`, `docs\u002Fproduct-brief.md` only when the brief is absent, and `docs\u002Fbuild-log.md` under `autonomy: afk` |\n| `update` | the chosen app's `DESIGN.md`, and `docs\u002Fbuild-log.md` under `autonomy: afk` |\n| `audit` | none, under `autonomy: afk` too |\n\n`theme` never runs for the admin app. A preset targets `brand.css` through `components.json`, and nothing writes to `admin.css` but a person. When the user asks to restyle the admin app, say so, and offer `update` after they edit `admin.css`.\n\nDo not edit `components.json` during a theme change. Do not add a dependency, script, component, page, or Tailwind class.\n\n## Shared rules\n\nRead the chosen app's `DESIGN.md` and theme file, `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fglobals.css`, and the files under `packages\u002Fui\u002Fsrc\u002F` that the app renders before you derive tokens. Read the application files that use `@repo\u002Fui` when you need to confirm usage.\n\nFind the system in this order. Stop at the first match.\n\n1. Use the Tailwind 4 `@theme` block.\n2. Use the `:root` custom properties.\n3. Report that the expected Saasaloy token home is missing.\n\nRead declarations and usage. Count color values, type utilities, spacing utilities, radii, shadows, interaction states, and dark mode variants. A declared value with no use is not enough evidence for a design token.\n\nClassify each proposed token as `extracted`, `consolidated`, or `omitted`. List the source values for each consolidation. Use `omitted` when the project does not define a scale.\n\nKeep spacing omitted while the project uses Tailwind's default scale unchanged. Use this exact reason in the front matter: `Tailwind's default scale is used unchanged`.\n\nWrite elevation as prose under `## Elevation & Depth`. Never add `elevation` to `omitted`. The official linter does not accept that omission name.\n\nWrite motion as prose under `## Motion`. The alpha schema has no motion token group and no component transition token.\n\nThe landing page's layout, type and motion vocabulary lives in `web.css`, after its import of `brand.css`, and `DESIGN.md` must name all of it:\n\n- The type ramp in `@theme`: `--text-display`, `--text-section-title` and `--text-lead`. Record the largest size of each fluid `clamp()` step as the token's `fontSize`, and describe the fluid range in the Typography prose.\n- The container widths in `@theme` (`--container-page`, `--container-narrow`, `--container-wide`) and the `section-container*` and `section-y` utilities. Describe them under `## Layout`. Spacing stays omitted, because these are named widths and one section rhythm, not a spacing scale.\n- The motion utilities: `blur-in`, `beam-in`, `reveal`, `marquee`, `shine-text`, `nav-float` and `hover-lift`. Describe each under `## Motion`, and say that each one stops under reduced motion.\n- The decoration utility `grid-pattern`. Describe it under `## Components` with the landing blocks it decorates.\n\nA theme preset replaces the colour tokens and leaves this vocabulary alone. After a `theme` run, check that the vocabulary survived and that `DESIGN.md` still describes it.\n\nUse only these component token keys: `backgroundColor`, `textColor`, `typography`, `rounded`, `padding`, `size`, `height`, and `width`.\n\nKeep the sections in this order: Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Components, Do's and Don'ts, Motion, Dark Mode.\n\nThe web contract is a one-time base seed. ADR 0022 means Saasaloy has no update path for it. The admin contract is an admin module file, so `saasaloy update` lists an edited copy in its merge plan. In both cases the fingerprint detects drift, and this skill repairs the contract.\n\n## Fingerprint\n\nThe fingerprint covers only the chosen app's token home: `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fbrand.css` for the web contract, `packages\u002Fui\u002Fsrc\u002Fstyles\u002Fadmin.css` for the admin contract. It does not cover `globals.css`, `web.css`, components, blocks, or other files. The commands and stamps below name `brand.css`; substitute `admin.css` for the admin contract.\n\nCompute the fingerprint from the file bytes. Use the first 12 lowercase hexadecimal characters of SHA-256.\n\n```sh\nnode --input-type=module -e \"import { createHash } from 'node:crypto'; import { readFileSync } from 'node:fs'; process.stdout.write(createHash('sha256').update(readFileSync('packages\u002Fui\u002Fsrc\u002Fstyles\u002Fbrand.css')).digest('hex').slice(0, 12))\"\n```\n\nThe scaffold seed ends with this stamp.\n\n```markdown\n_Seeded from the saasaloy base template · CLI \u003Cversion> · tokens sha256:\u003C12 hex> of packages\u002Fui\u002Fsrc\u002Fstyles\u002Fbrand.css_\n```\n\nAfter `theme` or `update`, replace the seed stamp with this stamp.\n\n```markdown\n_Updated from packages\u002Fui on YYYY-MM-DD · tokens sha256:\u003C12 hex> of packages\u002Fui\u002Fsrc\u002Fstyles\u002Fbrand.css_\n```\n\nDo not change the fingerprint during `audit`.\n\n## Official linter\n\nRun the official linter after each write, on the contract you wrote.\n\n```sh\npnpm dlx @google\u002Fdesign.md lint apps\u002Fweb\u002FDESIGN.md\npnpm dlx @google\u002Fdesign.md lint apps\u002Fadmin\u002FDESIGN.md\n```\n\nThe format is alpha. Read the current schema when a lint finding conflicts with this skill.\n\n```sh\npnpm dlx @google\u002Fdesign.md spec --format json\n```\n\nDo not hide a warning. Fix it when the code supports the fix. Report it with the reason when the project intentionally keeps it.\n\nIf the network or `pnpm dlx` is unavailable, continue with the fingerprint and local extraction. State that structural lint did not run. Never call an unchecked file clean.\n\n## `theme`\n\n### 1. Read the product context\n\nRead `docs\u002Fproduct-brief.md` first. When its frontmatter holds `autonomy: afk`, follow [Unattended run](#unattended-run). Use its product, audience, differentiator, tone, and language answers. Do not ask those questions again.\n\nIf the brief is absent, offer to run `saasaloy-setup`:\n\n> There's no `docs\u002Fproduct-brief.md`, so I'd be picking a theme for a product I know nothing about. `\u002Fsaasaloy-setup` asks ten questions and leaves the brief behind; then this picks up where it stops. Want me to run it now?\n\nInvoke that skill rather than reading its files. Do **not** improvise your own interview, and do not write `docs\u002Fproduct-brief.md` yourself. `saasaloy-setup` owns the brief and its format, and two skills asking overlapping questions is how an owner answers the same thing twice.\n\nAsk only for design facts that the brief does not contain. Cover the color mood, the preset direction or registry URL, and the desired density.\n\n### 2. Choose the registry style\n\nAccept a `registry:style` URL from `https:\u002F\u002Fui.shadcn.com\u002Fcreate`, `https:\u002F\u002Ftweakcn.com`, or another compatible registry. Do not invent a Saasaloy palette catalogue.\n\nPreview the URL and the files that the command can change. Get approval before you run the command.\n\n### 3. Apply the preset\n\nUse the package-local executable from the project root.\n\n```sh\npnpm --filter @repo\u002Fui exec shadcn add \u003Cregistry-style-url>\n```\n\n`components.json` points shadcn at `brand.css`, so the preset merges into the `:root`, `.dark` and `@theme inline` blocks there. Confirm that `globals.css` and `web.css` did not change, that `globals.css` still holds the `@source` rules and `@layer base`, and that `web.css` still holds the landing vocabulary. Confirm that `globals.css`, `brand.css` and `web.css` hold one `@theme inline` and one `@custom-variant dark` between them. Confirm that `components.json` did not change.\n\nStop and report the failure when the preset removes a required rule or changes `components.json`. Do not repair an unknown preset merge without approval.\n\n### 4. Re-derive the contract\n\nRun the shared extraction process against the merged `brand.css`, the landing vocabulary in `web.css`, and their usage. Update the token front matter and only the prose sections that the new tokens affect.\n\nUse the product brief to update Overview and Do's and Don'ts. Do not add product claims that the brief does not support.\n\nRecompute and replace the fingerprint stamp. Run the official linter.\n\n### 5. Report\n\nName the registry style URL. List the changed token groups and the new fingerprint. State the linter result. Tell the user that component or page work follows `packages\u002Fui\u002FAGENTS.md`.\n\n## Unattended run\n\n`autonomy: afk` in the frontmatter of `docs\u002Fproduct-brief.md` means nobody is at the keyboard. Ask nothing, and wait for no approval. When a person in this conversation asks to choose the theme or to approve it, take the attended path instead.\n\n1. **Pick the mode.** With no mode named, run `theme` for the web app. A named mode runs as named. `theme` never runs for the admin app, here as anywhere.\n2. **Read the brief instead of asking.** Take the colour mood and the density from the Tone answer, the Audience answer and the site the owner pointed at. Ask no design question.\n3. **Pick one registry style that fits the tone.** Take a tweakcn theme, served at `https:\u002F\u002Ftweakcn.com\u002Fr\u002Fthemes\u002F\u003Cname>.json`, as [step 2 of `theme`](#2-choose-the-registry-style) allows. `https:\u002F\u002Fui.shadcn.com\u002Fcreate` needs a person at a browser, so it is not an option here. Fetch the URL first and check that it serves a `registry:style` item. Do not invent a palette, and do not write token values by hand.\n4. **Apply it and re-derive the contract** with steps 3 and 4 of `theme`, with no preview and no approval. First copy `brand.css` and `components.json` to a temporary folder outside the repo, because a fresh project may have no commit to restore them from. Every check in step 3 still applies. When the preset removes a required rule or changes `components.json`, copy both files back and log the failure under `## Blocked`.\n5. **Fall back when you cannot reach a registry.** With no network, keep the shipped theme, run `update` on `apps\u002Fweb\u002FDESIGN.md` only if its fingerprint is stale, adding or deleting no section, and list the theme choice under `## Left for a human`.\n6. **Log the run** in `docs\u002Fbuild-log.md`: the registry style URL, one line on why it fits the brief's tone, and the linter result. Add the lines under the current stage's `##` section when a build is running, and under a new `## Design` section when none is. Create the log with a `# Build log` title when it does not exist. Leave the fingerprint out: the log's reader takes the first hex string in a section as its commit. The stage that commits adds its commit hash to that section.\n\n## `update`\n\n### 1. Find the change\n\nRead `git status --short`. Read the working tree diff when it exists. Otherwise, compare the current branch with its base branch.\n\nIdentify changes under `packages\u002Fui\u002F`. State which DESIGN.md sections they affect. State which sections remain unchanged.\n\n### 2. Re-derive with restraint\n\nRun the shared extraction process. Edit existing tokens and affected prose only.\n\nAsk before you add or delete a section. Do not rewrite the full file because one token changed.\n\nRecompute and replace the fingerprint stamp. Run the official linter.\n\n### 3. Report\n\nList each changed token with its old and new value. Name the sections left unchanged. State the new fingerprint and linter result.\n\n## `audit`\n\nAudit is read-only. Do not edit or format any file.\n\n### 1. Check the fingerprint offline\n\nRead the recorded 12-character fingerprint from the final stamp. Compute the current fingerprint from the chosen app's token home, `brand.css` or `admin.css`.\n\n- `current` means the two fingerprints match.\n- `stale` means they differ.\n- `unverified` means the stamp or source file is missing.\n\n### 2. Check token drift\n\nScan `packages\u002Fui\u002Fsrc\u002F` and the application usage. Report tokens whose values no longer exist. Report repeated values that no token covers.\n\nUse `orphaned` for a documented token with no current source. Use `uncovered` for a repeated source value with no documented token.\n\n### 3. Lint when possible\n\nRun `pnpm dlx @google\u002Fdesign.md lint apps\u002F\u003Capp>\u002FDESIGN.md` for the chosen app when the tool and network are available. If it cannot run, state that the fingerprint check ran offline and structural lint did not run.\n\n### 4. Report\n\nOpen with the file count that the audit scanned. Give one verdict for the fingerprint and one verdict for token coverage. Name the worst drift and recommend `saasaloy-design update` when repair is needed.\n\n## Boundaries\n\n- Never write a component or a page. That work follows `packages\u002Fui\u002FAGENTS.md`.\n- Never add a token value that the project does not contain.\n- Never change `globals.css` or `web.css` in any mode, or `brand.css` in `update` or `audit`.\n- Never write during `audit`.\n- Never claim that lint passed when the linter did not run.\n- Never treat a matching fingerprint as proof that component usage has no drift.\n",{},"main","a46a4dd388795519840da0ed1f695634b6dcd99b","packages\u002Fcli\u002Ftemplates\u002Fbase\u002F_agents\u002Fskills\u002Fsaasaloy-design",0,"https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy","https:\u002F\u002Fsaasaloy.com","https:\u002F\u002Fgithub.com\u002Fmimukit","https:\u002F\u002Fmimukit.com","Senior Software Engineer · 9+ yrs Fullstack (TS\u002FNode\u002FReact) · AI integrations, distributed systems · Building @saasaloy & @codealoy · Bangladesh 🇧🇩 \u002F Remote","2026-11-13 20:39:28",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add mimukit\u002Fsaasaloy --skill saasaloy-design",{"tool":39,"command":40},"bunx","bunx skills add mimukit\u002Fsaasaloy --skill saasaloy-design",{"tool":42,"command":43},"pnpm","pnpm dlx skills add mimukit\u002Fsaasaloy --skill saasaloy-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Ftemplates\u002Fbase\u002F_agents\u002Fskills\u002Fsaasaloy-design\u002FSKILL.md",true,[],[48,55,62,69,76,82],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M7BE75C34XHSPVJNQC8FY4Q0","saasaloy-subscription","Runbook for the subscription capability — provider-agnostic subscriptions in packages\u002Fsubscription, with a plan file, a projection table, a billable-subject file, plan entitlements and per-provider modules. Use when adding a plan, adding a plan feature or a numeric limit, gating an API route with requireFeature or requireWithinLimit, reading the 402 it returns, working out why a subject resolves to the free plan, wiring a checkout or portal route, reading a SubscriptionError, choosing or switching SUBSCRIPTION_PROVIDER, registering a webhook in the vendor's dashboard, writing a third subscription provider, or upgrading a project that still has `billing` installed.","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fmodules\u002Fsubscription\u002Fskills\u002Fsaasaloy-subscription\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7BE68MJ8H47JZKTBDFYR6JD","saasaloy-notification","Runbook for the notification module, in-app notifications for apps\u002Fapp. It owns the notifications and notification_opt_outs tables, notify() in apps\u002Fapi\u002Fsrc\u002Flib\u002Fnotify.ts, the \u002Fnotifications api routes, the bell in the app header, the sidebar badge, the \u002Fnotifications page with Inbox and Preferences tabs, the notification config section, and the daily prune. Use when sending a notification from an api route, adding or changing a category, changing retention, debugging a badge or bell count that does not move, or removing the module.","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fmodules\u002Fnotification\u002Fskills\u002Fsaasaloy-notification\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M7BE53PDQV0YDPG8RNVGTPEQ","saasaloy-cms","Runbook for the cms module, the in-house CMS behind apps\u002Fadmin. Covers code-defined collections, the Tiptap editor, drafts, revisions and redirects, the publish-time renderer, the public blog on apps\u002Fweb and its 60-second cache. Use when adding a collection or a field, rendering a stored body, reusing the editor, renderer or media field from another module, moving the blog to another path, re-rendering live posts after a renderer upgrade or a STORAGE_PUBLIC_URL change, or working out why a published post is not live yet.","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fmodules\u002Fcms\u002Fskills\u002Fsaasaloy-cms\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M79GQ03M63V5EKSST92B3S5X","saasaloy-beta","The beta module's own procedure.","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Ftest\u002Ffixtures\u002Fregistry-clean\u002Fbeta\u002Fsaasaloy-beta\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M79GPXV3K8YF3M4VA0KGVE0B","helper","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Ftest\u002Ffixtures\u002Fregistry-broken\u002Fbad-skill\u002Fhelper\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M79GPR8EVS1YX0W8X33Q9YD8","saasaloy-update","Runbook for an AI agent that updates this project to a newer Saasaloy CLI and newer module versions with saasaloy update. Use when the owner says \"update saasaloy\", \"upgrade the CLI\", \"pull the latest modules\", \"update the base template\", \"work the merge plan\", \"clear the update notes\", when saasaloy update or saasaloy outdated --check exits 3 or 2, when a merge plan or .saasaloy\u002Fmerge-plan.md is handed to you, or when an adopted project takes its first update. Covers the CLI upgrade, the preview, --out, the file merges, the update notes and \"Notes that may apply\", --resolved and --done, a file deleted locally and --restore, a three-way or two-way base, an update that skips releases, --from, the verify commands, and the exit codes.","https:\u002F\u002Fgithub.com\u002Fmimukit\u002Fsaasaloy\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Ftemplates\u002Fbase\u002F_agents\u002Fskills\u002Fsaasaloy-update\u002FSKILL.md",[],[]]