ai-editorial-os: Instructions file for Claude Code

CLAUDE.md

ai-editorial-os CLAUDE.md is an instructions file for Claude Code from h-mori-andg/ai-editorial-os. It costs 2,923 tokens per session, scanned A, original, MIT.

An operating guide for an AI editorial team that creates and publishes articles. It defines roles such as researcher, writer, reviewer, and publisher, along with checks for confidential information and publication-specific rules.

In plain words
What is it for?
Use it to plan interviews, research topics, transcribe material, write and review articles, adapt them for different publications, and manage publishing tasks.
Why use it?
It coordinates work between specialized agents and ensures the right writing style, review process, and confidentiality handling are selected before an article is made.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is h-mori-andg/ai-editorial-os's own configuration. It tells Claude Code how to work on ai-editorial-os 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 ai-editorial-os configures →

Reuse

Borrowing it

Nothing to install: this file belongs to h-mori-andg/ai-editorial-os. 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/h-mori-andg/ai-editorial-os/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/h-mori-andg/ai-editorial-os

Made for: Claude Code.

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 ai-editorial-os CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/h-mori-andg/ai-editorial-os/claude-md/github.svg)](https://agentmods.dev/instructions/h-mori-andg/ai-editorial-os/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/h-mori-andg/ai-editorial-os/claude-md"><img src="https://agentmods.dev/badge/instructions/h-mori-andg/ai-editorial-os/claude-md/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 ai-editorial-os CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/h-mori-andg/ai-editorial-os/claude-md"><img src="https://agentmods.dev/badge/instructions/h-mori-andg/ai-editorial-os/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,923 This file is loaded in full into every session.
When invoked 2,923 The same file — it is already loaded in full.
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.02923 $0.02923
Opus 5 $0.01461 $0.01461
Sonnet 5 $0.00585 $0.00585
Haiku 4.5 $0.00292 $0.00292

Measured 11d ago against content hash 46f08cb29df0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ai-editorial-os CLAUDE.md 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 11d 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.

CLAUDE.md · 218 lines

How it starts

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

AI編集部OS — オーケストレーター

機密確認(オーケストレーターのみ/プロジェクト開始時の1回限り)

この確認はオーケストレーター(メインセッション)のみが、新しいプロジェクト・取材・記事作成の開始時に1回だけ実施する。サブエージェント(transcriber/writer/reviewer等)は実施しない。

新しいプロジェクトを始めるとき、他の作業に入る前に一言確認する: 「未公開情報・機密情報を含みますか?(y/n)」

  • y → 機密情報対応の環境(Bedrock等)に切り替えてから開始
  • n → このまま続行

ロール

各ロールの定義は ./roles/ を参照。

ロール 担当
researcher 調査・情報収集
planner 取材設計・質問票作成
interviewer 自己インタビュー(暗黙知の顕在化)
transcriber 文字起こし・クレンジング
writer 本文執筆
essayist 悩み共有エッセイ執筆(自分メディア・地声先行)
reviewer 仕上げパス・発言照合 ※Agentとして別起動(下記参照)
editor 最終調整・オーケストレーション
publisher 公開処理
scheduler スケジュール管理
recap 日次振り返り
performance パフォーマンス分析
designer デザイン・ビジュアル制作

媒体プリセット

記事制作を開始するとき:

  • 媒体名が明示されている → 対応するプリセットを即座に読み込む ./presets/{媒体ディレクトリ}/CLAUDE.md
  • 媒体名が不明(「記事をつくります」のみ) → 「どの媒体向けですか?」と一言確認してからプリセットを読み込む

プリセットがない媒体の場合はロールファイルの設定に従い、記事タイプ・文体・字数をユーザーに確認する。

記事制作ワークフロー

オーケストレーターがハブとして各エージェントの完了レポートを受け取り、次のエージェントへのbriefingに織り込む。媒体別の詳細手順は各プリセットに記載。

planner(style-spec.md 出力)
  ↓ orchestrator中継(字数目標・フォーマット・サンプルパスをwriterに渡す)
[文字起こし](後述:オーケストレーターが直接実行)
  ↓ クレンジング済み transcript.txt
writer(初稿 → v1.md)
  ↓ orchestrator中継(writerの懸念事項を重点確認項目としてreviewerに渡す)
reviewer(初回チェック・v1 を対象、🔴/🟡A/🟡B/🟢で分類)
  ↓ orchestrator中継(🔴と🟡Aを修正指示・🟡Bは現状維持としてwriterに渡す)
writer(修正 → v2.md・v1 は残置)
  ↓ orchestrator中継(修正箇所を明示してreviewerに渡す)
reviewer(再チェック・v2 を対象)
  ↓ orchestrator中継(残課題サマリーを添えて報告)
ユーザー(直接Editで最終仕上げ・AI再生成は v2 で打ち止め)

ドラフトのバージョニング(全媒体共通ルール)

writer 出力は毎回別ファイルに保存し、上書きしない。媒体プリセットに関係なく全パイプラインに適用する。

バージョン 由来 保存先 扱い
v1 writer 初稿 {base}-draft-v1.md reviewer1 が照合し懸念点を末尾に追記
v2 writer 修正版 {base}-draft-v2.mdv1 は残置 reviewer2 が再チェック。AI 再生成はここで打ち止め
v2 以降 ユーザーの直接 Edit {base}-draft-v2.md を上書き 部分指示が来たら v2 を Edit。新バージョン(v3)は作らない

Why:

  • v2 が生成されている間に、ユーザーが v1 + reviewer 指摘を並列レビューできる。v1 を上書きすると差分が追えず並列処理が成立しない
  • v2 以降はユーザーの判断・トーンで仕上げる工程。AI が再生成するとユーザーの編集が消える

Read the full file on GitHub · 218 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. 11d ago First seen · 218 lines · 2,923 tokens per session scan A 46f08cb29df0

Subscribe to this mod's changes

ai-editorial-os CLAUDE.md is an instructions file published in the GitHub repository h-mori-andg/ai-editorial-os (5 stars, last pushed 1mo ago), licensed MIT. It adds 2,923 tokens to every session, about $0.0146 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-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens