GitSkins Agent Skill
GitSkins turns GitHub Profile READMEs and Open-Source Repository READMEs into deterministic, 846px-aligned Light & Dark static SVG systems with zero external runtime servers.
- Showcase & Studio:
https://gitskins.blessc.com - Repository:
https://github.com/Furina-he/gitskins
1. Curated Aesthetic Systems (--theme <id>)
| Theme ID | Aesthetic | Portrait / Emblem Style | Visual Signature |
|---|---|---|---|
swiss-bauhaus-pixel | Swiss-Bauhaus Pixel Poster | Real Pixel Avatar (24×24/28×28) | Sharp 0px Swiss grids, Bauhaus weave textures, bold sans headlines, crisp pixel accents |
blueprint-cad | Architectural Blueprint CAD | Pure CAD Isometric Reticle | 12px/48px drafting grid, corner registration crosshairs, chamfered plates, CAD title blocks |
editorial-zine | Editorial Broadsheet Zine | Pure Typographic Monograph | Double hairline masthead rules, classic serif titles, italic lead-ins, right-hand specs ledger |
crt-terminal | Retro CRT Terminal TUI | Real Pixel Avatar or Initials Monogram | Scanline overlay, tmux panes, phosphor monospace tables, ANSI color swatches & status bars |
pixel-rpg-hud | 16-bit Pixel RPG HUD | Real Pixel Avatar (24×24 HUD slot) | Stepped pixel bevel frames, HP/MP/XP stat meters, quest-log cards & 12×12 pixel relics |
seal-ink-scroll | Seal Ink Monograph | Personalized Cinnabar Seal Stamp | Warm Xuan paper & inkstone dark, carved cinnabar red seal stamp, corner fretwork & mountain mist |
synth-hardware | Tactile Industrial Synth | Pure Hardware Instrument | Brushed aluminum & dark chassis, corner screws, perforated speaker grill, OLED waveform & 4 colored rotary knobs |
pcb-solder-mask | Solder Mask PCB | Pure PCB Silkscreen (U1 IC) | Matte white & deep emerald solder mask, ENIG gold vias (◎), 45° copper traces & QFP IC package |
transit-boarding | Transit & Boarding Pass | Real Pixel Avatar (24×24 Passport Box) | Tear-off perforated ticket stub, vector barcode, route header & metro transfer station cards |
classic-desktop-os | Classic Desktop OS | Real Pixel Avatar (24×24 Window Icon) | 1-bit Bayer dither desktop, System 7 pin-stripe titlebars, close box & mini application windows |
riso-duotone | Risograph Overprint Poster | Pure 2-Ink Graphic Emblem | Misregistered duotone ink shadows (+2.5px), halftone dot screens & corner registration marks (⊕) |
Every theme defines 14 semantic tokens (bg, surface, patternBg, patternFg, border, borderSoft, ink, sub, muted, accent, accentFg, secondary, tertiary, highlight) in themes/<id>/meta.json.
2. Hard Engineering Invariants (Never Violate)
- Zero Fabricated Facts: Always inspect local context first (
gh api user,git config,git remote,package.json,Cargo.toml,pyproject.toml, directory tree) before rendering metrics, URLs, or project descriptions. Adapt gracefully if the user has fewer than 4 repos or no personal site. - Zero Demo-Data Leakage: Reference
generator.pyscripts contain sample author data (Furina-he,NeverGiveUp,cloudlink,openpet,myfurina,blessc.com). Before finishing, ALWAYS scan every generatedassets/*.svgandREADME.mdto confirm zero leftover demo strings remain (exceptgitskins.blessc.comif the user opted into theStyled with GitSkinsfooter badge). - Real Avatar Pixelization (for Portrait Themes): For
swiss-bauhaus-pixel,pixel-rpg-hud,transit-boarding,classic-desktop-os, and optionallycrt-terminal, download the user's real GitHubavatar_url(?s=96) and programmatically downsample + color-quantize it (e.g., via PythonPillowor stdlib) into crisp vector<path shape-rendering="crispEdges">paths. Never leave the demo portrait matrix or embed an external<image href="https://...">. - True Light & Dark Parity: Every SVG asset must be emitted in paired
*-light.svgand*-dark.svgfiles and wired with GitHub's native<picture><source media="(prefers-color-scheme: dark)" srcset="..."><img src="..."></picture>. - Strict GitHub SVG Safety:
- Zero
<script>tags and zeroon*=attributes. - Zero external
<image href="http...">links and zero@importexternal web fonts (use cross-platform system stacks only). - Strict XML well-formedness (escape
&,<,>,",'in text and attributes). - Whenever
@keyframesCSS animation is included, always include@media (prefers-reduced-motion: reduce) { ... { animation: none !important; } }.
- Zero
- 846px Grid Discipline:
- Profile & Repo full-width banners:
width="846"(width="100%"in Markdown). - 2-column project/feature cards:
width="417"(width="49%"paired with ). - 4-column Bento DIY widgets:
1 col = 204px,2 cols = 418px,3 cols = 632px,4 cols = 846px(uniform160pxheight; never render grid fraction labels like1/2or1/4inside exported SVGs).
- Profile & Repo full-width banners:
3. Workflow A — Re-skin a GitHub Profile README
- Detect Identity:
(Fallback togh api user --jq '{login,name,bio,avatar_url,blog,location,public_repos,followers}' gh repo list --limit 12 --json name,description,stargazerCount,forkCount,primaryLanguage,url,homepageUrlgit config user.name/git remote get-url originifghis unavailable; only ask the user if nothing is detected locally.) - Fetch Theme Spec & Generator:
- Spec:
https://raw.githubusercontent.com/Furina-he/gitskins/main/themes/<theme>/SPEC.md - Prompt:
https://raw.githubusercontent.com/Furina-he/gitskins/main/themes/<theme>/PROMPT.md - Generator:
https://raw.githubusercontent.com/Furina-he/gitskins/main/themes/<theme>/generator.py
- Spec:
- Customize & Run: Rewrite the profile data, avatar pixel portrait (or personalized seal), and real repositories inside
generator.py, run it to generateassets/*-{light,dark}.svg, and wireREADME.md. - Optional Zero-503 Live Widgets (
L01–L10):- Download
https://raw.githubusercontent.com/Furina-he/gitskins/main/live-widgets/generate_live_widgets.pytoscripts/generate_live_widgets.py(zeropipdependencies). - Add
.github/workflows/gitskins-widgets.yml(template:https://raw.githubusercontent.com/Furina-he/gitskins/main/live-widgets/gitskins-widgets.yml) targeting any of:github-stats,coding-rhythm,rss-feed,live-weather,wakatime-weekly(uses optionalWAKATIME_API_KEY),spotify-recent(uses optional Spotify refresh token secrets),contribution-snake(4-col846pxcontribution snake via GraphQL — or usePlatane/snk/svg-only@v3in.github/workflows/snake.ymlwith Light/Darkcolor_snakeandcolor_dotssynced to the active theme),contrib-skyline(3–4 col isometric 3D contribution skyline),commit-streak(1–2 col streak flame), andrecent-activity(2–4 col public events log). - Mount
./assets/live-<id>-{light,dark}.svgvia<picture>inREADME.md.
- Download
4. Workflow B — Re-skin an Open-Source Repo README (Repo Skins)
- Inspect Local Repository: Read
package.json,Cargo.toml,pyproject.toml,go.mod,LICENSE,git remote -v, and top-level directories to gather accurate repo title, tagline, install command, key features, and real architecture stages. - Generate via Zero-Dependency CLI (never run unscoped
npx gitskins, which belongs to an unrelated npm package):Generatesnode cli/gitskins.mjs init \ --mode repo \ --theme <theme> \ --repo "<owner>/<name>" \ --tagline "<concise description>" \ --install "<install command>" \ --arch "Stage 1 | sub -> Stage 2 | sub -> Stage 3 | sub -> Stage 4 | sub" \ --out . \ --badgeassets/repo-hero-{light,dark}.svg,assets/repo-install-{light,dark}.svg,assets/repo-feat-01..04-{light,dark}.svg,assets/repo-arch-{light,dark}.svg, optionalassets/gitskins-badge-{light,dark}.svg, and a ready-to-merge README template.
5. Mandatory Verification Before Finishing
Validate every generated SVG for strict XML, security, reduced-motion compliance, AND zero demo-data leakage:
# 1. Validate XML, zero-<script>, zero external <image>, prefers-reduced-motion
node cli/gitskins.mjs validate ./assets
# Or Python stdlib fallback:
python -c "import glob, xml.etree.ElementTree as ET; files=sorted(glob.glob('assets/*.svg')); assert files; [ET.parse(f) for f in files]; print(f'OK: {len(files)} strict XML SVGs')"
# 2. Verify zero leftover demo template strings in README.md and assets/*.svg
python -c "import pathlib, re; bad=['Furina-he','NeverGiveUp','cloudlink','openpet','myfurina']; hits=[(str(p),b) for p in [pathlib.Path('README.md'),*sorted(pathlib.Path('assets').glob('*.svg'))] if p.exists() for b in bad if re.search(b,p.read_text(encoding='utf-8'),re.I)]; assert not hits, f'Demo leakage: {hits}'; print('OK: zero demo leakage')"
Never finish a task if any SVG fails XML parsing, has mismatched Light/Dark pairs, or retains demo author strings.