share-github

Generates syntax-highlighted social media cards from GitHub code snippets with security scrubbing.

Updated Jun 8, 2026
One-click install
npx skills add https://github.com/shawn-sandy/agentics-kit --skill share-github-shawn-sandy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: share-github
Source: https://github.com/shawn-sandy/agentics-kit/tree/main/kit/plugins/social-media-tools/skills/share-github
Command: npx skills add https://github.com/shawn-sandy/agentics-kit --skill share-github-shawn-sandy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Sharing code snippets from GitHub on social media usually requires manual screenshotting, formatting, and copywriting, and risks leaking secrets embedded in the code. This Skill automates the entire pipeline from URL to publishable card image and platform-ready copy. ## Core Features & Use Cases - GitHub Snippet Extraction: Parses blob or raw GitHub URLs, including #L10-L25 line fragments, and fetches the exact line range (capped at 80 lines) from public repositories. - Security Scrub Gate: Routes every snippet through a security-scrub skill that blocks the workflow if secrets are detected, preventing accidental credential leaks. - Card Generation & Copy Drafting: Fills an HTML template with HTML-escaped, syntax-highlighted code, renders a dark-mode PNG via Playwright, and drafts platform-aware copy for LinkedIn, Twitter/X, Bluesky, or Substack. - Use Case: You find a useful TypeScript pattern in an open-source repo and want to share lines 10-25 on LinkedIn — provide the URL and receive a scrubbed, rendered card image plus ready-to-post copy saved to docs/media/social/. ## Quick Start Share the code at https://github.com/owner/repo/blob/main/src/utils.ts#L10-L25 as a LinkedIn post with a snippet card image.

Frequently Asked Questions about share-github

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

FAQPage Schema
How do I share a GitHub code snippet as a social media image?▼

Provide a GitHub blob or raw URL, optionally with a #L line fragment like #L10-L25. The skill fetches the code, scrubs it for secrets, fills an HTML card template, and renders a dark-mode PNG plus platform-specific post copy.

How to select specific lines from a GitHub file for sharing?▼

Append a line fragment to the GitHub URL, such as #L10 for a single line or #L10-L25 for a range. The fragment is parsed before fetching, and the extracted snippet is capped at 80 lines.

Does this work with private GitHub repositories?▼

No, only public repositories are supported. A 4xx response from the raw URL means the repo is private or the path is wrong, and the workflow stops with a clear error message.

How are secrets in code snippets handled before sharing?▼

Every snippet is written to a temp file and passed to a security-scrub skill before rendering. If the gate returns BLOCKED or CANCELLED, the workflow stops immediately and no card or copy is produced.

Which social platforms are supported for snippet posts?▼

Copy is drafted for LinkedIn, Twitter/X, Bluesky, and Substack, each with platform-specific character limits and formats. All posts follow a takeaway-first doctrine that leads with the teachable principle rather than the code itself.