airi: Skill for Codex

.agents/skills/upload-github-attachment/SKILL.md

upload-github-attachment is a skill for Codex from moeru-ai/airi. It costs 65 tokens per session (472 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 Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents); mentions Codex.

This is moeru-ai/airi's own configuration. It tells Codex how to work on airi itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything airi configures →

About the project

AIRI is a self-hosted virtual AI companion that gives an AI character a voice, visual presence, memory, and the ability to interact with games and coding activity. People use it as a personal digital companion on the web, macOS, or Windows, including for voice chat and gameplay. The catalogue add-ons provide workflows for working with the AIRI project.

moeru-ai/airi · 50,528 stars · on GitHub · airi.moeru.ai

Reuse

Borrowing it

Nothing to install: this file belongs to moeru-ai/airi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/moeru-ai/airi/main/.agents/skills/upload-github-attachment/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/moeru-ai/airi

Made for: 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/github.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/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 upload-github-attachment

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 472 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • 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.00065 $0.00472
Opus 5.5 $0.00026 $0.00189
Sonnet 5.5 $0.00013 $0.00094
Haiku 4.5 $0.00006 $0.00047

Measured 1mo ago against content hash 3b782483d085, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 43 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. Require a successful upload command and a returned https://github.com/user-attachments/assets/... URL.
  2. Use that URL for the intended local file. Do not issue GET or HEAD requests to verify the uploaded asset.
  3. Do not treat anonymous access returning 404 as an upload failure or a reason to stop the workflow.
  4. After creating or editing GitHub content, reopen it and verify the attachment Markdown uses the returned URL.

The upload endpoint is currently undocumented by GitHub. Treat a rejected upload request as a blocking capability change instead of 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. 1mo ago Changed · +1 lines 3b782483d085
  2. 1mo 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 (50,528 stars, last pushed today), licensed MIT. It adds 65 tokens to every session and 472 once invoked, about $0.0003 per session on Opus 5.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.