npx claudepluginhub nealcaren/sociology-analysis-agents --plugin genre-skill-builderThis skill uses the workspace's default tool permissions.
---
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
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.