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 3,601 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 3,601 This file is loaded in full into every session.
When invoked 3,601 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.03601 $0.03601
Opus 5.5 $0.01440 $0.01440
Sonnet 5.5 $0.00720 $0.00720
Haiku 4.5 $0.00360 $0.00360

Measured 26d ago against content hash f6215f072dbc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 26d 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 · 247 lines

How it starts

The opening of the file, as written. The whole thing — 247 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 は残置)
  ↓ ★ここで停止。ユーザーへ1回だけ報告し、reviewer2 を回すか伺う
reviewer(再チェック・v2 を対象)※ユーザーが「回して」と言ったときだけ
  ↓ orchestrator中継(残課題サマリーを添えて報告)
ユーザー(直接Editで最終仕上げ・AI再生成は v2 で打ち止め)

v1 → reviewer1 → v2 は逐一報告せず止めずに通す。v2 完成がユーザーへの受け渡し点。 reviewer2 は自動起動しない。 Why:工程ごとの報告は承認待ちで詰まる。一方 v2 直後に reviewer2 を自動で回すと、ユーザーの直接編集と並走して空振りになる。


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

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

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

Read the full file on GitHub · 247 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. 26d ago Changed · +29 lines · +678 tokens per session f6215f072dbc
  2. 2mo 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 23d ago), licensed MIT. It adds 3,601 tokens to every session, about $0.0144 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-08-31.

Related

ai-editorial-os CLAUDE.md compared with instructions from other repositories

ai-editorial-os CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-editorial-os CLAUDE.mdh-mori-andg/ai-editorial-osInstructions file523d agoMITA3,601Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode