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.
npx agentmods add agents/sareegpt/edgartools-mcp/docs-writergit 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.svg" alt="Measured on agentmods" 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 | $0.00379 | $0.01508 |
| Opus 5 | $0.00189 | $0.00754 |
| Sonnet 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 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.
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.
- 4d 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 (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.
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.
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.
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.
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.
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…
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…