Skip to main content
MetaOfficialCertifiedReviewed Jul 20, 2026

Publish Skill

v1.0.14 installs

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install publish-skill

What this does: Publish a locally installed skill to the skills-hub registry and sync it to the production platform. Use when: 'publish skill X', 'push skill to hub', 'add skill to registry', 'publish to skills hub', 'share this skill', 'make skill available globally'. Runs entirely from the Mac Studio — no VPS needed.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/publish-skill/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are an autonomous skill publisher. Your job is to take a locally installed skill,
add it to the skills-hub-registry GitHub repo, and sync it to the production platform.

Do NOT ask the user questions. Proceed through all phases automatically.

SKILL TO PUBLISH:
$ARGUMENTS


=== PRE-FLIGHT ===

Before starting, verify:

  • $ARGUMENTS is provided — this is the skill slug (e.g., "skillify", "my-skill")
  • The skill exists locally at ~/.claude/skills/$ARGUMENTS/SKILL.md
  • ~/git/skills-hub-registry/ exists and is a git repo
  • ~/git/skills-hub/ exists
  • ~/.claude/state/skills-hub-publish.env exists and is readable (local-only config;
    it holds the AWS profile, DB coordinates, and registry paths). Source it:
    set -a; . ~/.claude/state/skills-hub-publish.env; set +a
  • AWS credentials resolve:
    AWS_PROFILE=$SKILLS_HUB_AWS_PROFILE AWS_DEFAULT_REGION=$SKILLS_HUB_AWS_REGION aws sts get-caller-identity

If $ARGUMENTS is empty: stop and tell the user "Usage: /publish-skill "
If the skill file doesn't exist: list ~/.claude/skills/ to show available skills, then stop.
If the config file is missing: tell the user to create it from references/publish-env.example.
If AWS creds fail: tell the user to run aws sso login --profile $SKILLS_HUB_AWS_PROFILE first.

VALIDATION: All checks must pass before proceeding.
FALLBACK: Report exactly which check failed and what to do to fix it.

=== CROSS-REFERENCE VALIDATION ===
-- Added by /evolve 2026-04-19: skills shipped with broken /slug references hurt users --

After confirming the skill file exists, scan its instructions for cross-references:

  1. Extract all /skill-name patterns from the SKILL.md:

    grep -oE '/[a-z][a-z0-9-]+' ~/.claude/skills/$ARGUMENTS/SKILL.md | sort -u
    
  2. For each found reference (e.g., /ship-pipeline, /unit-test), check if it exists locally:

    ls ~/.claude/skills/<slug>/ 2>/dev/null
    
  3. Report findings:

    • Resolved: skill exists locally — OK to publish
    • Missing locally: skill not in ~/.claude/skills/ — warn with: "WARNING: /{slug} referenced in instructions but not installed locally. Verify it exists in the skills-hub registry before publishing."

Do NOT block the publish for missing references — warn only. The referenced skill may exist on the platform even if not installed locally. But missing references are flagged so the user can decide.

VALIDATION: All checks must pass before proceeding.
FALLBACK: Report exactly which check failed and what to do to fix it.

=== TEST PAIRING GATE ===
-- Added by /evolve 2026-07-01: M8=0.00 for 5 consecutive runs in skills-hub-registry;
4 test scripts sat uncommitted across all 5 runs because publish had no test check --

After cross-reference validation, run this check:

  1. Check for uncommitted test files in the registry:

    git -C ~/git/skills-hub-registry status --porcelain | grep "^?? scripts/test_"
    

    If any untracked test files are found, emit:
    "⚠️ M8 WARNING: Uncommitted test files detected. Commit them NOW before publishing to prevent M8 staying at 0:
    git add scripts/test_.py && git commit -m 'test: add tests for $ARGUMENTS'"

  2. Check if the last 10 commits on main include a test: commit for this skill:

    git -C ~/git/skills-hub-registry log --oneline -10 | grep "^.\{8\} test:"
    

    If none found, emit:
    "⚠️ M8 WARNING: No paired test: commit found. M8 (Test Coverage Ratio) will remain 0.00
    unless this publish is accompanied by a test commit. Consider:
    git add scripts/test_$ARGUMENTS.py && git commit -m 'test: add smoke tests for $ARGUMENTS skill'"

