DevRel Content
When to Use
Use this skill when you need when the user wants to create technical content for developers including blog posts, tutorials, and documentation. Trigger phrases include "write a blog post," "technical article," "developer content," "tutorial," "devrel content," "dev blog," "technical writing," or "content for...
This skill helps you create technical content that developers actually read: blog posts, tutorials, documentation, and thought leadership pieces that build trust and drive adoption.
Before You Start
Load your audience context first. Read .agents/developer-audience-context.md to understand:
- Who you're writing for (role, seniority, tech stack)
- Their pain points (what problems resonate)
- Verbatim language (how they describe things)
- Voice & tone (how formal/technical to be)
If the context file doesn't exist, run the developer-audience-context skill first.
The DevRel Content Framework
Phase 1: Research & Validation
Before writing anything, validate the topic is worth writing about.
| Research Type |
What to Do |
| Search intent |
Google your topic. What already ranks? What's missing? |
| Community signals |
Search Reddit, HN, Stack Overflow. Are developers asking about this? |
| Competitor gaps |
What have competitors written? What haven't they covered? |
| Internal data |
Support tickets, Discord questions, GitHub issues about this topic |
| Keyword research |
Use Ahrefs/SEMrush for search volume on technical terms |
Red flags — Don't write if:
- You're the only one who cares about this topic
- 10 identical articles already exist
- The topic is too broad ("Introduction to JavaScript")
- The topic is too narrow (no search volume, no community interest)
Phase 2: Content Type Selection
Choose the right format for your goal:
| Content Type |
Best For |
Structure |
| Tutorial |
Teaching a specific skill |
Step-by-step, code-heavy |
| Guide |
Covering a topic comprehensively |
Sections, reference material |
| Comparison |
Helping with decisions |
Table-based, pros/cons |
| Announcement |
Launching features/products |
News lead, what/why/how |
| Thought leadership |
Building authority |
Opinion, predictions, takes |
| Case study |
Social proof |
Problem → Solution → Results |
| Troubleshooting |
Solving specific errors |
Error → Cause → Fix |
Phase 3: Outline Structure
Use this outline template:
# [Title that promises specific value]
## Hook (2-3 sentences)
- State the problem or opportunity
- Establish credibility ("We migrated 10,000 repos...")
- Promise what the reader will learn
## Context (optional)
- Brief background if needed
- Link to prerequisites
## The Meat
### Section 1: [First major concept]
- Explanation
- Code example
- Common pitfall
### Section 2: [Second major concept]
- Explanation
- Code example
- Real-world application
### Section 3: [Third major concept]
- Explanation
- Code example
- Advanced tip
## Putting It Together
- Complete example
- Working code
## What's Next
- Links to deeper content
- Call to action (try the product, join Discord, etc.)
Writing Code Examples
Code is the content. Get it right.
The Copy-Paste Test
Every code example must:
| Requirement |
Why It Matters |
| Run without modification |
Developers will copy-paste. If it fails, you lose trust. |
| Include imports |
Don't assume they know which libraries to import. |
| Show output |
What should they see when it works? |
| Handle errors |
Real code has error handling. Show it. |
| Use real values |
No foo, bar, example.com unless necessary. |
Code Example Structure
First, install the dependencies:
\`\`\`bash
npm install your-library axios
\`\`\`
Now create a file called `fetch-data.js`:
\`\`\`javascript
// fetch-data.js
import { Client } from 'your-library';
import axios from 'axios';
const client = new Client({
apiKey: process.env.YOUR_API_KEY // Use environment variables
});
async function fetchUserData(userId) {
try {
const user = await client.users.get(userId);
console.log(`Fetched user: ${user.name}`);
return user;
} catch (error) {
console.error(`Failed to fetch user: ${error.message}`);
throw error;
}
}
// Example usage
fetchUserData('user_123')
.then(user => console.log(user))
.catch(err => process.exit(1));
\`\`\`
Run it:
\`\`\`bash
YOUR_API_KEY=sk_test_xxx node fetch-data.js
\`\`\`
Expected output:
\`\`\`
Fetched user: Jane Developer
{ id: 'user_123', name: 'Jane Developer', email: 'jane@example.dev' }
\`\`\`
Language-Specific Conventions
| Language |
Code Block |
Package Install |
Env Vars |
| JavaScript/Node |
javascript or js |
npm install |
process.env.VAR |
| TypeScript |
typescript or ts |
npm install |
process.env.VAR |
| Python |
python or py |
pip install |
os.environ['VAR'] |
| Go |
go |
go get |
os.Getenv("VAR") |
| Rust |
rust |
cargo add |
std::env::var("VAR") |
| Shell |
bash or shell |
N/A |
$VAR |
Technical Accuracy Checklist
Run through before publishing:
| Check |
How to Verify |
| Code runs |
Copy-paste every snippet and run it |
| Versions match |
Are you using the current library version? |
| Links work |
Click every link |
| Commands work |
Run every CLI command |
| Screenshots current |
Do UI screenshots match the current product? |
| No deprecated APIs |
Check if any APIs used are deprecated |
| Security review |
No hardcoded secrets, SQL injection, etc. |
| Peer review |
Have an engineer read it for accuracy |
SEO for Developer Content
Developers use Google differently than consumers.
Developer Search Patterns
| Pattern |
Example Searches |
| Error messages |
"TypeError: Cannot read property 'map' of undefined" |
| How to |
"how to deploy next.js to vercel" |
| Comparison |
"prisma vs typeorm 2024" |
| Best practices |
"typescript project structure best practices" |
| Alternatives |
"alternatives to firebase" |
| With |
"react with typescript tutorial" |
Technical SEO Checklist
| Element |
Best Practice |
| Title |
Include primary keyword, framework names, year if relevant |
| Meta description |
150 chars, include keyword, promise specific outcome |
| H1 |
Match or closely match title |
| H2s |
Include secondary keywords, make scannable |
| Code blocks |
Use proper syntax highlighting (helps featured snippets) |
| Internal links |
Link to related docs, tutorials, API reference |
| External links |
Link to official docs of tools mentioned |
| URL slug |
Lowercase, hyphens, include keyword |
Example Optimized Title
| Bad |
Good |
| "Using Our API" |
"How to Authenticate with the YourProduct API (Node.js)" |
| "Database Guide" |
"PostgreSQL Connection Pooling: Complete Guide with pgBouncer" |
| "Getting Started" |
"Getting Started with YourProduct: Your First API Call in 5 Minutes" |
Content Quality Signals
What separates great devrel content from mediocre:
Do This
- Show, don't tell — Code over prose
- Address the "why" — Not just how to do it, but when and why
- Acknowledge tradeoffs — Nothing is perfect; developers respect honesty
- Link to sources — Official docs, RFCs, related articles
- Include dates — "Updated March 2024" or version numbers
- Progressive disclosure — Start simple, add complexity
- Real examples — Production scenarios, not just hello world
Don't Do This
- Wall of text — Break up with code, headers, bullets
- Marketing speak — "Best-in-class," "seamless," "revolutionary"
- Assuming knowledge — Define acronyms, link to prerequisites
- Outdated content — Nothing worse than a 2019 tutorial with deprecated APIs
- Buried lede — Put the answer first, explanation second
- No code — Developers came for code, not prose
Content Templates
Blog Post Template
# [Specific, keyword-rich title]
[2-3 sentence hook: problem + promise]
## The Problem
[1 paragraph explaining the pain point]
## The Solution
[Brief explanation of your approach]
### Step 1: [Action]
[Explanation]
\`\`\`language
// Code
\`\`\`
### Step 2: [Action]
[Explanation]
\`\`\`language
// Code
\`\`\`
### Step 3: [Action]
[Explanation]
\`\`\`language
// Code
\`\`\`
## Complete Example
\`\`\`language
// Full working code
\`\`\`
## Troubleshooting
### [Common Error 1]
[Solution]
### [Common Error 2]
[Solution]
## What's Next
- [Link to deeper dive]
- [Link to related tutorial]
- [CTA: Try it yourself]
Comparison Post Template
# [Tool A] vs [Tool B]: [Specific Use Case] ([Year])
[1 paragraph: Who this comparison is for and what you'll learn]
## Quick Comparison
| Feature | Tool A | Tool B |
|---------|--------|--------|
| [Feature 1] | | |
| [Feature 2] | | |
| [Feature 3] | | |
## When to Choose [Tool A]
- [Scenario 1]
- [Scenario 2]
- [Scenario 3]
## When to Choose [Tool B]
- [Scenario 1]
- [Scenario 2]
- [Scenario 3]
## Deep Dive: [Specific Aspect]
### Tool A Approach
[Explanation + code]
### Tool B Approach
[Explanation + code]
## Our Recommendation
[Specific guidance based on use case]
Measuring Content Success
Metrics to Track
| Metric |
What It Tells You |
| Page views |
Reach (but vanity without context) |
| Time on page |
Engagement (are they reading?) |
| Scroll depth |
Did they read to the end? |
| Bounce rate |
Did they find what they needed? |
| Search rankings |
SEO performance |
| Backlinks |
Authority and reference value |
| Social shares |
Resonance (especially HN, Twitter, Reddit) |
| Conversion events |
Sign-ups, installs, docs clicks |
Content → Conversion Path
Track the journey:
- Search/social → Blog post
- Blog post → Docs / quickstart
- Docs → Sign up / install
- Sign up → Activation (first success)
Tools
| Tool |
Use Case |
| Octolens |
Monitor where your content gets shared (HN, Reddit, Twitter). Track competitor content performance. Find content ideas from developer conversations. |
| Grammarly / Hemingway |
Readability and grammar checking |
| Carbon / Ray.so |
Beautiful code screenshots |
| Excalidraw |
Technical diagrams |
| Loom |
Quick video walkthroughs |
| Ahrefs / SEMrush |
Keyword research and SEO tracking |
| Google Search Console |
Track search performance |
Related Skills
developer-audience-context — Foundation for knowing your readers
technical-tutorials — Deep dive into step-by-step content
developer-newsletter — Distributing content via email
developer-seo — Technical SEO optimization
hacker-news-strategy — Sharing content on HN effectively
Limitations
- Use this skill only when the task clearly matches its upstream source and local project context.
- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
1---2name: devrel-content3description: When the user wants to create technical content for developers including blog posts, tutorials, and documentation.4license: MIT5---6
7# DevRel Content
8## When to Use
9
10Use this skill when you need when the user wants to create technical content for developers including blog posts, tutorials, and documentation. Trigger phrases include "write a blog post," "technical article," "developer content," "tutorial," "devrel content," "dev blog," "technical writing," or "content for...
11
12
13This skill helps you create technical content that developers actually read: blog posts, tutorials, documentation, and thought leadership pieces that build trust and drive adoption.
14
15---
16
17## Before You Start
18
19**Load your audience context first.** Read `.agents/developer-audience-context.md` to understand:
20
21- Who you're writing for (role, seniority, tech stack)
22- Their pain points (what problems resonate)
23- Verbatim language (how they describe things)
24- Voice & tone (how formal/technical to be)
25
26If the context file doesn't exist, run the `developer-audience-context` skill first.
27
28---
29
30## The DevRel Content Framework
31
32### Phase 1: Research & Validation
33
34Before writing anything, validate the topic is worth writing about.
35
36| Research Type | What to Do |
37|--------------|------------|
38| **Search intent** | Google your topic. What already ranks? What's missing? |
39| **Community signals** | Search Reddit, HN, Stack Overflow. Are developers asking about this? |
40| **Competitor gaps** | What have competitors written? What haven't they covered? |
41| **Internal data** | Support tickets, Discord questions, GitHub issues about this topic |
42| **Keyword research** | Use Ahrefs/SEMrush for search volume on technical terms |
43
44**Red flags** — Don't write if:
45- You're the only one who cares about this topic
46- 10 identical articles already exist
47- The topic is too broad ("Introduction to JavaScript")
48- The topic is too narrow (no search volume, no community interest)
49
50### Phase 2: Content Type Selection
51
52Choose the right format for your goal:
53
54| Content Type | Best For | Structure |
55|-------------|----------|-----------|
56| **Tutorial** | Teaching a specific skill | Step-by-step, code-heavy |
57| **Guide** | Covering a topic comprehensively | Sections, reference material |
58| **Comparison** | Helping with decisions | Table-based, pros/cons |
59| **Announcement** | Launching features/products | News lead, what/why/how |
60| **Thought leadership** | Building authority | Opinion, predictions, takes |
61| **Case study** | Social proof | Problem → Solution → Results |
62| **Troubleshooting** | Solving specific errors | Error → Cause → Fix |
63
64### Phase 3: Outline Structure
65
66Use this outline template:
67
68```markdown
69# [Title that promises specific value]
70
71## Hook (2-3 sentences)
72- State the problem or opportunity
73- Establish credibility ("We migrated 10,000 repos...")
74- Promise what the reader will learn
75
76## Context (optional)
77- Brief background if needed
78- Link to prerequisites
79
80## The Meat
81### Section 1: [First major concept]
82- Explanation
83- Code example
84- Common pitfall
85
86### Section 2: [Second major concept]
87- Explanation
88- Code example
89- Real-world application
90
91### Section 3: [Third major concept]
92- Explanation
93- Code example
94- Advanced tip
95
96## Putting It Together
97- Complete example
98- Working code
99
100## What's Next
101- Links to deeper content
102- Call to action (try the product, join Discord, etc.)
103```
104
105---
106
107## Writing Code Examples
108
109Code is the content. Get it right.
110
111### The Copy-Paste Test
112
113Every code example must:
114
115| Requirement | Why It Matters |
116|------------|----------------|
117| **Run without modification** | Developers will copy-paste. If it fails, you lose trust. |
118| **Include imports** | Don't assume they know which libraries to import. |
119| **Show output** | What should they see when it works? |
120| **Handle errors** | Real code has error handling. Show it. |
121| **Use real values** | No `foo`, `bar`, `example.com` unless necessary. |
122
123### Code Example Structure
124
125```markdown
126First, install the dependencies:
127
128\`\`\`bash
129npm install your-library axios
130\`\`\`
131
132Now create a file called `fetch-data.js`:
133
134\`\`\`javascript
135// fetch-data.js
136import { Client } from 'your-library';
137import axios from 'axios';
138
139const client = new Client({
140 apiKey: process.env.YOUR_API_KEY // Use environment variables
141});
142
143async function fetchUserData(userId) {
144 try {
145 const user = await client.users.get(userId);
146 console.log(`Fetched user: ${user.name}`);
147 return user;
148 } catch (error) {
149 console.error(`Failed to fetch user: ${error.message}`);
150 throw error;
151 }
152}
153
154// Example usage
155fetchUserData('user_123')
156 .then(user => console.log(user))
157 .catch(err => process.exit(1));
158\`\`\`
159
160Run it:
161
162\`\`\`bash
163YOUR_API_KEY=sk_test_xxx node fetch-data.js
164\`\`\`
165
166Expected output:
167
168\`\`\`
169Fetched user: Jane Developer
170{ id: 'user_123', name: 'Jane Developer', email: 'jane@example.dev' }
171\`\`\`
172```
173
174### Language-Specific Conventions
175
176| Language | Code Block | Package Install | Env Vars |
177|----------|-----------|-----------------|----------|
178| JavaScript/Node | `javascript` or `js` | `npm install` | `process.env.VAR` |
179| TypeScript | `typescript` or `ts` | `npm install` | `process.env.VAR` |
180| Python | `python` or `py` | `pip install` | `os.environ['VAR']` |
181| Go | `go` | `go get` | `os.Getenv("VAR")` |
182| Rust | `rust` | `cargo add` | `std::env::var("VAR")` |
183| Shell | `bash` or `shell` | N/A | `$VAR` |
184
185---
186
187## Technical Accuracy Checklist
188
189Run through before publishing:
190
191| Check | How to Verify |
192|-------|---------------|
193| **Code runs** | Copy-paste every snippet and run it |
194| **Versions match** | Are you using the current library version? |
195| **Links work** | Click every link |
196| **Commands work** | Run every CLI command |
197| **Screenshots current** | Do UI screenshots match the current product? |
198| **No deprecated APIs** | Check if any APIs used are deprecated |
199| **Security review** | No hardcoded secrets, SQL injection, etc. |
200| **Peer review** | Have an engineer read it for accuracy |
201
202---
203
204## SEO for Developer Content
205
206Developers use Google differently than consumers.
207
208### Developer Search Patterns
209
210| Pattern | Example Searches |
211|---------|-----------------|
212| **Error messages** | "TypeError: Cannot read property 'map' of undefined" |
213| **How to** | "how to deploy next.js to vercel" |
214| **Comparison** | "prisma vs typeorm 2024" |
215| **Best practices** | "typescript project structure best practices" |
216| **Alternatives** | "alternatives to firebase" |
217| **With** | "react with typescript tutorial" |
218
219### Technical SEO Checklist
220
221| Element | Best Practice |
222|---------|--------------|
223| **Title** | Include primary keyword, framework names, year if relevant |
224| **Meta description** | 150 chars, include keyword, promise specific outcome |
225| **H1** | Match or closely match title |
226| **H2s** | Include secondary keywords, make scannable |
227| **Code blocks** | Use proper syntax highlighting (helps featured snippets) |
228| **Internal links** | Link to related docs, tutorials, API reference |
229| **External links** | Link to official docs of tools mentioned |
230| **URL slug** | Lowercase, hyphens, include keyword |
231
232### Example Optimized Title
233
234| Bad | Good |
235|-----|------|
236| "Using Our API" | "How to Authenticate with the YourProduct API (Node.js)" |
237| "Database Guide" | "PostgreSQL Connection Pooling: Complete Guide with pgBouncer" |
238| "Getting Started" | "Getting Started with YourProduct: Your First API Call in 5 Minutes" |
239
240---
241
242## Content Quality Signals
243
244What separates great devrel content from mediocre:
245
246### Do This
247
248- **Show, don't tell** — Code over prose
249- **Address the "why"** — Not just how to do it, but when and why
250- **Acknowledge tradeoffs** — Nothing is perfect; developers respect honesty
251- **Link to sources** — Official docs, RFCs, related articles
252- **Include dates** — "Updated March 2024" or version numbers
253- **Progressive disclosure** — Start simple, add complexity
254- **Real examples** — Production scenarios, not just hello world
255
256### Don't Do This
257
258- **Wall of text** — Break up with code, headers, bullets
259- **Marketing speak** — "Best-in-class," "seamless," "revolutionary"
260- **Assuming knowledge** — Define acronyms, link to prerequisites
261- **Outdated content** — Nothing worse than a 2019 tutorial with deprecated APIs
262- **Buried lede** — Put the answer first, explanation second
263- **No code** — Developers came for code, not prose
264
265---
266
267## Content Templates
268
269### Blog Post Template
270
271```markdown
272# [Specific, keyword-rich title]
273
274[2-3 sentence hook: problem + promise]
275
276## The Problem
277
278[1 paragraph explaining the pain point]
279
280## The Solution
281
282[Brief explanation of your approach]
283
284### Step 1: [Action]
285
286[Explanation]
287
288\`\`\`language
289// Code
290\`\`\`
291
292### Step 2: [Action]
293
294[Explanation]
295
296\`\`\`language
297// Code
298\`\`\`
299
300### Step 3: [Action]
301
302[Explanation]
303
304\`\`\`language
305// Code
306\`\`\`
307
308## Complete Example
309
310\`\`\`language
311// Full working code
312\`\`\`
313
314## Troubleshooting
315
316### [Common Error 1]
317[Solution]
318
319### [Common Error 2]
320[Solution]
321
322## What's Next
323
324- [Link to deeper dive]
325- [Link to related tutorial]
326- [CTA: Try it yourself]
327```
328
329### Comparison Post Template
330
331```markdown
332# [Tool A] vs [Tool B]: [Specific Use Case] ([Year])
333
334[1 paragraph: Who this comparison is for and what you'll learn]
335
336## Quick Comparison
337
338| Feature | Tool A | Tool B |
339|---------|--------|--------|
340| [Feature 1] | | |
341| [Feature 2] | | |
342| [Feature 3] | | |
343
344## When to Choose [Tool A]
345
346- [Scenario 1]
347- [Scenario 2]
348- [Scenario 3]
349
350## When to Choose [Tool B]
351
352- [Scenario 1]
353- [Scenario 2]
354- [Scenario 3]
355
356## Deep Dive: [Specific Aspect]
357
358### Tool A Approach
359[Explanation + code]
360
361### Tool B Approach
362[Explanation + code]
363
364## Our Recommendation
365
366[Specific guidance based on use case]
367```
368
369---
370
371## Measuring Content Success
372
373### Metrics to Track
374
375| Metric | What It Tells You |
376|--------|------------------|
377| **Page views** | Reach (but vanity without context) |
378| **Time on page** | Engagement (are they reading?) |
379| **Scroll depth** | Did they read to the end? |
380| **Bounce rate** | Did they find what they needed? |
381| **Search rankings** | SEO performance |
382| **Backlinks** | Authority and reference value |
383| **Social shares** | Resonance (especially HN, Twitter, Reddit) |
384| **Conversion events** | Sign-ups, installs, docs clicks |
385
386### Content → Conversion Path
387
388Track the journey:
3891. Search/social → Blog post
3902. Blog post → Docs / quickstart
3913. Docs → Sign up / install
3924. Sign up → Activation (first success)
393
394---
395
396## Tools
397
398| Tool | Use Case |
399|------|----------|
400| **[Octolens](https://octolens.com)** | Monitor where your content gets shared (HN, Reddit, Twitter). Track competitor content performance. Find content ideas from developer conversations. |
401| **Grammarly / Hemingway** | Readability and grammar checking |
402| **Carbon / Ray.so** | Beautiful code screenshots |
403| **Excalidraw** | Technical diagrams |
404| **Loom** | Quick video walkthroughs |
405| **Ahrefs / SEMrush** | Keyword research and SEO tracking |
406| **Google Search Console** | Track search performance |
407
408---
409
410## Related Skills
411
412- `developer-audience-context` — Foundation for knowing your readers
413- `technical-tutorials` — Deep dive into step-by-step content
414- `developer-newsletter` — Distributing content via email
415- `developer-seo` — Technical SEO optimization
416- `hacker-news-strategy` — Sharing content on HN effectively
417
418## Limitations
419
420- Use this skill only when the task clearly matches its upstream source and local project context.
421- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
422- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.