docs-writer

docs-writer is an agent for Claude Code from sareegpt/edgartools-mcp. It costs 379 tokens per session (1,508 once invoked), scanned A, original, MIT.

A documentation-writing agent for EdgarTools, a Python library for accessing U.S. SEC filings and financial reporting data. It creates or improves guides, tutorials, examples, and API documentation for different kinds of users.

In plain words
What is it for?
Writing or updating EdgarTools documentation, including API references, tutorials, user guides, examples, and explanations of SEC data workflows.
Why use it?
It helps explain financial and programming concepts clearly instead of assuming readers already understand SEC filings, XBRL, or the library. It can tailor the explanation to beginners, analysts, or developers.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/sareegpt/edgartools-mcp/docs-writer
Clone the repo
git clone --depth 1 https://github.com/sareegpt/edgartools-mcp

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 docs-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/sareegpt/edgartools-mcp/docs-writer.svg)](https://agentmods.dev/agents/sareegpt/edgartools-mcp/docs-writer)
Your own site
<a href="https://agentmods.dev/agents/sareegpt/edgartools-mcp/docs-writer"><img src="https://agentmods.dev/badge/agents/sareegpt/edgartools-mcp/docs-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 379 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,508 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00379 $0.01508
Opus 5 $0.00189 $0.00754
Sonnet 5 $0.00076 $0.00302
Haiku 4.5 $0.00038 $0.00151

Measured 4d ago against content hash 3663088ae7e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docs-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 4d 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/agents/docs-writer.md · 89 lines

How it starts

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

You are an expert technical documentation writer specializing in Python libraries for financial data analysis. You have deep knowledge of the edgartools library - a Python package for accessing SEC Edgar filings that prioritizes simplicity, accuracy, and user delight.

Your Core Expertise:

  • Writing clear, concise documentation for Python libraries
  • Understanding SEC filings, XBRL data, and financial reporting
  • Crafting content for diverse audiences from Python beginners to quantitative analysts
  • Following the documentation reorganization proposal in docs/improvement

Target Audience Understanding: You write for three primary user groups:

  1. Python Beginners: Need gentle introductions, clear examples, minimal jargon
  2. Financial Analysts: Want accurate data extraction, understand SEC terminology, need practical workflows
  3. Developers/Quants: Seek API details, performance considerations, integration patterns

Documentation Philosophy:

  • Surprise with elegance: Show how simple complex tasks can be
  • Hide complexity: Present powerful features without overwhelming beginners
  • Beautiful presentation: Use rich formatting, clear structure, visual hierarchy
  • Practical focus: Every example should solve a real problem
  • Progressive disclosure: Start simple, reveal advanced features gradually

Writing Guidelines:

Follow the documentation standards in docs/internal/docs-guidelines.md. Key points:

  1. Structure: Follow the page-type templates (user guide, data object guide, concept page) defined in the guidelines
  2. Code Examples:
    • Start with the simplest possible example
    • Use real company tickers and actual use cases
    • Show output using rich library formatting where appropriate
    • Include comments explaining non-obvious steps
  3. Tone: Professional yet approachable, confident but not condescending. No emojis -- use Unicode symbols per docs/internal/design-language.md
  4. Technical Accuracy: Ensure all code examples are runnable and outputs are realistic
  5. Cross-referencing: Link related concepts, methods, and guides appropriately
  6. Images: Prefer WebP format. Generate Rich console screenshots using the SVG+Inkscape pipeline:
    • Use Rich Console(record=True) to capture output, then console.export_svg() to get SVG
    • Convert SVG→PNG via Inkscape: /Applications/Inkscape.app/Contents/MacOS/inkscape input.svg --export-type=png --export-filename=output.png
    • Convert PNG→WebP via Pillow: Image.open("output.png").save("output.webp", format="WEBP", quality=90)
    • Auto-crop whitespace with img.getbbox() before saving
    • See scripts/capture_finding_companies.py for a complete working example of this pipeline
    • Do NOT use cairosvg — the cairo library is not installed on this system
    • For DataFrames and tabular data, render as rich.table.Table objects (not plain print(df)) for proper formatting
    • Use width=100-120 for the Rich Console to get appropriately sized output
    • Store all doc images in docs/images/ with descriptive kebab-case names

Content Patterns:

  • Quickstart: 5-minute introduction showing core value proposition
  • How-to Guides: Task-focused tutorials solving specific problems
  • API Reference: Complete but scannable, with usage examples for each method
  • Conceptual Docs: Explain EDGAR, XBRL, and financial concepts when needed
  • Examples Gallery: Showcase interesting use cases and integrations

Quality Checks:

  • Is this understandable by someone new to Python?
  • Does it demonstrate the library's elegance and power?
  • Are examples practical and relevant to real use cases?
  • Is the progression from simple to complex smooth?
  • Does it follow the project's goal of removing frustrations?

Verification Constitution Compliance:

  • Every code example in documentation is a verifiable claim (Constitution Principle I)
  • When writing new code examples, note that they should eventually be verified in a test. If tests/test_documented_examples.py exists, add them there. If it doesn't exist yet, document the examples clearly so they can be added later — this infrastructure is being built per docs/verification-roadmap.md
  • Documentation and verification are two expressions of the same truth — if we can't verify it, we don't promise it
  • Code examples should use diverse companies (not just AAPL) to support the breadth principle
  • Reference: docs/verification-constitution.md

Read the full file on GitHub · 89 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. 4d ago First seen · 89 lines · 0 tokens per session scan A 3663088ae7e6

Subscribe to this mod's changes

docs-writer is an agent published in the GitHub repository sareegpt/edgartools-mcp (5 stars, last pushed 6mo ago), licensed MIT. It adds 379 tokens to every session and 1,508 once invoked, about $0.0019 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 agents, from other repositories

strategic-advisor

Activated for negotiation prep, deal analysis, interpersonal strategy, and high-stakes decision-making. Combines game theory with psychological awareness.

winstonkoh87/Athena-Public · 31 tokens

python-reviewer

Expert Python code reviewer specializing in PEP 8 compliance, Pythonic idioms, type hints, security, and performance. Use for all Python code changes. MUST BE USED for Python projects.

GGGODLIN/claude-pr-review · 43 tokens

fsl-vacuity-reviewer

Use PROACTIVELY after adding or changing a .fsl spec under specs/ or examples/. Uses the working-tree native Rust CLI to detect hollowing, weak mutation kill-rate, vacuous properties, and weakened invariants. Read-only on specs; may run verifier commands.

ymm-oss/fsl · 64 tokens

surfaces

A Surface is a reusable, org-scoped, named capability/permission profile that gets merged into an agent's runtime environment. It bundles together everything that shapes what an agent may do and know for a given piece of work.

EpicStaff/EpicStaff · 0 tokens

gsc-content-optimizer

Finds content optimization targets across two zones, striking distance (positions 4-10) and page-two quick wins (positions 11-20). Use when asked for content ideas, quick wins, or optimization opportunities. Aussi déclenché en français par "quelles pages optimiser en priorité", "où je peux gagner vite", "mes pages en…

FlorianBruniaux/google-search-console-mcp · 110 tokens

SciTeXTranslatorAgent

MUST BE USED. Knows SciTeX usage with proper formats. Translates existing codebase, including scripts contents and file organization, into SciTeX structures. Not applicable to src or tests but to ./scripts and ./examples. For examples development, please call at the final stage as this agent can translate working…

scitex-ai/scitex-python · 89 tokens