upload-github-attachment

upload-github-attachment is a skill for Claude Code, Codex from moeru-ai/airi. It costs 65 tokens per session (425 once invoked), scanned A, original, MIT.

A script for uploading a local file to GitHub's storage for attachments. It returns a link that can be placed in an issue, pull request, discussion, or comment.

In plain words
What is it for?
Use it to attach local images, videos, logs, or other evidence to GitHub content and check that the returned link works.
Why use it?
Screenshots, videos, and logs often need to appear in GitHub without being added to the code repository. The script handles authentication, file type detection, and link extraction.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/moeru-ai/airi/upload-github-attachment
Any agent
npx skills add moeru-ai/airi --skill upload-github-attachment
Clone the repo
git clone --depth 1 https://github.com/moeru-ai/airi

Made for: Claude Code, Codex.

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 upload-github-attachment

README.md
[![agentmods](https://agentmods.dev/badge/skills/moeru-ai/airi/upload-github-attachment.svg)](https://agentmods.dev/skills/moeru-ai/airi/upload-github-attachment)
Your own site
<a href="https://agentmods.dev/skills/moeru-ai/airi/upload-github-attachment"><img src="https://agentmods.dev/badge/skills/moeru-ai/airi/upload-github-attachment.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 425 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00065 $0.00425
Opus 5 $0.00032 $0.00212
Sonnet 5 $0.00013 $0.00085
Haiku 4.5 $0.00006 $0.00042

Measured 4d ago against content hash 3a2acd63a2af, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

upload-github-attachment scanned grade A with 1 finding 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/upload-github-attachment.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Require the `gh` CLI and `curl`.
.agents/skills/upload-github-attachment/SKILL.md · 42 lines

What it actually says

Upload GitHub Attachment

Use the bundled script so authentication, repository resolution, MIME detection, and URL extraction remain consistent.

Requirements

  • Require the gh CLI and curl.
  • Prefer an existing gh auth login session.
  • When interactive gh authentication is unavailable, require GH_TOKEN or GITHUB_TOKEN in the environment.
  • Stop and ask the user to configure one of those authentication methods if gh auth token cannot resolve a token. Never print, persist, or interpolate the token into diagnostic output.

Upload

Run from a checkout of the destination repository:

.agents/skills/upload-github-attachment/scripts/upload-github-attachment.sh /absolute/path/to/image.png

Specify the repository when the current directory cannot resolve it:

.agents/skills/upload-github-attachment/scripts/upload-github-attachment.sh \
  --repo moeru-ai/airi \
  /absolute/path/to/image.png

The script prints only the final https://github.com/user-attachments/assets/... URL. Embed it with ![](URL) for an image or [label](URL) for another file.

Verification

  1. Request the returned URL and follow redirects.
  2. Require HTTP 200 and the expected content type.
  3. After creating or editing the GitHub content, reopen it and verify that the attachment renders.

The upload endpoint is currently undocumented by GitHub. Treat a rejected request as a blocking capability change instead of falling back to committing PR-only artifacts. Background and the observed Bearer-token flow: https://island94.org/2026/08/programmatically-upload-attachments-to-github-issues-pull-requests-comments.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 42 lines · 65 tokens per session scan A 3a2acd63a2af

Subscribe to this mod's changes

upload-github-attachment is a skill published in the GitHub repository moeru-ai/airi (48,699 stars, last pushed 2d ago), licensed MIT. It adds 65 tokens to every session and 425 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

claude_code

This document describes how a Claude Code agent (or any agent using the Claude Code CLI pattern) invokes the Seiðr-Smiðja forge through the Rúnstafr CLI bridge.

hrabanazviking/Seidr-Smidja · 0 tokens

sap-extension-creator

Create Super Agent Party (SAP) extensions. This skill should be used when users want to create, build, or scaffold a new extension for Super Agent Party - including static HTML extensions (pure frontend) and Node.js backend extensions. Triggers on requests like "create a new SAP extension", "build an extension for…

heshengtao/super-agent-party · 93 tokens

skill-creator

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

heshengtao/super-agent-party · 45 tokens

find-skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

heshengtao/super-agent-party · 67 tokens

naga_control

通过 agentType: "nagacontrol" 调用,直接控制 Naga 自身的运行状态和配置。.

RTGS2017/NagaAgent · 50 tokens

speak-status

Skill "speak-status" from kazakago/cc-mascot, covering cc mascot: 発話フィルタ状態の確認 and 手順.

kazakago/cc-mascot · 19 tokens