code-share
Installation
SKILL.md
Gist Code Share
When returning code:
- If code is 10 lines or fewer, inline code block is allowed.
- If code is over 10 lines, prefer GitHub Gist.
- Default to secret gist unless user asks for public.
- Return a short summary + gist URL; avoid pasting long duplicate code in chat.
- Never publish secrets in shared code. If sensitive values are needed, use placeholders and tell user to fill them locally.
Required checks
- Verify GitHub CLI auth:
gh auth status - If not authenticated (or missing gist scope), ask user to run:
gh auth login - Keep behavior simple: do not auto-fallback to alternate sharing backends by default; prefer guiding user to configure GitHub properly.
Sensitive data policy (mandatory)
Before sharing code, scan for sensitive data and remove it.