code-share
Share code via GitHub Gist instead of inline chat blocks. Use when code output exceeds 10 lines, when the user asks for copy-friendly code sharing in Discord/chat, or when preserving formatting is important.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- code-share
- description
- Share code via GitHub Gist instead of inline chat blocks. Use when code output exceeds 10 lines, when the user asks for copy-friendly code sharing in Discord/chat, or when preserving formatting is important.
03 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.
- Never include API keys, tokens, passwords, private keys, cookies, session IDs, webhook secrets, phone/email PII, or absolute local secret paths.
- If code requires secrets, replace with placeholders, for example:
API_KEY="<FILL_ME>"TOKEN="<YOUR_TOKEN_HERE>".enventry with empty value
- Add a short note telling the user to fill placeholders locally after copying.
Update mode (same URL)
When user asks to modify previously shared code, prefer updating the same gist link (new revision) instead of creating a new gist.
Use:
./scripts/update_gist.sh <gist_url_or_id> <file> "<short description>" [public|secret] [lang]
Behavior:
- Keep the same gist URL.
- Save changes as a new revision.
- Return the same fixed 3-line response format.
Create a new gist only when:
- user explicitly asks for a new link, or
- existing gist is not editable by current GitHub account.
Create gist
Use:
gh gist create <file> --desc "<short description>"
If code is generated in-session, write it to a temp file in workspace first. Use language-appropriate extension (.py, .js, .ts, etc.) so Gist syntax highlighting works well.
With bundled script:
./scripts/create_gist.sh <file> "<short description>" [public|secret] [lang]
If <file> has no extension, pass [lang] (for example python, typescript) so the script can upload with a proper extension.
Default behavior: do not use --web (automation-friendly).
Optional: use --web only when the user explicitly asks to open the gist in browser immediately.
Response format (fixed)
Always use exactly this 3-line format:
- One sentence on what was shared.
- Gist URL (separate line).
File: <filename> · Lines: <line_count>
Example:
Shared the full script as a secret Gist for clean copy/paste. https://gist.github.com/... File: lc761_solution.py · Lines: 42
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.