component-inventory — скилл для Claude Code: состав и установка
Скилл component-inventory для Claude Code собирает карту компонентов с путями к исходникам, вариантами и известными потребителями. Помогает оценивать повторное использование и искать расхождения.
MIT ★ 529 обновлён 2026-11-17
npx skills add ShuaiMXu/happyhands --skill component-inventory -a claude-codeЧто делает component-inventory
Скилл строит инвентаризацию компонентов по исходникам, экспортам, импортам и доступным примерам отрисовки. Он разделяет примитивы и продуктовые шаблоны, фиксирует источники и потребителей, а варианты помечает как наблюдаемые или выведенные. Результат включает структурированные свидетельства, находки, предлагаемые обновления и ограничения.
Статические импорты могут не показать композицию во время выполнения. Алиасы из tsconfig и jsconfig разрешаются по снимку исходников, но это не подтверждает, что сборщик или среда выполнения применяют те же настройки. Обход потребителей ограничен 32 переходами на путь и 256 модулями на компонент; при усечённом графе область проверки неполная. Путь через barrel показывает достижимость модуля, а не факт отображения конкретного компонента.
Какие задачи решает
- составить карту компонентов и их исходных путей
- отделить примитивы от продуктовых шаблонов
- найти известные модули-потребители и ограничения анализа
Примеры запросов агенту
- Составь инвентаризацию компонентов проекта с путями к исходникам и известными потребителями.
- Раздели примитивы и продуктовые шаблоны, а варианты пометь как наблюдаемые или выведенные.
- Проверь, какие модули используют эти компоненты, и перечисли ограничения анализа.
Как установить component-inventory
1Через Skills CLI (Vercel)
npx skills add ShuaiMXu/happyhands --skill component-inventory -a claude-code2Вручную: положить файлы
~/.claude/skills/component-inventory/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/component-inventory/
1Через Skills CLI (Vercel)
npx skills add ShuaiMXu/happyhands --skill component-inventory -a codex2Вручную: положить файлы
.agents/skills/component-inventory/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add ShuaiMXu/happyhands --skill component-inventory -a cursor2Вручную: положить файлы
.cursor/skills/component-inventory/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install ShuaiMXu/happyhands skills/product-design/component-inventory2Вручную: положить файлы
.github/skills/component-inventory/SKILL.md1Через Skills CLI (Vercel)
npx skills add ShuaiMXu/happyhands --skill component-inventory -a gemini-cli2Командой платформы
gemini skills install https://github.com/ShuaiMXu/happyhands --path skills/product-design/component-inventoryВручную: положить файлы
.devin/skills/component-inventory/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о component-inventory
Как установить component-inventory в Claude Code?
Выполни npx skills add ShuaiMXu/happyhands --skill component-inventory -a claude-code. Файл скилла находится по пути ~/.claude/skills/component-inventory/SKILL.md.
Что делает component-inventory?
Он строит карту компонентов с исходными путями, вариантами и известными потребителями, чтобы поддержать решения о повторном использовании и анализ расхождений.
Доказывает ли найденная связь, что компонент отображается на странице?
Нет. Путь через barrel указывает на достижимость модуля, но не подтверждает отображение конкретного компонента. Статические импорты также могут пропустить композицию во время выполнения.
Исходный текст
SKILL.md · MIT
--- name: component-inventory description: "Build a component inventory with source paths, variants, composition and known consumers." --- # Component Inventory Create the component map needed for reuse decisions and drift analysis. ## Required evidence - component sources - exports and imports - rendered examples when available ## Decisions - Record source and consumers - Separate primitives from product patterns - Mark inferred variants observed ## Boundary Static imports may miss runtime composition. Version 0.6.0 resolves explicit tsconfig/jsconfig paths and baseUrl against the recorded source snapshot, including local JSONC extends, referenced projects and nested project scope. Keep configInputs hashes with every resolved alias. This lookup is not proof that a bundler/runtime applies the same mapping. Missing package bases, absolute config paths, overlapping scopes, truncated snapshots, missing targets and ambiguous module candidates remain needs-inspection records. Do not execute target configuration files or silently infer a package config from installed dependencies. Transitive consumer traversal is bounded to 32 edges per path and 256 modules per component. A consumerGraphTruncated flag means the affected scope is incomplete; inspect or narrow the source scope before proposing a complete review. Use consumerEvidence file/line references and potentialConsumers paths to inspect affected modules. A transitive path through a barrel is module reachability, not proof that a particular exported component is rendered. Do not label those pages reviewed or add them to a confirmed capture plan automatically. Preserve moduleResolutionIssues for aliases, missing or ambiguous modules and dynamic expressions; absence of a resolved edge is not evidence of no consumers. Type-only declarations and commented examples are not runtime consumers. CommonJS require candidates still need binding inspection. Return structured evidence, findings, proposed updates and limitations. Use `needs-evidence` when required inputs or professional review are missing. Never invent an Experience Score or promote a project observation into a universal rule.
© ShuaiMXu · MIT · ShuaiMXu/happyhands