agentleFS
zdresearchzdresearch/p3n/skills/editorial/SKILL.md

editorial

Skill5 starsChanged 14 days agoMITView on GitHub

Edit a text in editorial rounds for meaning and plain style, and remove the writing habits that give model-written text away (spatial metaphors, vivid verbs, filler emphasis, strong negatives). Asks for the facts a reader is missing; each round is scored 0-100. Use when asked to edit AI-assisted writing, or to make a draft read like a person wrote it.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use facts from your conversation.

    line 43
  2. Distinctive:

    Stop when the score reaches the target score, after 5 rounds, or when the score rose less than 5 points over the last two rounds.

    line 47
  3. Distinctive:

    Only if you can't spawn a subagent: the hosted p3n API runs the same editor.

    line 54

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Editorial

Everything Deslop does, plus a pass for the writing habits that give AI written text away, as well as editorial contexts for different texts.

Inputs

  • Text: a file, or text the user provided.
  • Brief: who reads the text and what for. If you don't know the brief and the audience from the writing's context, ask the user.
  • Target score: the score that ends the edit. Default 80/100.

They come as the skill's arguments (/editorial draft.md "the support team, learning the escalation rules" 90) or from the conversation.

You are the writer. Spawn a subagent called editor on the cheapest model you have (e.g., Luna for ChatGPT, Haiku for Claude), ideally at low effort, and tell it to read editor.md in this folder as its instructions. Don't read editor.md yourself (context pollution): it is the editor's rubric, and everything you need from it is here in this file.

Label the text with python3 scripts/split.py TEXT_FILE or pipe the text in with python3 scripts/split.py -, and send it to the editor with the brief:

# The text to edit

BRIEF (who reads this and what for): <the brief>

<the labelled text>

The editor answers in rounds with one JSON object:

{"summary": "the state of the text and the most important thing to fix next",
 "progress": "after round 1: what the revision fixed, what is still open, what it broke",
 "items": [{"label": "P3S2" | "P3S2-S4" | "P3", "type": "change" | "cut" | "question" | "note",
            "proposal": "the replacement text (change)", "question": "what it needs to know (question)",
            "why": "the criterion, and what is wrong"}],
 "score": 0-100}

A change replaces the labelled sentence, range or paragraph with its proposal; a cut deletes it; a question needs an answer before the sentence can be fixed; a note is anything else. P3S2 is sentence 2 of paragraph 3; H and B lines (headings, lists, tables, code) are generally not edited.

Use facts from your conversation; ask the user for facts you don't have rather than inventing them. When the user has no answer, keep the sentence as is.

Each round, the editor returns feedback per label and a score. Apply the feedback as you see fit, label the new text again, and send it back to the same subagent with the answers to its questions. Ask it to say in "progress" what the revision fixed, what is still open and what it broke, and to hold to what it asked for in earlier rounds. Keep the subagent alive for the whole edit.

Stop when the score reaches the target score, after 5 rounds, or when the score rose less than 5 points over the last two rounds. The user may ask to continue.

Show the rounds, score of each round, the summary, etc. to the user.

The goal is text that reads well and plainly, not text that beats a detector. When the edit ends, attempt to run the ai-detection sister skill on the result if the user wants to see how it scores; the online API runs it on the last round.

Hosted API

Only if you can't spawn a subagent: the hosted p3n API runs the same editor. Read https://p3n.si/skills/editorial#for-ai-agents then, and follow it; it has the calls, the key and the free limit.

The user's p3n API key should live in ~/.config/p3n/key.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.