pdf-reader-mcp
AGENTS.md2 starsChanged 33 days agoMITView on GitHub
このリポジトリ(pdf-reader-mcp)で作業するエージェントと人が、最初に読む規則です。開発の手引きは CLAUDE.md、PDF family 全体の計画は pdf-agent-stack の docs/specs/31-openspec-spec-ids-adoption-plan.md にあります。
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
The file
Files
AGENTS.md
このリポジトリ(pdf-reader-mcp)で作業するエージェントと人が、最初に読む規則です。開発の手引きは CLAUDE.md、PDF family 全体の計画は pdf-agent-stack の docs/specs/31-openspec-spec-ids-adoption-plan.md にあります。
仕様の正本
- 意図の正本は
openspec/specs/です(OpenSpec の置き場)。Wiki・Discussions・README は正本にしません。 - 変更は
openspec/changes/<slug>/に出し(/opsx:proposeまたはopenspec new change <slug>)、人が承認するまで実装を始めません。<slug>に日付を入れません(openspec archiveがYYYY-MM-DD-を付けます)。 - 実装する係は
openspec/specs/の本文を直接書き換えません。正本へ取り込むのはopenspec archiveです。実装から仕様へ戻したい発見は、新しいopenspec/changes/に書きます。 openspec/specs/にまだ無いツールは、その変更が触るときに初版を起こします(20 ツールを一斉には起こしません)。初版起こしはspec-init/<capability>のブランチで、openspec/specs/<capability>/spec.mdと既存テスト名への仕様 ID の追加だけを行います(期待値は変えない)。
仕様 ID
- 形式は
SPEC-READER-<機能>-<3 桁>です(例:SPEC-READER-EXTRACT-STRUCTURED-TEXT-001)。機能はopenspec/specs/<capability>/spec.mdのディレクトリ名を大文字にし、_を-にしたものです。番号は機能ごとに 001 からの通し番号です。 - 要求の見出しは
### Requirement: SPEC-READER-<機能>-<3 桁> 題の形で書きます。各要求に#### Scenario:を 1 つ以上書き、Scenario 名をテスト名の後半にします。 - 新しい ID は
npx spec-ids next <capability>で取ります(複数なら--count 3)。一度使った番号はその機能の中で再利用しません。 - 仕様を外すときは差分の
## REMOVED Requirementsに書き、テストからも ID を外します。
承認の記録
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: READER・kind(tool/common)・初版のapprovedとprを書きます。
PR の種類
| ブランチ | 種類 | 入れてよいもの |
spec/<slug> | 仕様 PR | openspec/changes/<slug>/ の proposal.md と差分の specs/<capability>/spec.md |
spec-init/<capability> | 初版起こし | openspec/specs/<capability>/spec.md と、既存テスト名への仕様 ID の追加 |
それ以外(feat/ fix/ docs/ chore/) | 実装 PR | src/・テスト・版・CHANGELOG、openspec archive による取り込み(openspec/changes/<slug>/ → openspec/changes/archive/YYYY-MM-DD-<slug>/ と openspec/specs/ の更新) |
- 1 つの変更を 1 本の PR(提案 → 仕様 → 実装 → archive)で進めてよいです(PDF family の計画 §6.3)。その場合もブランチは実装 PR の名前にし、archive の前に proposal.md の
approvedとprを書きます。 - CI の
spec-gateはnpx openspec validate --all→npx spec-ids checkの順に走り、PR のときだけnpx spec-ids pr-scopeが変えてよいパスを検査します。 - 署名・push・PR・マージ・タグは人が行います。
記録
- 変更ごとに
openspec/changes/<slug>/record.mdを残します(版・かかった時間・人が判断した箇所・仕様と実装のずれ・読み返した回数。書式は計画 §8)。archive でそのままarchive/に移ります。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

