technical-article-writer

bởi samber

Viết các bài báo kỹ thuật và bài đăng blog hấp dẫn cho đối tượng là nhà phát triển. Sử dụng kỹ năng này bất cứ khi nào người dùng yêu cầu viết một bài đăng blog, bài báo kỹ thuật hoặc bất kỳ nội dung kỹ thuật dài nào. Cũng kích hoạt khi người dùng nói 'viết về [chủ đề kỹ thuật]', 'giúp tôi soạn thảo một bài báo', 'biến nội dung này thành bài đăng blog', 'viết một bài đăng về', 'tôi muốn xuất bản nội dung gì đó về', hoặc đề cập đến việc viết cho đối tượng là nhà phát triển. Bao gồm toàn bộ quy trình: mài giũa

npx skills add https://github.com/samber/cc-skills --skill technical-article-writer

Technical Article Writer

Write technical articles that developers actually want to read. This skill combines structural frameworks from technical writing, hook engineering from copywriting, and practitioner-tested patterns for developer content.

Core philosophy

Most technical articles fail because of structural problems, not bad ideas: burying the lede, mixing content types, weak openings, no clear motivation, or trying to cover too much.

Developer audiences have a built-in BS detector. The best technical content leads with specificity and honesty. It sounds like a smart colleague explaining something interesting, not a marketer pitching. Acknowledge your expertise level, solve a specific problem, use real examples.


Workflow

Follow these phases in order. Each phase produces a concrete artifact the user reviews before moving on. Phase 1 is mandatory — always ask the user the intake questions and wait for answers before writing anything. If the user already provided some context, extract what you can and ask only about missing pieces.

Phase 1: Idea sharpening (interview)

Stop and ask. Before writing anything, present the intake questions below to the user and wait for their answers. Do not skip this phase, do not infer silently, and do not start drafting until you have explicit answers or confirmation on every item. Ask the user (or extract from context and confirm):

  1. Topic: What specific thing are you writing about?

  2. Objective: What's the primary goal of this article? Use AskUserQuestion to present these options (push back if the user picks more than one — a single primary CTA converts far better than competing asks):

    • Newsletter subscription / audience growth
    • Personal branding / thought leadership / authority in a niche
    • Product or service signup / free trial
    • Direct purchase
    • Lead generation (download, gated asset, whitepaper)
    • Demo or sales call booking
    • Community join (Discord, Slack, forum)
    • Engagement (reply, share, comment, restack)
    • Reader support (paid subscription, tip, sponsorship)
    • No conversion goal (purely informational / educational)

    The objective shapes the CTA, how much you give away vs. tease, and where conversion points sit. It will be passed directly to the copywriting-cta skill in Phase 5b.

  3. Audience: Who reads this? (junior devs, senior engineers, CTOs, general tech, DBA, frontend developer...)

  4. Content type: Which pattern fits? (see references/article-structures.md for full templates)

    • The Bug Hunt / We Rewrote It in X / How We Built It / Lessons Learned
    • Thoughts on Trends / Benchmark / Tutorial / Explainer
  5. Length target: Short (800-1200), Medium (1500-2500), Long (3000+)

  6. One-sentence thesis: The single claim or takeaway. If the user can't state this, help them.

If the user already provided most of this, extract from conversation and confirm. But if critical pieces are missing, stop and ask before proceeding. Don't guess at the audience, content type, or thesis. A wrong assumption here wastes an entire draft.

Specifically:

  • If the topic is vague ("write about Java performance"), ask what specific aspect and what the reader should walk away knowing.
  • If the audience is unclear, ask. A post for junior devs has a completely different structure than one for senior engineers.
  • If you can't infer a thesis, ask the user: "What's the one thing you want the reader to remember?" If they can't answer, help them find it through questions about what surprised them, what they'd tell a colleague, or what they wish they'd known earlier.
  • If the content type is ambiguous (could be a tutorial or an explainer), ask which experience the reader should have: following along hands-on, or building a mental model.

Only proceed to Phase 2 once you have enough clarity on topic, audience, content type, and thesis to write a coherent outline. It's cheaper to ask one question now than to rewrite 2000 words later.

Idea quality filters. Apply these before investing in a draft:

Julia Evans's heuristic: the best technical content comes from what you struggled with, not what you mastered. If the topic feels too "textbook", push toward the specific struggle, surprise, or counterintuitive finding.

Julian Shapiro's novelty filter. The idea should fit at least one:

  • Counter-intuitive: "I never realized the world worked that way"
  • Counter-narrative: "That's not how I was told it worked"
  • Shock and awe: "I had no idea that was possible"
  • Elegant articulation: "I always felt that way but couldn't put it into words"
  • Makes you feel seen: "Finally someone gets my experience"

If the idea doesn't pass any filter, say so. Help the user find the angle that does.

Phase 2: Title generation

Generate 10 title variants using different hook strategies. Read references/hooks-and-titles.md for the full framework of 10 hook types and headline formulas.

Constraints for developer audiences:

  • 7-12 words optimal for LinkedIn/B2B sharing
  • Specificity over cleverness ("How to profile Go allocations with pprof" > "Mastering Go Performance")
  • Numbers and data signal rigor
  • Avoid superlatives ("ultimate", "complete", "everything you need")
  • Technical keywords attract the right audience
  • Cognitive dissonance creates curiosity without clickbait

Present 10 titles ranked by assessment, with a brief note on why each works. Let the user pick or remix.

Phase 3: Hook and intro

Delegate the hook to the copywriting-hooks skill. Pass the topic, audience, language, content type, and length target from Phase 1. The skill will propose 3-4 hook options (2 candidates each) and wait for the user to pick. Do not write the hook yourself — let the skill run its full workflow.

After the user picks a hook, write the remaining intro (2-3 paragraphs) around it:

  1. Hook (chosen by the user via copywriting-hooks)
  2. Stakes (1-2 sentences): Why should the reader care? What's the cost of not knowing this?
  3. Promise (1 sentence): What will the reader gain by the end?

Address three reader objections:

  • Untrustworthy: Why should I listen to you? (credibility hook or specific experience)
  • Irrelevant: Why does this matter to me? (stakes)
  • Implausible: Will this actually deliver? (promise + specificity)

Anti-patterns to avoid:

  • Starting with a dictionary definition
  • "In today's fast-paced world..."
  • "Have you ever wondered..."
  • Burying the interesting part after 3 paragraphs of context
  • Explaining what the article will cover instead of demonstrating value

Phase 4: Body structure

Choose structure based on content type. Read references/article-structures.md for detailed templates per content type.

General structural principles:

  • One idea per section. If a section does two things, split it.
  • Show, then tell. Lead with the example, code snippet, or observation. Then explain.
  • Progressive disclosure. Start with the simplest version, then add complexity.
  • Every section earns the next. Each section should create enough momentum to pull the reader forward. If a section could be skipped, cut it.

For code-heavy articles:

  • Snippets < 20 lines, focused on one concept
  • Always show "before" (problem) and "after" (solution)
  • Annotate non-obvious lines
  • Link to repo for full code, show only the interesting parts inline

For opinion/analysis:

  • Steelman the opposing view before arguing against it
  • Concrete examples, not abstract reasoning
  • Quantify claims ("2x faster" not "much faster")

Phase 5: Draft the full article

Write the complete article. Interleave hook, body sections, and conclusion.

For the conclusion, avoid restating the article. Instead pick one of:

  • Implication: What does this mean for the reader's work going forward?
  • Open question: What's still unresolved or worth exploring?
  • Call to action: What should the reader do next?

Phase 5b: CTA

Delegate to the copywriting-cta skill. Pass the objective from Phase 1 as the primary objective. The skill will interview the user for any missing inputs (article context, audience relationship, funnel stage, mechanism) and produce the complete CTA recommendation — copy, form, mechanism, A/B test plan, and accessibility check.

Place the CTA output at the end of the article, after the conclusion. Do not write a CTA yourself.

Phase 5c: Humanize

Invoke a humanizer skill (e.g. "humanize", "humanizer", "de-slop", "natural writing check", "AI detection cleanup", "rewrite like a human") to strip AI-generated patterns — filler words, predictable cadence, over-hedging, hollow transitions, inflated language. Developer audiences have a built-in BS detector; AI-sounding prose kills trust before the reader reaches the technical content.

Preserve the hook and title. The opening hook (Phase 3) and title (Phase 2) were deliberately engineered for curiosity and credibility. Instruct the humanizer to leave them intact — rewriting them for "naturalness" destroys the copywriting structure that earns the click and the first scroll.

Phase 6: Image suggestions

After the draft is complete, suggest 1-3 images with specific placement in the article. For each image, provide:

  • Placement: Where in the article (e.g. "as the hero/cover image", "after the intro", "between section X and Y")
  • Purpose: What the image adds (break up a long text section, illustrate a concept, set the tone, visualize data)
  • Description: What the image should depict

Offer to generate a Midjourney prompt for each suggested image. If the user accepts, use the latest Midjourney model conventions to write the prompt. Use --ar 16:9 or --ar 3:1 for hero/cover images and wide illustrations (optimal for article headers), --ar 3:2 for smaller inline images. Refer to up-to-date Midjourney documentation for current prompt syntax and parameters.

Phase 7: Title finalization

Revisit titles from Phase 2. Now that the full piece exists, some titles fit better. Present top 3 with a recommendation.


Output format

