agentleFS
petar-djukicpetar-djukic/writing-skills/.github/copilot-instructions.md

writing-skills

Copilot instructions5 starsChanged 3 months agoMITArchived repositoryView on GitHub

This file is self-contained: it inlines the agent instructions and the repository rules so the .github tree works as a bare symlink into another repository. Commands live in .github/prompts/*.prompt.md (full workflow each) and skills in .github/skills/. Issue tracking uses GitHub Issues via the gh CLI. The /do-work and /git-issue-pop commands handle the full workflow: fetching issues, assigning tasks, tracking sub-issues, and opening pull requests. The skills that shell out to Python run in a pixi-managed environment that ships inside the…

The file

Show its rules and text

We split this copilot-instructions.md into the rules it gives an agent

17 rules. About 0 are common, 12 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before committing, run mage audit and fix all reported YAML schema errors.

    line 31
  2. Very specific:

    After creating or editing any file, run mage audit, fix any errors, then commit.

    line 35
  3. Very specific:

    Follow documentation-standards.md (distilled from docs/constitutions/design.yaml):

    line 52
  4. Very specific:

    Add .secrets/ to .gitignore before creating the directory.

    line 130
  5. Distinctive:

    Never paste a key into a chat, an issue, or a commit message.

    line 138
  6. Distinctive:

    When to use. Early-stage work where the goal is to establish a vocabulary, a problem framing, or a single design primitive.

    line 175
  7. Distinctive:

    When to use. To frame a debate, push back on a prevailing approach, or stake a claim in advance of a design effort.

    line 197
  8. Distinctive:

    When to use. To communicate a mature view of a technology or architecture to customers, partners or executives.

    line 218
  9. Distinctive:

    When to use. When a product or feature is being scoped, before architecture or implementation work starts.

    line 243
  10. Distinctive:

    When to use. In regulated, safety-critical or contractually scoped projects where a normative baseline is required.

    line 273
  11. Distinctive:

    When to use. When the project is large enough that quality attributes (performance, security, scalability, modifiability) need explicit …

    line 301
  12. Distinctive:

    When to use. After requirements are stable and before implementation begins.

    line 327
  13. Distinctive:

    When to use. Every time a decision is made that future maintainers would otherwise have to reverse-engineer.

    line 354
  14. Distinctive:

    When to use. Before writing non-trivial code.

    line 425
  15. Distinctive:

    When to use. When multiple independent implementations must interoperate, or when conformance is going to be tested.

    line 451
  16. Distinctive:

    When to use. Whenever an invention is made and the company wants to consider patenting it.

    line 473
  17. Very specific:

    Every other tool here runs locally.

    line 847

≈ “Common” is an estimate: at least 1 in 5 of the 3,950 Copilot instructions files we read have a rule of the same kind, not the same words. “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
copilot-instructions.md
<!-- Generated by scripts/sync-mirrors.sh from the canonical sources — do not edit. -->

GitHub Copilot Instructions

This file is self-contained: it inlines the agent instructions and the repository rules so the .github tree works as a bare symlink into another repository. Commands live in .github/prompts/*.prompt.md (full workflow each) and skills in .github/skills/.

Agent instructions

Agent Instructions

Issue tracking uses GitHub Issues via the gh CLI. The /do-work and /git-issue-pop commands handle the full workflow: fetching issues, assigning tasks, tracking sub-issues, and opening pull requests.

Environment

The skills that shell out to Python run in a pixi-managed environment that ships inside the agent directory (pixi.toml and pixi.lock at its root, provisioned by scripts/ensure-env.sh). Because the agent directory is symlinked into target repositories, the environment travels with it.

On opening a repository — or at the latest before running any skill that invokes a Python script — run the preflight from the agent directory:

scripts/ensure-env.sh

It checks for pixi (installing it if absent, unless SKILL_ENV_NO_INSTALL is set), then materializes the locked environment. It is idempotent and fast once provisioned. Run skill scripts through it with pixi run --manifest-path <agent-dir>/pixi.toml python <script>. The filter-tells detectors need only bash and the Python stdlib, so they run without this step.

Pre-Commit Quality Gate

Before committing, run mage audit and fix all reported YAML schema errors. The audit target checks cross-artifact consistency (PRDs, use cases, test suites, roadmap) and validates YAML fields against Go structs. Unrecognized fields cause data loss in the measure prompt. Do not commit with audit errors.

Commit After Every Edit

After creating or editing any file, run mage audit, fix any errors, then commit. Do not accumulate uncommitted changes across multiple turns. Each round of edits gets its own commit before responding to the user. This applies to all file types: code, docs, rules, config.

Code Implementation

Go style and code standards are defined in docs/constitutions/go-style.yaml and docs/constitutions/execution.yaml. These are passed to Claude via the cobbler prompts and do not need to be duplicated here.

Scaffolding

This repository scaffolds orchestration into target Go repositories.

  • mage scaffold:push <target> installs the orchestrator (template, constitutions, prompts, config, go.mod wiring)
  • mage scaffold:pop <target> removes all scaffolded files from the target
  • Both accept . for the current directory, but self-targeting is blocked (push/pop refuse when the target resolves to the orchestrator repo)
  • configuration.yaml is auto-created with defaults if missing when any mage target runs

Documentation

Follow documentation-standards.md (distilled from docs/constitutions/design.yaml):

  • Specification-driven: specs are source of truth, code serves specs
  • YAML-first for structured documents, markdown for prose
  • Active voice, concise, no forbidden terms
  • Traceability chain: Vision -> Architecture -> PRDs -> Use cases -> Test suites -> Code

For README files specifically, see readme-format.md.

Constitutions (Full Reference)

  • docs/constitutions/planning.yaml — Task sizing, issue structure, dependency ordering (measure phase)
  • docs/constitutions/execution.yaml — Code standards, design patterns, traceability (stitch phase)
  • docs/constitutions/design.yaml — Document types, format rules, completeness checklists (design phase)
  • docs/constitutions/go-style.yaml — Go coding style, patterns, code review checklist

The .secrets/ Directory Contract

API credentials belong to the repository you are working in, never to the skills. The skills are shared — linked into many repositories from one checkout — so a key stored alongside them would be a key shared with every project and, if that checkout is public, with everyone.

Layout

<your-repo>/.secrets/          mode 700, gitignored
  keys.json                    mode 600
{
  "pangram": "...",
  "serpapi": "...",
  "semantic_scholar": "...",
  "ollama": "..."
}

YAML (keys.yaml) works the same way when PyYAML is installed. Keys beginning with _ are treated as comments. Service names are the short forms above, not the environment-variable names.

Discovery

A script walks up from the working directory to find the nearest .secrets/, the same rule writing-voice/ uses. Absent, nothing changes — a missing .secrets/ is a normal state, not an error, and every script still accepts its key by flag or environment variable.

Resolution order

OrderSourceUse for
1--api-key on the command lineone-off runs, CI
2the service's environment variableexisting setups, shared shells
3.secrets/ discovered by walking upthe normal case

Explicit always wins, so adding a .secrets/ file never changes what an existing command does.

Refusals

The loader refuses rather than reads when the directory is unsafe:

  • Not gitignored, inside a repository. One git add -A would commit the keys. This is not hypothetical — a Claude OAuth token sat tracked in a public repository for five months because nothing refused.
  • Group- or world-readable. Credentials are 700/600 or they are not credentials.
  • A placeholder value. Better to stop than to send REPLACE-ME to an API and read the failure as a service outage.

Outside a git repository there is nothing to check, and that is allowed — unknown is not treated as unsafe.

Handling

Add .secrets/ to .gitignore before creating the directory. Doing it afterwards leaves a window, and that window is how this goes wrong.

A key value is never printed, logged, or included in an error message. Errors name the service and the places searched. Parser errors report the path and the error type only, because a parser that quotes the offending content is quoting the key.

Never paste a key into a chat, an issue, or a commit message. A key that has been through any of those is disclosed; rotate it rather than filing it.

Consumers

scripts/pangram.py, update-references/scripts/scholar.py, and update-references/scripts/semantic_scholar.py resolve through scripts/credentials.py. python3 <surface>/scripts/credentials.py reports which services are configured, printing names and status, never values.

Technical Document Types

We catalog the document types of standards bodies and engineering practice. Each entry gives a short purpose statement, where the type originates, when to choose it, and the structure to follow when one is established. We list types in roughly the order they arise in a project's life: from idea, to requirements, to design, to standardisation.

This catalog covers the external and industry forms. For documents inside a repository following our conventions, the YAML document types in documentation-standards.md (VISION, ARCHITECTURE, PRDs, use cases, test suites) take precedence; use this catalog to pick the right form when writing for an audience outside the repo.

Concept Paper

A concept paper proposes a new idea or primitive and argues for it. It is exploratory, not prescriptive. Length is typically a few pages to a short chapter.

Origin. Common in academic and industrial research practice. The form has no single owning body. Funding agencies such as the US National Science Foundation and the European Commission use the term for short pre-proposals that precede a full grant application.

When to use. Early-stage work where the goal is to establish a vocabulary, a problem framing, or a single design primitive. Useful for circulating to peers before committing to a full design or specification.

Structure. There is no canonical template. A common shape is:

  • Motivation and problem statement
  • Background and related work
  • Proposed concept, named and defined
  • Worked scenario or example
  • Open questions and next steps

Position Paper

A position paper argues for a stance on a contested question. It is shorter and more polemical than a concept paper. The author takes a side and defends it.

Origin. Standard format in academic workshops and standards bodies such as the IETF and W3C, where workshop calls often request 2 to 4 page position papers to seed discussion.

When to use. To frame a debate, push back on a prevailing approach, or stake a claim in advance of a design effort.

Structure. Even shorter than a concept paper. Typical elements:

  • The question or claim
  • The author's position, stated up front
  • Supporting arguments
  • Acknowledgement of counter-arguments
  • Implications if the position is accepted

Whitepaper

A whitepaper is an authoritative report that explains an issue, a technology, or a solution to a non-specialist technical audience. It is longer than a concept or position paper and reads as a finished piece.

Origin. The term originated in British government practice in the 1920s for policy reports. The technology industry adopted the format in the 1990s, and vendors use it heavily.

When to use. To communicate a mature view of a technology or architecture to customers, partners or executives. Whitepapers presume the reader is technical but not expert in the specific area.

Structure. Publisher templates vary. A common structure is:

  • Executive summary
  • Problem statement and context
  • Proposed approach
  • Benefits and trade-offs
  • Case studies or worked examples
  • Conclusion and call to action
  • References

Product Requirements Document (PRD)

A PRD captures what a product should do, for whom, and why. It is written before design begins, and signed off by product, engineering and design stakeholders.

Origin. The PRD is a product-management convention, popularised by Marty Cagan's Inspired and widely used at firms such as Google, Microsoft and Atlassian. There is no standards body. Atlassian, Aha! and ProductPlan publish reference templates.

When to use. When a product or feature is being scoped, before architecture or implementation work starts. For PRDs inside a repository following our conventions, the repo's own PRD format (see documentation-standards.md) takes precedence; this entry describes the industry form.

Structure. Typical sections:

  • Objective and success metrics
  • Target users and personas
  • User stories and use cases
  • Functional requirements
  • Non-functional requirements (performance, accessibility, security)
  • Out of scope
  • Open questions
  • Release criteria

System Requirements Document (SRD) or Software Requirements Specification (SRS)

An SRD or SRS captures the requirements a system must satisfy in normative form. Where the PRD speaks the language of the product, the SRD speaks the language of the system being built.

Origin. The canonical reference is IEEE 830-1998, Recommended Practice for Software Requirements Specifications, superseded by ISO/IEC/IEEE 29148-2018, Systems and software engineering — Life cycle processes — Requirements engineering. The European Cooperation for Space Standardization publishes a parallel document, ECSS-E-ST-10-06C, for space systems.

When to use. In regulated, safety-critical or contractually scoped projects where a normative baseline is required.

Structure. IEEE 830 prescribes:

  1. Introduction (purpose, scope, definitions, references, overview)
  2. Overall description (product perspective, functions, user characteristics, constraints, assumptions)
  3. Specific requirements (external interfaces, functions, performance, logical database requirements, design constraints, software system attributes)
  4. Supporting information (appendices, index)

Requirements are written with "shall" verbs and given identifiers for traceability.

Architecture Requirements Document (ARD)

An ARD captures the architecturally significant requirements (ASRs) that constrain the system design. It is a focused subset of the SRD, surfacing the requirements that drive architectural decisions.

Origin. The ARD is less standardised than the SRD. The SEI's Software Architecture in Practice (Bass, Clements, Kazman) defines architecturally significant requirements as the centre of architecture work. Some organisations split the ARD out as a separate artefact; others fold it into the SRD or the architecture description.

When to use. When the project is large enough that quality attributes (performance, security, scalability, modifiability) need explicit elaboration before design starts.

Structure. A common shape:

  • Business goals and drivers
  • Stakeholders and concerns
  • Functional ASRs
  • Quality attribute scenarios (stimulus, source, environment, response, measure)
  • Constraints (technical, regulatory, organisational)
  • Assumptions

Architecture Design Document (ADD)

An ADD describes how a system is structured to meet its requirements. It covers components, interfaces, data, deployment and the rationale that ties the design to the requirements.

Origin. ISO/IEC/IEEE 42010, Systems and software engineering — Architecture description, is the international standard for what an architecture description must contain. The IEEE 1471 predecessor introduced the multi-view concept formally in 2000. TOGAF and the SEI Views and Beyond approach both build on 42010.

When to use. After requirements are stable and before implementation begins. Maintained through the life of the system as the source of truth for its structure.

Structure. ISO/IEC/IEEE 42010 requires the description to identify:

  • Stakeholders and their concerns
  • Architecture viewpoints used
  • Architecture views, one per viewpoint
  • Correspondence rules between views
  • Architecture rationale
  • Architecture decisions (often captured as ADRs)

Common views include functional, information, deployment, concurrency, operational and security.

Architecture Decision Record (ADR)

An ADR records a single architectural decision: the context that forced it, the decision taken, and the consequences. ADRs are short, dated and append-only.

Origin. Michael Nygard introduced the ADR format in a 2011 blog post, Documenting Architecture Decisions. The format has been adopted widely; ThoughtWorks placed ADRs in the Technology Radar "adopt" ring, and GitHub hosts a community catalogue at adr.github.io.

When to use. Every time a decision is made that future maintainers would otherwise have to reverse-engineer. ADRs accumulate in the repository over the life of the project.

Structure. Nygard's original template:

  • Title (short noun phrase)
  • Status (proposed, accepted, deprecated, superseded by ADR-N)
  • Context (the forces at play)
  • Decision (the response to those forces)
  • Consequences (positive, negative and neutral outcomes)

Variants such as MADR (Markdown Architectural Decision Records) add sections for considered options and decision drivers.

Request for Comments (RFC)

An RFC is a written proposal circulated for review before adoption. The term covers two related but distinct practices.

Origin. The IETF RFC series began in 1969. Steve Crocker's RFC 1 documented the Host Software protocol for the ARPANET. The series is now managed by the RFC Editor and governed by RFC 2026, The Internet Standards Process. Internally, many technology companies (Squarespace, Uber, Oxide, Rust) run their own RFC processes adapted from the IETF model.

When to use.

  • IETF RFCs document Internet protocols, formats and processes. They are authoritative once published.
  • Internal RFCs propose significant changes to a codebase or architecture before implementation begins. They sit between an ADR (which records a decision already taken) and a design document (which assumes the decision is made).

Structure. The IETF RFC format is prescribed by RFC 7322. Common sections:

  • Abstract
  • Status of this memo
  • Copyright notice
  • Table of contents
  • Introduction
  • Conventions and terminology (often citing RFC 2119 for "MUST", "SHOULD")
  • Body (protocol mechanics, formats, behaviour)
  • Security considerations
  • IANA considerations
  • References (normative and informative)
  • Author addresses

Internal RFC templates are lighter, typically:

  • Summary
  • Motivation
  • Proposed change
  • Alternatives considered
  • Drawbacks
  • Open questions
  • Adoption plan

Engineering Design Document (EDD or Design Doc)

The engineering design document, often just called a "design doc", is the working artefact engineers write before building a feature or service. It sits below the ADD and above the code.

Origin. Google's internal design-doc culture, described publicly by Malte Ubl and others, popularised the form. The pattern predates Google and exists in most large engineering organisations under different names.

When to use. Before writing non-trivial code. The design doc is the input to peer review and the artefact that captures the design that was actually built.

Structure. A common shape:

  • Context and goals
  • Non-goals
  • Proposed design (data model, APIs, components)
  • Alternatives considered
  • Cross-cutting concerns (security, privacy, observability, rollback)
  • Migration and rollout
  • Testing strategy
  • Open questions
  • Appendix

Specification

A specification is a precise, normative description of an interface, format or protocol. It is the artefact an implementer reads in order to build a conforming implementation.

Origin. Specifications come from many bodies. ISO, IEC, IEEE, ITU-T, 3GPP, ETSI, IETF, W3C, TM Forum and OASIS all publish specifications under their own processes and document conventions.

When to use. When multiple independent implementations must interoperate, or when conformance is going to be tested.

Structure. Varies by body. Common elements:

  • Scope and conformance criteria
  • Normative references
  • Terms and definitions
  • Symbols and abbreviations
  • Body (normative requirements, often with "shall" and "should")
  • Conformance clause
  • Annexes (normative and informative)

Invention Disclosure

An invention disclosure is filed inside a company to describe an invention before a patent application is drafted. It is internal, confidential and written to a template the patent committee can evaluate.

Origin. Each company maintains its own template; there is no external standards body.

When to use. Whenever an invention is made and the company wants to consider patenting it. The patent-disclosure skill writes disclosures to an eleven-section template with a four-axis self-assessment.

Structure. Company templates typically include:

  • Title and claim
  • Inventors
  • Problem and prior art
  • Proposed solution
  • Embodiments and variations
  • Advantages
  • Evidence of novelty

Quick Reference

DocumentPrimary purposeAuthoritative source
Concept paperPropose an ideaNone
Position paperArgue a stanceWorkshop conventions
WhitepaperExplain to a wide audiencePublisher template
PRDCapture product intentIndustry practice
SRD / SRSCapture normative system requirementsISO/IEC/IEEE 29148-2018
ARDCapture architecturally significant requirementsSEI practice
ADDDescribe the architectureISO/IEC/IEEE 42010
ADRRecord one decisionNygard (2011)
RFC (IETF)Standardise a protocolRFC 7322, RFC 2026
RFC (internal)Propose a significant changeLocal convention
Design doc / EDDPlan an implementationLocal convention
SpecificationDefine an interface for conformanceSDO of origin
Invention disclosureSeed a patent applicationCompany template; patent-disclosure skill

References

  • ISO/IEC/IEEE 29148-2018, Systems and software engineering — Life cycle processes — Requirements engineering.
  • ISO/IEC/IEEE 42010:2022, Software, systems and enterprise — Architecture description.
  • IEEE 830-1998, Recommended Practice for Software Requirements Specifications (superseded).
  • IETF RFC 2026, The Internet Standards Process — Revision 3, S. Bradner, 1996.
  • IETF RFC 7322, RFC Style Guide, H. Flanagan and S. Ginoza, 2014.
  • IETF RFC 2119, Key words for use in RFCs to Indicate Requirement Levels, S. Bradner, 1997.
  • M. Nygard, Documenting Architecture Decisions, blog post, 2011.
  • L. Bass, P. Clements, R. Kazman, Software Architecture in Practice, 4th ed., Addison-Wesley, 2021.
  • M. Cagan, Inspired: How to Create Tech Products Customers Love, 2nd ed., Wiley, 2017.
  • The Open Group, TOGAF Standard, 10th Edition, 2022.
  • MADR project, Markdown Architectural Decision Records, https://adr.github.io.

The writing-voice/ Directory Contract

Any writing repository may carry a writing-voice/ directory of exemplar samples that define the target voice for text generated in that repository. The prose skills read it: filter-tells measures drafts against it and steers rewrites toward it, and match-structure accepts it as a curated exemplar source. The contract is generic — the same layout works in any repository.

Layout

writing-voice/
  manifest.yaml                 the contract below
  <Author>-<Year>-<slug>.md     one markdown file per exemplar
  blueprints/<name>.md          structural blueprints for match-outline (optional)
  venues/<name>.yaml            venue profiles, schema below (optional)
  .voice-profile.json           generated cache (gitignorable)

One markdown file per exemplar, plus the manifest. Sample files carry prose, not markup scaffolding — a converted paper is fine, a LaTeX source is not (convert it first).

manifest.yaml

purpose: >
  What these samples are for, in this repository.
updated: '2026-07-25'
target_document: the work whose voice these samples define
roles:
  author-voice: Written or co-written by the repository owner before the
    generative-AI era; the primary voice to match.
  venue-voice: Not by the author, published before 2022 in the target venue's
    genre; establishes the register of the venue.
exemplars:
  - id: djukic-2007-icc-distributed-scheduling   # stable key
    file: Djukic-2007-distributed-link-scheduling-...md   # relative to writing-voice/
    role: author-voice                            # author-voice | venue-voice
    author: Djukic                                # optional; else the filename
    venue: IEEE ICC
    year: 2007
    source: papers/Djukic-2007-...md              # where the sample came from
    notes: Conference register; distributed-algorithm exposition, compact
      problem statement, simulation-backed claims.

Required per exemplar: id, file, role. venue, year, source, author, and notes are recommended — author is the person who wrote the piece (used by --author to hard-pin retrieval to one writer's voice, and read off the filename when the field is absent), and notes is read by humans choosing exemplars and by the anchor-retrieval step when ranking ties.

Two independent axes

role says whose voice a sample is. pre_ai says whether it is safe to anchor diction on. They are independent, and the first cannot express the second:

Stratumroleanchor for
author papers, pre-AIauthor-voicediction, precision
peer essays, pre-AIvenue-voicediction and punch
anything AI-eraeithergenre and structure only, never diction

--role venue-voice returns the pre-AI punch anchors and the AI-era samples together — the ones that must never anchor diction. --stratum pre-ai cuts across roles and returns only what is safe.

- id: yegge-2011-google-platforms-rant
  file: Yegge-2011-stevey-s-google-platforms-rant.md
  role: venue-voice
  year: 2011
  pre_ai: true        # optional; absent, inferred from year < 2022

Prose written once generative AI was available may carry AI diction, which makes it circular as a diction anchor. pre_ai is optional and the year infers it, but an explicit value wins: where the line falls for a given piece is the curator's knowledge, not arithmetic — a 2023 draft may predate their model access, and a 2021 one may not.

The third axis: register tags

role says whose voice. pre_ai says whether its diction is safe to copy. Neither answers which register suits this article, and retrieval cannot supply it — embedding similarity matches topic, and the register that fits is often the one least topically similar, so similarity ranks it last.

Measured on a 113-exemplar corpus: for an economics paragraph, the eleven Krugman samples ranked no better than 25th of 2,420 passages, because Krugman writes about copper and hot dogs while the draft was about software.

- id: krugman-1998-the-accidental-theorist
  role: venue-voice
  year: 1998
  tags: [economics, numbers, parable, diction]
- id: fowler-2015-technical-debt
  role: venue-voice
  year: 2015
  tags: [medium, named-pattern, structure-only, workflow]
  pre_ai: false

Tags select the pool; similarity still ranks within it. Pass none and behaviour is unchanged.

structure-only is a tag with teeth: it means anchor shape on this, never diction. Samples carrying it are excluded from diction anchoring unless requested by name, because otherwise --anchor-tags workflow would quietly admit a shape reference into a voice rewrite. Fowler's bliki is the worked case — a legitimate structure reference whose clean modern prose is the register a rewrite is escaping.

The A/B behind this (GH-229), one article and one model: tag-selected anchors took a published piece from an external score of 100% to 17.9% and held the passive rate at the author's own level, where similarity-selected anchors moved the score not at all and nearly doubled passive. The tag arm rewrote fewer paragraphs to get there.

Articles usually carry the query already — front matter tags:, and in some repositories Altitude: / Move: from pattern-language.yaml.

The fourth axis: author identity

role says whose voice category a sample belongs to; it does not say which person wrote it. A venue-voice pool mixes many authors, and --role venue-voice returns them all. author says which specific person wrote the piece, and --author Yegge hard-pins retrieval to that person's exemplars regardless of role.

- id: yegge-2011-google-platforms-rant
  file: Yegge-2011-stevey-s-google-platforms-rant.md
  role: venue-voice
  author: Yegge
  year: 2011

The pre_ai gate still applies: --author Yegge selects Yegge's samples, and --stratum pre-ai further restricts to the ones safe for diction anchoring. The axes are independent — author picks WHO, stratum governs WHETHER their words are safe to copy.

Where the author comes from

The author: field is authoritative, and where it is absent the filename supplies one: the first hyphen-separated segment, when it starts with a letter. Krugman-1998-the-accidental-theorist.md is Krugman whether or not the manifest says so, and a declared field always wins — adding author: to a manifest refines it, never changes what it already meant.

Letter-initial is the whole gate. 2026-08-20-strategy-theatre.md yields no author rather than one called 2026. It deliberately does not require a four-digit year: on the reference corpus that stricter form missed 13 of 181 exemplars, among them all ten Dijkstra essays, which carry EWD numbers where a year would go. A gate that drops the author it was asked for is the failure it exists to prevent.

Inference is disclosed wherever it is used — the anchor pool line reads author=Krugman (inferred from filenames) — so a reader never mistakes it for something the manifest states. voice_anchors.py tags lists every author the corpus can express and marks each declared or inferred.

When --author selects nothing

--author that matches nothing yields an empty pool, not a fallback to the full corpus. An author value that excludes nothing (every exemplar carries that author) is reported as inert.

Two emptinesses, and they need opposite responses, so they are reported differently. A name the corpus does not hold is answered with the names it does. A corpus that can express no author at all — no author: field anywhere, no filename implying one — is answered by saying the flag cannot work here whatever is passed, and pointing at --anchor-tags instead. Collapsing the two costs a debugging detour: the corpus loads, the tag listing reports every exemplar, so a path problem is the natural first hypothesis and the manifest fields are the last thing anyone reads.

Roles and precedence

author-voice is the voice to match; venue-voice supplies genre convention where the author has no sample in that form. Tools prefer author-voice anchors and fall back to venue-voice. A repository may carry only one role.

Discovery

A tool given a file walks up from that file's directory to the repository root looking for writing-voice/. Absent, behavior is unchanged — voice features are additive, never required.

venues/ — venue profiles

A profile is one YAML file under writing-voice/venues/ bundling every choice the humanize pipeline otherwise asks for interactively. One profile per publishing venue the repository writes for. Discovery follows the same walk-up rule as writing-voice/ itself, so a paper repository carrying its own writing-voice/venues/academic.yaml resolves without cross-repo configuration.

Profiles are named bundles, not a linear dial. Register axes do not move together across venues — the book profile removes all hedging while the academic profile carries the most — so consumers read fields, never infer them from level.

name: newsletter          # must match the filename stem
level: 1                  # 1 newsletter | 2 technical-essay | 3 book
                          # 4 industry-report | 5 academic — ordering label only
description: >
  Substack posts: first person, coaching voice, punch anchors.
anchor_query:             # manifest query for voice anchors
  role: venue-voice       # optional: author-voice | venue-voice
  tags: [first-person, clipped]
  stratum: pre-ai         # optional: pre-ai | ai-era
  author: Yegge           # optional hard pin
blueprint: evans-howto.md # under blueprints/, or omit
structural_step: tighten-style   # match-outline | tighten-style | skip
pov: first-person         # first-person | third-person | mixed-sidebars
citations: numbered       # numbered | pandoc | none
tell_lexicon: newsletter  # newsletter | academic | industry | book | none
hedge_policy: minimal     # zero (book) | minimal (essay) | calibrated (academic)
targets:                  # measured register targets; keys are match-structure
  sentence_length_mean: 17.4        # METRIC_KEYS — bootstrap them with
  passive_per_100_sentences: 4.1    # `style.py corpus` over the venue slice,
  hedges_per_1000_words: 1.2        # never hand-write them
targets_provenance:
  measured: '2026-07-29'
  corpus: {role: venue-voice, tags: [first-person, clipped]}
  papers: 24
gates:                    # ordered acceptance checks with optional thresholds
  - name: pangram
    max_ai_fraction: 0.5
  - name: pace
  - name: register-composite
  - name: citation-number-preservation
  - name: audit-references
provenance:               # written back by tune-anchors after a sweep
  anchor_query_source: tune-anchors   # or: hand
  swept: '2026-07-29'
  composite: 0.81

Required: name, level, structural_step, citations, tell_lexicon, hedge_policy, gates. Loader and validator: match-structure/scripts/venue_profile.py (discover / list / show / validate); consumer skills import resolve() or shell out to show. A profile with schema errors is refused, not partially applied.

Field semantics for consumers:

  • anchor_query — resolves humanize's seed anchor selection (humanize --venue).
  • blueprint / structural_step — name the caller's pre-chain structural step (GH-208): the workflow runs match-outline (or tighten-style, or skips) before invoking humanize; humanize only reports whether it ran.
  • tell_lexicon — selects which venue lexicon filter-tells applies on top of its core tells; core tells are venue-independent.
  • targets + hedge_policy — tighten-style tightens toward these numbers instead of the global author floor; hedge handling is venue-keyed.
  • gates — which acceptance checks run and in what order; a venue without pangram in its gate list is never uploaded to an external detector (the consent rule below still governs every upload for venues that do).
  • citations — pandoc [@citekey] and numbered [1] markers must survive every rewrite step verbatim.

Consumers

  • filter-tells — builds a baseline profile from the samples (metrics reported as distances from it, not only against fixed thresholds) and injects topically-nearest exemplar passages into rewrite and overshoot prompts as voice anchors. With idiolect.yaml present, its structural pass calibrates to the author baseline: native constructions flag only above the author ceiling, never on sight.
  • inject-vernacular — the terminal, non-generative stage: applies idiolect.yaml's operator bank (substitution/restoration only, nothing samples) at essay targets, keeps an edit log for marker-survival analysis, and refuses to run without the bank. Accepts a voice-critic report's unhedged-prediction flags to gate the i-think RESTORE direction.
  • voice-critic — cold, read-only gatekeeper whose rubric is voice-constitution.md and whose marker rates come from idiolect.yaml: five per-dimension verdicts with flagged spans (stance, ToM device, disproportion via span locks, computed marker profile, the L0–L5 snark audit), plus the unhedged-prediction work list inject-vernacular consumes. Never edits.
  • match-outline — accepts the manifest as a curated exemplar source for whole-document structural rewriting, blueprint synthesis, and comparison.
  • match-structure — provides the quantitative metrics, corpus aggregation, and voice anchor retrieval that match-outline and other skills import.
  • match-voice — retrieves the same anchors and sends them with the paragraph to a second model family, then gates the candidate on citation and number preservation, meaning entailment, anchor similarity, and register. Its driver carries the before/after Pangram measurement, since the baseline can only be captured before the rewrite starts.
  • do-work — its Prose workflow reads the manifest and the nearest samples before drafting, and scans the produced prose with filter-tells before committing, so a writing repository gets the rule from the workflow rather than from a per-repo note. Repositories without writing-voice/ are unaffected.
  • Pangram check — an optional external measurement, and the only consumer that sends text off the machine. Governed by the consent rule below.
  • filter-tells's eval harness — uses the author-voice exemplars as the human class when calibrating detector false-positive rates. It reads them in place and records provenance rather than text, so a private corpus stays private; the skills directory is shared by symlink, and samples copied into it would be published with the skills. What belongs in the corpus is the curator's call, but the harness warns about exemplars dated after 2022, since prose written once generative AI was available is circular as ground truth for what human prose looks like.

Reference implementation of the directory: petar-djukic/autogenic-systems (writing-voice/, 28 exemplars — 24 author-voice, 4 venue-voice).

Uploading a draft to an external detector

Every other tool here runs locally. match-voice prefers a local model precisely so unpublished prose stays on the machine. An external AI detector breaks that deliberately, so it asks first — every time.

Ask before every upload. Name the file, name the destination (text.external-api.pangram.com), and say that the text is retained and reachable through a dashboard_link on the vendor's site. Proceed only on a clear yes.

Per document, every time — unless the operator has granted standing consent (GH-210). Not once per session, not implied by a key. A key in the environment says the user has an account with the vendor; it says nothing about whether this document may leave the machine. Sessions cover many files, and one blanket yes given in passing cannot be informed consent for a file the user had not thought about yet. An upload cannot be taken back.

The one exception is a deliberate, recorded, revocable grant: the operator writes consent: standing into writing-voice/pangram-consent.yaml (or sets PANGRAM_CONSENT=standing; PANGRAM_CONSENT=off revokes for a session and wins over the file). Under the grant the drivers score by default — the GH-194 recipe needs every pass scored — and --no-pangram opts any single run out. The grant covers the repository the file sits in, never other repositories; the retention warning above is what the operator accepts at grant time; and a venue profile whose gates omit pangram never uploads regardless of the grant. The refuse-list below applies with the grant in force: embargoed or NDA material still gets raised, not uploaded.

Refuse some documents even with consent in hand. Anything under embargo or NDA, and any unpublished claim where disclosure could bear on prior art, gets raised rather than uploaded. The user may still say yes; they should say it knowing that.

No key, or a declined prompt, means skip. Say the check was skipped. Never pass silently, and never present a local filter-tells result as though it were the external one — the whole value of an outside detector is that it is outside.

A result is evidence, not a verdict. It never certifies a document on its own; see filter-tells's Verdict Validity Rules.

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.