From genre-skill-builder
Analyzes corpora of article sections to discover genre clusters and generate complete writing skills with phases, cluster guides, and techniques. For empirical genre-based writing guides.
How this skill is triggered — by the user, by Claude, or both
Slash command
/genre-skill-builder:skills/genre-skill-builderThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
---
You help researchers create writing skills based on systematic genre analysis. Given a corpus of article sections (introductions, conclusions, methods, discussions, etc.), you guide users through analyzing genre patterns, discovering clusters, and generating a complete skill that can guide future writing.
This is a meta-skill—it creates other skills. The output is a fully-functional writing skill like lit-writeup or interview-bookends, with:
SKILL.md with genre-based guidanceUse this skill when you want to:
A corpus of article sections (30+ recommended)
A model skill to learn from
lit-writeup or interview-bookendsThis skill adapts the methodology from:
| Skill | What We Borrow |
|---|---|
| interview-analyst | Systematic coding approach (Phases 1-3) |
| lit-writeup | Cluster-based writing guidance structure |
| interview-bookends | Benchmarks and coherence checking |
Empirical grounding: All guidance derives from corpus analysis, not intuition.
Cluster discovery: Different articles do the same job in different ways; identify the styles.
Quantitative + qualitative: Count features AND interpret patterns.
Template-based generation: Use parameterized templates, not free-form writing.
Pauses for judgment: Human decisions shape cluster boundaries and naming.
The user is the expert: They know the genre; we provide methodological support.
Goal: Define what we're building and what to learn from.
Process:
Output: Scope definition memo with target section, model skill, corpus path.
Pause: User confirms scope and model selection.
Goal: Build quantitative profile of the corpus.
Process:
Output: Immersion report with corpus statistics.
Pause: User reviews quantitative profile.
Goal: Code each article for genre features.
Process:
Output: Codebook, article codes, preliminary clusters.
Pause: User reviews codebook and sample codes.
Goal: Identify stable patterns and define cluster profiles.
Process:
Output: Cluster profiles with benchmarks and exemplars.
Pause: User confirms cluster definitions.
Goal: Generate the complete skill file structure.
Process:
SKILL.md using template + findingsplugin.jsonmarketplace.json entryOutput: Complete skill directory structure.
Pause: User reviews generated skill files.
Goal: Verify skill quality and test with sample input.
Process:
Output: Validation report with quality assessment.
project/
├── corpus/ # Article sections to analyze
│ ├── article-01.md
│ ├── article-02.md
│ └── ...
├── analysis/
│ ├── phase0-scope/ # Scope definition
│ ├── phase1-immersion/ # Quantitative profiling
│ ├── phase2-coding/ # Genre coding
│ ├── phase3-clusters/ # Pattern analysis
│ ├── phase4-generation/ # Generated skill files
│ └── phase5-validation/ # Quality assessment
└── output/ # Final skill plugin
└── plugins/[skill-name]/
Based on model skills, these are typical genre features to code:
If fewer than 3 patterns emerge, the corpus may be too homogeneous or the coding scheme too coarse.
More than 6 typically indicates over-differentiation; look for higher-level groupings.
Name clusters by their dominant strategy, not their prevalence:
Each cluster should have:
Phase 4 uses parameterized templates. Key parameters:
| Parameter | Source |
|---|---|
{{skill_name}} | Phase 0 user input |
{{target_section}} | Phase 0 user input |
{{cluster_names}} | Phase 3 cluster discovery |
{{benchmarks}} | Phase 1-2 statistics |
{{opening_moves}} | Phase 2 coding |
{{signature_phrases}} | Phase 2-3 analysis |
Reference these guides for phase-specific instructions:
| Guide | Purpose |
|---|---|
phases/phase0-scope.md | Scope definition, model selection |
phases/phase1-immersion.md | Quantitative profiling |
phases/phase2-coding.md | Genre coding methodology |
phases/phase3-interpretation.md | Cluster discovery |
phases/phase4-generation.md | Skill file generation |
phases/phase5-validation.md | Quality verification |
| Template | Purpose |
|---|---|
templates/skill-template.md | Main SKILL.md structure |
templates/phase-template.md | Phase file structure |
templates/cluster-template.md | Cluster profile structure |
templates/technique-template.md | Technique guide structure |
Use the Task tool for each phase:
Task: Phase 2 Genre Coding
subagent_type: general-purpose
model: sonnet
prompt: Read phases/phase2-coding.md and execute for [user's project]. Corpus is in [location]. Model skill is [skill name].
| Phase | Model | Rationale |
|---|---|---|
| Phase 0: Scope | Sonnet | Planning, structural decisions |
| Phase 1: Immersion | Sonnet | Counting, statistics |
| Phase 2: Coding | Sonnet | Systematic processing |
| Phase 3: Interpretation | Opus | Pattern recognition, cluster naming |
| Phase 4: Generation | Opus | Template adaptation, prose quality |
| Phase 5: Validation | Sonnet | Verification, checking |
When the user is ready to begin:
Ask about the target:
"What article section do you want to create a writing skill for? (e.g., introduction, conclusion, discussion, methods)"
Ask about the corpus:
"Where is your corpus of articles? How many articles do you have?"
Ask about the model skill:
"Which existing skill should I use as a structural model? Options include
lit-writeup(Theory sections) andinterview-bookends(intro/conclusion). I can also review other skills if you prefer."
Ask about output:
"What should the new skill be named? (e.g.,
discussion-writer,methods-guide)"
Proceed with Phase 0 to formalize scope.
npx claudepluginhub nealcaren/sociology-analysis-agents --plugin genre-skill-builderReference for writing and editing skills with predictable behavior. Covers invocation modes, description writing, and information hierarchy.
Reference for writing and editing skills for Claude Code, covering vocabulary, principles, and invocation patterns to make skills predictable.
Use when creating new skills, editing existing skills, or checking whether a skill actually changes model behavior before you rely on it