Present the article in clean markdown with:

  • The chosen title as H1
  • A subtitle or meta-description (1 sentence)
  • The full article body
  • Image suggestions with placement notes (and Midjourney prompts if accepted)
  • A "Title alternatives" section at the end with 2-3 runner-up titles
  • A social teaser (only if the user accepted — offer after the draft, don't auto-generate)

Reference files

Read these when the corresponding phase needs more depth:

  • references/hooks-and-titles.md -- The 10 hook types, 6 copywriting frameworks (PAS, AIDA, BAB, FAB, PASTOR, 4Us), headline formulas, and research data. Read during Phase 2 and Phase 3.
  • references/article-structures.md -- Detailed templates for each of the 8 content types, Diataxis framework, structural anti-patterns, and transition techniques. Read during Phase 4.

Thêm skills từ samber

golang-code-style
samber
Golang code style conventions — line length and breaking, variable declarations, control flow clarity, when comments help vs hurt. Use when writing or reviewing Go code, asking about style or clarity, or establishing project coding standards. Not for naming conventions (→ See `samber/cc-skills-golang@golang-naming` skill), linter configuration (→ See `samber/cc-skills-golang@golang-lint` skill), or doc comments (→ See `samber/cc-skills-golang@golang-documentation` skill).
developmentcode-review
golang-testing
samber
Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI, or debugging flaky/slow tests. For testify-specific APIs see `samber/cc-skills-golang@golang-stretchr-testify`; for measurement methodology see...
developmenttestingcode-review
golang-design-patterns
samber
Các mẫu thiết kế Golang theo phong cách bản địa — tùy chọn hàm, hàm khởi tạo, luồng lỗi và xếp tầng, quản lý tài nguyên và vòng đời, tắt máy an toàn, khả năng phục hồi, kiến trúc, tiêm phụ thuộc, xử lý dữ liệu, truyền phát, v.v. Áp dụng khi lựa chọn rõ ràng giữa các mẫu kiến trúc, triển khai tùy chọn hàm, thiết kế API hàm khởi tạo, thiết lập tắt máy an toàn, áp dụng các mẫu phục hồi, hoặc hỏi mẫu Go bản địa nào phù hợp với một vấn đề cụ thể.
developmentdesigncode-review
golang-error-handling
samber
Idiomatic Golang error handling — creation, wrapping with %w, errors.Is/As, errors.Join, custom error types, sentinel errors, panic/recover, the single handling rule, structured logging with slog, HTTP request logging middleware, and samber/oops for production errors. Built to make logs usable at scale with log aggregation 3rd-party tools. Apply when creating, wrapping, inspecting, or logging errors in Go code. For samber/oops specifics → See `samber/cc-skills-golang@golang-samber-oops`...
developmentcode-review
golang-performance
samber
Các mẫu và phương pháp tối ưu hiệu năng Golang - nếu X là điểm nghẽn, thì áp dụng Y. Bao gồm giảm cấp phát, hiệu quả CPU, bố trí bộ nhớ, tinh chỉnh GC, pooling, caching, và tối ưu đường dẫn nóng. Sử dụng khi profiling hoặc benchmark đã xác định được điểm nghẽn và bạn cần mẫu tối ưu phù hợp để khắc phục. Cũng sử dụng khi thực hiện đánh giá mã hiệu năng để đề xuất cải tiến hoặc benchmark có thể giúp xác định các cải thiện hiệu năng nhanh chóng. Không dành cho phương pháp đo lường (→...
developmentcode-review
golang-security
samber
Các phương pháp bảo mật tốt nhất và phòng ngừa lỗ hổng cho Golang. Bao gồm injection (SQL, lệnh, XSS), mật mã học, an toàn hệ thống tệp, bảo mật mạng, cookie, quản lý bí mật, an toàn bộ nhớ và ghi nhật ký. Áp dụng khi viết, xem xét hoặc kiểm tra mã Go về bảo mật, hoặc khi làm việc trên bất kỳ mã rủi ro nào liên quan đến mật mã, I/O, quản lý bí mật, xử lý đầu vào người dùng hoặc xác thực. Bao gồm cấu hình các công cụ bảo mật.
securitycode-reviewdevelopment
golang-database
samber
Hướng dẫn toàn diện về truy cập cơ sở dữ liệu Go — truy vấn tham số hóa, quét struct, cột NULL, giao dịch, mức cô lập, SELECT FOR UPDATE, connection pool, xử lý hàng loạt, truyền context và công cụ migration. Sử dụng khi viết, xem xét hoặc gỡ lỗi mã Golang tương tác với PostgreSQL, MariaDB, MySQL hoặc SQLite; để kiểm thử cơ sở dữ liệu; hoặc cho các câu hỏi về database/sql, sqlx hoặc pgx. KHÔNG tạo lược đồ cơ sở dữ liệu hoặc SQL migration.
developmentdatabase
golang-lint
samber
Các phương pháp linting tốt nhất và cấu hình golangci-lint cho các dự án Golang — chạy linters, cấu hình .golangci.yml, loại bỏ cảnh báo bằng chỉ thị nolint, diễn giải đầu ra lint, và lựa chọn linters. Sử dụng khi cấu hình golangci-lint, hỏi về cảnh báo lint hoặc loại bỏ nolint, thiết lập công cụ chất lượng mã, hoặc chọn linters. Cũng sử dụng khi người dùng đề cập đến golangci-lint, go vet, staticcheck, hoặc revive.
developmentcode-reviewtesting