audit-context
Evaluates ambient context artifacts (CLAUDE.md, memory, local skills, settings hooks) for compatibility with swarm governance. Returns a classified report so…
Structural pattern analysis for writing-mode review. Performs paragraph-level decomposition and pattern aggregation. Invoked by the team lead during editorial review.
$ npx -y skills add DheerG/swarms --skill writing-style --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/writing-styleContext preview
The summary Claude sees to decide when to auto-load this skill.
Structural pattern analysis for writing-mode review. Performs paragraph-level decomposition and pattern aggregation. Invoked by the team lead during editorial review.
name: writing-style user-invocable: false description: | Structural pattern analysis for writing-mode review. Performs paragraph-level decomposition and pattern aggregation. Invoked by the team lead during editorial review. keywords: trope detection, structural analysis, pattern density, writing quality diagnostic, paragraph fingerprinting
A sentence or paragraph can look fine in isolation. When the same structural shape repeats across 1,000-3,000 words, the aggregate creates a mechanical feeling — even though no single instance is wrong. Linear readers miss this because they process sequentially and each paragraph clears the "is this well-written?" bar individually.
This analysis solves the forest-vs-trees problem. It decomposes every paragraph's structure, then aggregates the fingerprints to surface repetition invisible to linear reading.
Invoke this skill using the **Skill** tool: `swarm:writing-style`. Pass the piece's text or file path as the `args` parameter. The skill returns a structured report. The lead relays the report to the editor for interpretation. Invoke during the review phase (required) or optionally during drafting.
**The report is advisory, never gating.** The editor applies editorial judgment to the data. The Economist escape clause applies: if a flagged pattern serves the piece, keep it and note why.
**Exclude from analysis:** Table cells, comparison tables, and structured list items with deliberately parallel construction (numbered checklists, step-by-step procedures). These are exempt from construction density calculation but still included in named pattern counts. Report construction density both with and without these items so the editor has both numbers.
**Introductory and concluding paragraphs adjacent to lists are NOT exempt** — only the parallel list items themselves.
For each body paragraph, classify:
**1. Opening move** — how the paragraph begins:
**2. Dominant sentence shape:**
**3. Named trope patterns present (if any):**
Record each paragraph's structural fingerprint in compact notation.
Review ALL fingerprints together and analyze:
**A. Named pattern frequency**
Count each named trope pattern across the full piece. For each, report:
**B. Opening move distribution**
**C. Section structural fingerprint**
Classify each top-level section's overall pattern:
Flag when 3+ sections share the same fingerprint.
**D. Sentence length variance**
For each section, assess the approximate spread of sentence lengths. Flag sections where most sentences fall in the same 15-25 word band (low variance).
**E. Construction density**
Count ALL identified trope pattern instances per 500 words of body text. Flag when density exceeds 3 per 500 words.
**F. Paragraph opener concentration**
Map the first word of every body paragraph. Flag any word that opens more than 20% of paragraphs.
## Structural Pattern Analysis: <title or slug> ### Named Patterns | Pattern | Count | Limit | Status | Distribution | |---------|-------|-------|--------|--------------| | Negative parallelism | N | 1 | GREEN/YELLOW/RED | Sections: ... | | Countdown | N | 1 | GREEN/YELLOW/RED | Sections: ... | | Self-posed Q&A | N | 1 | GREEN/YELLOW/RED | Sections: ... | | Same-phrase recycled | N | 1 | GREEN/YELLOW/RED | Phrases: ... | | Punchy fragment | N | 2 | GREEN/YELLOW/RED | Sections: ... | | Dead metaphor | N | 2 | GREEN/YELLOW/RED | Metaphor: ... | | Anaphora (consecutive)
Describe what you want. Get a reviewed, ship-ready PR — without babysitting the agent.
Evaluates ambient context artifacts (CLAUDE.md, memory, local skills, settings hooks) for compatibility with swarm governance. Returns a classified report so…
Code mode operational spec for the team lead. Returns lead identity, facilitator identity, mode-specific rules, suggest-members guidance, and phase arc for…
Builds measurable validation criteria when no existing standards apply. Invoked by team agents during review.
Returns the frozen gate constants — question, header, option labels and descriptions, digest field-list, and preview content — for every catalog gate. Invoked…
General mode operational spec for the team lead. Returns lead identity, facilitator identity, suggest-members guidance, and phase arc for general-purpose…
Independent review loop run before delivery in code work. An independent reviewer (Codex, or fresh Codex-style subagents) reads the whole PR against the…