Agent skill

Guideline Writing

by alfadur7 in alfadur7/llm-wiki-newsroom

Guideline-authoring craft for instruction SoTs (.claude/ guides, CLAUDE.md, plan files) — operative rules vs recital, MUST/SHOULD/MAY force tiers, pruning, bloat control, blind review protocol…

MITAuto-check passedKnowledge Management

Install Guideline Writing

skills CLI
$ npx skills add alfadur7/llm-wiki-newsroom --skill guideline-writing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install alfadur7/llm-wiki-newsroom guideline-writing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/alfadur7/llm-wiki-newsroom.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/guideline-writing .claude/skills/guideline-writing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
guideline-writing
GitHub stars
171
Token cost
~2.4k tokens
SKILL.md length
1,246 words
Files
3
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Guideline-authoring craft for instruction SoTs (.claude/ guides, CLAUDE.md, plan files) — operative rules vs recital, MUST/SHOULD/MAY force tiers, pruning, bloat control, blind review protocol…

  • Works in 5 steps: New section/table/matrix vs a one-line… → Zero copies of another SoT's… → Zero new Risk/invariant/caveat sections… → …
  • Reviewing an agent instruction file
  • SKILL.md covers Operative Rule vs Recital, Force Tiers — MUST / SHOULD /…, Pruning and Bloat Control, plus 4 more sections
  • Runs Python scripts from its folder; calls python

What it does

Guideline Writing is an agent skill from alfadur7/llm-wiki-newsroom. Guideline-authoring craft for instruction SoTs (.claude/ guides, CLAUDE.md, plan files) — operative rules vs recital, MUST/SHOULD/MAY force tiers, pruning, bloat control, blind review protocol, deliberation-narrative ban. Use when writing, editing, or reviewing an agent instruction file, policy, runbook, command SoT, or plan file, or when a guideline change needs a minimal-edit or blind review.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `checks.py` and `criteria.json`).

It sits in Knowledge Management, covering Agent instruction files and Runbooks and postmortems. The repository describes itself as: Harness engineering applied to knowledge production: a self-evolving multi-agent newsroom that turns your documents into a cross-linked markdown wiki. A "reground" loop pulls… The licence is MIT.

When your agent uses it

  • Reviewing an agent instruction file
  • A guideline change needs a minimal-edit

Example prompts

  • “/guideline-writing”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. New section/table/matrix vs a one-line absorption into an existing section — absorb by default
  2. Zero copies of another SoT's table/matrix — replace with a cross-reference
  3. Zero new Risk/invariant/caveat sections by default — prefer attaching a qualifier to an existing section
  4. When the changed lines ≥ 50, a mandatory minimum-edit re-review
  5. Read the full context of each changed file before declaring the edit done

What it can do on your machine

Read from SKILL.md and the folder at commit 03173ce. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • rfc-editor.org
    • plainlanguage.gov
    • eur-lex.europa.eu
    • writingcenter.fas.harvard.edu

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Guideline Writing loads about 2.4k tokens when it runs. Until then it costs about 104 tokens; SKILL.md has 1,246 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~104
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from alfadur7/llm-wiki-newsroom at commit 03173ce, republished under its MIT licence (© alfadur7). 1,246 words, ~2,447 tokens.

Download SKILL.mdSave it as .claude/skills/guideline-writing/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
guideline-writing
description
Guideline-authoring craft for instruction SoTs (.claude/ guides, CLAUDE.md, plan files) — operative rules vs recital, MUST/SHOULD/MAY force tiers, pruning, bloat control, blind review protocol, deliberation-narrative ban. Use when writing, editing, or reviewing an agent instruction file, policy, runbook, command SoT, or plan file, or when a guideline change needs a minimal-edit or blind review.

Guideline Writing

Craft for authoring the instruction layer itself — the .claude/ guide SoTs, CLAUDE.md, and plan files. Content pages have the four content-craft skills (jrn·con·enc·cit); this skill is their counterpart for the meta layer. Dotted IDs: gdl.* (criteria.json); the deterministic detectors live in checks.py and run inside python tools/lint.py meta.

Operative Rule vs Recital

Every sentence in a guideline is one of two kinds, and only the first belongs in the body:

  • Operative rule — tells the reader what to do, when, and how to tell they did it right. Test: delete the sentence; if an executor could now act differently and still believe they complied, the sentence was operative.
  • Recital — explains how the rule came to be: options weighed, benchmarks absorbed, incidents survived, dates adopted. Recitals are history; history's SoT is log.md (append-only). A recital in the body is deliberation narrative — the central antipattern this skill exists to prevent.

