Communityライティング&編集github.com

dogmatiq/writing-prose

Dogmatiqプロジェクトにおける散文の作成、編集、レビューに使用します。README、ADR、用語集、変更履歴などのマークダウンドキュメントや、あらゆる言語のコード内のdocコメントが対象です。

writing-prose とは?

このスキルは、Dogmatiqプロジェクト内で散文の品質を維持するために設計されています。README、ADR、用語集、変更履歴などのマークダウンドキュメント、およびあらゆるプログラミング言語のコード内のdocコメントに対して、文体、句読法、スペル、ファイル名、リンクスタイルなど、一貫性のあるルールを適用します。特にUS英語のスペルを標準とし、絵文字ダッシュの使用法や参照リンクのフォーマットなど、細かなスタイル規則を定義します。このスキルは、経験豊富なエンジニアが他のエンジニア向けに書く、リラックスしながらも正確なトーンを推奨します。レビューモードでは、各ルールに違反するテキストを特定し、修正案を提示します。主にClaude CodeやCursorなどのAIエージェントが、Dogmatiqプロジェクトのドキュメントやコードコメントをレビュー・編集する際に活用されます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/dogmatiq/agent-config/tree/HEAD/internal/.apm/skills/writing-prose

Installed? Explore more ライティング&編集 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Writing Prose

These rules apply to markdown documentation and to doc comments in code, in any language. Rules marked "markdown only" don't apply to doc comments. In those areas, doc comments follow the conventions of their language, such as Go's [Name] doc links. Skills for particular kinds of document, such as ADRs and glossaries, add their own rules on top of these.

Tone

Relaxed but precise. Write as an experienced engineer explaining the topic to another engineer. Avoid overly formal specification language. Prefer clear, natural explanations that remain technically accurate. The tone should be approachable and conversational, but not casual.

Assume readers have an intermediate understanding of software development but may not know Dogmatiq projects or the document's domain. Avoid jargon, and explain any technical terms the document needs. Picture the reader as an application developer with about five years of professional experience, who knows Go but has little background in algorithms or mathematics.

File names (markdown only)

Use lowercase file names, such as glossary.md, unless an external convention requires otherwise, such as LICENSE or README.md.

Line wrapping (markdown only)

Reflow each paragraph so that every line fits as many words as possible within 80 characters.

Punctuation

  • Use straight quotes and apostrophes (", ') in prose, never curly ones. Non-ASCII characters are fine in code blocks and formulas.
  • Write em dashes with a space on each side, as in word — word.
  • Use an em dash, not hyphens, as a parenthetical separator.
  • Use an em dash for an apposition that defines a term, in lists and in paragraphs. Don't use colons, semicolons or parentheses for this.
  • Consider restructuring sentences or paragraphs that contain many em dashes.
  • Use semicolons sparingly, for contrast (A; B does not), qualification (A; however B) or logical consequence (A; therefore B). Prefer a period if the clauses read naturally as two separate sentences.
  • Replace a double hyphen (--) in prose with an em dash where appropriate. Otherwise, suggest the correct punctuation.

Spelling

Use US English. When in doubt, follow go.dev, the Go standard library documentation, or the AWS and GCP documentation.

US (correct)Not US (incorrect)
analyzeanalyse
behaviorbehaviour
canceledcancelled
centercentre
colorcolour
initializeinitialise
labeledlabelled
serializeserialise

Reference links (markdown only)

  • Use reference-style links, never inline links.
  • Put the link definitions at the bottom of the file, in groups that each start with a labeling HTML comment, such as <!-- references --> or <!-- anchors -->.
  • Sort each group alphabetically by label. The exception is the version links in a CHANGELOG.md, which stay in ascending version order, so [0.9.0] comes before [0.10.0].
  • When a linked term appears in plural form, add a separate definition for the plural, such as [instructions]: #instruction, so the source reads naturally.
  • Every definition must be used at least once. Remove unused definitions.
  • Every reference must have a matching definition. Don't leave broken references.

Reviewing

Check the text against every rule above. For each problem, quote the text, name the rule it breaks, and suggest a correction.

関連スキル