Логотип Component Registry Cli

Component Registry Cli

Спільнота
MiladJoodi
component-registry-cli

Design, build, and consume a UI component registry with its install CLI: registry structure, item metadata, files, dependencies, local vs published registries, path resolution, versioning, and installs into .cursor / .claude / project paths. Use when adding components via CLI fails, registry JSON is wrong, or install paths/deps resolve incorrectly.

Огляд

ВидавецьMiladJoodi
Репозиторійskills
Назва навичкиcomponent-registry-cli
Зірки
24
Форки
1
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем MiladJoodi. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Component Registry Cli у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/MiladJoodi/skills/tree/main/skills/component-registry-cli
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MiladJoodi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/component-registry-cli .claude/skills/component-registry-cli
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Component Registry Cli в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Component Registry Cli, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Component Registry Cli не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Component Registry & CLI

One workflow: publishable registry items + CLI that installs them into a consumer project. Splitting “registry” and “CLI” into two skills duplicates the same dependency/path story — keep them together.

Scope

In scopeRegistry JSON/items, metadata, files, deps, build artifacts, local/remote registries, CLI add/init, path aliases, skills/rules install paths
Out of scopeDesigning the visual components themselves; general npm publishing theory; MCP (see ui-library-mcp)

When to use

  • Authoring or fixing a UI library registry (registry:ui, blocks, examples…).
  • npx <cli> add … fails, writes to the wrong folder, or skips dependencies.
  • Installing skills/rules into .cursor, .claude, or AGENTS.md.
  • Migrating between local file registry and published URL registry.

Mental model

text
Registry index  →  Item manifest  →  Files + deps  →  CLI resolve  →  Write to project
  • Registry: namespaced catalog (@library/...) with types and search metadata.
  • Item: one installable unit (component, block, hook, skill, example).
  • CLI: reads components.json (or equivalent), resolves registry URLs, fetches items, transforms imports, installs npm deps, writes files.

Agent workflow

Inspect

  • components.json / config: style, aliases (@/components), registries map.
  • Registry index and item schemas (name, type, files[], dependencies[], registryDependencies[], cssVars, docs).
  • Generated artifacts (built registry.json, R2/CDN URLs, local __registry__).
  • CLI commands: init, add, diff, validate.
  • Target paths for skills: .cursor/skills, .claude/skills, .agents/skills.

Diagnose

SymptomLikely cause
Item not foundWrong registry namespace; index not rebuilt; typo in name
Files land in wrong folderAlias / cwd / src layout mismatch
Missing peer dependencyItem omitted dependencies or registryDependencies
Import paths broken after addTransformer skipped; wrong tsx/rsc flags
Skill installed but agent ignores itWrong tool path; missing frontmatter name/description
Local works, published failsBuilt artifact stale; CDN path; auth on private registry

Plan

markdown
## Pre-change brief
**Root cause:** …
**Evidence:** …
**Proposed fix:** …
**Registry vs CLI touchpoints:** …

Implement

  1. Fix item metadata first (files + deps) before changing CLI.
  2. Rebuild / validate registry artifacts.
  3. Re-run add into a clean fixture project when possible.
  4. For skills: ensure SKILL.md frontmatter matches catalog slug.

Verify

  • add idempotent second run (diff / overwrite policy clear).
  • Imports compile; deps present in package.json.
  • For skills: file exists at the documented Cursor/Claude/Codex path.
  • Version: published registry URL serves the intended build.

Registry item checklist

  • name stable and URL-safe
  • type correct (registry:ui, registry:block, registry:hook, …)
  • files[].path + type (+ target when non-default)
  • dependencies (npm) vs registryDependencies (other items)
  • Description/search text for discovery
  • No secrets in shipped files

CLI install checklist

  • Config present (init if missing)
  • Registry key resolves (@name → URL or local path)
  • Path aliases match tsconfig
  • Error messages actionable (missing config, 404 item, network)
  • Overwrite / conflict behavior documented

Skill / agent installs

When the “component” is a skill:

TargetTypical path
Cursor.cursor/skills/<slug>/SKILL.md
Claude Code.claude/skills/<slug>/SKILL.md
Codex.agents/skills/<slug>/SKILL.md
Project rules.cursor/rules/*.mdc or AGENTS.md

Keep slug = folder = frontmatter name.


Common failures

  • Editing source registry but forgetting to rebuild published JSON.
  • Putting npm deps only in README, not in item dependencies.
  • Using relative imports that the CLI cannot rewrite.
  • Mixing monorepo package paths with consumer alias paths.
  • Treating registry and CLI as unrelated codebases — they share one schema.

Best practices

  • Validate registry in CI before publish.
  • One clear namespace (@yourlib) in docs and MCP.
  • Prefer additive migrations; never silently rename item name.
  • Fixture apps for smoke-testing add.
  • For agent skills, ship the same markdown the site catalog describes.

Report

markdown
## Registry/CLI report
**Item:** …
**Registry:** local | published
**Failure point:** index | item | deps | paths | write
**Fix:** …
**Verified add:** yes | no

Поширені запитання

Що робить навичка ШІ Component Registry Cli?

Design, build, and consume a UI component registry with its install CLI: registry structure, item metadata, files, dependencies, local vs published registries, path resolution, versioning, and installs into .cursor / .claude / project paths. Use when adding components via CLI fails, registry JSON is wrong, or install paths/deps resolve incorrectly.

Навіщо використовувати Component Registry Cli у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Component Registry Cli — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Component Registry Cli у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/MiladJoodi/skills/tree/main/skills/component-registry-cli. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Component Registry Cli?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Component Registry Cli?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Component Registry Cli — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Component Registry Cli?

Так. Навичку опубліковано на GitHub: MiladJoodi, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