copilot-api: Skill for Claude Code

.agents/skills/desktop-screenshots/SKILL.md

desktop-screenshots is a skill for Claude Code, Codex from caozhiyuan/copilot-api. It costs 43 tokens per session (629 once invoked), scanned A, original, MIT.

A desktop screenshot workflow for updating documentation images from an already running local application. It opens requested views, captures them at the project’s established size, and checks images for exposed secrets.

In plain words
What is it for?
Use it to refresh screenshots for the Copilot API Desktop documentation or capture a particular screen such as API Keys.
Why use it?
It avoids inconsistent documentation captures and reduces the risk of saving API keys or other private details in screenshots.

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-screenshots/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-screenshots

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/caozhiyuan/copilot-api/desktop-screenshots"><img src="https://agentmods.dev/badge/skills/caozhiyuan/copilot-api/desktop-screenshots.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 629 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.00043 $0.00629
Opus 5.5 $0.00017 $0.00252
Sonnet 5.5 $0.00009 $0.00126
Haiku 4.5 $0.00004 $0.00063

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

Security

Grade A, and why

desktop-screenshots 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 yesterday.

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-screenshots/SKILL.md · 39 lines

How it starts

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

Desktop Screenshots

Use the running Desktop app, its live gateway data, and its saved settings. Inspect the existing PNGs and their documentation references to identify the requested views and match their framing. The current desktop set uses a 1366 × 720 viewport.

Capture

  1. Identify the running Copilot API Desktop window and use the session's supported window capture controls. On macOS, use native window capture when the system title controls should appear. On Windows, use Computer Use when its JavaScript runtime is available.
  2. Open each requested view and wait for its data to load. Capture the application window. Use the same period on Dashboard and Token usage when comparing their totals. Keep the current language and theme unless the user requests a different presentation.
  3. Capture API Keys with the actual key entries, statuses, quotas, and expiry dates. Mask the entire secret, including any visible prefix and suffix, in the final PNG. Apply the same check to the Dashboard auth header. Keep credentials and private identifying details out of the saved images.
  4. When direct window capture is unavailable, use the installed Desktop renderer with data from the running gateway. Follow Capturing from the live gateway for the data sources and isolated renderer setup. If a requested state cannot be recovered, report the specific limitation. Capture the real empty state whenever the current app has no entries.

For a full refresh, use these paths relative to docs/screenshots/. Keep the existing names of supported views so documentation links continue to work.

View Screenshot
Dashboard desktop-dashboard.png
Token usage desktop-token-usage.png
Providers provider-management.png
API Keys desktop-api-keys.png
Client integrations desktop-client-integrations.png
Create desktop-create.png
Advanced configuration desktop-config-editor.png
Advanced configuration conflict desktop-config-editor-conflict.png
Settings, Startup, Server runtime desktop-server-runtime.png

Read the full file on GitHub · 39 lines

Files

What ships with it

1 file 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. yesterday First seen · 39 lines · 43 tokens per session scan A 116b61ba3e18

Subscribe to this mod's changes

desktop-screenshots is a skill published in the GitHub repository caozhiyuan/copilot-api (1,136 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 629 once invoked, about $0.0002 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-29.

Related

desktop-screenshots compared with skills from other repositories

desktop-screenshots next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
desktop-screenshotscaozhiyuan/copilot-apiSkill1.1kyesterdayMITA43Claude Code, Codex
anti-slop-designsickn33/agentic-awesome-skillsSkill51ktodayMITA34Claude Code
agent-reelssickn33/agentic-awesome-skillsSkill51ktodayMITA31Claude Code
langfusesickn33/agentic-awesome-skillsSkill51ktodayMITA57Claude Code
accesslint-scansickn33/agentic-awesome-skillsSkill51ktodayMITA32Claude Code
hig-components-layoutsickn33/agentic-awesome-skillsSkill51ktodayMITA15Claude Code
hig-components-systemsickn33/agentic-awesome-skillsSkill51ktodayMITA41Claude Code