code-share

Convert long code blocks into GitHub Gists using GitHub CLI.

1|Updated Jun 6, 2026
One-click install
npx skills add https://github.com/phillipgan/myagent --skill code-share
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-share
Source: https://github.com/phillipgan/myagent/tree/main/skills/code-share
Command: npx skills add https://github.com/phillipgan/myagent --skill code-share

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) components.

What problem does it solve?

This Skill helps in sharing code efficiently by converting lengthy inline code into a GitHub Gist, which enhances readability and accessibility, especially when code output exceeds 10 lines.

Core Features & Use Cases

  • Code Formatting: Converts long inline code into GitHub Gist, maintaining readability and formatting.
  • Security: Implements sensitive data policy to prevent exposure of sensitive information.
  • Flexibility: Offers public and secret gists for varying needs.

Quick Start

To share a code snippet, run the code-share skill with the snippet content.

Frequently Asked Questions about code-share

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert long inline code into a GitHub Gist for sharing?

To convert long inline code into a GitHub Gist, use the code-share Skill. It transforms lengthy code blocks into Gists, enhancing readability when inline code blocks are not feasible.

Do I need GitHub CLI to create GitHub Gists for code formatting?

Yes, you need the GitHub CLI installed. The Skill requires GitHub CLI for authentication and interaction with GitHub APIs to securely create and share your code Gists.

When should I use GitHub Gist instead of inline code blocks in documentation?

Use GitHub Gist instead of inline code blocks when your code output exceeds 10 lines. This conversion maintains formatting and enhances readability in chat applications and documentation.

Can I create secret gists to ensure secure sharing of sensitive code?

Yes, you can create secret gists for secure sharing. The Skill offers both public and secret Gist options and implements sensitive data policies to prevent exposure of sensitive information.

What is the best way to share code snippets that exceed 10 lines in chat applications?

The best way to share lengthy snippets in chat applications is converting them into a GitHub Gist. This approach maintains code formatting and ensures accessibility without overwhelming the chat interface.