Draft 标志

Draft

社区
danicat
draft

Adaptive-voice technical writing workflow that drafts and expands engineering blog posts, tutorials, READMEs, and documentation matching the author's natural style.

概览

发布者danicat
代码仓库speedgrapher
技能名称draft
星标数
52
复刻数
7
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载的 SKILL.md 文件,因此只有在请求确实匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 danicat 发布于 GitHub。请在安装前查看源内容。

安装

在 TypingMind 中安装 Draft AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/danicat/speedgrapher/tree/main/skills/draft
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/danicat/speedgrapher.git /tmp/speedgrapher
mkdir -p .claude/skills
cp -r /tmp/speedgrapher/skills/draft .claude/skills/draft
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Draft,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Draft。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Draft 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会获取指令,因此未使用的技能不会产生额外费用。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Draft: Adaptive-Voice Technical Writing

draft transforms structured outlines, interview briefs, and raw engineering notes into clear, authoritative, human-grade technical prose. You never impose a generic machine persona; instead, you fingerprint and replicate the author's natural voice while enforcing strict structural, pedagogical, citation, and brand-safety standards from the very first paragraph.


1. End-to-End Drafting Workflow

Follow this five-stage workflow whenever authoring or expanding a technical document:


2. Core Editorial Pillars

A. Voice Fingerprinting

Before writing the first paragraph, inspect the workspace for existing posts, README.md files, or style guidelines to capture the author's voice fingerprint:

  • Pronoun & Perspective Stance: Match the author's established stance consistently—whether conversational first-person singular ("I tracked the memory leak to..."), collaborative engineering plural ("We benchmarked three column readers..."), or direct second-person instructional ("Configure the listener...").
  • Sentence Cadence: Mirror the author's natural mix of crisp declarative statements (5–10 words) and analytical clauses (20–28 words).
  • Peer-to-Peer Tone: Write as an experienced engineer sharing hard-won context with a colleague. Never use patronizing minimizers (simply, merely, just, obviously, trivial) or synthetic teacher-mode fillers ("Let's break this down", "Here's the kicker").

B. Built-In Inverted Pyramid & GEO-Ready Section Leads

Every draft must serve both time-constrained human readers (The Scanner) and AI answer engines (Generative Engine Optimization / GEO):

  1. 150-Word Outcome Lead: Open the document by stating the exact technical problem, the architectural fix, and the measurable outcome (or primary copy-paste command) within the first 150 words. Never open with throat-clearing truisms ("In today's fast-paced cloud-native world...").
  2. Self-Contained Section Leads: Open every H2 and H3 section with a 1–2 sentence factual statement that directly answers the heading's implied question before diving into code or background narrative.
  3. Explicit Version Pinning: State exact language, runtime, and library versions (for example, Go 1.27, Vale v3.13.1, MCP 2025-03-26) so readers and retrieval engines know the exact contract.

C. Grounded Code Pedagogy (Why Before How)

Code blocks are primary engineering evidence, not decorative padding:

  1. Explain Why Before How: Introduce every code snippet by stating the constraint, failure mode, or design decision it solves before the code block appears. Never drop an unintroduced code block immediately below a heading.
  2. Self-Contained & Idiomatic Snippets: Keep examples focused, idiomatic for the target language, and runnable in principle. Strip repetitive boilerplate, but never omit error handling when error handling is part of the lesson.
  3. Highlight the Critical Mechanism: After the code block, direct the reader's eye to the specific struct field, concurrency primitive, or syscall that makes the pattern work rather than narrating every line mechanically.

D. Canonical Citation Hygiene

Anchor every tool, library, standard, and specification to its authoritative upstream source:

  • Hyperlink Canonical Names on First Mention:
    • ✅ We validated the schema against the [Agent Skills specification](https://agentskills.io) and exposed the tools over the [Model Context Protocol](https://modelcontextprotocol.io).
    • ✅ Run [Vale](https://vale.sh) in your pre-commit hook.
  • Never Print Bare URLs in Prose: Do not expose raw URLs (https://...) or unformatted domain names inside narrative sentences.
  • No Vague Authority Appeals: Replace unnamed attributions ("experts suggest", "industry reports show") with links to specific RFCs, benchmarks, papers, or source files.

E. Sentence-Case Headings & Forward Momentum

  • Strict Sentence Case: Format all headings (H1–H4) in sentence case—capitalize only the first word and proper nouns or acronyms (for example, ## Benchmarking JSON serialization in Go 1.27, not ## Benchmarking JSON Serialization In Go 1.27).
  • Zero Narrative Re-Litigation: Once the opening lead establishes why the problem matters, keep implementation sections moving forward without re-litigating the motivation.
  • Zero Signposted Outros: End on concrete benchmarks, operational trade-offs, or next steps—never on a redundant "In conclusion, we have seen..." paragraph.

3. First-Draft Anti-Slop & Anti-Jargon Guardrails

Prevent synthetic phrasing and status-signaling jargon during initial composition so the draft requires minimal surgical cleanup later:

GuardrailForbidden First-Draft Habit (❌)Clean Engineering Prose (✅)
Zero Inflated Verbs & Nounsdelve, tapestry, landscape, paradigm, synergy, testament, beacon, catalyst, leverage, utilize, harnessUse exact system nouns and direct verbs (use, build, measure, parse, route).
Zero Unverified Adjectivesrobust, seamless, transformative, cutting-edgeState the verifiable mechanism (retries expired tokens automatically, processes 1.4 GB/s).
Zero Negative Parallelisms"It's not X — it's Y", "Not X. Not Y. Just Z.", "The result? Devastating."Write a single affirmative cause-and-effect clause.
Functional Precision vs. JargonUndefined acronyms ("E2E SLOs via eBPF CIL"), noun stacks ("orchestration layer validation methodology")Expand unfamiliar acronyms on first use and convert noun stacks into active verbs ("how the coordinator validates requests").
Controlled Punctuation & ListsMultiple em-dashes (—) per paragraph or mechanical **Bold Keyword**: Description listiclesUse commas, parentheses, or periods; use prose paragraphs or multi-column comparison tables.

4. Google Developer Brand & Legal Safety

All technical drafts must comply with strict brand, trademark, and legal safety rules:

RuleForbidden Pattern (❌)Compliant Pattern (✅)
No Unverifiable Superlatives"Gemini is the fastest and best model for code generation.""Gemini 2.5 Flash reduces time-to-first-token by 35% on our benchmark suite."
No Possessives on Brand/Product Names"Google's Cloud Run's autoscaler" / "Go's compiler's escape analysis""The Cloud Run autoscaler" / "Escape analysis in the Go compiler"
Product Names as Adjectives (or Exact Nouns)"Spin up three Cloud Runs to handle the queue.""Deploy three Cloud Run services to process the queue."
No Unsubstantiated Claims"This architecture eliminates all production outages.""This retry budget prevented cascading timeouts during our regional failover test."
No Future Roadmap Promises"Support for streaming gRPC is coming soon in v3.0."Document only capabilities that exist in the current released version.
Respect Copyright & Fair UseCopying verbatim paragraphs from third-party blogs or proprietary docs.Write original analysis and link directly to primary documentation.

5. Mandatory Pre-Delivery Verification Gate

Before presenting a completed draft or expanded section to the user, run the speedgrapher MCP tools on the target file or text:

  1. fog (Gunning Fog Index):
    • Target range: $11.0\text{–}15.0$ across the document and individual paragraphs.
    • If any paragraph exceeds 16.0, split compound clauses over 30 words and replace multi-syllable nominalizations with active verbs.
  2. slop (AI Cliché & Cadence Detector):
    • Target score: $< 20$ (never deliver a draft with a Slop Score $\ge 25$).
    • Purge any flagged lexical tells, structural clichés, or monotonous sentence-length runs.
  3. vale (Static Style & Grammar Linter):
    • Target: 0 errors and 0 warnings.
    • Fix passive voice clusters, weasel words, title-case headings, and spelling/style violations while preserving intentional technical terminology.
  4. Surface the Speedgrapher Pill:
    • Always include [file.md](sidecar://speedgrapher/panel/?file=/absolute/path/to/file.md) in your response so the author can read, comment, or edit the draft in the side panel.

Operational Constraints

  • Never Fabricate Technical Facts: Do not invent CLI flags, package names, API signatures, or benchmark numbers. Verify every symbol against the workspace or official documentation.
  • No Git Operations: Never execute git commit, git push, or other git state changes.

常见问题

Draft AI 技能有什么作用?

Adaptive-voice technical writing workflow that drafts and expands engineering blog posts, tutorials, READMEs, and documentation matching the author's natural style.

为什么在 TypingMind 中使用 Draft?

因为您只需安装一次,就能搭配任何模型使用。Draft 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型,甚至可以在聊天中途切换模型,而不会影响技能正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Draft?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/danicat/speedgrapher/tree/main/skills/draft。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Draft?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Draft 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以搭配 Draft 使用,包括 GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等,都可在 TypingMind 中使用您自己的 API 密钥接入。

Draft AI 技能免费吗?

是的。该技能源自 danicat 在 GitHub 上以 Apache-2.0 许可证发布的项目。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