Approved catalog listing
SKILL #3203
skillshunter.net
Home / Software & Development / Koi Audit — Styleguide Coverage Check
Listing Approved Approved on: November 29, 2026

Koi Audit — Styleguide Coverage Check

Scan a folder, file, or repository to identify components used or implemented but missing from Koi/styleguide. The audit ensures every component used in the app has a corresponding entry in Koi/styleguide, and can generate stubs or update navigation based on the selected mode.

Rate this skill

No ratings yet

Editor's Note

Before running the audit, ensure the repository has a valid `/koi/styleguide` directory and that the target project is correctly configured with `tsconfig.json` or `jsconfig.json` for component aliases. The audit does not modify or rename existing components, only adds stubs or reports gaps.

When to Use It

  • Verify that all components used in the app are documented in Koi/styleguide
  • Identify missing components and generate stubs for them
  • Ensure consistency between the app and the styleguide
  • Check for orphaned components in the styleguide that are not used in the app

SKILL.md

SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use

↓ Download .md

Koi — Styleguide Coverage Audit

Scan a target (folder, file, or whole repo) and report every component that's used or implemented but missing from Koi/styleguide. Either report only, or create missing stubs, or create stubs and update navigation.

This is a coverage check, not a refactor. The audit never deletes or renames components.

Input

Target to scan: [FOLDER OR FILE PATH]
Target project: [PROJECT PATH OR CURRENT REPOSITORY]
Styleguide path: [/koi/styleguide OR CUSTOM PATH]
App styleguide route: [/app/koi/styleguide OR CUSTOM PATH]
Mode: [report only | create missing stubs | create missing stubs and update navigation]

Optional:

Include playground as covered: [yes | no]   # default: yes
Ignore paths: [node_modules, .next, dist, build, generated, etc.]

Goal

