copilot-api: Skill for Claude Code

.agents/skills/desktop-promo-media/SKILL.md

desktop-promo-media is a skill for Claude Code, Codex from caozhiyuan/copilot-api. It costs 96 tokens per session (1,068 once invoked), scanned A, original, MIT.

A local tool for creating a GitHub preview image and a short demonstration video for a desktop application. It uses a running local application or gateway and sanitized data rather than publishing credentials or real sensitive information.

In plain words
What is it for?
Use it to render a 1280x640 GitHub social preview PNG and capture a 1280x720 H.264 demo video in a light or dark theme and in English or Chinese.
Why use it?
It removes repetitive manual work when preparing release showcase media. It also provides a way to capture the desktop interface without putting private credentials into the assets.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is caozhiyuan/copilot-api's own configuration. It tells Claude Code and Codex how to work on copilot-api 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 copilot-api configures →

About the project

caozhiyuan/copilot-api is a local AI gateway that exposes OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages interfaces for multiple providers. It lets clients such as Claude Code, OpenCode, and Codex connect through one endpoint to GitHub Copilot, the built-in Codex provider, and other configured services.

caozhiyuan/copilot-api · 1,136 stars · on GitHub · caozhiyuan.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to caozhiyuan/copilot-api. 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/caozhiyuan/copilot-api/dev/.agents/skills/desktop-promo-media/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/caozhiyuan/copilot-api

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 desktop-promo-media

README.md
[![agentmods](https://agentmods.dev/badge/skills/caozhiyuan/copilot-api/desktop-promo-media/github.svg)](https://agentmods.dev/skills/caozhiyuan/copilot-api/desktop-promo-media)
Your own site
<a href="https://agentmods.dev/skills/caozhiyuan/copilot-api/desktop-promo-media"><img src="https://agentmods.dev/badge/skills/caozhiyuan/copilot-api/desktop-promo-media/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 desktop-promo-media

Your own site · 80×15
<a href="https://agentmods.dev/skills/caozhiyuan/copilot-api/desktop-promo-media"><img src="https://agentmods.dev/badge/skills/caozhiyuan/copilot-api/desktop-promo-media.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,068 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.
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.00096 $0.01068
Opus 5.5 $0.00038 $0.00427
Sonnet 5.5 $0.00019 $0.00214
Haiku 4.5 $0.00010 $0.00107

Measured today against content hash b4f9bd411763, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

desktop-promo-media 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 today.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/record-desktop-demo.mjs, scripts/render-social-preview.mjs), 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.

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.

.agents/skills/desktop-promo-media/SKILL.md · 77 lines

How it starts

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

Desktop Promo Media

Generate release-ready promotional assets locally without committing large binaries or exposing credentials:

  1. GitHub Social Preview PNG (1280x640) rendered cleanly from docs/hero/copilot-api-hero.svg via the workspace Electron runtime.
  2. Desktop Demo Video (1280x720, 30fps, H.264 yuv420p, +faststart) captured offscreen from the built Desktop renderer (desktop/out/renderer) using sanitized read-only data from the running local gateway.

Prerequisites

  • Build the Desktop renderer if desktop/out/renderer/index.html is missing or outdated:
    bun run --cwd desktop build
    
  • Start the local gateway (or open Copilot API Desktop with the server running on its configured port, default 4141).
  • Ensure ffmpeg is available on PATH (or pass --ffmpeg <path-to-ffmpeg>). If ffmpeg is not installed globally, install ffmpeg-static into a temporary directory outside the repository and pass its binary path via --ffmpeg.

Commands

Run from the repository root:

1. Export GitHub Social Preview PNG (1280x640)

bun run .agents/skills/desktop-promo-media/scripts/render-social-preview.mjs \
  --out /tmp/copilot-api-social-preview.png

Options:

  • --svg <path>: Source SVG (default: docs/hero/copilot-api-hero.svg)
  • --out <path>: Output PNG path (default: <os.tmpdir>/copilot-api-promo/copilot-api-social-preview.png)
  • --width <px> / --height <px>: Output dimensions (default: 1280 x 640)

2. Record Sanitized Desktop Demo Video (1280x720 MP4)

bun run .agents/skills/desktop-promo-media/scripts/record-desktop-demo.mjs \
  --theme light \
  --lang en \
  --out /tmp/copilot-api-demo.mp4

Options:

  • --theme light|dark: Desktop UI theme (default: light)
  • --lang en|zh: UI language and overlay captions (default: en)
  • --port <number>: Override local gateway port (defaults to lastPort in ~/.local/share/copilot-api/desktop-config.json or 4141)
  • --ffmpeg <path>: Explicit path to ffmpeg executable (defaults to ffmpeg on PATH)
  • --out <path>: Output MP4 path (default: <os.tmpdir>/copilot-api-promo/copilot-api-demo.mp4)

Read the full file on GitHub · 77 lines

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. today First seen · 77 lines · 96 tokens per session scan A b4f9bd411763

Subscribe to this mod's changes

desktop-promo-media is a skill published in the GitHub repository caozhiyuan/copilot-api (1,136 stars, last pushed yesterday), licensed MIT. It adds 96 tokens to every session and 1,068 once invoked, about $0.0004 per session on Opus 5.5. 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-11-30.

Related

desktop-promo-media compared with skills from other repositories

desktop-promo-media next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
desktop-promo-mediacaozhiyuan/copilot-apiSkill1.1kyesterdayMITA96Claude Code, Codex
zenrouter-videoZenRouter/ZenRouterSkill51mo agoMITA73Claude Code, Codex
zenrouter-web-searchZenRouter/ZenRouterSkill51mo agoMITA73Claude Code, Codex
zenrouter-imageZenRouter/ZenRouterSkill51mo agoMITA73Claude Code, Codex
zenrouterZenRouter/ZenRouterSkill51mo agoMITA82Claude Code, Codex
zenrouter-embeddingsZenRouter/ZenRouterSkill51mo agoMITA65Claude Code, Codex
zenrouter-web-fetchZenRouter/ZenRouterSkill51mo agoMITA62Claude Code, Codex