From registry-system
Validate a component and open a PR to add it to a target registry repo. Use when the user says "push [name] to registry", "send [component] to [repo]", or "add [component] to phucbm/my-registry".
How this skill is triggered — by the user, by Claude, or both
Slash command
/registry-system:push-to-registryThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Takes a validated component from the current project and opens a PR in a target registry repo.
Takes a validated component from the current project and opens a PR in a target registry repo.
Run validate-component for the component. If any FAIL, stop and show the report. Do not continue until all failures are resolved.
Ask the user: "Which registry repo is the target?" (e.g. phucbm/project-b)
If the user already provided it in their message, use that.
gh repo view {target-repo} --json name
Clone target repo to a temp dir:
git clone https://github.com/{target-repo}.git /tmp/registry-push-target --depth=1
Check that /tmp/registry-push-target/src/registry-system/ exists. If not, stop:
"Target repo does not have registry-system installed. Install it via: npx degit phucbm/registry-system"
Read NEXT_PUBLIC_REGISTRY_NAMESPACE from target repo's .env or .env.example. Use that as {target-namespace}.
Check if registry/{target-namespace}/blocks/{name}/ already exists in the target repo.
If yes: ask "Component already exists in target. Overwrite? (yes/no/diff)"
diff → show what changedno → stopyes → continuecd /tmp/registry-push-target && git checkout -b registry/{name}
Copy from source project:
registry/{source-namespace}/blocks/{name}/ → registry/{target-namespace}/blocks/{name}/content/components/{name}.mdx → content/components/{name}.mdx (if exists)Update namespace references inside copied files if source and target namespaces differ:
registry-item.json files[].path and files[].targetexample.tsx import pathgit add . && git commit -m "feat: add {name} component to registry"
git push origin registry/{name}
gh pr create --repo {target-repo} \
--title "feat: add {name} to registry" \
--body "..."
Print the PR URL and clean up /tmp/registry-push-target.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub phucbm/skills --plugin registry-system