Make sure every component imported, implemented, or used in the target has a corresponding entry in Koi/styleguide. The audit catches:

  • app components
  • shadcn/ui components
  • wrapped shadcn components
  • page-local reusable components
  • imports from @/components/*
  • imports from @/components/ui/*
  • components found in scanned components folders

Non-negotiables

  • shadcn/ui stays the primitive layer.
  • The canonical namespace is Koi/styleguide.
  • Repository styleguide source defaults to /koi/styleguide.
  • Next.js route showcases default to /app/koi/styleguide.
  • Do not use /app/styleguide.
  • The audit never deletes or renames components.

Workflow

1. Inspect project paths

Resolve:

  • repository root
  • the scan target (the user-specified folder or file)
  • /koi/styleguide/components
  • /koi/styleguide/playground/components
  • /app/koi/styleguide/components
  • navigation and registry files
  • aliases from tsconfig.json, jsconfig.json, and components.json
2. Build a component inventory from the target

Scan the target for:

  • component files: .tsx, .jsx, .ts, .js
  • exported React components
  • default exports with PascalCase names
  • imports from @/components/ui/*
  • imports from @/components/*
  • relative imports that resolve to component files

Ignore (unless explicitly requested):

  • node_modules
  • .next
  • dist
  • build
  • out
  • coverage folders
  • test fixtures
  • generated files

Normalize names:

  • button.tsx → Button
  • data-table.tsx → DataTable
  • navigation-menu.tsx → NavigationMenu
3. Build the styleguide inventory

Scan:

/koi/styleguide/components
/koi/styleguide/playground/components
/app/koi/styleguide/components

Also inspect:

/app/koi/styleguide/navigation.ts
/koi/styleguide/registry/components.json
/koi/styleguide/components/index.ts

Classify each component:

  • official — present in /koi/styleguide/components
  • playground — present in /koi/styleguide/playground/components
  • route showcase only — has a page in /app/koi/styleguide/components/[name] but no source entry
  • registry only — appears in registry/navigation but has no actual entry
  • missing — used in the app but not present anywhere in the styleguide
  • orphaned — present in the styleguide but not used anywhere in the app
4. Compare coverage

For every component found in the target:

Component:        [name]
Source files:     [paths where it's defined]
Imported from:    [files in target that import it]
Styleguide status: [official | playground | route-only | registry-only | missing]
Required action:  [none | promote | add stub | document]

Coverage is valid when a component appears in at least one accepted styleguide location.

If Include playground as covered is no, playground entries are reported as needs official promotion.

5. Apply the chosen mode
report only

Do not edit files. Return the full report (see Output below).

create missing stubs

For each missing component, create a minimal styleguide source entry under:

/koi/styleguide/playground/components/[component-name]

Each stub includes:

  • purpose (short description, can be marked TODO)
  • source files
  • import path
  • shadcn primitive if applicable
  • status: needs review
  • TODOs for variants, states, props, and accessibility
create missing stubs and update navigation

Do everything from the previous mode, then update existing navigation or registry files. Don't invent a navigation system when none exists — if the project has nothing to update, fall back to stubs only and note it in the output.

6. Validate

If files changed, run available checks:

npm run lint
npm run typecheck
npm run test
npm run build

If nothing changed (report-only mode), skip validation.

Output to return

Koi styleguide coverage audit complete.

Scan:
- Target: [path]
- Styleguide: [path]
- Mode: [mode]

Summary:
- Components found: [N]
- Covered: [N]
- Missing: [N]
- Playground only: [N]
- Orphaned styleguide entries: [N]

Missing components:
| Component | Found in | Required action |
|-----------|----------|-----------------|
| [name]    | [files]  | [action]        |

Orphaned styleguide entries (optional):
| Component | Styleguide path | Note |
|-----------|-----------------|------|

Changed:
- [file path] — what changed   (omit this section in report-only mode)

Validation:
- [command] — passed / failed / not available

Notes

  • Treat shadcn components imported into the app as components that need styleguide coverage — they're part of the surface area the team is shipping.
  • Prefer adding missing entries to playground first unless the user asks to promote them directly.
  • This audit is a coverage check, not a refactor. Don't move, rename, or delete components.
  • When the same component name resolves to different files (e.g. a local Button and @/components/ui/button), report both and let the user decide.
  • If the project has no styleguide structure at all, stop and recommend running the koi-foundation skill first.
View original Markdown
---
name: koi-audit
description: >
  Scans a folder, file, or whole repository and reports every component that's
  used or implemented but missing from /koi/styleguide. Catches app
  components, shadcn/ui primitives, wrapped components, and page-local
  components, then either reports gaps, creates missing playground stubs, or
  creates stubs and updates navigation. Use whenever the user asks to "audit
  styleguide", "check coverage", "find missing components", "what's not in
  the styleguide", "components not registered", "compare repo to design
  system", "styleguide gaps", or wants to verify that every component used
  in the app is documented in Koi/styleguide.
---

# Koi — Styleguide Coverage Audit

Scan a target (folder, file, or whole repo) and report every component that's
used or implemented but missing from Koi/styleguide. Either report only,
or create missing stubs, or create stubs and update navigation.

> This is a **coverage check**, not a refactor. The audit never deletes or
> renames components.

## Input

```txt
Target to scan: [FOLDER OR FILE PATH]
Target project: [PROJECT PATH OR CURRENT REPOSITORY]
Styleguide path: [/koi/styleguide OR CUSTOM PATH]
App styleguide route: [/app/koi/styleguide OR CUSTOM PATH]
Mode: [report only | create missing stubs | create missing stubs and update navigation]
```

Optional:

```txt
Include playground as covered: [yes | no]   # default: yes
Ignore paths: [node_modules, .next, dist, build, generated, etc.]
```

## Goal

Make sure every component imported, implemented, or used in the target has a
corresponding entry in Koi/styleguide. The audit catches:

- app components
- shadcn/ui components
- wrapped shadcn components
- page-local reusable components
- imports from `@/components/*`
- imports from `@/components/ui/*`
- components found in scanned components folders

## Non-negotiables

- shadcn/ui stays the primitive layer.
- The canonical namespace is `Koi/styleguide`.
- Repository styleguide source defaults to `/koi/styleguide`.
- Next.js route showcases default to `/app/koi/styleguide`.
- Do **not** use `/app/styleguide`.
- The audit never deletes or renames components.

## Workflow

### 1. Inspect project paths

Resolve:

- repository root
- the scan target (the user-specified folder or file)
- `/koi/styleguide/components`
- `/koi/styleguide/playground/components`
- `/app/koi/styleguide/components`
- navigation and registry files
- aliases from `tsconfig.json`, `jsconfig.json`, and `components.json`

### 2. Build a component inventory from the target

Scan the target for:

- component files: `.tsx`, `.jsx`, `.ts`, `.js`
- exported React components
- default exports with PascalCase names
- imports from `@/components/ui/*`
- imports from `@/components/*`
- relative imports that resolve to component files

Ignore (unless explicitly requested):

- `node_modules`
- `.next`
- `dist`
- `build`
- `out`
- coverage folders
- test fixtures
- generated files

Normalize names:

- `button.tsx` → `Button`
- `data-table.tsx` → `DataTable`
- `navigation-menu.tsx` → `NavigationMenu`

### 3. Build the styleguide inventory

Scan:

```txt
/koi/styleguide/components
/koi/styleguide/playground/components
/app/koi/styleguide/components
```

Also inspect:

```txt
/app/koi/styleguide/navigation.ts
/koi/styleguide/registry/components.json
/koi/styleguide/components/index.ts
```

Classify each component:

- **official** — present in `/koi/styleguide/components`
- **playground** — present in `/koi/styleguide/playground/components`
- **route showcase only** — has a page in `/app/koi/styleguide/components/[name]` but no source entry
- **registry only** — appears in registry/navigation but has no actual entry
- **missing** — used in the app but not present anywhere in the styleguide
- **orphaned** — present in the styleguide but not used anywhere in the app

### 4. Compare coverage

For every component found in the target:

```txt
Component:        [name]
Source files:     [paths where it's defined]
Imported from:    [files in target that import it]
Styleguide status: [official | playground | route-only | registry-only | missing]
Required action:  [none | promote | add stub | document]
```

Coverage is valid when a component appears in at least one accepted styleguide
location.

If `Include playground as covered` is `no`, playground entries are reported as
**needs official promotion**.

### 5. Apply the chosen mode

#### `report only`

Do not edit files. Return the full report (see Output below).

#### `create missing stubs`

For each missing component, create a minimal styleguide source entry under:

```txt
/koi/styleguide/playground/components/[component-name]
```

Each stub includes:

- purpose (short description, can be marked TODO)
- source files
- import path
- shadcn primitive if applicable
- status: **needs review**
- TODOs for variants, states, props, and accessibility

#### `create missing stubs and update navigation`

Do everything from the previous mode, then update existing navigation or
registry files. Don't invent a navigation system when none exists — if the
project has nothing to update, fall back to stubs only and note it in the output.

### 6. Validate

If files changed, run available checks:

```bash
npm run lint
npm run typecheck
npm run test
npm run build
```

If nothing changed (report-only mode), skip validation.

## Output to return

```md
Koi styleguide coverage audit complete.

Scan:
- Target: [path]
- Styleguide: [path]
- Mode: [mode]

Summary:
- Components found: [N]
- Covered: [N]
- Missing: [N]
- Playground only: [N]
- Orphaned styleguide entries: [N]

Missing components:
| Component | Found in | Required action |
|-----------|----------|-----------------|
| [name]    | [files]  | [action]        |

Orphaned styleguide entries (optional):
| Component | Styleguide path | Note |
|-----------|-----------------|------|

Changed:
- [file path] — what changed   (omit this section in report-only mode)

Validation:
- [command] — passed / failed / not available
```

## Notes

- Treat shadcn components imported into the app as components that need
  styleguide coverage — they're part of the surface area the team is shipping.
- Prefer adding missing entries to **playground** first unless the user asks
  to promote them directly.
- This audit is a coverage check, not a refactor. Don't move, rename, or
  delete components.
- When the same component name resolves to different files (e.g. a local
  `Button` and `@/components/ui/button`), report both and let the user decide.
- If the project has no styleguide structure at all, stop and recommend
  running the `koi-foundation` skill first.

Community Reviews & Field Notes

Tried this skill on your own project? Share the model you used and the results you got.

Add Your Review

Approved reviews appear publicly with the name or role you enter. See the Privacy Notice.