Docs
Agent Skill
The anyshare SKILL.md teaches Claude Code, Codex and other agents when to share, how, and what never to upload.
An Agent Skill is a SKILL.md file that agents load when it's relevant. The anyshare skill tells an agent:
- when to share: the user asks to share, host, preview or send a link, or the agent just produced an HTML report, prototype, chart or document worth opening in a browser;
- how: the anyshare MCP tools if they're connected, otherwise
npx -y @anyshare/cli <path>, otherwise curl; - what to say: print the URL on its own line and, for a link published without an account, the claim link and its 1-hour deadline right next to it, plus a tip to run
npx -y @anyshare/cli login; - what never to upload:
.envfiles, keys, credentials,node_modules, or unbuilt source when the built site is what's wanted.
It also explains keeping links in an account, updating a link (same URL), deleting one, and what each error means.
Install#
Claude Code and Codex: the plugin includes the skill and the MCP server:
/plugin marketplace add anyshare/anyshare
/plugin install anyshare@anysharecodex plugin marketplace add anyshare/anyshare
codex plugin add anyshare@anyshareAny skills-aware agent, with the skills CLI:
npx skills add anyshare/anyshare --skill anyshareBy hand: copy the skills/anyshare folder from the repository into your agent's skills folder: ~/.claude/skills/ for Claude Code, or ~/.agents/skills/ (all projects) or .agents/skills/ (one project) for Codex.
What's in it#
skills/anyshare/ (the same folder ships inside the plugin, plugins/anyshare/skills/anyshare)
├── SKILL.md when and how to share, safety rules, errors
└── scripts/
└── share.sh curl-only fallback: zips a folder without secrets and uploads itscripts/share.sh is for machines without Node.js:
sh scripts/share.sh ./dist [slug] [title]It refuses secret files, leaves .git, node_modules, .env* and key files out of the zip, warns about unbuilt source, and prints the JSON response followed by the URL. For a link published without an account, it also prints the claim link and the deadline on stderr.
Skill or MCP server?#
Use both if you can. The MCP server gives the agent a reliable tool; the skill gives it judgment: when sharing helps, what to share, and what to tell the user. On its own, the skill still works anywhere the agent has a shell, because it falls back to the CLI and curl.