A failure mode earns at most one line in the body — the concrete trigger the rule guards against, stated as a present-tense condition ("a partial edit bumps only the date and masks body staleness"), never as a war story ("after the 05-20 incident we decided…"). The story goes to log.md.

Force Tiers — MUST / SHOULD / MAY

State every rule at exactly one force tier, and make the tier visible in the wording:

TierWordingReader's obligationVerification
MUST"is mandatory" · "never" · imperativeno discretion; violating it is a defectlint-gate or blocking hook where possible
SHOULD"by default" · "prefer" · "unless"may deviate with a stated reasonadvisory hook · review lens
MAY"can" · "optionally"pure permissionnone

Antipattern: hedged MUSTs ("should generally always…") and decorated MAYs ("it is strongly recommended to consider…"). If you cannot pick the tier, you have not finished deciding the rule — finish deciding before writing.

Pruning

A guideline corpus only stays executable if rules leave at the same rate reality invalidates them:

  • Prune-or-enforce: a rule that is neither checked (lint·hook·review lens) nor followed is dead weight — either wire an enforcement surface or delete it. Keeping it "as documentation" is the recital antipattern wearing a rule's clothes.
  • Deprecation signal: a detector or lens with 0 surfacings across 5 consecutive batches is a deletion candidate (mirrors the desk promotion loop's burn criteria).
  • Delete whole units: prune at the bullet/section level, not by shaving words — a half-pruned rule reads as a weaker rule, not a shorter one.

Bloat Control

Absorb into an existing section, table, or matrix by default; create something new only after proving no matching pattern exists.

5-step self-check (mandatory just before finishing a guideline or plan edit):

  1. New section/table/matrix vs a one-line absorption into an existing section — absorb by default
  2. Zero copies of another SoT's table/matrix — replace with a cross-reference
  3. Zero new Risk/invariant/caveat sections by default — prefer attaching a qualifier to an existing section
  4. When the changed lines ≥ 50, a mandatory minimum-edit re-review
  5. Read the full context of each changed file before declaring the edit done

4 red flags (a single hit forces the 5-step re-review):

  • ≥ 2 new sections added
  • ≥ 50 changed lines
  • a new table or matrix added
  • the same information already exists in another SoT

File naming (T1 prescriptive default): a new memory/policy/hook file takes an imperative form — no_X · X_to_Y · X_not_Y. Descriptive names (*_voice · *_posture) require two-step inference on recall and match utterance patterns weakly.

Blind Review Protocol

A guideline edit is reviewed by a reader who did not write it and does not know the deliberation behind it. In this project it runs as rung 3 of the Guideline Verification Ladder (.claude/agents/editor-in-chief.md); the protocol itself is project-agnostic:

  1. Input carries no author intent — the diff, but no chat context and no rationale memo. The reviewer sees exactly what a future executor will see. Blindness withholds the author's intent, not file access: the reviewer reads each touched file whole (post-edit) before judging, since a hunk judged in isolation invites mechanical fixes that seed the next round's defects. On a re-pass the previous round's findings come too — that is reviewer output, not author intent.
  2. Classification reply is mandatory: the reviewer returns, per hunk, a two-way verdict — substantive (an executor would act differently after this change) or invariant (wording/structure only, behavior unchanged) — plus any defects found against this skill's criteria.
  3. Defect form: criterion id (gdl.*) · location · one-sentence issue · one-sentence fix direction · severity (critical / high / medium / low — the caller's fix-now-or-defer policy keys off it). A direction is not drafted replacement text: a reviewer asked to author the remedy tends to inflate its own findings to justify it. Abstract criticism ("feels verbose") is not a defect.
  4. Self-containment probe: the reviewer must be able to state what the rule obliges without opening another document; if they cannot, flag gdl.self-contained.
Show full SKILL.md (461 more words)Show less

Worked Examples

  1. Recital → operative — ✗ "After comparing per-event shell hooks with a unified dispatcher, we consolidated to dispatch.py, which reduced JSON parses." ✓ "All Write|Edit hook logic lives in dispatch.py; add new advisories there, not as new shell hooks." (The comparison story goes to log.md.)
  2. Failure mode in one line — ✗ a paragraph recounting how five byproduct stubs once skipped review and eleven defects surfaced. ✓ "Byproduct stubs get the same Desk VERIFY₂ — a flow that skips the stub-authoring entry point otherwise omits the gate."
  3. Force tier made visible — ✗ "It is usually best to run the linter before handing off." ✓ "Run target-scope lint before hand-off (self-VERIFY₀); after 2 self-attempts on the same cause, hand off as-is."
  4. Absorb, don't add — asked to document that contradiction pages need a per-theme drift block: ✗ a new "Drift Requirements" section in a second file. ✓ one row added to the existing per-target drift-block table in wiki-lint.md, other docs cross-reference it.
  5. Pointer, not restatement — ✗ copying the open-source-AI license spectrum table from overview.md into a command SoT "for convenience." ✓ "License-spectrum definitions: see the cluster overview (single SoT)."

Antipatterns

#AntipatternDetectionResolution
1Decision option name in body ("Option E+")checks.py (auto)move to log.md
2Reinforcement counter ("Reinforcement 2")checks.py (auto)remove from body
3Introduction timestamp ("adopted 2026-05-10")checks.py (auto)move to log.md
4Changelog/Change History section in a guidechecks.py (auto)move to log.md
5Recurrence-prevention narrative ("prevents a recurrence of…")checks.py (auto)one-line failure mode; story to log.md
6External-precedent equivalence ("equivalent to the ProCon model")project lint (meta_schema)absorb the essence; drop the name
7Benchmark absorption tally ("external benchmark 5/6")project lint (meta_schema)move to log.md
8Table-row restatement paragraphblind review (gdl.sot-link-not-restate)keep the table; delete the prose
9Rule stated as its own justification ("because this is important")blind review (gdl.rule-not-reason)state the trigger condition or nothing
10Pointer-only rule ("see other doc" with no local obligation)blind review (gdl.reason-not-pointer)state the obligation locally, link for depth
11Unreasoned exception ("except X" with no condition)blind review (gdl.exception-reasoned)attach the condition that licenses the exception
12Unverified universal claim ("always fails", "never fires")blind review (gdl.universal-claim-verified)verify, qualify, or delete
13Hedged force tier ("should generally always")blind review (gdl.normative-restraint)pick MUST/SHOULD/MAY
14Dead rule kept as documentationreview (gdl.prune-or-enforce)wire enforcement or delete
15New section where absorption fitsreview (gdl.absorb-before-adding)fold into the existing section

Sources

© alfadur7, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in .claude/skills/guideline-writing of alfadur7/llm-wiki-newsroom.

  • SKILL.md
  • checks.py
  • criteria.json

Open the folder on GitHubat commit 03173ce

Compare with similar skills

Guideline Writing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Guideline Writing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Guideline Writing this skillalfadur7/llm-wiki-newsroom171—~2.4kAutomated safety check: PassMIT
Export TemplateHurricaHjz/second-yourself123—~4.8kAutomated safety check: WarnMIT
AtticHurricaHjz/second-yourself123—~1.8kAutomated safety check: PassMIT
Auditpricklywiggles/niamos192—~1.4kAutomated safety check: PassNone
Migrateguhcostan/claude-mega-brain126—~975Automated safety check: PassMIT
Lat Md Knowledge Graphstevesolun/ctx588—~466Automated safety check: PassMIT

Similar skills

  • Export Template

    HurricaHjz/second-yourself

    Sync THIS LLM-Wiki framework with its public GitHub repo, ONE direction per run: --push (vault → repo) publishes your framework; --pull (repo → vault) updates your framework from a newer repo version.

    123 GitHub stars~4.8k tokensUpdated 9 days ago
    Knowledge ManagementAuto-check: warnings
  • Attic

    HurricaHjz/second-yourself

    Archive vault files into attic/ cold storage, or restore them — the executable runbook for the CLAUDE.md §2.1 contract.

    123 GitHub stars~1.8k tokensUpdated 9 days ago
    Agent WorkflowsAuto-check passed
  • Audit

    pricklywiggles/niamos

    Scan this Obsidian vault for content that's drifted from the conventions in CLAUDE.md (status↔folder drift, missing required fields, naming violations, stale active items, frontmatter health issues…

    192 GitHub stars~1.4k tokensUpdated 3 mo ago
    Knowledge ManagementAuto-check passed
  • Migrate

    guhcostan/claude-mega-brain

    Scan the project and migrate existing documentation into OKF format.

    126 GitHub stars~975 tokensUpdated 2 mo ago
    Knowledge ManagementAuto-check passed
  • Design or audit a repo-local markdown knowledge graph with wiki links, source-code backlinks, drift checks, and searchable sections.

    588 GitHub stars~466 tokensUpdated 7 days ago
    Knowledge ManagementAuto-check passed
  • Doc Manager

    luongnv89/skills

    Generate or update docs to match the code, citing each claim to path:line and asking on ambiguity; runbook docs also get a check-only validation script.

    131 GitHub stars~3.1k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed

More from alfadur7/llm-wiki-newsroom

  • Consulting Writing

    alfadur7/llm-wiki-newsroom

    Management-consulting writing craft — McKinsey SCR (Situation·Complication·Resolution), Minto Pyramid/MECE, BCG bold-bullet executive summary, so-what upfront, numeric precision, Forrester Landscape.

    171 GitHub stars~1.1k tokensUpdated 6 days ago
    Auto-check passed
  • Encyclopedia Writing

    alfadur7/llm-wiki-newsroom

    Encyclopedic neutral-reference writing craft — NPOV (attribute facts not opinions, due weight, neutral faction labels, verdict restraint), summary style and Coatrack avoidance, wikilink conventions…

    171 GitHub stars~2.5k tokensUpdated 6 days ago
    Auto-check passed
  • Journalism Writing

    alfadur7/llm-wiki-newsroom

    Journalism and argumentation writing craft — inverted pyramid, lede, nut graph, kicker, explainer framing, PAGE frames, Toulmin argument (claim/rebuttal/qualifier), Hegelian dialectic, BBC due…

    171 GitHub stars~2.1k tokensUpdated 6 days ago
    Auto-check passed
  • Scholarly Citation

    alfadur7/llm-wiki-newsroom

    Verifiable-attribution and citation-discipline craft — atomic claim decomposition, evidence grading (primary/analysis/forecast tiers), claimant attribution, citation typing…

    171 GitHub stars~1.7k tokensUpdated 6 days ago
    Auto-check passed

Questions about Guideline Writing

What does Guideline Writing do?

Guideline-authoring craft for instruction SoTs (.claude/ guides, CLAUDE.md, plan files) — operative rules vs recital, MUST/SHOULD/MAY force tiers, pruning, bloat control, blind review protocol…. Guideline Writing is an agent skill from alfadur7/llm-wiki-newsroom.md, plan files) — operative rules vs recital, MUST/SHOULD/MAY force tiers, pruning, bloat control, blind review protocol, deliberation-narrative ban.

When should I use Guideline Writing?

Guideline Writing fits situations like: reviewing an agent instruction file; A guideline change needs a minimal-edit.

How do I install Guideline Writing in Claude Code?

Run `npx skills add alfadur7/llm-wiki-newsroom --skill guideline-writing -a claude-code`. Or copy the skill folder (.claude/skills/guideline-writing in alfadur7/llm-wiki-newsroom) into .claude/skills/guideline-writing in your project. Claude Code loads it when a task matches its description.

How do I install Guideline Writing in Codex?

Run `npx skills add alfadur7/llm-wiki-newsroom --skill guideline-writing -a codex`. Or copy the skill folder (.claude/skills/guideline-writing in alfadur7/llm-wiki-newsroom) into .agents/skills/guideline-writing in your project. Codex loads it when a task matches its description.

Can I use Guideline Writing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alfadur7/llm-wiki-newsroom --skill guideline-writing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/guideline-writing, .gemini/skills/guideline-writing, .github/skills/guideline-writing and .opencode/skills/guideline-writing in your project.

What does Guideline Writing need to run?

Going by SKILL.md and its folder, Guideline Writing needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Guideline Writing access the network?

SKILL.md names 4 domains. As links in the text: rfc-editor.org, plainlanguage.gov, eur-lex.europa.eu and writingcenter.fas.harvard.edu. This is read from the text; nothing was executed.

Is Guideline Writing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Guideline Writing use?

Guideline Writing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Guideline Writing use?

About 2.4k tokens (SKILL.md is roughly 9.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Guideline Writing?

Skills that share tags, products or a category with Guideline Writing: Export Template (HurricaHjz/second-yourself, 123 stars), Attic (HurricaHjz/second-yourself, 123 stars), Audit (pricklywiggles/niamos, 192 stars) and Migrate (guhcostan/claude-mega-brain, 126 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Guideline Writing?

alfadur7 (a GitHub user) maintains it in alfadur7/llm-wiki-newsroom, which has 171 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 5, 2026.

Source: alfadur7/llm-wiki-newsroom on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.