slop-writer: Instructions file for Claude Code

CLAUDE.md

slop-writer CLAUDE.md is an instructions file for Claude Code from Lancetnik/slop-writer. It costs 2,963 tokens per session, scanned A, original, Apache-2.0.

Project instructions and developer tools for slop-writer, a package that analyses Telegram channels and can queue posts for publication.

In plain words
What is it for?
Use them to run tests, check documentation, use the development command-line tools, install or remove the Claude Code setup, run the server, and configure Telegram access.
Why use it?
They give contributors one place to find the project’s commands, code rules, terminology, and testing checks. This reduces uncertainty when changing or running the package.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code.

This is Lancetnik/slop-writer's own configuration. It tells Claude Code how to work on slop-writer 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 slop-writer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Lancetnik/slop-writer. 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/Lancetnik/slop-writer/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Lancetnik/slop-writer

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 slop-writer CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lancetnik/slop-writer/claude-md"><img src="https://agentmods.dev/badge/instructions/lancetnik/slop-writer/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,963 This file is loaded in full into every session.
When invoked 2,963 The same file — it is already loaded in full.
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.02963 $0.02963
Opus 5 $0.01482 $0.01482
Sonnet 5 $0.00593 $0.00593
Haiku 4.5 $0.00296 $0.00296

Measured 9d ago against content hash cbd6c251d704, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

slop-writer CLAUDE.md 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 9d 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.md · 189 lines

How it starts

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

tg-scraper / slop-writer

A Claude Code skill plus an MCP server that analyze a Telegram channel and can queue a post to it. The eleven MCP tools are the whole agent-facing surface; the skill under skills/slop-writer/ says which tool answers which question and what the numbers mean. Published to PyPI as slop-writer; two install channels (slop-writer install, npx skills@latest add …) serve that same skill directory, and one version covers package and skill.

Rationale for a decision lives in docs/adr/; vocabulary in CONTEXT.md; structure (what calls what, where a symbol is) in codegraph.

Commands

  • uv run pytest — the suite, from the repo root. uv installs the project editable, so it exercises the working tree.
  • uv run tools/check_schema_doc.py — dev-only drift guard; run after editing SCHEMA or references/schema.md. CI runs it as its own step.
  • uv run --with-editable . tools/tg_*.py — the dev CLIs against the tree.
  • slop-writer (the shipped console script): install wires this project's Claude Code config, uninstall removes exactly what it wrote, serve --mcp runs the server over stdio, init writes Telegram credentials and logs in. init needs a TTY for the SMS code — the user runs it, not the agent.

Library rules (src/slop_writer/)

  • The domain raises, the entrypoint reports. Nothing under src/slop_writer/ prints an error or exits: it raises SlopWriterError (UsageError for exit 2) and cli.py or server.py decides how to report. That is what lets the server call the same function and build JSON instead.
  • errors.ERROR_CODES is a closed vocabulary, enforced at construction. Reuse a code; adding one is a deliberate edit with a raise site.
  • A message or a hint names an argument or an operation, never a surface — the same string reaches a human at stderr and a model at a tool result, and only one of them has a flag or a script. tests/test_errors.py scans every literal statically over the modules server.py can reach. When the surface genuinely differs, the caller supplies the noun (prepare_schedule( body_source=…)) or the boundary swaps the hint (server._SETUP_HINT).
  • The domain uses a client, the entrypoint owns it. Scrape and scan paths come in twins: X_with_client(client, …) does the work, X(…, session_file) wraps it in one channel_session. A new command adds both forms.
  • resolve_peer runs before any open_dbopen_db lives inside the channel_session body (for the group scan, inside scan_group_with_client after resolve_group_target). A typo then fails on the handle instead of leaving a stray empty .tg-analytic/<typo>.db, and zero posts always means an empty window.
  • Renderers return a string. render.py takes plain dicts and returns Markdown — no Telethon or SQLite types, and no print: on a stdio server stdout is the JSON-RPC transport. The domain returns the result shape (ScrapeResult, GroupScanResult, …); the entrypoint calls summarize_*.
  • db.py, errors.py and query.py stay stdlib-only — a query stays answerable without a Telegram client.
  • publish.py is the write surface (adr/0003); nothing on a read path imports it, which is why scheduled.py is separate.
  • MESSAGE_TOO_LONG comes from the network, by design — the cap depends on the account, so _too_long translates Telethon's error rather than measuring the body.
  • A refusal is not an absence. CANNOT_RESOLVE means the handle names nothing, NOT_A_MEMBER means Telegram confirmed the peer and refused this account — one is fixed by correcting the handle, the other by joining. Every new Telethon call that can refuse classifies the two.
  • cli.py is argparse, so an installed server carries no CLI framework; typer stays a tools/ script dependency.
  • .tg-analytic/ is runtime state at the project root (gitignored): .env, session.session, one <channel>.db per channel, media/. Entrypoints anchor it on the cwd (--project overrides); the library never reads the cwd.

Read the full file on GitHub · 189 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. 9d ago First seen · 189 lines · 2,963 tokens per session scan A cbd6c251d704

Subscribe to this mod's changes

slop-writer CLAUDE.md is an instructions file published in the GitHub repository Lancetnik/slop-writer (10 stars, last pushed 17d ago), licensed Apache-2.0. It adds 2,963 tokens to every session, about $0.0148 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 instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens