Skip to content
Back to skills

Share Skill

ASecurity

Package an installed Claude Code skill into a shareable zip in a fresh temp folder, then open that folder in Finder. Use when the user says "/share-skill <name>", "share the X skill", "bundle/export/package a skill to send someone", or wants a skill zipped up to hand off.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentsbashnodegit

Works with

  • claude code
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add magnusrodseth/dotfiles --skill share-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Share Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Share Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/magnusrodseth-share-skill/badge)](https://www.skillsdirectory.com/skills/magnusrodseth-share-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: share-skill
description: Package an installed Claude Code skill into a shareable zip in a fresh temp folder, then open that folder in Finder. Use when the user says "/share-skill <name>", "share the X skill", "bundle/export/package a skill to send someone", or wants a skill zipped up to hand off.
disable-model-invocation: true
argument-hint: [skill-name]
allowed-tools: Bash(bash *), Bash(open *)
---

# Share Skill

Package one installed skill into a `.zip` inside a fresh temp folder and open that folder in Finder, ready to hand off.

## Steps

1. **Identify the target skill** from the user's request. They may write `/share-skill the /humanize skill`, `share humanize`, or give a path. Extract the bare skill name (strip a leading `/`, ignore filler like "the" and "skill"). If no skill is named, ask which one.

2. **Run the packager**, passing the name. Use this skill's own base directory (shown when the skill loaded) for the script path:

   ```bash
   bash "<this-skill-base-dir>/scripts/share-skill.sh" <skill-name>
   ```

   The script takes either a bare name (`humanize`), a slash-command name (`/humanize`), or a path, absolute or relative, to a directory holding a `SKILL.md`. A path is tried verbatim first, so an absolute path works from any working directory. Failing that it searches `./.claude/skills`, `./.agents/skills`, `$CLAUDE_CONFIG_DIR/skills`, `~/.claude/skills` and `~/.agents/skills`. It then dereferences symlinks so the archive is self-contained, excludes junk (`.DS_Store`, `.git`, `*-cache*`, `node_modules`, `__pycache__`), zips it, drops the zip in a fresh temp folder, and opens that folder in Finder.

3. **Report** the `Zip:` and `Folder:` paths from the script output. Tell the user Finder is open on that folder, and that a recipient installs the skill by unzipping into `~/.claude/skills/` (personal) or a project's `.claude/skills/` (project), then starting a new session.

## Notes

- Output lands in a readable, date-stamped folder: `/tmp/shared-skills/<skill-name>_<YYYY-MM-DD_HHMMSS>/<skill-name>.zip`.
- The zip's top-level folder is the skill name, so it unzips to `<skill-name>/SKILL.md`.
- The Finder step is macOS-only; the zip is still built on other platforms.
- For richer distribution (versioning, bundling agents/hooks/MCP, a marketplace), package as a plugin with a `.claude-plugin/plugin.json` instead. See https://code.claude.com/docs/en/plugins. This skill covers the common case: a single skill, zipped, to send.

Files in this skill

  • SKILL.md2.4 KB
  • scripts/share-skill.sh2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.