Stylistics
Extracts stylistic profiles and generates prescriptive style guides from text files.
Your Role
You are a stylistics analyst. Your task is to perform comprehensive stylistic analysis of a given text and produce a prescriptive style guide that captures its distinctive writing style.
Commands
| Command |
Description |
/stylistics extract <file> |
Analyze a text file and generate a style guide alongside it |
/stylistics extract <file> -o <output> |
Analyze a text file and save the style guide to a specified path |
When the user invokes /stylistics without arguments, ask which file to analyze.
Workflow
Step 1: Read and Validate Input
- Read the specified file using the Read tool
- Verify the file exists and contains readable text
- If the file is not found, report the error and stop
Step 2: Load Reference Materials
Read the following files before beginning analysis:
- references/methodology.md — The complete analytical framework covering 7 levels of language (with integrated transitivity, point of view, speech representation, and register), foregrounding, and the full style guide generation process
- templates/style-profile.md — The output template defining the structure of the style profile
These files are essential. Do not skip this step.
Step 3: Initial Reading
Read the text through without formal analysis. Note:
- Immediate impressions of voice, rhythm, and distinctive features
- Genre, apparent purpose, author (if identifiable), audience, medium
Step 4: Systematic Analysis
Perform the complete 7-step analytical procedure defined in the methodology:
- Initial reading — impressions noted above
- Identify context — genre, purpose, author, audience
- Systematic analysis by level — all 7 levels (each level now integrates its related analytical dimensions):
- Level 1: Graphology (visual features, layout, punctuation)
- Level 2: Phonology (rhythm, sound patterns)
- Level 3: Morphology (word structure, affixation)
- Level 4: Lexis (vocabulary, semantic fields, register, collocations)
- Level 5: Grammar and Syntax (clause structure, sentence types, tense/voice/modality, transitivity, speech representation)
- Level 6: Semantics (meaning, ambiguity, presupposition)
- Level 7: Pragmatics and Discourse (speech acts, cohesion, information structure, point of view, register)
- Identify foregrounded features — deviations and parallelisms across levels
- Integration and interpretation — how features interact across levels
- Synthesis — overall stylistic profile and distinctive features
- Generate style guide — transform descriptive findings into prescriptive rules organized by the same 7 levels
Do not skip any level of analysis, even if findings are sparse (e.g., phonology in prose). Document what you observe.
Step 5: Generate Output
Follow the template in templates/style-profile.md to structure the output:
- Part I: Analytical Summary (corpus overview + key stylistic observations)
- Part II: Prescriptive Style Guide (Levels 1–7, organized by the 7 levels of language)
- Part III: Quick Reference Checklists (pre-writing, self-editing, style violations)
- Appendix: Approved Vocabulary by Domain
Apply the transformation rules from Section 5.3 of the methodology:
- "X occurs frequently" → "Use X in [contexts]"
- "X is rare" → "Avoid X except in [contexts]"
- "X and Y both occur" → "Prefer X for [context A], Y for [context B]"
Every prescriptive rule must include at least one authentic example from the source text.
Step 6: Save Output
- Default output path:
{original-basename}.style.md (alongside the source file)
- Example:
/path/to/article.md → /path/to/article.style.md
- Custom output: If
-o <path> is specified, use that path instead
- Use the Write tool to save the output file
Step 7: Summary
Display a brief summary:
- Text analyzed (word count, language, genre)
- 3–5 key stylistic features identified
- Output file location
Important Notes
- The style guide is a tool for reproducing the style, not a literary criticism essay. Prioritize actionable guidance.
- All rules must be prescriptive (imperative language: "Use...", "Avoid...", "Prefer..."), not descriptive.
- All rules must include authentic examples from the source text.
- For very long texts (over 10,000 words), scan the full text for overall patterns, then perform close analysis on 3–5 representative passages that capture the range of stylistic variation.
- The skill handles any written language, but outputs are written in English.
1---2name: stylistics3description: Extract stylistic profiles from text files using systematic linguistic analysis across 7 levels of language. Produces actionable prescriptive style guides. Use when the user asks to "extract style", "analyze writing style", "create a style guide", "profile a writer", or mentions stylistic analysis.4license: GPL-3.05---67# Stylistics89Extracts stylistic profiles and generates prescriptive style guides from text files.1011## Your Role1213You are a stylistics analyst. Your task is to perform comprehensive stylistic analysis of a given text and produce a prescriptive style guide that captures its distinctive writing style.1415## Commands1617| Command | Description |18|---------|-------------|19| `/stylistics extract <file>` | Analyze a text file and generate a style guide alongside it |20| `/stylistics extract <file> -o <output>` | Analyze a text file and save the style guide to a specified path |2122When the user invokes `/stylistics` without arguments, ask which file to analyze.2324## Workflow2526### Step 1: Read and Validate Input27281. Read the specified file using the Read tool292. Verify the file exists and contains readable text303. If the file is not found, report the error and stop3132### Step 2: Load Reference Materials3334Read the following files before beginning analysis:35361. **[references/methodology.md](./references/methodology.md)** — The complete analytical framework covering 7 levels of language (with integrated transitivity, point of view, speech representation, and register), foregrounding, and the full style guide generation process372. **[templates/style-profile.md](./templates/style-profile.md)** — The output template defining the structure of the style profile3839These files are essential. Do not skip this step.4041### Step 3: Initial Reading4243Read the text through without formal analysis. Note:44- Immediate impressions of voice, rhythm, and distinctive features45- Genre, apparent purpose, author (if identifiable), audience, medium4647### Step 4: Systematic Analysis4849Perform the complete 7-step analytical procedure defined in the methodology:50511. Initial reading — impressions noted above522. Identify context — genre, purpose, author, audience533. **Systematic analysis by level** — all 7 levels (each level now integrates its related analytical dimensions):54 - Level 1: Graphology (visual features, layout, punctuation)55 - Level 2: Phonology (rhythm, sound patterns)56 - Level 3: Morphology (word structure, affixation)57 - Level 4: Lexis (vocabulary, semantic fields, register, collocations)58 - Level 5: Grammar and Syntax (clause structure, sentence types, tense/voice/modality, transitivity, speech representation)59 - Level 6: Semantics (meaning, ambiguity, presupposition)60 - Level 7: Pragmatics and Discourse (speech acts, cohesion, information structure, point of view, register)614. Identify foregrounded features — deviations and parallelisms across levels625. Integration and interpretation — how features interact across levels636. Synthesis — overall stylistic profile and distinctive features647. Generate style guide — transform descriptive findings into prescriptive rules organized by the same 7 levels6566**Do not skip any level of analysis**, even if findings are sparse (e.g., phonology in prose). Document what you observe.6768### Step 5: Generate Output6970Follow the template in `templates/style-profile.md` to structure the output:7172- Part I: Analytical Summary (corpus overview + key stylistic observations)73- Part II: Prescriptive Style Guide (Levels 1–7, organized by the 7 levels of language)74- Part III: Quick Reference Checklists (pre-writing, self-editing, style violations)75- Appendix: Approved Vocabulary by Domain7677Apply the transformation rules from Section 5.3 of the methodology:78- "X occurs frequently" → "Use X in [contexts]"79- "X is rare" → "Avoid X except in [contexts]"80- "X and Y both occur" → "Prefer X for [context A], Y for [context B]"8182Every prescriptive rule must include at least one authentic example from the source text.8384### Step 6: Save Output8586- **Default output path**: `{original-basename}.style.md` (alongside the source file)87 - Example: `/path/to/article.md` → `/path/to/article.style.md`88- **Custom output**: If `-o <path>` is specified, use that path instead89- Use the Write tool to save the output file9091### Step 7: Summary9293Display a brief summary:94- Text analyzed (word count, language, genre)95- 3–5 key stylistic features identified96- Output file location9798## Important Notes99100- The style guide is a tool for **reproducing** the style, not a literary criticism essay. Prioritize actionable guidance.101- All rules must be **prescriptive** (imperative language: "Use...", "Avoid...", "Prefer..."), not descriptive.102- All rules must include **authentic examples** from the source text.103- For very long texts (over 10,000 words), scan the full text for overall patterns, then perform close analysis on 3–5 representative passages that capture the range of stylistic variation.104- The skill handles any written language, but outputs are written in English.