Skip to content
Back to skills

Derive Styleguide

ASecurity

Derive a style guide FROM THE OWNER'S OWN SAMPLE before writing into their canon artifacts — registers, reference examples quoted from the owner's text, a one-concept-one-word dictionary, a pre-write checklist — and hand it to the owner for approval together with the list of MACHINE-LINTABLE rules. Use before any substantial writing into owner canon (rulebooks, lore, brand texts), or when the human says "derive a styleguide", "выведи стайлгайд", "зафиксируй мой стиль". Framework rule — writin...

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 6, 2026
ai-agentsgoapi

Works with

  • api

Security analysis

A100/100

Scanned November 6, 2026

npx -y skills add MikalaiKryvusha/KAIF --skill derive-styleguide --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Derive Styleguide?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Derive Styleguide
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mikalaikryvusha-derive-styleguide-kaif/badge)](https://www.skillsdirectory.com/skills/mikalaikryvusha-derive-styleguide-kaif)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: derive-styleguide
description: Derive a style guide FROM THE OWNER'S OWN SAMPLE before writing into their canon artifacts — registers, reference examples quoted from the owner's text, a one-concept-one-word dictionary, a pre-write checklist — and hand it to the owner for approval together with the list of MACHINE-LINTABLE rules. Use before any substantial writing into owner canon (rulebooks, lore, brand texts), or when the human says "derive a styleguide", "выведи стайлгайд", "зафиксируй мой стиль". Framework rule — writing into a canon artifact with no approved styleguide means derive and approve one first.
---

# /derive-styleguide — the owner's style, extracted from evidence

A weak session cannot HOLD the owner's style in its head — ten pages in, it drifts. The cure is
never "try harder": extract the style ONCE from the owner's own text, get it approved, and turn
every machine-checkable rule into a linter line. "The model forgets the styleguide after ten
pages — the linter never does."

**The prime rule: derive from the SAMPLE, not from your head.** Every claim in the styleguide
must point at evidence in the owner's text. A styleguide invented from taste is the same fraud
as an invented number.

## Step 1. Collect the sample

Ask the owner which artifacts are the reference (or take the declared `canonArtifacts` from
`.kaif/kaif.json`). Prefer text the owner WROTE over text the owner merely accepted. If the
sample is thin (< a few pages), say so — a thin sample yields a thin guide, and the owner should
know which rules rest on how much evidence.

## Step 2. Extract, with quotes

Work through the sample and extract, each item WITH a quoted example from the owner's text:

1. **Registers** — which voice serves which content (e.g. dry codex-register for mechanics,
   narrative register for lore; the owner's own split, not a textbook's).
2. **Reference examples** — 3–7 short quotes that ARE the style: sentence shape, rhythm,
   how terms are introduced, how numbers/tables are presented.
3. **The dictionary: one concept — one word.** Every domain concept mapped to the OWNER'S term;
   every synonym the owner does NOT use goes to the forbidden list (synonym drift is how canons rot).
4. **Formatting conventions** — headings, capitalization, list punctuation, number formats,
   how formulas/stat blocks are laid out.
5. **Anti-patterns** — what the owner's text never does (filler phrases, hedging, marketing tone…),
   each with the evidence "absent from the sample / removed by the owner in commit X".

## Step 3. Split the rules: lintable vs judgment

Mark every extracted rule:
- **LINTABLE** — checkable by grep/script: forbidden synonyms and filler markers, banned
  constructions, "a formula without its where-block", heading-case violations, register-marker
  words in the wrong document type. These become lines in the canon linter (its template ships
  with the framework) — list them in a machine-friendly table: `pattern → message`.
- **JUDGMENT** — tone, rhythm, taste: stays in the guide for strong-model passes and the owner's
  proofreading. Never pretend judgment rules are enforced — say plainly which ones nothing guards.

## Step 4. The owner approves — then it binds

File the guide as a document next to the canon it governs (e.g. `rules/STYLEGUIDE.md`), marked
with your provenance marks like any AI text in owner territory. Hand it to the owner with ONE
question per genuinely ambiguous register choice (not a quiz — you did the work; they veto).
After approval: the guide is binding for every future write into that canon; the lintable rules
go into the linter the same day (a rule without its guard is a wish, not a rule).

## Notes

- Re-derive incrementally: when the owner writes something new that contradicts the guide, the
  OWNER is right — update the guide and its linter lines, never "correct" the owner's text.
- Strictness modes: deriving/updating the guide is strong-model work; RUNNING the linter is any
  model's work — that split is the point.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.