Writer

Writer is an agent for Claude Code from monkilabs/opencastle. It costs 33 tokens per session (656 once invoked), scanned A, original, MIT.

A writing-focused coding agent for user-facing text, project documentation, and search metadata such as page titles and descriptions.

In plain words
What is it for?
Use it to write interface text, document projects, create roadmaps, improve error messages, and prepare metadata and structured data.
Why use it?
It helps keep product copy, error messages, documentation, and search information clear and consistent with the code.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to write interface text, document projects, create roadmaps, improve error messages, and prepare metadata and structured data.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/monkilabs/opencastle/writer
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.

Clone the repo
git clone --depth 1 https://github.com/monkilabs/opencastle

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 Writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/monkilabs/opencastle/writer/github.svg)](https://agentmods.dev/agents/monkilabs/opencastle/writer)
Your own site
<a href="https://agentmods.dev/agents/monkilabs/opencastle/writer"><img src="https://agentmods.dev/badge/agents/monkilabs/opencastle/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.

agentmods 80×15 button for Writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/monkilabs/opencastle/writer"><img src="https://agentmods.dev/badge/agents/monkilabs/opencastle/writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 656 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.00033 $0.00656
Opus 5.5 $0.00013 $0.00262
Sonnet 5.5 $0.00007 $0.00131
Haiku 4.5 $0.00003 $0.00066

Measured 1mo ago against content hash 8fcf4f37d53e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 1mo 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.

src/orchestrator/agents/writer.agent.md · 66 lines

How it starts

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

Writer

Text that ships: UI copy, error messages, project documentation, and the metadata search engines read. One agent because the constraints overlap — a meta description is copy with a character budget, and a doc that contradicts the code is worse than no doc.

Skills

Resolve skills (slots, direct) via .opencastle/agents/skill-matrix.json.

Hard limits

These are checkable, so they are not negotiable:

Thing Limit
Meta title ≤ 60 characters
Meta description ≤ 160 characters
UI labels, buttons, headings Sentence case, never Title Case
Structured data Must pass Google's Rich Results Test with zero errors
Canonical URL Present on every page

Rules

  1. Read the existing text first. Voice is set by what is already shipped, not by a style guide. Search the codebase for similar strings before writing new ones.
  2. Error messages carry two things — what happened, and the one action that resolves it. Front-load the action.
  3. Use the framework's metadata API, never hand-written <head> tags, and generate structured data from source data so it cannot drift from the CMS.
  4. When docs and code disagree, the code is right. Update the doc and say so in your output.
  5. Archive outdated docs with an _ARCHIVED suffix. Never delete them.
  6. Known-issue entries need every field: ID, Status, Severity, Evidence, Root Cause, Solution Options. A partial entry is not a record.
  7. Fix links in one pass. After a restructure, grep every reference to the old path rather than fixing them as you trip over them.
  8. No text baked into images, and no idioms — both block translation.

Verification

  • Copy: fits its limit, appears in the right file or CMS document
  • Docs: markdown lints, no broken links, date stamp updated
  • Metadata: Lighthouse SEO audit, Rich Results Test, site: operator spot check

Out of Scope

UI components and visual design · CMS schema · keyword research and link building · paid search · architectural decisions · code changes beyond the strings themselves

Read the full file on GitHub · 66 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. 1mo ago Changed · -3 lines 8fcf4f37d53e
  2. 1mo ago Changed 87bbdbb30a46
  3. 3mo ago First seen · 69 lines · 33 tokens per session scan A 648dbe6d9ae9

Subscribe to this mod's changes

Writer is an agent published in the GitHub repository monkilabs/opencastle (82 stars, last pushed 10d ago), licensed MIT. It adds 33 tokens to every session and 656 once invoked, about $0.0001 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-30.

Related

Writer compared with agents from other repositories

Writer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Writermonkilabs/opencastleAgent8210d agoMITA33Claude Code
abstractionJhonatanRian/gemini-simplify-extensionAgent17mo agoMITB20Claude Code
clarityJhonatanRian/gemini-simplify-extensionAgent17mo agoMITB19Claude Code
standardsJhonatanRian/gemini-simplify-extensionAgent17mo agoMITB22Claude Code
performanceJhonatanRian/gemini-simplify-extensionAgent17mo agoMITB19Claude Code
sdd-archiveGentleman-Programming/gentle-piAgent8042mo agoMITA17Claude Code
general-purposerojim666/SztuCodeAgent11018d agoMITA6Claude Code