publish-en

publish-en is a skill for Claude Code, Codex from LienJack/learn-agent. It costs 16 tokens per session (662 once invoked), scanned A, original, MIT.

An English publishing workflow for turning Markdown articles into posts on DEV, a community website for software developers. It checks article details, prepares a publishing copy, handles local images, and publishes only after confirmation.

In plain words
What is it for?
Use it to preview and publish English Markdown articles to DEV, check titles and tags, prepare image URLs, preserve the original file, and record publishing results.
Why use it?
It reduces the manual work and mistakes involved in checking article metadata, making images publicly reachable, and tracking whether a post was published successfully.

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/lienjack/learn-agent/publish-en
Any agent
npx skills add LienJack/learn-agent --skill publish-en
Clone the repo
git clone --depth 1 https://github.com/LienJack/learn-agent

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/lienjack/learn-agent/publish-en.svg)](https://agentmods.dev/skills/lienjack/learn-agent/publish-en)
Your own site
<a href="https://agentmods.dev/skills/lienjack/learn-agent/publish-en"><img src="https://agentmods.dev/badge/skills/lienjack/learn-agent/publish-en.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 662 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00016 $0.00662
Opus 5 $0.00008 $0.00331
Sonnet 5 $0.00003 $0.00132
Haiku 4.5 $0.00002 $0.00066

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

Security

Grade A, and why

publish-en 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 4d ago.

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.

publish/skills/publish-en/SKILL.md · 44 lines

What it actually says

英文发布 Skill

本 skill 只能通过显式引用本文件路径触发,不依赖全局安装、symlink 或 $skill-name 自动发现。

输入要求

  • 用户必须提供一个或多个英文 Markdown 文章路径。
  • 如果没有提供文章路径,先要求用户补充,不要猜测最近文件。
  • V1 只支持 DEV;如果用户要求 Hashnode 或 Medium,说明超出 V1 范围。

执行流程

  1. 阅读 publish/README.mdpublish/platforms/en-dev.md
  2. 检查文章 frontmatter:titledescription 必需;tagscanonical_urlcover_image 建议补齐。DEV 核心标签最多保留前 4 个。
  3. 如果文章有本地正文图片或本地 heroImage,确认已配置 DEVTO_IMAGE_UPLOAD_COOKIEPUBLISH_IMAGE_UPLOAD_COMMANDPUBLISH_IMAGE_BASE_URL
  4. 先运行 publish/bin/publish-en --dry-run <article.md> [...],生成 DEV 发布副本或计划摘要、检查结果和运行记录。
  5. 向用户展示文章标题、目标平台、图片处理方式、产物路径、运行记录、canonical URL、标签、图片公网化策略和风险提示。
  6. 只有用户确认后,运行 publish/bin/publish-en --yes <article.md> [...] 执行公开发布。
  7. 发布成功后运行或建议运行 uvx --from "crier==${CRIER_VERSION:-2.0.2}" crier status <article.md>,确认 registry 记录和 DEV URL。
  8. 发布成功、失败或取消都必须写入 publish/runs/

图片规则

  • DEV API key 不能直接上传图片;本地图片必须通过 DEV 编辑器 cookie、自定义上传命令或公网 base URL 变成远程 URL。
  • DEVTO_IMAGE_UPLOAD_COOKIE、CSRF token、API key 都不能写入运行记录或回复。
  • 使用 cookie 或自定义上传命令时,--dry-run 不执行远程图片动作;确认后才上传。
  • 源 Markdown 不修改,所有远程图片改写只发生在 publish/artifacts/ 的发布副本中。

坏图修复

如果 DEV 已发布文章出现 image no longer exists,不要新发一篇。应重新生成发布副本,找到原 article id,并用 DEV API PUT /api/articles/<article-id> 更新同一篇文章,然后检查没有残留 ./assets/

安全边界

  • DEV 是公开发布平台,确认前不得调用真实发布动作。
  • 发布副本写入 publish/artifacts/,源 Markdown 不修改。
  • 不保存 DEV API key、cookie、CSRF token 或私密响应。
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 · 44 lines · 16 tokens per session scan A 429d9e01289d

Subscribe to this mod's changes

publish-en is a skill published in the GitHub repository LienJack/learn-agent (23 stars, last pushed 1mo ago), licensed MIT. It adds 16 tokens to every session and 662 once invoked, about $0.0001 per session on Opus 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-08-30.