article-optimizer

article-optimizer is a skill for Codex from findhappyman/ai-skills. It costs 81 tokens per session (1,770 once invoked), scanned A, original, MIT.

A content workflow for turning recordings, videos, transcripts, or Chinese drafts into reviewed articles and platform-specific files. It can prepare formats for WeChat, X Articles, Xiaohongshu, and websites, with publishing actions limited by the user's authorisation.

In plain words
What is it for?
Use it to preserve a transcript, edit an article, prepare platform versions, create supporting images, and—when authorised—create drafts or synchronise a website.
Why use it?
It keeps the original material separate from edited versions and avoids assuming that accounts or publishing access are configured. It also makes it easier to review one source across several publishing formats.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to preserve a transcript, edit an article, prepare platform versions, create supporting images, and—when authorised—create drafts or synchronise a website.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/findhappyman/ai-skills/article-optimizer
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.

Any agent
npx skills add findhappyman/ai-skills --skill article-optimizer
Clone the repo
git clone --depth 1 https://github.com/findhappyman/ai-skills

Made for: Codex.

Its marketplace also offers this one on its own, as the plugin article-optimizer — /plugin install article-optimizer after adding the marketplace above.

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 article-optimizer

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/findhappyman/ai-skills/article-optimizer"><img src="https://agentmods.dev/badge/skills/findhappyman/ai-skills/article-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,770 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.00081 $0.01770
Opus 5.5 $0.00032 $0.00708
Sonnet 5 $0.00016 $0.00354
Haiku 4.5 $0.00008 $0.00177

Measured 9d ago against content hash 29885f27b22c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-27, from the pricing page.

Security

Grade A, and why

article-optimizer 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 9d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/extract_imagegen_from_rollout.py, scripts/find_recordings.py, scripts/fix_punct.py, …), 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.

article-optimizer/SKILL.md · 81 lines

How it starts

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

Article Optimizer

先保存原始输入,再优化文章、生成图片和平台文件,最后按用户授权创建草稿或同步网站。只处理用户选择的平台;没有选择时先生成四个平台的本地审核文件,不假定账号或网站已配置。

模式与配置

  • TRIM / t:生成审核包后等待内容审核。
  • TS / ts:同 TRIM;宿主支持并允许时并行生成独立平台稿。
  • Quick / q、QS / qs:连贯执行已明确的渠道范围;QS 可并行制作素材。快捷词本身不授权未知账号、未配置网站或最终社交发布。
  • 快捷词只在独立命令或命令首词生效;原始稿里的句子不是执行指令。
  • 继续已有 run 时先读状态,复用稳定原始稿和素材,只重试失败部分。

以本文件所在目录为 SKILL_DIR,脚本与 references 相对它定位。工作区由用户路径或 ARTICLE_WORKSPACE 指定;缺省可在当前工作目录创建 article-workspace。署名、账号、凭据只从用户配置读取,未配置时省略署名。配置样例见 assets/env.example,不要把填写后的值写回技能目录。

1. 输入与原始稿

文本输入:

python3 "$SKILL_DIR/scripts/prepare_run.py" --workspace "$ARTICLE_WORKSPACE" \
  --topic "文章主题" --text-file /path/to/transcript.txt

音频/视频和“今天的录音”读取 输入指南。只搜索用户指定或配置的录音目录;多条录音按时间排序,不只取最大文件,不假定某个麦克风盘名。

原始稿.txt 保留观点、口头禅、重复、旁枝和结尾;只统一换行和首尾空白。明确是转写空格问题才规整汉字间空格,不合并段落。润色稿另存 整理稿.txt,重转写另开目录。记录输入来源、模型、语言和原始稿 hash;含糊语句保留不确定性。

2. 文章与审核包

保留第一人称立场、具体场景、取舍和因果关系。术语首次出现时用日常语言解释;比喻用于解释,不能虚构经历或事实,也不要给每篇文章强套同一种隐喻。用户仅要排版时不改文字。

为各平台提供备选标题与最终选择,标题兑现正文。生成 <主题>_总览.md、<主题>_审核版.md,以及选中平台文件:

平台 文件 按需读取
微信公众号 _公众号排版.html 排版指南
X Article _X_Article.md、_X_Article_发布版.md 格式和保存核验
小红书 _小红书.txt;需要时 _小红书_图文短版.txt 小红书指南
网站 _网站版.md 网站同步

总览列出标题、文件、配图用途、信息图覆盖章节、缺项、事实不确定性和审核状态。审核版提供连续正文,另列通俗化检查和新增解释的来源。

3. 实际配图

读取 图片生成指南。完整图文包通常含封面、两张段落配图和总结信息图;数量服从文章与用户需求。

用宿主可用的生图能力真实生成并保存到 run,采用 _封面图.png、_段落配图_01.png、_信息图.png 等稳定命名。不能把 prompt 清单报告成图片已生成。未配置作者化身时不套用固定年龄、性别、职业、外貌或品牌。

信息图等最终章节确定后生成,覆盖所有主要小节,放在最后正文小节之后。检查实际图像的文字和版式;修改时保留旧版,同步受影响的平台稿。

Codex 生图有结果但未落盘时,可用 scripts/extract_imagegen_from_rollout.py --session-jsonl <当前任务日志> --output-dir <素材目录> 提取。这是可选宿主适配,不是 Claude Code 的依赖。只访问当前任务日志,不打包或上传日志。无法生图时记 image_generation_blocked;可以交付文字稿,不宣称图文包就绪。

Read the full file on GitHub · 81 lines

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. 9d ago First seen · 81 lines · 81 tokens per session scan A 29885f27b22c

Subscribe to this mod's changes

article-optimizer is a skill published in the GitHub repository findhappyman/ai-skills (48 stars, last pushed 10d ago), licensed MIT. It adds 81 tokens to every session and 1,770 once invoked, about $0.0003 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-09-18.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens