CodexGuide: Skill for Claude Code

.agents/skills/image-publish/SKILL.md

image-publish is a skill for Claude Code, Codex from freestylefly/CodexGuide. It costs 43 tokens per session (1,362 once invoked), scanned A, original, MIT.

A publishing workflow for preparing images used in CodexGuide documentation. It names files consistently, can add a text watermark, uploads images to Alibaba Cloud Object Storage Service, and replaces Markdown links after checking the CDN result.

In plain words
What is it for?
Use it to prepare images in docs/images, create watermark previews, upload them to OSS, check that the CDN returns an image successfully, and update Markdown references.
Why use it?
It keeps documentation images organised and verifies that their public URLs work before the document is changed.

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 freestylefly/CodexGuide's own configuration. It tells Claude Code and Codex how to work on CodexGuide 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 CodexGuide configures →

About the project

CodexGuide is a practical knowledge base and learning guide for using Codex across development, writing, research, automation, and team workflows. It serves beginners, developers, creators, researchers, and teams who want to learn how to use Codex and incorporate it into real tasks. The catalogue entries are Codex skills associated with this guide.

freestylefly/CodexGuide · 3,966 stars · on GitHub · codexguide.ai

Reuse

Borrowing it

Nothing to install: this file belongs to freestylefly/CodexGuide. 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/freestylefly/CodexGuide/main/.agents/skills/image-publish/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/freestylefly/CodexGuide

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 image-publish

README.md
[![agentmods](https://agentmods.dev/badge/skills/freestylefly/codexguide/image-publish/github.svg)](https://agentmods.dev/skills/freestylefly/codexguide/image-publish)
Your own site
<a href="https://agentmods.dev/skills/freestylefly/codexguide/image-publish"><img src="https://agentmods.dev/badge/skills/freestylefly/codexguide/image-publish/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 image-publish

Your own site · 80×15
<a href="https://agentmods.dev/skills/freestylefly/codexguide/image-publish"><img src="https://agentmods.dev/badge/skills/freestylefly/codexguide/image-publish.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 1,362 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
  • 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.00043 $0.01362
Opus 5.5 $0.00017 $0.00545
Sonnet 5.5 $0.00009 $0.00272
Haiku 4.5 $0.00004 $0.00136

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

Security

Grade A, and why

image-publish 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 2mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/add-watermark.ps1, scripts/add-watermark.sh, scripts/upload-oss-image.ps1, …), 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.

完成标准:`curl -I` 返回 `HTTP/1.1 200 OK`,并且 `Content-Type` 是图片类型。
.agents/skills/image-publish/SKILL.md · 120 lines

How it starts

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

图片发布

本 Skill 仅供 CodexGuide 仓库使用。目标是把插入文档的图片处理成可发布状态:本地规范命名,按需加水印,上传到阿里 OSS,通过 CDN 验证,最后在 Markdown 中引用公开 URL。

步骤

  1. 首次在本会话使用本 Skill 时,询问用户是否把新图片默认处理为“加水印 + 图床化 + 替换到实际文档/网页”。

    • 如果用户同意,本会话后续新图片默认自动执行:规范命名、添加 苍何 水印、上传 OSS、验证 CDN、把文档或网页中的引用替换为水印版 CDN URL。
    • 如果用户不同意,仅按用户每次明确要求处理。
    • 如果用户已经在本会话明确同意过,不要重复询问。 完成标准:本会话的新图片默认处理偏好已明确。
  2. 确认源图片和目标 Markdown。 完成标准:明确源文件、插入位置和图片 alt 文本。

  3. 规范本地图片文件。

    • 指南正文图片默认放在 docs/images/。
    • 文件名使用小写 kebab-case,描述图片内容,不使用截图编号。
    • 除非用户明确要求转换格式,否则保留原扩展名。 完成标准:最终本地路径稳定,且没有覆盖无关文件。
  4. 按偏好或用户要求添加水印。

    • Windows 使用 scripts/add-watermark.ps1。
    • Linux/macOS 使用 scripts/add-watermark.sh。
    • 默认水印文字是 苍何。
    • 先生成预览图;用户确认效果前,不替换原图。
    • 如果用户已同意默认水印,后续新图片不需要每次重新确认水印。 完成标准:预览图已生成,并完成视觉检查。
  5. 上传到阿里 OSS。

    • Windows 使用 scripts/upload-oss-image.ps1。
    • Linux/macOS 使用 scripts/upload-oss-image.sh。
    • 从 .env.oss.local 读取凭据。
    • 如果 .env.oss.local 缺失,先新建带占位符的 .env.oss.local 模板,让用户补充后停止本次上传。
    • 不打印密钥。
    • 优先使用文档中已有的 CDN 形态:https://cdn.canghecode.com/codexguide/docs/images/<name>。 完成标准:脚本输出对象路径和公开 URL。
  6. 验证 CDN URL。 完成标准:curl -I 返回 HTTP/1.1 200 OK,并且 Content-Type 是图片类型。

  7. 仅在图片 URL 验证通过后更新 Markdown 或网页。

    • 如果用户已同意默认图床化和水印,文档和网页里应引用水印版 CDN URL,而不是本地图片或无水印 URL。 完成标准:目标文件在指定位置包含最终 CDN URL,本地行号检查能看到插入或替换后的内容。

命令

Windows 水印预览:

.\.agents\skills\image-publish\scripts\add-watermark.ps1 `
  -InputPath .\docs\images\example.png `
  -OutputPath .\docs\images\example-watermarked.png `
  -Text "苍何"

Windows OSS 上传:

.\.agents\skills\image-publish\scripts\upload-oss-image.ps1 `
  -InputPath .\docs\images\example-watermarked.png `
  -PublicName example-watermarked.png

Linux/macOS 水印预览:

.agents/skills/image-publish/scripts/add-watermark.sh \
  docs/images/example.png \
  docs/images/example-watermarked.png \
  "苍何"

Linux/macOS OSS 上传:

.agents/skills/image-publish/scripts/upload-oss-image.sh \
  docs/images/example-watermarked.png \
  example-watermarked.png

Read the full file on GitHub · 120 lines

Files

What ships with it

4 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. 2mo ago First seen · 120 lines · 43 tokens per session scan A de1dd05b09c9

Subscribe to this mod's changes

image-publish is a skill published in the GitHub repository freestylefly/CodexGuide (3,966 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 1,362 once invoked, about $0.0002 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.

Related

image-publish compared with skills from other repositories

image-publish next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
image-publishfreestylefly/CodexGuideSkill4.0kyesterdayMITA43Claude Code, Codex
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143ktodayMITA103Claude Code