publish-the-skill
Publish a skill folder as a .skill package to GitHub. Use when distributing skills.
What this skill does
# Publish The Skill
Publish any skill folder as a distributable `.skill` package on GitHub with automated CI releases.
## Requirements
- `gh` CLI authenticated
- Skill folder containing a valid `SKILL.md` with frontmatter (`name`, `description`)
- Git available
## Workflow
### 1. Gather info
Determine these values (ask if not obvious):
| Variable | Source | Example |
|----------|--------|---------|
| `SKILL_DIR` | Folder containing SKILL.md | `ebmt-handbook/` |
| `SKILL_NAME` | From SKILL.md frontmatter `name:` | `ebmt-handbook` |
| `REPO_NAME` | `{SKILL_NAME}-skill` | `ebmt-handbook-skill` |
| `GH_USER` | `gh api user --jq '.login'` | `htlin222` |
| `DESCRIPTION` | From SKILL.md frontmatter `description:` (first sentence, <160 chars) | |
| `LICENSE` | From SKILL.md or ask user | `CC BY 4.0` |
### 2. Create `.gitignore`
```
.DS_Store
*.zip
*.skill
```
### 3. Create GitHub Action
Write `.github/workflows/release.yml`:
```yaml
name: Build & Release Skill
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set version from SHA
id: version
run: |
SHORT_SHA="${GITHUB_SHA::7}"
echo "sha=${SHORT_SHA}" >> $GITHUB_OUTPUT
- name: Package skill
run: |
cd SKILL_DIR
zip -r ../SKILL_NAME.zip .
cd ..
cp SKILL_NAME.zip SKILL_NAME.skill
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: SKILL_NAME-${{ steps.version.outputs.sha }}
path: SKILL_NAME.skill
- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
SHORT_SHA="${GITHUB_SHA::7}"
TAG="v0.1.0-${SHORT_SHA}"
cat > release-notes.md <<EOF
## SKILL_NAME skill
**Version:** \`${SHORT_SHA}\`
**Commit:** ${GITHUB_SHA}
### Install
\`\`\`bash
npx skills add GH_USER/REPO_NAME
\`\`\`
Or download the \`.skill\` file from assets below.
EOF
gh release create "${TAG}" \
--title "SKILL_NAME skill ${TAG}" \
--notes-file release-notes.md \
SKILL_NAME.skill
```
Replace all `SKILL_DIR`, `SKILL_NAME`, `REPO_NAME`, `GH_USER` placeholders with actual values.
### 4. Create README.md
```markdown
# SKILL_NAME
[](https://github.com/GH_USER/REPO_NAME/actions/workflows/release.yml)
[](https://github.com/GH_USER/REPO_NAME/releases/latest)
[](LICENSE_URL)
[](https://github.com/vercel-labs/skills)
[](https://github.com/vercel-labs/skills#supported-agents)
> DESCRIPTION_ONE_LINER
## Install
\```bash
npx skills add GH_USER/REPO_NAME
npx skills add -g GH_USER/REPO_NAME # global
npx skills add GH_USER/REPO_NAME --agent claude-code # specific agent
\```
## What it does
WHAT_IT_DOES (extract from SKILL.md body)
## Skill structure
TREE_OUTPUT (run `tree SKILL_DIR`)
## Protocol
This skill follows the [vercel-labs/skills](https://github.com/vercel-labs/skills) protocol.
Each push to `main` triggers a GitHub Action that packages the skill as a `.skill` file
and creates a release tagged with the commit SHA.
## License
LICENSE_LINE
```
Replace all placeholders. Generate the tree from actual directory contents.
### 5. Git init, commit, and push
```bash
git init && git branch -M main
git add -A
git commit -m "Initial release: SKILL_NAME skill for AI coding agents"
gh repo create REPO_NAME --public \
--description "DESCRIPTION_SHORT. Install: npx skills add GH_USER/REPO_NAME" \
--source . --push
```
### 6. Verify
```bash
gh run list --repo GH_USER/REPO_NAME --limit 1
gh run watch <RUN_ID> --repo GH_USER/REPO_NAME --exit-status
gh release list --repo GH_USER/REPO_NAME --limit 1
```
Report the repo URL and install command to the user.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.