component-inventory
Skill0 starsChanged 4 months agoMITView on GitHub
Scans the codebase for UI components (React .tsx/.jsx, Vue .vue, Svelte .svelte) and generates docs/architecture/COMPONENTS.md — one inventory of every component: name, file, purpose, props, and where it's used — plus a "Possible duplicates" section for the user to decide on. Delta-updates an existing inventory (never rewrites unchanged rows). Use when the user says "inventory components", "what components do we have", "update the component inventory", before starting UI work, or when a reuse decision needs data.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- kostja94/brickstheir own version, first seen Nov 8, 2026
- delorenj/skillstheir own version, first seen Nov 7, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- kostja94/bricks★ 192same name
- delorenj/skills★ 17same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- .cursor/rules/publish-version-bump.mdcCursor rule
- .cursor/rules/release-version-sync.mdcCursor rule
- antigravitySkill
- auditSkill
- autoplanSkill
- bootstrapSkill
- brainstormSkill
- browseSkill
- ceo-reviewSkill
- clarifySkill
- cleanupSkill
- code-reviewSkill
- codexSkill
- context-restoreSkill
- context-saveSkill
- critiqueSkill
- cronSkill
- csoSkill
- cursorSkill
- debugSkill
- deepen-planSkill
- design-reviewSkill
- devex-reviewSkill
- document-reviewSkill
- eng-reviewSkill
- executing-plansSkill
- fableSkill
- finishSkill
- frontend-designSkill
- grill-meSkill
- grokSkill
- implementSkill
- learnSkill
- office-hoursSkill
- onboardSkill
- plan-design-reviewSkill
- planSkill
- polishSkill
- qaSkill
- reviewSkill
- shipfastSkill
- shipthoroughSkill
- simplifySkill
- specSkill
- statusSkill
- subagent-driven-developmentSkill
- test-driven-developmentSkill
- ui-auditSkill
- ui-ux-pro-maxSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
If you are running this skill in Codex, read ../references/codex-compatibility.md before following host-specific tool instructions.
- Very specific: line 20
If docs/architecture/COMPONENTS.md exists, read it before creating or specifying UI components — reuse or extend an existing component on …
- Very specific: line 52
If the file exists, read the current block between <!-- soloship:components START --> and <!-- soloship:components END -->.
- Very specific: line 78
Do NOT consolidate anything yourself.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Host Compatibility
If you are running this skill in Codex, read ../references/codex-compatibility.md before following host-specific tool instructions. Claude Code should continue to use the Claude-specific tools and command wrappers described here.
Soloship Component Inventory
<!-- concern:component-reuse -->If docs/architecture/COMPONENTS.md exists, read it before creating or
specifying UI components — reuse or extend an existing component on purpose
match, cite what you found, and apply the rule of three (see
references/component-inventory.md).
You generate and maintain that inventory. The full contract — file format,
marker-delimited block, delta-update rule, canonical pointer template — lives
in ../references/component-inventory.md. Read it before writing anything.
Step 1: Discover components
- Glob for component files across the whole repo (tracked files):
git ls-files -- '*.tsx' '*.jsx' '*.vue' '*.svelte'Skip obvious non-components: test files (*.test.*,*.spec.*,__tests__/), storybook files (*.stories.*), and type-only files. - For each file, extract exported component names — PascalCase exports via
export function X/export const X(includingmemo(/forwardRef(wrappers) /export default function X/export default class X. For.vue/.svelte, the component name is the file basename. - For each component, derive:
- File: repo-relative path.
- Purpose: one line inferred from the JSX/template and naming. Plain English, what it renders/does — not implementation detail.
- Props: from the TS interface/type or destructured props; names only, comma-separated (cap at ~8, then "…").
- Used by:
git grep -l "<Name\b\|import.*Name"across source files; list importer basenames (cap at ~6, then "+N more").
Step 2: Write the inventory (delta-update — never a blind rewrite)
Target: docs/architecture/COMPONENTS.md (mkdir -p docs/architecture first).
- If the file exists, read the current block between
<!-- soloship:components START -->and<!-- soloship:components END -->. - Delta-update: compare discovered components against existing rows.
- Component unchanged (same file, same exported props surface) → keep its row byte-for-byte, including its Purpose prose. Do not re-word.
- New component → add its row.
- Deleted component → remove its row.
- Changed component (moved file / props changed) → update only the changed cells; keep the Purpose prose unless the component's job actually changed.
- Rows sort by component name. Content outside the markers is the user's — preserve it untouched.
- A re-run with no code changes must produce no diff. That property is what makes the inventory trustworthy; if your run would re-word unchanged rows, you are doing it wrong.
Step 3: Flag possible duplicates (propose — never auto-merge)
Under a ## Possible duplicates — consolidate? heading after the block, list
candidate pairs the user should look at:
- Name similarity: EmailBox vs EmailComposer vs MessageComposer.
- Prop-shape similarity: two components whose prop lists overlap heavily (≥ ~70%) and whose purposes read the same.
- For each pair: both files, one line on why they look duplicated, and the
concrete consolidation option ("extend X with a
variantprop; delete Y").
Do NOT consolidate anything yourself. The user decides; consolidation work
routes through /soloship:plan → /soloship:implement. Remember the rule of
three from the contract: two similar components may be legitimately separate —
flag, don't judge.
Step 4: Report
Tell the user: components found (count), rows added/removed/updated this run (zero-change runs say "no drift"), and the duplicate candidates (if any) as the decision list.
Common misreads
- "I'll just regenerate the whole table — it's cleaner" → a full rewrite re-words unchanged Purpose prose, destroys the no-diff idempotency property, and makes every run look like drift. Delta-update only.
- "These two components are obviously the same — I'll merge them" → consolidation is a code change with blast radius. You propose; the user decides; /implement executes.
- "This project has no docs/architecture dir, skip it" →
mkdir -p docs/architectureis one command. The inventory is the data source every reuse checkpoint depends on. - "The inventory is stale, so it's useless" → stale is one run away from fresh — that's this skill's job. Run the delta-update.
Verification
docs/architecture/COMPONENTS.mdexists with the marker-delimited block- Re-running immediately produces no diff (
git diff --statclean on the file, or byte-identical content) - Every row's file path exists in the repo
- Possible-duplicates section present (may be empty) and proposes, never merges
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

