tune-anchors

tune-anchors is a skill for Claude Code, Codex from petar-djukic/writing-skills. It costs 84 tokens per session (1,801 once invoked), scanned A, original, MIT.

A writing-analysis tool that tests different ways of choosing example passages, called anchors, for copying an author's writing style. It compares the rewritten results and ranks the selection methods by writing-register scores.

In plain words
What is it for?
Testing writing-style reference sets across articles, comparing selection rules, removing common AI-writing patterns, and optionally checking the best results with an outside detector.
Why use it?
Choosing the wrong examples can make generated writing sound unlike the target author. This helps identify which examples produce the closest style after the text is cleaned up.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is --voice-dir ../writing-voice \.

Good fit Testing writing-style reference sets across articles, comparing selection rules, removing common AI-writing patterns, and optionally checking the best results with an outside detector.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/petar-djukic/writing-skills
agentmods
npx agentmods add skills/petar-djukic/writing-skills/tune-anchors

Made for: Claude Code, Codex.

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 tune-anchors

README.md
[![agentmods](https://agentmods.dev/badge/skills/petar-djukic/writing-skills/tune-anchors/github.svg)](https://agentmods.dev/skills/petar-djukic/writing-skills/tune-anchors)
Your own site
<a href="https://agentmods.dev/skills/petar-djukic/writing-skills/tune-anchors"><img src="https://agentmods.dev/badge/skills/petar-djukic/writing-skills/tune-anchors/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 tune-anchors

Your own site · 80×15
<a href="https://agentmods.dev/skills/petar-djukic/writing-skills/tune-anchors"><img src="https://agentmods.dev/badge/skills/petar-djukic/writing-skills/tune-anchors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,801 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.00084 $0.01801
Opus 5 $0.00042 $0.00901
Sonnet 5 $0.00017 $0.00360
Haiku 4.5 $0.00008 $0.00180

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

Security

Grade A, and why

tune-anchors 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 12d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/ledger.py, scripts/testdata/test_ledger.py, scripts/testdata/test_preserve_drafts.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/tune-anchors/SKILL.md · 181 lines

How it starts

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

tune-anchors

The objective

Given a writing-voice/ corpus and one or more target articles, answer: which anchor-selection rule produces rewrites closest to the author's own register?

A rule is an arm — a set of filters over the manifest: role=venue-voice, tags~clipped, pre_ai=true. Different arms produce different anchor sets, and the model copies the register of whatever it sees. The right arm is the one whose anchors give the model a register worth copying.

The pipeline

Each full trial runs two model passes before measurement:

  1. match-voice (drive.py) — voice rewrite using the arm's anchors
  2. tighten-style (tighten.py) — remove AI-register artifacts (passive stacks, nominalizations, filler) using the same model family shown transformation pairs, not rules
  3. measure — register markers on the tightened output

The ranking reflects the final output quality, not the raw voice draft. Tightening is what removes the AI sound; ranking without it would penalize arms whose raw drafts carry fixable markers and reward arms whose markers survive tightening unchanged.

--no-tighten skips step 2 and measures the raw voice draft instead. Use it to isolate the voice effect or to compare the tighten delta across arms.

When to run

  • Writing-voice onboarding. After the manifest exists and before the first real rewrite. Output is the --anchor-tags query to use thereafter.
  • After the corpus grows. Pool sizes change, and guidance hardcoded to a count goes stale. The source study's recommendation (idea-factory#355) went stale exactly this way.
  • After adding or removing tags. A tag query that was inert on the old corpus may now select a meaningful subset.

Prerequisites

What Required for Notes
writing-voice/ with manifest all commands the corpus being tuned
Ollama with the target model sweep (full) --dry-run needs no model
Pangram key in .secrets/ verify only optional; verify is the last step

Read the full file on GitHub · 181 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. 12d ago First seen · 181 lines · 84 tokens per session scan A fe9180e2aba4

Subscribe to this mod's changes

tune-anchors is a skill published in the GitHub repository petar-djukic/writing-skills (4 stars, last pushed 8d ago), licensed MIT. It adds 84 tokens to every session and 1,801 once invoked, about $0.0004 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 skills, from other repositories

humanizer

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague…

NulightJens/humanizer-stack · 111 tokens

structural-humanizer

Remove the discourse-level (structural) signs of AI writing that survive surface editing: stated lessons and moral-of-the-story closers, tidy single-track arcs, embodied-emotion performance ("chest tightened"), vague allusions instead of named references, unbroken linear structure, and shape convergence across pieces.…

NulightJens/humanizer-stack · 188 tokens

story-import

A tool for turning an existing novel into a structured writing project. It analyzes the book and organizes its characters, settings, plot plans, chapters, and tracking data for later writing.

zenstory-ai/oh-story-claudecode · 98 tokens

story-review

A review workflow for finding story problems from several viewpoints, including issues with structure, characters, wording, and fictional world rules. It can use multiple reviewer agents or work alone.

zenstory-ai/oh-story-claudecode · 74 tokens

story-long-analyze

A long-form fiction analysis workflow for breaking down a novel’s opening chapters, characters, pacing, turning points, relationships, and overall structure.

zenstory-ai/oh-story-claudecode · 173 tokens

story-deslop

A writing editor for Chinese web novels that detects writing patterns often associated with AI-generated text and makes the prose feel more natural.

zenstory-ai/oh-story-claudecode · 62 tokens