pdf-spec-mcp: Instructions file for Codex

AGENTS.md

pdf-spec-mcp AGENTS.md is an instructions file for Codex, OpenCode from shuji-bonji/pdf-spec-mcp. It costs 1,457 tokens per session, scanned A, original, MIT.

Repository-specific instructions for agents working on the pdf-spec-mcp project. They define where specifications belong, how changes are recorded, and how specification IDs and tests should be organized.

In plain words
What is it for?
Use them to guide work on pdf-spec-mcp, especially when creating OpenSpec changes, adding specification IDs, or locating tests and authoritative documents.
Why use it?
They give coding agents project rules to follow, helping prevent changes in the wrong files or before the required approval.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is shuji-bonji/pdf-spec-mcp's own configuration. It tells Codex and OpenCode how to work on pdf-spec-mcp 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 pdf-spec-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shuji-bonji/pdf-spec-mcp. 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/shuji-bonji/pdf-spec-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/shuji-bonji/pdf-spec-mcp

Made for: Codex, OpenCode.

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 pdf-spec-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/shuji-bonji/pdf-spec-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/shuji-bonji/pdf-spec-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/shuji-bonji/pdf-spec-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/shuji-bonji/pdf-spec-mcp/agents-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 pdf-spec-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/shuji-bonji/pdf-spec-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/shuji-bonji/pdf-spec-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,457 This file is loaded in full into every session.
When invoked 1,457 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.01457 $0.01457
Opus 5.5 $0.00583 $0.00583
Sonnet 5.5 $0.00291 $0.00291
Haiku 4.5 $0.00146 $0.00146

Measured 5d ago against content hash 1f075533d9fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pdf-spec-mcp AGENTS.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 5d 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.

AGENTS.md · 46 lines

How it starts

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

AGENTS.md

このリポジトリ(pdf-spec-mcp)で作業するエージェントと人が、最初に読む規則です。開発の手引きは CLAUDE.md、PDF family 全体の計画は pdf-agent-stack の docs/specs/31-openspec-spec-ids-adoption-plan.md にあります。

仕様の正本

  • 意図の正本は openspec/specs/ です(OpenSpec の置き場)。Wiki・Discussions・README・docs/NEXT-SESSION.md は正本にしません。
  • 変更は openspec/changes/<slug>/ に出し(openspec new change <slug>)、人が承認するまで実装を始めません。<slug> に日付を入れません(openspec archive が YYYY-MM-DD- を付けます)。
  • 実装する係は openspec/specs/ の本文を直接書き換えません。正本へ取り込むのは openspec archive です。実装から仕様へ戻したい発見は、新しい openspec/changes/ に書きます。
  • openspec/specs/ にまだ無いツールは、その変更が触るときに初版を起こします(8 ツールを一斉には起こしません)。初版の下書きは pdf-agent-stack の scripts/openspec-skeleton.mjs で tools/list から出せます(引数の表だけ。振る舞いの要求は既存のテストから起こします)。

仕様 ID

  • 形式は SPEC-PDFSPEC-<機能>-<3 桁> です(例: SPEC-PDFSPEC-GET-REQUIREMENTS-001)。機能は openspec/specs/<capability>/spec.md のディレクトリ名を大文字にしたものです(capability はツール名の _ を - にした kebab-case)。番号は機能ごとに 001 からの通し番号です。
  • 要求の見出しは ### Requirement: SPEC-PDFSPEC-<機能>-<3 桁> 題 の形で書きます。各要求に #### Scenario: を 1 つ以上書き、Scenario 名をテスト名の後半にします。
  • 新しい ID は npx spec-ids next <capability> で取ります(複数なら --count 3)。一度使った番号はその機能の中で再利用しません。
  • 仕様を外すときは差分の ## REMOVED Requirements に書き、テストからも ID を外します。

テストの置き場

  • src/**/*.test.ts(単体テスト)は CI で回ります。tests/e2e/**/*.test.ts は仕様 PDF(PDF_SPEC_DIR)が要るので、仕様 PDF のある手元でしか回りません。
  • spec-ids check は両方のテスト名を読みます。CI で確かめたい要求の受入テストは src/ 側に置きます。

承認の記録

  • openspec/changes/<slug>/proposal.md の先頭の front matter に approved: YYYY-MM-DD(JST)と pr: N を人が書きます。エージェントは空のキー(approved:・pr:)のまま出します。implementation(required / none)と targets(書き換える capability の配列)はエージェントが書きます。
  • openspec/specs/<capability>/spec.md の front matter には spec_id: PDFSPEC・kind(tool / common)・introduced_by(その capability を作った変更の slug)を書きます。
  • 🔴 新しい capability を作る変更では、openspec archive が差分の front matter を正本に写しません(OpenSpec 1.14.1)。archive の後、正本の先頭に front matter を書き足してから npx spec-ids check を回します。

Read the full file on GitHub · 46 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. 5d ago First seen · 46 lines · 1,457 tokens per session scan A 1f075533d9fd

Subscribe to this mod's changes

pdf-spec-mcp AGENTS.md is an instructions file published in the GitHub repository shuji-bonji/pdf-spec-mcp (2 stars, last pushed 3d ago), licensed MIT. It adds 1,457 tokens to every session, about $0.0058 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-10-23.

Related

Other instructions, from other repositories