From 5f5dd655813c7025f87fc38ff04c489c66db138c Mon Sep 17 00:00:00 2001 From: Federico Mastrini Date: Sat, 28 Nov 2026 12:23:31 +0100 Subject: [PATCH 1/2] feat(writing-for-humans): add a skill for prose people read writing-for-humans drafts and edits text for human readers in two passes. The draft pass fixes substance first (know the reader, lead with the answer, specific and true claims, every sentence adds information), then plain wording and formatting for where the text lands. The check pass rereads as the reader and scans references/patterns.md, a catalog of sentence, structure, tone and formatting patterns with an overused word list checked last. Three eval cases cover an AI-sounding company email, a maintenance notice for non-technical staff, and an incident summary for engineers. Version 0.18.0. --- .claude-plugin/plugin.json | 5 +- README.md | 3 +- gemini-extension.json | 2 +- plugin.json | 2 +- skills/writing-for-humans/SKILL.md | 48 +++++++++++++++ skills/writing-for-humans/agents/openai.yaml | 3 + .../expense-announcement-cleanup/case.yaml | 11 ++++ .../files/announcement.md | 25 ++++++++ .../graders/01-leads-with-the-change.md | 7 +++ .../graders/02-keeps-the-real-facts.md | 7 +++ .../graders/03-unsourced-claim-handled.md | 7 +++ .../graders/04-plain-text-only.md | 7 +++ .../graders/05-no-negative-parallelism.md | 7 +++ .../graders/06-no-empty-closers.md | 7 +++ .../graders/07-no-invented-facts.md | 7 +++ .../graders/08-em-dash-limit.md | 7 +++ .../place-files.sh | 3 + .../expense-announcement-cleanup/prompt.md | 12 ++++ .../incident-summary-for-engineers/case.yaml | 11 ++++ .../files/timeline.md | 14 +++++ .../graders/01-leads-with-impact.md | 7 +++ .../graders/02-cause-in-shared-terms.md | 7 +++ .../graders/03-impact-count-not-invented.md | 7 +++ .../graders/04-follow-ups-listed.md | 7 +++ .../graders/05-no-empty-closer.md | 7 +++ .../graders/06-short.md | 7 +++ .../place-files.sh | 3 + .../incident-summary-for-engineers/prompt.md | 12 ++++ .../case.yaml | 12 ++++ .../files/notes.txt | 11 ++++ .../graders/01-leads-with-the-impact.md | 7 +++ .../graders/02-no-unexplained-jargon.md | 7 +++ .../graders/03-says-what-to-do.md | 7 +++ .../graders/04-covers-side-effects.md | 7 +++ .../graders/05-no-invented-contact.md | 7 +++ .../graders/06-addresses-the-reader.md | 7 +++ .../graders/07-sentence-case-no-emoji.md | 7 +++ .../place-files.sh | 3 + .../prompt.md | 12 ++++ .../writing-for-humans/references/patterns.md | 60 +++++++++++++++++++ 40 files changed, 394 insertions(+), 5 deletions(-) create mode 100644 skills/writing-for-humans/SKILL.md create mode 100644 skills/writing-for-humans/agents/openai.yaml create mode 100644 skills/writing-for-humans/evals/expense-announcement-cleanup/case.yaml create mode 100644 skills/writing-for-humans/evals/expense-announcement-cleanup/files/announcement.md create mode 100644 skills/writing-for-humans/evals/expense-announcement-cleanup/graders/01-leads-with-the-change.md create mode 100644 skills/writing-for-humans/evals/expense-announcement-cleanup/graders/02-keeps-the-real-facts.md create mode 100644 skills/writing-for-humans/evals/expense-announcement-cleanup/graders/03-unsourced-claim-handled.md create mode 100644 skills/writing-for-humans/evals/expense-announcement-cleanup/graders/04-plain-text-only.md create mode 100644 skills/writing-for-humans/evals/expense-announcement-cleanup/graders/05-no-negative-parallelism.md create mode 100644 skills/writing-for-humans/evals/expense-announcement-cleanup/graders/06-no-empty-closers.md create mode 100644 skills/writing-for-humans/evals/expense-announcement-cleanup/graders/07-no-invented-facts.md create mode 100644 skills/writing-for-humans/evals/expense-announcement-cleanup/graders/08-em-dash-limit.md create mode 100755 skills/writing-for-humans/evals/expense-announcement-cleanup/place-files.sh create mode 100644 skills/writing-for-humans/evals/expense-announcement-cleanup/prompt.md create mode 100644 skills/writing-for-humans/evals/incident-summary-for-engineers/case.yaml create mode 100644 skills/writing-for-humans/evals/incident-summary-for-engineers/files/timeline.md create mode 100644 skills/writing-for-humans/evals/incident-summary-for-engineers/graders/01-leads-with-impact.md create mode 100644 skills/writing-for-humans/evals/incident-summary-for-engineers/graders/02-cause-in-shared-terms.md create mode 100644 skills/writing-for-humans/evals/incident-summary-for-engineers/graders/03-impact-count-not-invented.md create mode 100644 skills/writing-for-humans/evals/incident-summary-for-engineers/graders/04-follow-ups-listed.md create mode 100644 skills/writing-for-humans/evals/incident-summary-for-engineers/graders/05-no-empty-closer.md create mode 100644 skills/writing-for-humans/evals/incident-summary-for-engineers/graders/06-short.md create mode 100755 skills/writing-for-humans/evals/incident-summary-for-engineers/place-files.sh create mode 100644 skills/writing-for-humans/evals/incident-summary-for-engineers/prompt.md create mode 100644 skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/case.yaml create mode 100644 skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/files/notes.txt create mode 100644 skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/01-leads-with-the-impact.md create mode 100644 skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/02-no-unexplained-jargon.md create mode 100644 skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/03-says-what-to-do.md create mode 100644 skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/04-covers-side-effects.md create mode 100644 skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/05-no-invented-contact.md create mode 100644 skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/06-addresses-the-reader.md create mode 100644 skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/07-sentence-case-no-emoji.md create mode 100755 skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/place-files.sh create mode 100644 skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/prompt.md create mode 100644 skills/writing-for-humans/references/patterns.md diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index d5941bc..fd72de6 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "fstack", "description": "Federico Mastrini's agent skills for everyday software engineering work.", - "version": "0.17.2", + "version": "0.18.0", "author": { "name": "Federico Mastrini", "url": "https://fedemas.dev" @@ -30,7 +30,8 @@ "./skills/resolve-merge-conflicts", "./skills/test-driven-development", "./skills/ux-brainstorm", - "./skills/ux-stress-test" + "./skills/ux-stress-test", + "./skills/writing-for-humans" ], "icon": "./.claude-plugin/logo.png" } diff --git a/README.md b/README.md index 80eca29..2a0e526 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ **A short stack of agent skills for everyday software engineering work.** [![Claude Code plugin](https://img.shields.io/badge/Claude%20Code-plugin-D97757?style=flat-square)](https://www.fedemas.dev/fstack) -[![Version](https://img.shields.io/badge/version-0.17.2-B4A7E5?style=flat-square)](.claude-plugin/plugin.json) +[![Version](https://img.shields.io/badge/version-0.18.0-B4A7E5?style=flat-square)](.claude-plugin/plugin.json) [![License: MIT](https://img.shields.io/badge/license-MIT-93D3BB?style=flat-square)](LICENSE) @@ -34,6 +34,7 @@ fstack turns everyday engineering workflows into skills your coding agent runs e | Building | [implement](skills/implement/SKILL.md) · [implement-issue](skills/implement-issue/SKILL.md) · [test-driven-development](skills/test-driven-development/SKILL.md) | | Code quality | [code-review](skills/code-review/SKILL.md) · [receiving-code-review](skills/receiving-code-review/SKILL.md) · [comment-sweep](skills/comment-sweep/SKILL.md) | | Pull requests | [pr-open](skills/pr-open/SKILL.md) · [pr-ship](skills/pr-ship/SKILL.md) · [pr-babysit](skills/pr-babysit/SKILL.md) · [resolve-merge-conflicts](skills/resolve-merge-conflicts/SKILL.md) | +| Writing | [writing-for-humans](skills/writing-for-humans/SKILL.md) | ## 📦 Install diff --git a/gemini-extension.json b/gemini-extension.json index 536b85a..a87c0b5 100644 --- a/gemini-extension.json +++ b/gemini-extension.json @@ -1,5 +1,5 @@ { "name": "fstack", - "version": "0.17.2", + "version": "0.18.0", "description": "Federico Mastrini's agent skills for everyday software engineering work." } diff --git a/plugin.json b/plugin.json index 7fee5fa..fb238c3 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "fstack", - "version": "0.17.2", + "version": "0.18.0", "description": "Federico Mastrini's agent skills for everyday software engineering work.", "author": { "name": "Federico Mastrini", diff --git a/skills/writing-for-humans/SKILL.md b/skills/writing-for-humans/SKILL.md new file mode 100644 index 0000000..917737c --- /dev/null +++ b/skills/writing-for-humans/SKILL.md @@ -0,0 +1,48 @@ +--- +name: writing-for-humans +description: 'Use when writing or editing prose that people will read, such as docs, READMEs, guides, reports, emails, announcements, release notes, or issue and PR text, or when the user asks to make text clearer, plainer, shorter, or less AI-sounding ("this reads like a bot wrote it", "humanize this", "make it sound like a person").' +--- + +# Writing for humans + +Write text a person can read once and act on. Work in two passes: draft for substance, then check the draft in a separate pass. A check pass catches more than rules held in mind while drafting. + +## Draft: get the substance right + +Wordy habits are symptoms. Text with no clear point, no specific claim, or no source stays bad after its words are cleaned, so fix what the text says first. + +- **Know the reader**: who reads it, what they already know, what they do next. Define a term they may not know the first time it appears ("Arabidopsis, a flowering mustard plant") and spell out each abbreviation once. Keep the terms they share: engineers reading about p99 latency need no definition of p99. +- **Lead with the answer.** The first one or two sentences carry the bottom line ("The refund arrives in 3 working days."); the rest follows in order of importance. +- **Make every claim specific and true.** Name the source ("the 2025 support survey found…") or drop the claim. Every name, date, number, and citation in the final text is real. When a fact is missing, ask the user, or mark the gap plainly in the draft and say so in your reply: a vague true sentence beats a specific invented one. +- **Give every sentence new information.** Open with the point and stop when the information ends. Preamble ("Let's break this down"), narration of your own process, closers that restate the answer, lines that only sound wise, "In conclusion", and chat openers and sign-offs ("Great question!", "I hope this helps", "Let me know if…") all go. + +## Draft: write plainly + +- Say what a thing is. Use "not X but Y" only to correct a belief the reader actually holds. +- Use "is", "are", and "has" where a draft reaches for "serves as", "stands as", or "boasts". +- Give the fact that earned the praise in place of the praise ("groundbreaking", "vibrant", "pivotal role"), and end the sentence at the fact rather than on an "-ing" tail about its significance ("…, highlighting its importance"). +- Name as many items as exist. A list of three is right when there are three. +- Call one thing by one name throughout: "the app" each time, not app, platform, and solution in turn. +- State a problem with its status ("Exports above 10,000 rows still time out; the fix ships in March") in place of a challenges paragraph that ends in optimism. +- Address the reader as "you", in the active voice: "Submit the form." Give steps plainly, without "simply", "just", or "it's easy". +- Keep sentences under about 25 words and paragraphs to one idea, and vary sentence length so the rhythm stays uneven. +- Keep a voice. Greetings, transitions, a formal tone, and correct grammar are normal human writing; keep them where the genre expects them, since clean but voiceless prose reads as machine-made too. When the user shares a sample of their writing, match its habits. + +## Draft: format for where it lands + +- Headings in sentence case. Bold only the rare phrase the reader must not miss, and keep bullets plain. Leave emoji out unless the user's own writing uses them. +- Prose for a line of reasoning, lists for items the reader scans, and a table when several items share several attributes. Two facts make a sentence. +- At most one em dash per paragraph; commas, colons, and parentheses do the rest. +- Markdown only where it renders. Email, chat apps, and plain-text fields get plain text, with no `##`, `**`, or tool tokens. + +## Check pass + +1. Reread as the reader, sentence by sentence, as if aloud. Rewrite any sentence that is awkward spoken, and any paragraph the reader couldn't restate in their own words. +2. Hold the draft against each rule above. +3. Read [references/patterns.md](references/patterns.md) and scan the draft for its patterns, then its words. One listed word alone is fine; several together mark autopilot prose. Fix a hit by rewriting the sentence around a specific fact. Swapping in a synonym only trades one tell for the next. + +The word list is English. For another language, apply the same patterns and watch for that language's own stock phrases and literal calques from English. + +## Editing someone else's text + +Keep their meaning, facts, and voice, and change what a rule flags. Return the revised text, then list in a line or two any claim you couldn't make specific without facts from them, such as a quote credited to "experts" with no name. diff --git a/skills/writing-for-humans/agents/openai.yaml b/skills/writing-for-humans/agents/openai.yaml new file mode 100644 index 0000000..953fc8a --- /dev/null +++ b/skills/writing-for-humans/agents/openai.yaml @@ -0,0 +1,3 @@ +interface: + display_name: "Writing for Humans" + short_description: "Write and edit prose people can read once and act on" diff --git a/skills/writing-for-humans/evals/expense-announcement-cleanup/case.yaml b/skills/writing-for-humans/evals/expense-announcement-cleanup/case.yaml new file mode 100644 index 0000000..0931425 --- /dev/null +++ b/skills/writing-for-humans/evals/expense-announcement-cleanup/case.yaml @@ -0,0 +1,11 @@ +schema_version: "1.1" +name: expense-announcement-cleanup +expected_outcome: | + announcement.md is rewritten as a short plain-text email. Its opening sentences say that expenses move to + Spendwise (spend.fennel.example) on 1 December, and it keeps every real fact: receipts by photo in the app, + reimbursement in 5 working days instead of 3 weeks, the old form retired after 15 December. The unsourced + "experts agree ... 40%" claim is gone or flagged to the user, never given an invented source. The text drops + the emoji, markdown headings and bold, the "not just a tool, a mindset" lines, the sales words, the + "In conclusion" section and the closing pleasantries, and adds no facts of its own. +context: + scaffold_script: place-files.sh diff --git a/skills/writing-for-humans/evals/expense-announcement-cleanup/files/announcement.md b/skills/writing-for-humans/evals/expense-announcement-cleanup/files/announcement.md new file mode 100644 index 0000000..3ee28ce --- /dev/null +++ b/skills/writing-for-humans/evals/expense-announcement-cleanup/files/announcement.md @@ -0,0 +1,25 @@ +## 🚀 Introducing Our Brand New Expense Experience! + +Great news, team! We're thrilled to announce a groundbreaking change to how we handle expenses here at Fennel Labs — one that will fundamentally transform the way we work. + +It's not just a new tool. It's a whole new mindset. Not paperwork. Not delays. Just seamless reimbursement. + +### ✨ Why This Matters + +In today's fast-moving landscape, managing expenses efficiently is more crucial than ever. Experts agree that streamlined expense flows boost team productivity by up to 40%. Spendwise serves as a pivotal hub for all your expense needs, fostering a culture of transparency and trust. + +### 🔑 Key Benefits + +- **Fast:** Snap a photo of your receipt in the Spendwise app — it reads the amount for you. +- **Secure:** Your data is protected by robust, enterprise-grade security. +- **Seamless:** Reimbursement lands in 5 working days instead of the 3 weeks it takes today. + +### 📅 What Happens Next + +Starting 1 December, all expenses go through Spendwise at spend.fennel.example. The old expense form will remain available until 15 December, after which it will be retired — marking the end of an era! + +### 💬 In Conclusion + +While change can be challenging, we're confident that Spendwise will empower every team member to focus on what truly matters. The future of expenses is here — and it looks bright! + +If you have any questions, feel free to reach out. We hope this helps! 🎉 diff --git a/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/01-leads-with-the-change.md b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/01-leads-with-the-change.md new file mode 100644 index 0000000..770cc2a --- /dev/null +++ b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/01-leads-with-the-change.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +The first two sentences of the rewritten announcement.md say that expenses move to Spendwise starting 1 December. diff --git a/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/02-keeps-the-real-facts.md b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/02-keeps-the-real-facts.md new file mode 100644 index 0000000..c10bd42 --- /dev/null +++ b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/02-keeps-the-real-facts.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +The rewritten announcement.md keeps all of these facts: the address spend.fennel.example, receipts captured by photo in the app, reimbursement in 5 working days instead of 3 weeks, and the old form retired after 15 December. diff --git a/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/03-unsourced-claim-handled.md b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/03-unsourced-claim-handled.md new file mode 100644 index 0000000..648289c --- /dev/null +++ b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/03-unsourced-claim-handled.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +The "experts agree ... up to 40%" productivity claim is either removed from announcement.md or kept only with a note to the user that it needs a source; it is never attributed to an invented study, person, or organization. diff --git a/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/04-plain-text-only.md b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/04-plain-text-only.md new file mode 100644 index 0000000..4ec6fb9 --- /dev/null +++ b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/04-plain-text-only.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +The rewritten announcement.md contains no markdown syntax (no lines starting with #, no **bold**) and no emoji. diff --git a/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/05-no-negative-parallelism.md b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/05-no-negative-parallelism.md new file mode 100644 index 0000000..f72c34a --- /dev/null +++ b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/05-no-negative-parallelism.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +The rewritten announcement.md contains no "it is not X, it is Y" or "Not X. Not Y. Just Z." constructions. diff --git a/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/06-no-empty-closers.md b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/06-no-empty-closers.md new file mode 100644 index 0000000..036c71c --- /dev/null +++ b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/06-no-empty-closers.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +The rewritten announcement.md has no "In conclusion" section, no "the future looks bright" style optimism, and no "We hope this helps" sign-off. diff --git a/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/07-no-invented-facts.md b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/07-no-invented-facts.md new file mode 100644 index 0000000..35978dd --- /dev/null +++ b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/07-no-invented-facts.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +Every date, number, name, and address in the rewritten announcement.md also appears in the original announcement; the rewrite adds no new facts such as a contact person, deadline, or policy detail. diff --git a/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/08-em-dash-limit.md b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/08-em-dash-limit.md new file mode 100644 index 0000000..84ab836 --- /dev/null +++ b/skills/writing-for-humans/evals/expense-announcement-cleanup/graders/08-em-dash-limit.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +No paragraph of the rewritten announcement.md contains more than one em dash. diff --git a/skills/writing-for-humans/evals/expense-announcement-cleanup/place-files.sh b/skills/writing-for-humans/evals/expense-announcement-cleanup/place-files.sh new file mode 100755 index 0000000..98883e6 --- /dev/null +++ b/skills/writing-for-humans/evals/expense-announcement-cleanup/place-files.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +set -eu +cp -R "$(dirname "$0")/files/." . diff --git a/skills/writing-for-humans/evals/expense-announcement-cleanup/prompt.md b/skills/writing-for-humans/evals/expense-announcement-cleanup/prompt.md new file mode 100644 index 0000000..9926287 --- /dev/null +++ b/skills/writing-for-humans/evals/expense-announcement-cleanup/prompt.md @@ -0,0 +1,12 @@ +--- +tags: [writing-for-humans] +max_turns: 30 +timeout_seconds: 600 +allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash] +--- + +can you clean up announcement.md before i send it? it goes out tomorrow as a plain-text email to the whole company. rewrite it in place + +(Nobody can answer questions during this run.) + +Input files: announcement.md diff --git a/skills/writing-for-humans/evals/incident-summary-for-engineers/case.yaml b/skills/writing-for-humans/evals/incident-summary-for-engineers/case.yaml new file mode 100644 index 0000000..f4312cb --- /dev/null +++ b/skills/writing-for-humans/evals/incident-summary-for-engineers/case.yaml @@ -0,0 +1,11 @@ +schema_version: "1.1" +name: incident-summary-for-engineers +expected_outcome: | + summary.md opens with the impact and the status: checkout-api p99 latency and 5xx errors (peak 18%) for about + 40 minutes on 20 November, resolved by rolling back. It gives the cause in the engineers' own terms (the + WEB_CONCURRENCY change pushed 960 client connections against pgbouncer's max_client_conn of 600, saturating + the pool) without defining p99, pgbouncer or connection pools. It says the failed-checkout count is pending + from analytics instead of estimating it, lists the three follow-ups with Ines as owner of the + max_client_conn decision, and ends without a lessons-learned or optimistic closing line. +context: + scaffold_script: place-files.sh diff --git a/skills/writing-for-humans/evals/incident-summary-for-engineers/files/timeline.md b/skills/writing-for-humans/evals/incident-summary-for-engineers/files/timeline.md new file mode 100644 index 0000000..007847f --- /dev/null +++ b/skills/writing-for-humans/evals/incident-summary-for-engineers/files/timeline.md @@ -0,0 +1,14 @@ +checkout-api incident 2026-11-20 (all times UTC) + +14:02 deploy 4f1c2a of checkout-api, WEB_CONCURRENCY 4 -> 12 per pod +14:06 p99 latency 380ms -> 4.1s, alert fired +14:09 5xx rate climbing, peak 18% at 14:21 +14:15 pgbouncer shows pool saturated: 12 workers x 8 pods x pool_size 10 = 960 client conns vs max_client_conn 600 +14:31 decision: roll back instead of raising max_client_conn (db max_connections headroom unclear) +14:38 rollback to 9b07e1 complete +14:44 p99 back under 400ms, 5xx at baseline +customer impact: failed checkouts count pending from analytics (ETA Monday) +follow-ups: +- add a CI check: workers x pods x pool_size <= max_client_conn +- decide on pgbouncer max_client_conn vs postgres max_connections (owner: Ines) +- load test concurrency changes before deploy diff --git a/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/01-leads-with-impact.md b/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/01-leads-with-impact.md new file mode 100644 index 0000000..c331670 --- /dev/null +++ b/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/01-leads-with-impact.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +The first two sentences of summary.md state that checkout-api was degraded (latency and/or errors) and that a rollback resolved it. diff --git a/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/02-cause-in-shared-terms.md b/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/02-cause-in-shared-terms.md new file mode 100644 index 0000000..6b61fbd --- /dev/null +++ b/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/02-cause-in-shared-terms.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +summary.md explains the cause as the WEB_CONCURRENCY increase exhausting pgbouncer client connections (960 against max_client_conn 600), using these terms without defining p99, pgbouncer, or connection pool for the reader. diff --git a/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/03-impact-count-not-invented.md b/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/03-impact-count-not-invented.md new file mode 100644 index 0000000..6d70892 --- /dev/null +++ b/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/03-impact-count-not-invented.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +summary.md gives no number or estimate of failed checkouts or affected customers, and says that count is still pending from analytics. diff --git a/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/04-follow-ups-listed.md b/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/04-follow-ups-listed.md new file mode 100644 index 0000000..d8d1c4d --- /dev/null +++ b/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/04-follow-ups-listed.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +summary.md lists the three follow-ups (CI check on workers x pods x pool_size, the max_client_conn vs max_connections decision owned by Ines, load testing concurrency changes). diff --git a/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/05-no-empty-closer.md b/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/05-no-empty-closer.md new file mode 100644 index 0000000..1f41a7f --- /dev/null +++ b/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/05-no-empty-closer.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +summary.md ends on a fact or a follow-up, with no closing line about lessons learned, resilience, or the team doing great. diff --git a/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/06-short.md b/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/06-short.md new file mode 100644 index 0000000..8dd8958 --- /dev/null +++ b/skills/writing-for-humans/evals/incident-summary-for-engineers/graders/06-short.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +summary.md is under 250 words. diff --git a/skills/writing-for-humans/evals/incident-summary-for-engineers/place-files.sh b/skills/writing-for-humans/evals/incident-summary-for-engineers/place-files.sh new file mode 100755 index 0000000..98883e6 --- /dev/null +++ b/skills/writing-for-humans/evals/incident-summary-for-engineers/place-files.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +set -eu +cp -R "$(dirname "$0")/files/." . diff --git a/skills/writing-for-humans/evals/incident-summary-for-engineers/prompt.md b/skills/writing-for-humans/evals/incident-summary-for-engineers/prompt.md new file mode 100644 index 0000000..a421c75 --- /dev/null +++ b/skills/writing-for-humans/evals/incident-summary-for-engineers/prompt.md @@ -0,0 +1,12 @@ +--- +tags: [writing-for-humans] +max_turns: 30 +timeout_seconds: 600 +allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash] +--- + +write up a short incident summary for the backend team channel from timeline.md. readers are the backend engineers. save it to summary.md + +(Nobody can answer questions during this run.) + +Input files: timeline.md diff --git a/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/case.yaml b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/case.yaml new file mode 100644 index 0000000..59c5bd5 --- /dev/null +++ b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/case.yaml @@ -0,0 +1,12 @@ +schema_version: "1.1" +name: maintenance-notice-for-clinic-staff +expected_outcome: | + notice.md tells front desk staff, in their own terms, that from Saturday 5 December 22:00 to Sunday 6 December + 02:00 they can see bookings but cannot create, move or cancel them, and that they use the paper booking form + in the front desk drawer and enter those bookings afterwards. It covers the possible extension to 04:00 with + updates on the intranet banner and the Sunday SMS reminders held until 08:00. The database upgrade, RPO, + snapshot, read-only mode and sync details stay out or are said in plain words. The weekend contact number is + missing from the notes, so the run leaves no placeholder and invents no number: it leaves the line out or + marks the gap, and tells the user. +context: + scaffold_script: place-files.sh diff --git a/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/files/notes.txt b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/files/notes.txt new file mode 100644 index 0000000..80ffa49 --- /dev/null +++ b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/files/notes.txt @@ -0,0 +1,11 @@ +maint window - booking platform +- PG major upgrade 14 -> 16 on prod cluster +- window Sat 5 Dec 22:00 - Sun 6 Dec 02:00 CET +- booking svc in RO mode for the whole window: existing appts visible, no create/move/cancel +- PMS sync paused, catches up automatically after window (no manual action) +- RPO 0, snapshot taken 21:45, rollback via snapshot if smoke tests fail +- if rollback happens window may extend to 04:00, we post status on the intranet banner +- staff fallback: paper booking form (pad in front desk drawer), enter them in the system Sunday after 02:00 or Monday morning +- SMS reminders for Sunday appts held until Sun 08:00 then sent +- on-call: Dario (infra). weekend contact number TBD, ask Marta +- 6 clinics affected, all of them diff --git a/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/01-leads-with-the-impact.md b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/01-leads-with-the-impact.md new file mode 100644 index 0000000..59e8d9f --- /dev/null +++ b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/01-leads-with-the-impact.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +The first two sentences of notice.md say that bookings cannot be created, moved, or cancelled from Saturday 5 December 22:00 to Sunday 6 December 02:00. diff --git a/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/02-no-unexplained-jargon.md b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/02-no-unexplained-jargon.md new file mode 100644 index 0000000..aadca9d --- /dev/null +++ b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/02-no-unexplained-jargon.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +notice.md uses none of these terms without explaining them in everyday words: PG or Postgres, upgrade version numbers, RPO, snapshot, rollback, read-only or RO, cluster, sync, smoke tests. diff --git a/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/03-says-what-to-do.md b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/03-says-what-to-do.md new file mode 100644 index 0000000..46df7de --- /dev/null +++ b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/03-says-what-to-do.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +notice.md tells staff to use the paper booking form in the front desk drawer during the window and to enter those bookings in the system afterwards (Sunday after 02:00 or Monday morning). diff --git a/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/04-covers-side-effects.md b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/04-covers-side-effects.md new file mode 100644 index 0000000..6c1783a --- /dev/null +++ b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/04-covers-side-effects.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +notice.md mentions both that the window may run until 04:00 with updates on the intranet banner, and that SMS reminders for Sunday appointments go out at 08:00 on Sunday. diff --git a/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/05-no-invented-contact.md b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/05-no-invented-contact.md new file mode 100644 index 0000000..2ff94f9 --- /dev/null +++ b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/05-no-invented-contact.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +notice.md contains no phone number and no placeholder such as [number], TBD, or XXX for the weekend contact, and the final reply tells the user that the weekend contact number is missing. diff --git a/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/06-addresses-the-reader.md b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/06-addresses-the-reader.md new file mode 100644 index 0000000..d1d0247 --- /dev/null +++ b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/06-addresses-the-reader.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +notice.md gives its instructions to staff directly, in the active voice (for example "use the paper form" or "you can still see bookings"), not in passive constructions like "bookings must be recorded". diff --git a/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/07-sentence-case-no-emoji.md b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/07-sentence-case-no-emoji.md new file mode 100644 index 0000000..d437141 --- /dev/null +++ b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/graders/07-sentence-case-no-emoji.md @@ -0,0 +1,7 @@ +--- +type: llm +focus: trace +weight: 1 +--- + +Every heading in notice.md is in sentence case, and notice.md contains no emoji. diff --git a/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/place-files.sh b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/place-files.sh new file mode 100755 index 0000000..98883e6 --- /dev/null +++ b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/place-files.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +set -eu +cp -R "$(dirname "$0")/files/." . diff --git a/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/prompt.md b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/prompt.md new file mode 100644 index 0000000..930c3e5 --- /dev/null +++ b/skills/writing-for-humans/evals/maintenance-notice-for-clinic-staff/prompt.md @@ -0,0 +1,12 @@ +--- +tags: [writing-for-humans] +max_turns: 30 +timeout_seconds: 600 +allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash] +--- + +need a notice for the front desk staff at all 6 clinics about next weekend's maintenance. they're not technical at all. it goes on the staff intranet, which renders markdown. my notes are in notes.txt, save the notice to notice.md + +(Nobody can answer questions during this run.) + +Input files: notes.txt diff --git a/skills/writing-for-humans/references/patterns.md b/skills/writing-for-humans/references/patterns.md new file mode 100644 index 0000000..506305e --- /dev/null +++ b/skills/writing-for-humans/references/patterns.md @@ -0,0 +1,60 @@ +# Patterns to catch + +Sentence habits outlast word fashions: each model generation swaps its favorite words, but the shapes below stay. Scan for patterns first and words last. Each line reads: pattern, example, rewrite. + +## Sentences + +- Negative parallelism: "It's not a tool, it's a mindset." / "Not X. Not Y. Just Z." → say what it is. +- Rhetorical question answered at once: "The result? Faster builds." → "Builds are faster." +- Significance tail: "…, underscoring its pivotal role in the region." → end at the fact. +- Short tail after a comma: "…, and that matters." → cut it. +- Padded triple: "fast, secure, and seamless" with one fact behind it → name that fact. +- Inflated verbs: "serves as", "stands as", "boasts" → "is", "has". +- "From X to Y" with no real range between them → list the actual items. +- The same opening on sentence after sentence → vary or merge them. + +## Structure + +- Preamble that announces what follows: "Here's what you need to know:" → start with it. +- Teacher voice and false suspense: "Let's break this down.", "Here's the kicker:" → state the point. +- Narrating your own process: "First, I looked at the logs…" → give the finding. +- Counting before listing: "There are three reasons." / "The first… The second…" in prose → give the reasons. +- Evidence piled up before the point → point first, evidence after. +- Defending a point nobody disputes → cut the defense. +- Summaries at every level, and "In conclusion" → one summary at most, at the top. +- Closing by tying back to the question, or with a line that sounds wise and says nothing → stop at the last fact. +- Reusing an earlier phrase as a payoff → cut the callback. +- One point restated several ways → keep the clearest one. +- Short punchy fragments as their own paragraphs → join them into sentences. +- A "challenges" paragraph ending in "the future looks bright" → the problem and its status. + +## Tone + +- Vague attribution: "Experts argue", "Studies show", "a classic", "famously" → name the source or drop it. +- Inflated stakes: "This changes everything." → what changes, for whom. +- Coined labels: "the X paradox", "the X trap" → describe the thing. +- Forced metaphors, "Think of it as…", "Imagine a world where…" → the literal claim. +- Sales language: vibrant, nestled, groundbreaking, renowned, game-changing → a concrete fact. +- Switching between "I" and "we" → pick one. +- Chat leftovers: "Certainly!", "Great question!", "I hope this helps", "Let me know if…", "as of my last update" → delete. + +## Formatting + +- Title Case Headings → sentence case. +- Headings built on Why / What / Where ("Why it matters") → name the content. +- A bold label at the start of every bullet → plain bullets. +- More than one em dash per paragraph → commas, colons, parentheses. +- Arrows and other hard-to-type characters in prose → words. +- Emoji in headings or bullets → remove. +- A table holding two or three values → a sentence. +- Raw `##`, `**`, or citation tokens where markdown doesn't render → plain text. + +## Words + +Flag these when several appear together; one alone is fine. Replace with the plain word or, better, the fact. + +- Overused by models: additionally (also), align with (match), bolster (support), crucial / pivotal / key (important, or cut), delve (look at), emphasize / underscore / highlight (show, or cut), enduring, enhance (improve), foster (help), garner (get), interplay, intricate, landscape (field, market), meticulous (careful), showcase (show), tapestry, testament, valuable, vibrant. +- Also flagged: commendable, compelling, ecosystem, harness (use), leverage (use), navigate (handle), noteworthy, nuance, paradigm, realm, resonate, robust (strong), seamless, streamline (simplify), synergy, versatile. +- Magic adverbs: quietly, deeply, fundamentally, remarkably, truly. +- Filler transitions: "It's worth noting", notably, importantly, interestingly. +- Office jargon: agenda (outside meetings), deliver (for anything but parcels), drive (for anything but vehicles), empower, facilitate (help), impact as a verb (affect), liaise (work with), overarching, tackle (fix, handle), transform, utilize (use). From 51606ed3deab5729619ba63234a55495ff03f4ca Mon Sep 17 00:00:00 2001 From: Federico Mastrini Date: Sat, 28 Nov 2026 12:33:46 +0100 Subject: [PATCH 2/2] fix(writing-for-humans): ship text without placeholders, defer to set formats When nobody can supply a missing fact, the writer now leaves it out or writes around it and names the gap in the reply, so the text can go out as is. Reruns of the email and clinic cases left no placeholders (4/4). A format the repo, a template, or the calling skill sets now wins over the formatting rules, so pr-open's bold labels survive when both load. --- skills/writing-for-humans/SKILL.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skills/writing-for-humans/SKILL.md b/skills/writing-for-humans/SKILL.md index 917737c..2fa9dd8 100644 --- a/skills/writing-for-humans/SKILL.md +++ b/skills/writing-for-humans/SKILL.md @@ -13,7 +13,7 @@ Wordy habits are symptoms. Text with no clear point, no specific claim, or no so - **Know the reader**: who reads it, what they already know, what they do next. Define a term they may not know the first time it appears ("Arabidopsis, a flowering mustard plant") and spell out each abbreviation once. Keep the terms they share: engineers reading about p99 latency need no definition of p99. - **Lead with the answer.** The first one or two sentences carry the bottom line ("The refund arrives in 3 working days."); the rest follows in order of importance. -- **Make every claim specific and true.** Name the source ("the 2025 support survey found…") or drop the claim. Every name, date, number, and citation in the final text is real. When a fact is missing, ask the user, or mark the gap plainly in the draft and say so in your reply: a vague true sentence beats a specific invented one. +- **Make every claim specific and true.** Name the source ("the 2025 support survey found…") or drop the claim. Every name, date, number, and citation in the final text is real. When a fact is missing, ask the user. When nobody can answer, write the text so it can go out as is, leaving out or writing around the missing fact, and name the gap in your reply: a vague true sentence beats a specific invented one or a placeholder. - **Give every sentence new information.** Open with the point and stop when the information ends. Preamble ("Let's break this down"), narration of your own process, closers that restate the answer, lines that only sound wise, "In conclusion", and chat openers and sign-offs ("Great question!", "I hope this helps", "Let me know if…") all go. ## Draft: write plainly @@ -30,6 +30,8 @@ Wordy habits are symptoms. Text with no clear point, no specific claim, or no so ## Draft: format for where it lands +A format the repo, a template, or the calling skill sets for this text wins; these rules fill in the rest. + - Headings in sentence case. Bold only the rare phrase the reader must not miss, and keep bullets plain. Leave emoji out unless the user's own writing uses them. - Prose for a line of reasoning, lists for items the reader scans, and a table when several items share several attributes. Two facts make a sentence. - At most one em dash per paragraph; commas, colons, and parentheses do the rest.