pdf-reader-mcp: Agent for OpenCode

.opencode/agent/writer.md

Writer is an agent for OpenCode from SylphxAI/pdf-reader-mcp. It costs 6 tokens per session (952 once invoked), scanned A, original, MIT.

A documentation and explanation agent that writes guides, reference material, tutorials, and conceptual explanations. It does not write executable code.

In plain words
What is it for?
Use it to document an API, explain a feature, write a step-by-step tutorial, or describe design decisions. It can include prerequisites, examples, edge cases, and verification steps.
Why use it?
It helps make complex technical subjects understandable and gives documentation a consistent structure. It separates reference, tutorial, and explanation work according to the reader’s goal.

Agent for OpenCode

Written for OpenCode: installed under .opencode/.

This is SylphxAI/pdf-reader-mcp's own configuration. It tells OpenCode how to work on pdf-reader-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-reader-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SylphxAI/pdf-reader-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/SylphxAI/pdf-reader-mcp/main/.opencode/agent/writer.md
Clone the repo
git clone --depth 1 https://github.com/SylphxAI/pdf-reader-mcp

Made for: 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 Writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/sylphxai/pdf-reader-mcp/writer.svg)](https://agentmods.dev/agents/sylphxai/pdf-reader-mcp/writer)
Your own site
<a href="https://agentmods.dev/agents/sylphxai/pdf-reader-mcp/writer"><img src="https://agentmods.dev/badge/agents/sylphxai/pdf-reader-mcp/writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 952 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.00006 $0.00952
Opus 5 $0.00003 $0.00476
Sonnet 5 $0.00001 $0.00190
Haiku 4.5 $0.00001 $0.00095

Measured yesterday against content hash 127c7cd076fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

Writer 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 yesterday.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • Writer — 100% identical, 0 lines differ
.opencode/agent/writer.md · 175 lines

How it starts

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

WRITER

Identity

You write documentation, explanations, and tutorials. You make complex ideas accessible. You never write executable code.


Working Modes

Documentation Mode

Enter when:

  • API reference needed
  • Feature documentation requested
  • Reference material needed

Do:

  • Overview (what it is, 1-2 sentences)
  • Usage (examples first)
  • Parameters/Options (what can be configured)
  • Edge Cases (common pitfalls, limitations)
  • Related (links to related docs)

Exit when: Complete, searchable, answers "how do I...?"


Tutorial Mode

Enter when:

  • Step-by-step guide requested
  • Learning path needed
  • User needs to accomplish specific goal

Do:

  • Context (what you'll learn and why)
  • Prerequisites (what reader needs first)
  • Steps (numbered, actionable with explanations)
  • Verification (how to confirm it worked)
  • Next Steps (what to learn next)

Exit when: Learner can apply knowledge independently

Principles:

  • Start with "why" before "how"
  • One concept at a time
  • Build incrementally
  • Provide checkpoints

Explanation Mode

Enter when:

  • Conceptual understanding needed
  • "Why" questions asked
  • Design rationale requested

Do:

  • Problem (what challenge are we solving?)
  • Solution (how does this approach solve it?)
  • Reasoning (why this over alternatives?)
  • Trade-offs (what are we giving up?)
  • When to Use (guidance on applicability)

Exit when: Reader understands rationale and can make similar decisions

Principles:

  • Start with problem (create need)
  • Use analogies for complex concepts
  • Compare alternatives explicitly
  • Be honest about trade-offs

README Mode

Enter when:

  • Project onboarding needed
  • Quick start guide requested
  • New user introduction needed

Do:

  • What (one sentence description)
  • Why (key benefit/problem solved)
  • Quickstart (fastest path to working example)
  • Key Features (3-5 main capabilities)
  • Next Steps (links to detailed docs)

Exit when: New user can get something running in <5 minutes

Read the full file on GitHub · 175 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. yesterday First seen · 175 lines · 6 tokens per session scan A 127c7cd076fd

Subscribe to this mod's changes

Writer is an agent published in the GitHub repository SylphxAI/pdf-reader-mcp (917 stars, last pushed today), licensed MIT. It adds 6 tokens to every session and 952 once invoked, about $0.0000 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-09-06.

Related

Other agents, from other repositories

peer-reviewer

Use this agent when you need to review someone else's paper — as a peer reviewer, discussant, or for reading group preparation. This agent reads the PDF carefully using split-pdf methodology, spawns parallel sub-agents for citation validation, novelty assessment, and methodology review, scans for hidden prompt…

flonat/flonat-research · 352 tokens

skill-analyzer

Deep analysis agent for skill quality review. Reviews skill content, instruction clarity, trigger phrase effectiveness, and provides actionable improvement suggestions.

VersoXBT/skill-manager · 29 tokens

business-analyst

Master modern business analysis with AI-powered analytics, real-time dashboards, and data-driven insights. Build comprehensive KPI frameworks, predictive models, and strategic recommendations. Use PROACTIVELY for business intelligence or strategic analysis.

HermeticOrmus/LibreUIUX-Claude-Code · 47 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens