skills/tech-writing/SKILL.md
Write a single rigorous mid-to-long-form technical blog article from a user topic, writing intent, draft prompt, or tech-planner handoff. Use this skill for professional engineering articles, architecture explainers, mechanism deep dives, production postmortems, technology comparisons, framework/API analysis, and article drafting requests that require a falsifiable thesis, concrete technical anchors, diagrams, and anti-AI-slop validation. Do NOT use for multi-article series planning, general content calendars, marketing copy, API reference documentation, or short social posts.
npx skillsauth add Refinex-Space/Refinex-Skills tech-writingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Write one professional technical blog article at the level of Meituan Tech Blog, Anthropic Engineering Blog, or OpenAI Developer Blog. The article must make a falsifiable technical claim, prove it with concrete anchors, and avoid encyclopedic, template-shaped, AI-flavored prose.
Default output is Chinese. Preserve English for technical terms, API names, class names, config keys, error names, protocol names, commands, and version identifiers.
Do not start Phase 2 drafting until Phase 1 has produced an Anchor Sheet and the user has explicitly confirmed it. A complete prompt from tech-planner may compress Phase 1, but it never removes the confirmation gate.
If the user asks to "just write it" before the Anchor Sheet is confirmed, explain that this skill requires a brief pre-writing confirmation and present the shortest viable Anchor Sheet.
Start by reading references/prewriting-protocol.md.
Produce an initial Anchor Sheet instead of asking generic open-ended questions. Use the user's request, any supplied tech-planner prompt, and targeted research to fill six dimensions:
references/narrative-strategies.md, or a justified hybrid.Use current sources when facts may have changed, when library/API behavior matters, or when the article depends on version-specific details. Use Context7 MCP for library/API documentation when available; use web search/fetch for official docs, release notes, issue discussions, benchmarks, and primary sources.
Expose weak spots. If anchors are missing or the thesis is not falsifiable, do not hide the gap with confident prose. Offer three concrete options: user supplies missing facts, you run targeted research, or you narrow the scope.
End Phase 1 by showing the complete Anchor Sheet and asking: "以上是本文的写作蓝图,是否可以开始撰写?" Stop there until the user confirms.
Draft only from the confirmed Anchor Sheet.
Follow the selected narrative strategy. Do not silently switch strategies; if the strategy no longer fits, return to Phase 1 and ask for confirmation of the revised Anchor Sheet.
Apply these non-negotiables:
mermaid-diagrams skill for Mermaid diagrams. Diagrams must answer specific reader questions, not decorate the article.Read references/language-standard.md before drafting if tone, titles, or AI-flavored prose are at risk. Read references/diagram-guide.md before writing diagrams.
Before delivering the article, read references/quality-checklist.md and run the checklist as an executable loop:
Use references/anti-patterns.md whenever a language or structure problem is ambiguous. First drafts often fail two or three gates; treat that as normal and revise.
If the input is a tech-planner prompt, read references/tech-planner-handoff.md.
Convert the prompt into an Anchor Sheet, mark which fields are already satisfied, call out missing anchors or version ambiguity, and request confirmation. Do not re-plan the whole series. Do not skip Phase 1.
Read only what the current task needs:
references/prewriting-protocol.md — Phase 1 Anchor Sheet protocol and confirmation rules.references/narrative-strategies.md — strategy library for non-template article structures.references/anti-patterns.md — AI writing symptoms, detection methods, fixes, and bad/good examples.references/quality-checklist.md — Phase 3 validation gates.references/language-standard.md — title, tone, transition, ending, and evidence language standards.references/diagram-guide.md — visual planning and Mermaid selection guidance.references/tech-planner-handoff.md — compressed Phase 1 for complete planning prompts.references/test-cases.md — representative forward-testing prompts.When delivering the article, include:
Do not include the full Anchor Sheet in the final article unless the user asks for it.
development
Deep initialization of project AGENTS.md hierarchy and control plane for AI coding agents. Use this skill whenever the user wants to set up, initialize, bootstrap, or create AGENTS.md / CLAUDE.md files for their project, or when they mention "init-deep", "harness setup", "control plane", "agent context", "project initialization for agents", or want to make their codebase agent-ready. Also trigger when a user says things like "set up my repo for Claude Code", "make this project work better with agents", "create agent instructions", "bootstrap harness", or "initialize agent docs". This skill handles both existing large codebases (where hierarchical, module-scoped AGENTS.md files are needed) and new/small projects (where brainstorming with the user comes first). Do NOT use this skill for routine code changes, bug fixes, or general documentation — it is specifically for creating the structured agent control plane.
development
Detect and fix drift in project AGENTS.md files and agent control plane. Use this skill whenever the user wants to audit, recalibrate, refresh, update, or fix their existing AGENTS.md files, or when they mention "drift", "stale AGENTS.md", "outdated agent instructions", "recalibrate", "sync agents", "audit control plane", "AGENTS.md is wrong/old/broken", or when they suspect their agent harness has fallen out of sync with the codebase. Also trigger when a user says things like "my agents keep making wrong assumptions", "Claude doesn't understand the new structure", "we refactored but the AGENTS.md is old", "check if my AGENTS.md is still accurate", or "update my agent docs". This skill is the companion to init-deep — init-deep creates the control plane from scratch, drift-doctor maintains it over time. Do NOT use for initial creation of AGENTS.md (use init-deep instead). Do NOT use for general code review or documentation updates unrelated to agent context.
development
Use when adding, fixing, reviewing, or generating code comments, docstrings, Javadoc, JSDoc/TSDoc, rustdoc, SQL comments, or documentation comments for source, markup, configuration, or database files.
development
Enforce production-grade Java development standards when writing, reviewing, or architecting Java code. Covers commenting, core Java idioms (Stream, collections, concurrency, generics), 23 GoF design patterns, SonarQube/Alibaba p3c/Lombok rules, Spring Boot MVC structure, Spring Cloud DDD microservices, MyBatis/JPA/transaction management, exception handling, logging, REST API design, testing, and security. Trigger whenever the user writes Java code, reviews Java code, designs a Spring Boot or Spring Cloud project, implements a design pattern, fixes code smells, discusses architecture, or asks about Java best practices. Also trigger when Java code is pasted for feedback or the user asks about package structure, DTO/VO/PO conventions, or coding standards.