share-code

Generates social media copy and dark-mode card images from git changes using HTML templates and Playwright screenshots.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Turning a code change into a shareable social media post requires writing platform-appropriate copy and designing a visual card by hand. This Skill automates that by detecting changes from git, drafting platform-aware copy, and rendering a styled dark-mode card image. ## Core Features & Use Cases - Automatic change detection: Reads git diffs, commit logs, and changelogs to pick the right card type (diff-card, feature-card, or quote-card) without manual input. - Platform-aware copy drafting: Writes takeaway-first social posts following per-platform character limits, tone defaults, and hashtag rules, with optional project defaults from a SOCIAL.md config file. - Card image rendering: Populates HTML templates with variables and copy panels, then screenshots them via Playwright into PNG files saved persistently under docs/media/social/. - Security gate: Runs a security-scrub check on extracted git content before publishing, blocking the workflow if secrets are detected. - Use Case: After merging a feature branch, ask the assistant to share the change; it detects the feat commit, drafts a LinkedIn post, renders a feature-card PNG, and saves both for reuse. ## Quick Start Ask the assistant to share the latest code change as a social post, specifying your target platform and preferred tone.

Frequently Asked Questions about share-code

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

FAQPage Schema
How do I create a social media post from a git commit?▼

Invoke the share-code skill and it auto-detects changes using git diff, commit logs, and the changelog. It drafts platform-aware copy, picks a matching card template, and renders a PNG image via Playwright.

How to generate a code change card image with Playwright?▼

The skill populates an HTML template (diff-card, feature-card, or quote-card) with your change details, serves it locally, and captures a screenshot with Playwright. The resulting PNG is saved to docs/media/social/ for reuse.

Can I set default platform and tone for social posts?▼

Yes, create a SOCIAL.md file in your project root defining DEFAULT_PLATFORM, DEFAULT_TONE, DEFAULT_HASHTAGS, FOCUS_AREAS, and AUDIENCE. These act as defaults, but explicit arguments always override them.

Does the skill check for secrets before publishing code snippets?▼

Yes, extracted diffs and commit messages are written to a scrub input file and passed to the security-scrub skill. If the gate returns BLOCKED or CANCELLED, the workflow stops before any copy is drafted.

What happens if the card templates are not found?▼

The skill searches for the templates directory under the plugin root and ~/.claude paths. If none is found, it outputs an installation message and stops, prompting you to install the plugin or load it with --plugin-dir.