avatar-contribution-pr

avatar-contribution-pr is a skill for Claude Code from khromov/codebay. It costs 0 tokens per session (1,735 once invoked), scanned A, original, MIT.

A routine for turning an avatar-editor GitHub issue into a validated sprite change and pull request. A sprite is a small image used to represent a character.

In plain words
What is it for?
Use it to fetch an avatar contribution or edit issue, validate its art and code, add or replace the matching avatar module, and prepare a pull request.
Why use it?
It handles the difference between a new avatar and a redraw of an existing one, while checking that the submitted pixel art can be added correctly.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to fetch an avatar contribution or edit issue, validate its art and code, add or replace the matching avatar module, and prepare a pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/khromov/codebay/avatar-contribution-pr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add khromov/codebay --skill avatar-contribution-pr
Clone the repo
git clone --depth 1 https://github.com/khromov/codebay

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for avatar-contribution-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/khromov/codebay/avatar-contribution-pr/github.svg)](https://agentmods.dev/skills/khromov/codebay/avatar-contribution-pr)
Your own site
<a href="https://agentmods.dev/skills/khromov/codebay/avatar-contribution-pr"><img src="https://agentmods.dev/badge/skills/khromov/codebay/avatar-contribution-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for avatar-contribution-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/khromov/codebay/avatar-contribution-pr"><img src="https://agentmods.dev/badge/skills/khromov/codebay/avatar-contribution-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,735 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01735
Opus 5.5 $0.00000 $0.00694
Sonnet 5.5 $0.00000 $0.00347
Haiku 4.5 $0.00000 $0.00173

Measured 1mo ago against content hash 0d4280d76ded, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

avatar-contribution-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/avatar-contribution-pr/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

This skill lands an avatar submission from codebay's hidden avatar-editor easter egg. The editor (src/components/AvatarEditor.svelte) serializes a drawing via src/avatars/serialize.ts::toIssueUrl, which produces one of two issue shapes depending on whether the user drew a new sprite or redrew an existing one. Both carry the pixel art in a plain fenced block and a byte-identical ready-to-paste src/avatars/<name>.ts module in a ```ts block. This skill reverses that: read the issue, decide create vs. edit, validate the art, and turn it into a merged PR.

1. Fetch the issue and pick the mode

Accept an issue number or URL as input. Fetch it:

gh issue view <number-or-url> --json number,title,body,url

The title prefix decides the mode — the rest of the skill branches on it:

  • Avatar contribution: <name> → create: a brand-new sprite. Add a new module and wire it into the catalog.
  • Avatar edit: <name> → edit: a hand-redraw of an existing AI-generated sprite. Overwrite the existing module in place; the replacement drops the robot flag, so landing it promotes the sprite from robot-drawn to hand-drawn. Do not add a new file or touch index.ts.

Either way, confirm the body matches what serialize.ts::toIssueUrl produces:

  • Body contains a plain fenced block with 8 lines of #/+/. art (# = on, + = gray, . = off)
  • Body contains a ```ts fenced block with a full AvatarArt module (import type { AvatarArt } from './types.ts'; ... export default art;)

If the issue doesn't look like this — title is neither prefix, missing code block, art that isn't 8×8 — stop and tell the user what's off rather than guessing at intent or trying to reshape it into something that fits.

2. Extract & validate

Pull name and the module source out of the ```ts block. Before writing anything, validate the art against the same rules src/avatars/avatars.test.ts enforces:

  • Exactly 8 rows in pixels
  • Each row is exactly 8 characters, only #, + or . (the editor never emits raw spaces, but treat space as off too if you see one)

Read the full file on GitHub · 119 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 119 lines · 0 tokens per session scan A 0d4280d76ded

Subscribe to this mod's changes

avatar-contribution-pr is a skill published in the GitHub repository khromov/codebay (13 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,735 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

oz-report-pr

Report a pull request back to the Oz platform after creating one.

warpdotdev/warp · 17 tokens

git-smart-commit

A Git workflow that groups a messy set of staged and unstaged changes into logically related commits. A commit is a recorded set of changes in Git, and the workflow provides commands for creating each group.

hmj1026/dhpk · 86 tokens

git-conventional-commit

A skill that writes a Git commit message from the current code changes using the Conventional Commits format. Git is a system for tracking file history, while a commit records a selected set of changes.

jtprogru/bear-skills · 93 tokens

git-workflow

Use when committing work, creating branches, preparing PRs, resolving merge conflicts, when grouping related changes into commits, when cleaning up history before merging, or when deciding what should be a separate commit vs squashed.

aneja5/forge-skills · 47 tokens

setup-git-godot

Set up Git for a Godot 4.x project — .gitignore for engine cache and exports, .gitattributes with Git LFS for binary assets (PNG, WAV, OGG, MP3, FBX, GLB, BLEND, ZIP, large .tres), .gdignore for asset-only folders, and the one-time LFS init. Use for any new Godot project, or to repair a project that committed .godot/…

Simone-Tarantino/godot-superpowers · 113 tokens

gamedev-hotfix

Emergency fix workflow that bypasses normal sprint processes with a full audit trail. Creates hotfix branch, tracks approvals, and ensures the fix is backported correctly.

FluxonLab/Skillry · 37 tokens