Borrowing it
Nothing to install: this file belongs to sareegpt/edgartools-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.
curl -O https://raw.githubusercontent.com/sareegpt/edgartools-mcp/main/.claude/agents/docs-writer.mdgit clone --depth 1 https://github.com/sareegpt/edgartools-mcpWrote 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.
[](https://agentmods.dev/agents/sareegpt/edgartools-mcp/docs-writer)<a href="https://agentmods.dev/agents/sareegpt/edgartools-mcp/docs-writer"><img src="https://agentmods.dev/badge/agents/sareegpt/edgartools-mcp/docs-writer/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.
<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="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00379 | $0.01508 |
| Opus 5.5 | $0.00152 | $0.00603 |
| Sonnet 5.5 | $0.00076 | $0.00302 |
| Haiku 4.5 | $0.00038 | $0.00151 |
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 2mo 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.
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:
- Python Beginners: Need gentle introductions, clear examples, minimal jargon
- Financial Analysts: Want accurate data extraction, understand SEC terminology, need practical workflows
- 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:
- Structure: Follow the page-type templates (user guide, data object guide, concept page) defined in the guidelines
- 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
- Tone: Professional yet approachable, confident but not condescending. No emojis -- use Unicode symbols per
docs/internal/design-language.md - Technical Accuracy: Ensure all code examples are runnable and outputs are realistic
- Cross-referencing: Link related concepts, methods, and guides appropriately
- Images: Prefer WebP format. Generate Rich console screenshots using the SVG+Inkscape pipeline:
- Use
Rich Console(record=True)to capture output, thenconsole.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.pyfor 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.Tableobjects (not plainprint(df)) for proper formatting - Use
width=100-120for the Rich Console to get appropriately sized output - Store all doc images in
docs/images/with descriptive kebab-case names
- Use
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.pyexists, add them there. If it doesn't exist yet, document the examples clearly so they can be added later — this infrastructure is being built perdocs/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
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.
- 2mo ago First seen · 89 lines · 0 tokens per session scan A 3663088ae7e6
docs-writer is an agent published in the GitHub repository sareegpt/edgartools-mcp (19 stars, last pushed 8mo ago), licensed MIT. It adds 379 tokens to every session and 1,508 once invoked, about $0.0015 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.
docs-writer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| docs-writersareegpt/edgartools-mcp | Agent | 19 | 8mo ago | MIT | A | 379 | Claude Code |
| Geoprocessing SpecialistSHAdd0WTAka/Zen-Ai-Pentest | Agent | 503 | 3d ago | MIT | A | 45 | Claude Code, OpenCode |
| python-proechoVic/blade-code | Agent | 181 | 24d ago | MIT | A | 51 | Claude Code |
| temporal-test-buildercanonical/copilot-collections | Agent | 32 | 3d ago | Apache-2.0 | A | 56 | Claude Code |
| package-revieweroborchers/fractional-cto | Agent | 36 | 12d ago | MIT | A | 287 | Claude Code |
| script-operatorMadGraphTeam/MadAgents | Agent | 15 | 3mo ago | MIT | A | 24 | Claude Code |
| python-reviewerFmarzochi/EGC | Agent | 68 | yesterday | Apache-2.0 | A | 43 | Claude Code, Kiro |