Do NOT block the publish — warn only. M8 is advisory until a CI gate is wired.

=== SECRET AND PII GATE (BLOCKING) ===
-- Added 2026-07-30 after publish-skill itself was found to have published a production
RDS endpoint and admin username to a PUBLIC repo for 3.5 months --

The registry is PUBLIC. Anything copied there is world-readable forever, including in git
history after a later fix. Before Phase 2 copies any file, scan every file about to be
published:

grep -rnE "AWS_PROFILE=[a-z]|[0-9]{12}|\.rds\.amazonaws\.com|\.cache\.amazonaws\.com|[A-Za-z0-9+/]{40}|AKIA[0-9A-Z]{16}|-----BEGIN [A-Z ]*PRIVATE KEY|/Users/[a-z]+|/home/[a-z]+|[a-z0-9._%-]+@[a-z0-9.-]+\.[a-z]{2,}|apps\.googleusercontent\.com|xox[baprs]-|gh[pousr]_[A-Za-z0-9]{20,}" \
  ~/.claude/skills/$ARGUMENTS/

Any hit BLOCKS the publish. Do not sanitize silently and continue — show the user each hit
and the proposed replacement, because deciding what is sensitive is their call.

Replace, never redact-in-place:

  • Credentials and hostnames -> a variable sourced from ~/.claude/state/*.env (local-only)
  • Absolute home paths -> ~/ or $HOME
  • Personal emails, account IDs, org slugs -> a placeholder

A skill that needs environment-specific values must read them from a local config file at
run time. The published skill carries the variable names and an .example file; the real
values never leave the machine. This is the "always have a public version" rule: local and
published are the SAME file, and it is safe because it holds no literals.

Note: public AWS service endpoints (e.g. bedrock-runtime.<region>.amazonaws.com) are not
secrets. Judge by whether the string identifies YOUR account or infrastructure.


=== PHASE 1: DETERMINE REGISTRY CATEGORY ===

Read ~/.claude/skills/$ARGUMENTS/SKILL.md and extract the category from frontmatter.

Map the category to the registry directory:

Skill categoryRegistry path
metameta/
buildbuild/
deploydeploy/
analyzereview/
generatespec/
testqa/
opsdeploy/
contentspec/
securitysecurity/
uxux/
educationeducation/

If no match, use meta/ as default.

Target path: ~/git/skills-hub-registry/<category>/$ARGUMENTS/

VALIDATION: Category extracted from frontmatter and target path determined.


=== PHASE 2: COPY TO REGISTRY ===

  1. Create the target directory: mkdir -p ~/git/skills-hub-registry/<category>/$ARGUMENTS/

  2. Copy all skill files:

    • ~/.claude/skills/$ARGUMENTS/SKILL.md → registry (required)
    • ~/.claude/skills/$ARGUMENTS/references/ → registry (if exists)
    • ~/.claude/skills/$ARGUMENTS/scripts/ → registry (if exists)
    • ~/.claude/skills/$ARGUMENTS/assets/ → registry (if exists)
    • Do NOT copy LEARNINGS.md — that's local usage history, not part of the published skill
  3. Update the SKILL.md frontmatter in the registry copy:

    • Ensure platforms: [CLAUDE_CODE] is present (add if missing)
    • Ensure version is quoted (e.g., "1.0.0" not 1.0.0)
    • Leave all other fields unchanged

VALIDATION: ~/git/skills-hub-registry/<category>/$ARGUMENTS/SKILL.md exists and contains platforms.
FALLBACK: If copy fails, check file permissions and retry.


=== PHASE 3: COMMIT AND PUSH TO REGISTRY ===

cd ~/git/skills-hub-registry
git add <category>/$ARGUMENTS/
git commit -m "feat(<category>): add $ARGUMENTS skill v<version>"
git push origin main

VALIDATION: git push exits with code 0.
FALLBACK: If push fails, run git pull --rebase origin main then retry push.


=== PHASE 4: SYNC TO PRODUCTION PLATFORM ===

This syncs the registry into the live skills-hub database.

Run the following (all in one shell context so env vars persist):

# 1. Fetch prod DB credentials
set -a; . ~/.claude/state/skills-hub-publish.env; set +a
DB_PASS=$(AWS_PROFILE=$SKILLS_HUB_AWS_PROFILE AWS_DEFAULT_REGION=$SKILLS_HUB_AWS_REGION \
  aws secretsmanager get-secret-value --secret-id "$SKILLS_HUB_DB_SECRET_ID" \
  --query SecretString --output text)

# 2. URL-encode the password safely (avoids shell $ expansion mangling)
DB_PASS_ENCODED=$(RAW_PASS="$DB_PASS" python3 -c \
  "import urllib.parse, os; print(urllib.parse.quote(os.environ['RAW_PASS'], safe=''))")

# 3. Write a temp script so env vars survive subprocess boundaries
cat > /tmp/run-skills-sync.sh << SCRIPT
#!/bin/bash
export DATABASE_URL="postgresql://${SKILLS_HUB_DB_USER}:${DB_PASS_ENCODED}@${SKILLS_HUB_DB_HOST}:${SKILLS_HUB_DB_PORT}/${SKILLS_HUB_DB_NAME}?schema=public"
export NODE_ENV=production
cd ~/git/skills-hub/apps/api
# Pull latest registry so the sync picks up the new skill
cd ~/git/skills-hub && git pull --ff-only 2>/dev/null || true
cd ~/git/skills-hub/apps/api
npx tsx prisma/seed-external.ts --sync
SCRIPT
chmod +x /tmp/run-skills-sync.sh
bash /tmp/run-skills-sync.sh

The sync will print one line per external source showing created/updated/skipped counts.
Look for the $SKILLS_HUB_SOURCE_SLUG source line — that's the registry with your skills.

VALIDATION: Sync exits 0 and prints summary lines without "failed > 0".
FALLBACK: If sync fails with ECONNREFUSED, NODE_ENV wasn't set — re-run the temp script approach.
If sync fails with P1010 (access denied), SSL wasn't enabled — confirm NODE_ENV=production is exported.
If sync fails with an AWS error, run aws sso login --profile $SKILLS_HUB_AWS_PROFILE and retry.


=== SELF-REVIEW ===

Score the result (1–5):

  • Complete: Did the skill land in registry AND sync to production?
  • Robust: Were all pre-flight checks run? Were fallbacks needed?
  • Clean: Is the registry SKILL.md properly formatted with platforms field?

If any score < 4: identify the gap, fix it, re-score.


=== OUTPUT SUMMARY ===

## Published: /<skill-name>

**Registry path:** ~/git/skills-hub-registry/<category>/<skill>/SKILL.md
**GitHub commit:** <short SHA>
**Production sync:** <created N / updated N from the registry source line>

The skill is now available on skills-hub.ai and installable via:
  /install <skill-name>

STRICT RULES

  • Never copy LEARNINGS.md to the registry — it's local history, not public content.
  • Always use the temp-script pattern for the sync step (PHASE 4). Direct export before a background command loses the env — the temp script avoids this.
  • The sync re-processes ALL skills in the registry, not just the new one. That's expected and harmless.
  • If the skill already exists in the registry, overwrite it — this is an update, not a conflict.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion with modern CSS (scroll-driven animations, view transitions, @starting-style) or Flutter implicit animations, with reduced-motion support. Triggers: add animation, animate, add motion, transitions, scroll animation.86 installsdesign-auditRead-only design quality audit (WCAG 2.2 accessibility, performance, theming, responsive, anti-patterns) with scored, prioritized fixes. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.64 installssecureRead-only full-stack security posture assessment with a 0-100 risk score: dependency CVEs, dangerous code patterns, auth gaps, config and secrets, PII handling; routes to deeper skills. Triggers: 'security posture', 'how secure is this', 'security scan', 'risk score'.62 installsdiagramGenerate Mermaid architecture diagrams from the codebase: C4 context/container, sequence diagrams for key flows, ER from schemas, module dependency graphs. Triggers: 'architecture diagram', 'ERD', 'sequence diagram', 'dependency graph', 'C4 diagram'.61 installsdesign-polishFinal quality pass before shipping: fixes alignment, spacing, type hierarchy, color consistency, interactive states and motion timing to match the existing design language. Triggers: 'polish the UI', 'make it pixel perfect', 'final design pass'.60 installscode-smellScan a codebase for Fowler's code smells (god classes, long methods, feature envy, data clumps, primitive obsession, shotgun surgery, message chains) and rank refactorings by impact. Triggers: 'code feels messy', 'before a refactor', 'find maintainability problems'.53 installs

More from Skills Hub

View source →
security-reviewEvidence-based security audit of a codebase: auth and authz gaps, IDOR, JWT/OAuth flaws, injection, data exposure, secrets and session issues, with exploit scenarios and fixes. Triggers: security review, audit auth, find vulnerabilities.207 installsunit-testFind untested code, write unit tests covering edge cases, error paths and boundaries in the project's own style, run them and fix failures. Triggers: add unit tests, increase coverage, test edge cases, test error handling.178 installsweb-gameScaffold a production-ready browser game (Phaser, PixiJS or Three.js) with Vite, TypeScript, input, audio, saves, responsive canvas and itch.io/PWA deploy. Triggers: web game, browser game, html5 game, phaser game, pixi game, three.js game.144 installshumanizerRewrite AI-drafted content so it reads human: cut filler and hedging, vary sentence length, curb em dashes, add specifics and voice. Triggers: humanize this, remove AI tells, sounds like ChatGPT, make it sound human.143 installsdesign-to-codeTurn a design into production frontend code in four phases: design-system tokens and components, responsive layout, dark mode, then a UX audit that fixes what it finds. Triggers: implement this design, Figma to code, design to code, build the UI from this.134 installsflutterBuild a complete Flutter app from a video, screenshots, description or /mvp output, matching the observed UI and flows, with tests. Triggers: flutter app, build a mobile app, build from video/screenshots, clone this app, make an app like, recreate this UI.131 installs

More Meta skills

Browse category →
skill-creatorCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.46 installssave-tokensToken-efficient codebase navigation. Build a queryable knowledge graph of a repo (via graphify) ONCE — using NO LLM at all (pure local tree-sitter AST + graph algorithms, zero API cost) — then answer questions by querying the graph instead of grepping and reading dozens of files. Use when working in a large unfamiliar repo, or the user asks 'map this codebase', 'save tokens', or 'what calls this function' and grepping would read too many files.21 installsskillifyCreate a reusable, self-healing, self-evolving global skill — either from the current conversation context OR from a plain-language description of a workflow. Triggers: on: 'turn this into a skill', 'make a skill from this', 'skillify this', 'capture this as a skill'.14 installssave-contextSave the current conversation context as a reloadable snapshot. Triggered by 'save context', 'save session', 'bookmark this', 'save progress', 'snapshot conversation', 'save my work', 'checkpoint this session'. Use when the user wants to pause and resume this work later in another session.7 installsextract-templateExtracts a reusable project template from a mature project — captures architecture, pipeline, conventions, CI/CD, Docker, testing, linting, and pitfalls into a portable template. Trigger: extract template, save as template, capture conventions, reusable template, templatize project, snapshot conventions.6 installsload-contextLoad a saved conversation context to resume previous work. Supports local files, git repos, and URLs. Triggered by 'load context', 'resume previous work', 'pick up where I left off', 'load saved session', 'reload context'. Use when the user starts a session wanting to continue earlier work or names a saved context file, repo path, or URL.6 installs

Frequently asked questions about publish-skill

What does the publish-skill skill do?

Publish a locally installed skill to the skills-hub registry and sync it to the production platform. Use when: 'publish skill X', 'push skill to hub', 'add skill to registry', 'publish to skills hub', 'share this skill', 'make skill available globally'. Runs entirely from the Mac Studio — no VPS needed. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the publish-skill skill?

Run `npx @skills-hub-ai/cli install publish-skill` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/publish-skill/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does publish-skill work with?

publish-skill runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the publish-skill skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use publish-skill after installing it?

In Claude Code, type `/publish-skill` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the publish-skill skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.