From code-to-content
Use when transforming a codebase into developer content. Activates for: - Blog posts, tutorials, or technical documentation about code - README, changelog, release notes, or API docs generation - Twitter/X threads, LinkedIn posts about technical work - Conference talk proposals (CFP) or newsletter content - Build-in-public updates, progress threads, milestone announcements - Product launches on Product Hunt, Hacker News, or social platforms - Any request to explain, document, or share a codebase publicly
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-to-content:code-to-contentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Transform codebases into compelling developer content through a mandatory 5-phase process with verification gates.
agents/content-explorer.mdagents/format-specialist.mdagents/quality-reviewer.mdassets/templates/blog_post.mdassets/templates/linkedin_post.mdassets/templates/newsletter.mdassets/templates/readme.mdassets/templates/tutorial.mdassets/templates/twitter_thread.mdassets/templates/video_script.mdevaluation/README.mdevaluation/evaluation.xmlexamples/README.mdexamples/blog-post/input-analysis.mdexamples/blog-post/output-blog.mdexamples/conference-talk/complete-example.mdexamples/linkedin-post/complete-example.mdexamples/negative/blog-post-weak-hook.mdexamples/negative/readme-missing-problem.mdexamples/negative/tutorial-mixed-audience.mdTransform codebases into compelling developer content through a mandatory 5-phase process with verification gates.
This skill includes 3 specialized agents for parallel execution:
| Agent | Purpose | When to Launch |
|---|---|---|
content-explorer | Discovers story angles, analyzes codebase for content opportunities | Phase 1: Launch 2-3 in parallel with different focus areas |
format-specialist | Optimizes content for specific platforms and formats | Phase 3-4: Launch per format needed |
quality-reviewer | Validates against checklists, readability thresholds, evidence grounding | Phase 5: Launch 2-3 in parallel with different review dimensions |
Phase 1 - Discovery:
Launch 3 content-explorer agents in parallel:
├── Agent 1: "Find performance and optimization story angles"
├── Agent 2: "Find architecture and design decision angles"
└── Agent 3: "Find developer experience and tooling angles"
Consolidate: Merge findings, deduplicate, select top 3-5 angles
Phase 5 - Quality Review:
Launch 3 quality-reviewer agents in parallel:
├── Agent 1: "Review structure and format compliance"
├── Agent 2: "Review readability and audience fit"
└── Agent 3: "Review evidence grounding and technical accuracy"
Consolidate: Merge issues, prioritize by severity, address blocking items
NEVER load all references at once. Load only what's needed for the current format:
| Format | Load These References |
|---|---|
| Blog Post | formats.md#blog, optimization.md#seo, optimization.md#storytelling, checklists.md#blog, code-snippets.md |
| Tutorial | formats.md#tutorial, cognitive-load.md, checklists.md#tutorial |
| Twitter/X Thread | formats.md#twitter, social-content.md, checklists.md#twitter, code-snippets.md |
| LinkedIn Post | formats.md#linkedin, social-content.md, checklists.md#linkedin, code-snippets.md |
| README | documentation.md#readme, checklists.md#readme |
| API Docs | documentation.md#api, checklists.md |
| Newsletter | newsletters.md, checklists.md#newsletter |
| Video Script | formats.md#video, checklists.md |
| Conference Talk | conference-talks.md, checklists.md#conference |
| Product Launch | product-launch.md, posting-plan.md |
| Build-in-Public | build-in-public.md, social-content.md |
| Cascade | content-cascade.md, social-content.md, code-snippets.md |
Always Load:
phase-gates.md — Gate verification criteria (required for all phases)readability-guide.md — Readability validation (required for Phase 5)Load On-Demand:
analysis-prompts.md — Only if running Claude-native analysis (Phase 1)audiences.md — Only if audience calibration needed (Phase 2)brand-voice.md — Only if voice calibration by tech stack/maturity needed (Phase 2)cognitive-load.md — Only if complex content requiring progressive disclosure (Phase 4)diagram-templates.md — Only if visual assets required (Phase 4)code-snippets.md — Only if content includes code examples for social sharingconference-talks.md — Only if generating CFP or talk outlinedocumentation.md — Only if generating README, API docs, or architecture docsmcp-integration.md — Only if posting via MCP servers (Delivery)You MUST complete all 5 phases in order. Each phase has a gate that MUST pass before proceeding.
PHASE 1 ──[Gate + Confirm]──> PHASE 2 ──[Gate + Confirm]──> PHASE 3 ──[Gate]──> PHASE 4 ──[Gate]──> PHASE 5 ──[Gate]──> DELIVERY
See references/phase-gates.md for detailed gate verification criteria.
Phases 1 and 2 require explicit user confirmation before proceeding.
| After Phase | Present | Wait For |
|---|---|---|
| 1 | Project Brief (tech stack, 3+ angles, recommended angle) | "Yes" / "Use angle #" / "Add context" |
| 2 | Audience Contract (audience, format, voice, thresholds) | "Yes" / "Change audience" / "Different format" |
Skip confirmations when: User says "proceed without confirmations", using Quick Mode, or iterating on existing content.
You MUST complete this phase before any content generation.
Choose based on task complexity:
| Option | When to Use | Method |
|---|---|---|
| Agent-Parallel | Complex projects, multiple content types | Launch 2-3 content-explorer agents in parallel |
| Inline Analysis | Simple projects, single content piece | Follow inline protocol below |
Launch multiple content-explorer agents with different focus areas:
Agent 1: "Analyze [project] for performance and optimization story angles"
Agent 2: "Analyze [project] for architecture and design decision angles"
Agent 3: "Analyze [project] for developer experience and tooling angles"
Consolidate agent outputs into unified Project Brief.
Follow references/analysis-prompts.md for Claude-native analysis:
## Project Brief: [Name]
### Tech Stack
- **Language:** [primary]
- **Framework:** [framework]
- **Architecture:** [pattern]
- **Voice Profile:** [precise/pragmatic/accessible/direct]
### Content Angles (3+ Required)
1. [Angle with evidence: file:line or commit]
2. [Angle with evidence]
3. [Angle with evidence]
### Story Hooks
- [Hook 1 with source reference]
- [Hook 2 with source reference]
You MUST verify before proceeding:
STOP if: No content-worthy insights found after analysis.
Present the Project Brief to user and WAIT for confirmation.
Display:
Ask: "Proceed with this analysis? [Yes / Use angle # / Add context]"
DO NOT proceed to Phase 2 until user confirms.
You MUST declare audience and format before generating content.
Determine target audience (select ONE):
| Audience | Assumed Knowledge | Jargon Tolerance |
|---|---|---|
| Beginner | Basic programming concepts | 2% max |
| Intermediate | Language proficiency, common patterns | 4% |
| Expert | Deep domain knowledge | 8% |
| Hiring Manager | Technical literacy, not expertise | 2% |
Select content format (select ONE):
Declare voice profile based on tech stack:
| Stack | Voice |
|---|---|
| Rust | Precise, safety-conscious |
| JavaScript/TypeScript | Pragmatic, conversational |
| Python | Clear, accessible |
| Go | Direct, minimal |
| Infrastructure | Operational, cautious |
See references/audiences.md for full calibration rules.
You MUST verify before proceeding:
STOP if: Audience mixing detected or format incompatible.
Present the Audience Contract to user and WAIT for confirmation.
Display:
Ask: "Proceed with this targeting? [Yes / Change audience / Different format]"
DO NOT proceed to Phase 3 until user confirms.
This is the last confirmation before content generation begins.
You MUST ground all claims in project evidence.
assets/templates/Each format has a dedicated template in assets/templates/:
| Format | Template | Structure |
|---|---|---|
| Blog Post | blog_post.md | Hook → Problem → Journey → Solution → Results |
| Tutorial | tutorial.md | Prerequisites → Steps (5-9) → Troubleshooting |
| Twitter/X | twitter_thread.md | Hook → Context → Insight → CTA |
| README | readme.md | Problem → Quick Start → Configuration |
linkedin_post.md | Hook → Story → Takeaways (800-1300 chars) | |
| Newsletter | newsletter.md | See also references/newsletters.md |
| Video Script | video_script.md | Hook → Sections → Recap |
| Conference Talk | — | See references/conference-talks.md |
Load the appropriate template and follow its structure.
You MUST verify before proceeding:
STOP if: Claims cannot be traced to evidence.
You MUST optimize for audience and platform.
Verify voice consistency — Same tone throughout
Apply cognitive load management:
| Complexity | Approach |
|---|---|
| Low (deps < 10) | Single-pass explanation |
| Medium (deps 10-30) | Concept first, then implementation |
| High (deps > 30) | Progressive disclosure with checkpoints |
Apply SEO (for web content):
Prepare visual assets:
references/diagram-templates.md for Mermaid templates)See references/optimization.md for full optimization rules.
You MUST verify before proceeding:
You MUST NOT deliver content that fails verification.
| Option | When to Use | Method |
|---|---|---|
| Agent-Parallel | Complex content, high-stakes delivery | Launch 2-3 quality-reviewer agents |
| Inline Validation | Simple content, quick delivery | Follow inline protocol below |
Launch multiple quality-reviewer agents with different focus areas:
Agent 1: "Review for structure and format compliance"
Agent 2: "Review for readability and audience fit"
Agent 3: "Review for evidence grounding and technical accuracy"
Consolidate findings, address all Critical and High severity issues before delivery.
references/checklists.md. Universal checks: hook, single takeaway, audience depth, voice, code syntax.references/readability-guide.md. Thresholds: Beginner ≤8.0 grade/2% jargon, Intermediate ≤12.0/4%, Expert ≤16.0/8%.You MUST verify before delivery:
DO NOT DELIVER until all checks pass.
Include with final content:
## Quality Report
- **Audience:** [declared audience]
- **Format:** [format type]
- **Readability Grade:** [estimated grade] / [max for audience]
- **Jargon Density:** [percentage] / [max for audience]
- **Evidence Status:** All claims grounded
- **Checklist:** [X/X] items passed
**Verdict:** APPROVED FOR DELIVERY
STOP and inform user when: No insights found (Phase 1), audience unclear or mixed (Phase 2), claims lack evidence (Phase 3), or readability fails (Phase 5).
Each phase output is required input for the next: Project Brief → Audience Contract → Draft → Optimized Content → Verified Deliverable. You MUST NOT skip phases.
Load on-demand. Always load: phase-gates.md, readability-guide.md
| Phase | Key References |
|---|---|
| 1 | analysis-prompts.md |
| 2 | audiences.md, brand-voice.md |
| 3 | formats.md, templates in assets/templates/ |
| 4 | optimization.md, cognitive-load.md, diagram-templates.md |
| 5 | checklists.md, readability-guide.md |
Format-specific: newsletters.md, social-content.md, conference-talks.md, documentation.md, product-launch.md, build-in-public.md, code-snippets.md, code-explainers.md, posting-plan.md, mcp-integration.md
| Mode | Commands | Description |
|---|---|---|
| Full | /c2c:blog, /c2c:tutorial, /c2c:twitter, /c2c:readme, /c2c:linkedin, /c2c:newsletter, /c2c:video-script, /c2c:conference-talk, /c2c:product-launch | All 5 phases |
| Quick | /c2c:quick-twitter, /c2c:quick-linkedin, /c2c:quick-blog, /c2c:quick-readme | Reduced phases for rapid generation |
| Cascade | /c2c:cascade | Multi-platform repurposing from source |
See references/commands.md for full usage details. Commands are in .claude/commands/c2c/.
See examples/ for input/output demonstrations:
blog-post/, twitter-thread/, readme/ — Positive examples with input and outputnegative/ — Gate failures with correctionsworkflow/ — Full 5-phase processTest skill with evaluation/evaluation.xml (18 QA pairs covering template structure, audience thresholds, voice calibration, and quality gates).
| Issue | Cause | Fix |
|---|---|---|
| Generic content | Skipped Phase 1 analysis | Use analysis-prompts.md, cite actual files/commits |
| Confusing tutorial | Multiple actions per step | One action per step with checkpoints |
| Weak blog hook | Starting with background | Open with result/problem, NEVER "In this article..." |
| Voice mismatch | Skipped Phase 2 calibration | Match voice to tech stack table |
When MCP servers (twitter-mcp, linkedin-mcp, buffer-mcp) are available, this skill can post directly to platforms. See references/mcp-integration.md for setup. Without MCP, templates include copy-ready format with character counts.
This skill supports automatic content validation via Claude Code hooks.
See references/hooks-guide.md for setup and customization.
All core analysis is Claude-native with no dependencies. Optional Python 3 for automatic hooks validation.
2plugins reuse this skill
First indexed Jul 10, 2026
npx claudepluginhub anotherifmg/code-to-contentCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.