jpskill.com
✍️ ライティング コミュニティ

adev-writing-guide

Comprehensive writing guide for Angular documentation (adev). Covers Google Technical Writing standards, Angular-specific markdown extensions, code blocks, and components. You MUST use this skill any time you plan to create, edit, or review documentation files in `adev/` or `adev/src/content`.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o adev-writing-guide.zip https://jpskill.com/download/22421.zip && unzip -o adev-writing-guide.zip && rm adev-writing-guide.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22421.zip -OutFile "$d\adev-writing-guide.zip"; Expand-Archive "$d\adev-writing-guide.zip" -DestinationPath $d -Force; ri "$d\adev-writing-guide.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して adev-writing-guide.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → adev-writing-guide フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Angular ドキュメント (adev) 執筆ガイド

このスキルは、adev/src/content 内のコンテンツを作成するための包括的なガイドラインを提供します。Google の技術文書執筆基準と、Angular 固有の Markdown 規約、コンポーネント、ベストプラクティスを組み合わせています。

I. Google 技術文書執筆ガイドライン

トーンとコンテンツ

  • 会話的で親しみやすい: 親切でありながらプロフェッショナルなトーンを保ちます。過度にくだけた表現は避けてください。
  • アクセスしやすい記述: 英語を母国語としない人を含む、多様なグローバルオーディエンスが理解できるドキュメントであることを確認してください。
  • 読者第一: システムが何をするかだけでなく、ユーザーが何をすべきかに焦点を当ててください。
  • 事前発表の回避: 未リリースの機能に言及したり、根拠のない主張をしたりしないでください。
  • 説明的なリンクテキストの使用: リンクテキストは、リンク先のコンテンツを明確に示すようにしてください(例:「ここをクリック」は避けてください)。

言語と文法

  • 二人称(「あなた」)の使用: 読者に直接語りかけてください。
  • 能動態を推奨: 誰が、または何が行動を実行しているかを明確に述べてください(例:「システムがトークンを生成します」対「トークンが生成されます」)。
  • 標準アメリカ英語: 標準的なアメリカのスペルと句読点を使用してください。
  • 条件節を先に: 命令の前に「もし〜ならば」または「〜するとき」の節を配置してください(例:「エラーが発生した場合は、ログを確認してください」)。
  • 用語の定義: 新しい用語やなじみのない用語/頭字語は、最初に使用する際に定義してください。
  • 一貫した用語: ドキュメント全体で、同じ概念には同じ用語を使用してください。
  • 簡潔さ: 1つの文に1つのアイデアを目指してください。文は短く保ってください。

書式設定と構成

  • 見出しは文頭大文字: タイトルと見出しでは、最初の単語と固有名詞のみを大文字にしてください。
  • リスト:
    • 番号付きリスト: 順序のある手順や優先順位のある項目に使用してください。
    • 箇条書きリスト: 順序のない項目のコレクションに使用してください。
    • 定義リスト: 用語と定義のペアに使用してください。
  • 連続するコンマ: オックスフォードコンマ(3つ以上の項目のリストで、最後の項目の前にコンマを打つ)を使用してください。
  • コードの書式設定: コード関連のテキスト(ファイル名、変数、コマンド)にはコードフォントを使用してください。
  • UI 要素: ユーザーインターフェース要素は太字で書式設定してください。
  • 日付の書式設定: 曖昧さのない形式を使用してください(例:「2024年9月4日」ではなく「9/4/2024」)。
  • 構造: 明確な導入とナビゲーションを備えた論理的な階層を使用してください。見出しは可能な限りタスクベースにしてください。

画像とコードサンプル

  • 画像: 理解を深めるために、シンプルで明確なイラストを使用してください。
  • キャプション: 画像を補足するキャプションを記述してください。
  • コードサンプル:
    • コードが正しく、エラーなしでビルドされることを確認してください。
    • 言語固有の規約に従ってください。
    • コメント: _何_ではなく_なぜ_に焦点を当ててください。明白なコードへのコメントは避けてください。

参照階層

  1. プロジェクト固有のスタイルガイドライン(CONTRIBUTING.md などに存在する場合)。
  2. Google Developer Documentation Style Guide。
  3. Merriam-Webster(スペル)。
  4. Chicago Manual of Style(非技術系)。
  5. Microsoft Writing Style Guide(技術系)。

II. Angular ドキュメントの具体例

コードブロック

シンタックスハイライトには適切な言語識別子を使用してください。

  • TypeScript (Angular): TypeScript コード例にインラインテンプレートが含まれる場合は angular-ts を使用してください。
  • HTML (Angular): Angular テンプレートには angular-html を使用してください。
  • TypeScript (汎用): プレーンな TypeScript には ts を使用してください。
  • HTML (汎用): プレーンな HTML には html を使用してください。
  • シェル/ターミナル: shell または bash を使用してください。
  • Mermaid ダイアグラム: mermaid を使用してください。

属性

言語識別子の後に中括弧 {} で属性を追加することで、コードブロックを強化できます。

  • header="Title": コードブロックにタイトルを追加します。
  • linenums: 行番号を有効にします。
  • highlight="[1, 3-5]": 特定の行をハイライト表示します。
  • hideCopy: コピーボタンを非表示にします。
  • prefer: 推奨される例としてコードをマークします(緑色の枠線/チェック)。
  • avoid: 避けるべき例としてコードをマークします(赤色の枠線/バツ)。

例:

```angular-ts {header:"My Component", linenums, highlight="[2]"}
@Component({
  selector: 'my-app',
  template: '<h1>Hello</h1>',
})
export class App {}
```

<docs-code> コンポーネント

より高度なコードブロック機能には、<docs-code> コンポーネントを使用してください。

  • path: ソースファイルへのパス(例: adev/src/content/examples/...)。
  • header: カスタムヘッダーテキスト。
  • language: 言語識別子(例: angular-ts)。
  • linenums: 真偽値属性。
  • highlight: 行番号/範囲の配列(例: [[3,7], 9])。
  • diff: 差分ファイルへのパス。
  • visibleLines: 最初に表示する行の範囲(折りたたみ可能)。
  • region: ソースファイルから抽出する領域。
  • preview: 真偽値。ライブプレビューをレンダリングします(StackBlitz)。スタンドアロンの例でのみ機能します。
  • hideCode: 真偽値。デフォルトでコードを折りたたみます。

複数ファイル例:

<docs-code-multifile path="..." preview>
  <docs-code path="..." />
  <docs-code path="..." />
</docs-code-multifile>

アラート / 注意書き

アラートには、コロンの後に特定のキーワードを使用してください。これらはスタイル付きブロックとしてレンダリングされます。

  • NOTE:: 補足情報用。
  • TIP:: 役立つヒントやショートカット用。
  • IMPORTANT:: 重要な情報用。
  • CRITICAL:: データ損失や重大な問題の可能性に関する警告用。
  • TODO: 未完成のドキュメント用。
  • QUESTION:: 読者に質問を投げかけるため。
  • SUMMARY:: セクションの要約用。
  • TLDR:: 簡潔な要約用。
  • HELPFUL:: ベストプラクティス用。

例:

TIP: `ng serve` を使用してアプリケーションをローカルで実行してください。

カスタムコンポーネント

  • カード (<docs-card>):
    • <docs-card-container> の中に配置する必要があります。
    • 属性: title, link, href
  • コールアウト (<docs-callout>):
    • 属性: title, important, critical
  • ピル (<docs-pill>):
    • <docs-pill-row> の中に配置する必要があります。
    • 属性: title, href
  • ステップ / ワークフロー (<docs-step>):
    • <docs-workflow> の中に配置する必要があります。
    • 属性: title
  • タブ (<docs-tab>):
    • <docs-tab-group> の中に配置する必要があります。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Angular Documentation (adev) Writing Guide

This skill provides comprehensive guidelines for authoring content in adev/src/content. It combines Google's technical writing standards with Angular-specific markdown conventions, components, and best practices.

I. Google Technical Writing Guidelines

Tone and Content

  • Be conversational and friendly: Maintain a helpful yet professional tone. Avoid being overly casual.
  • Write accessibly: Ensure documentation is understandable to a diverse global audience, including non-native English speakers.
  • Audience-first: Focus on what the user needs to do, not just what the system does.
  • Avoid pre-announcing: Do not mention unreleased features or make unsupported claims.
  • Use descriptive link text: Link text should clearly indicate the destination (e.g., avoid "click here").

Language and Grammar

  • Use second person ("you"): Address the reader directly.
  • Prefer active voice: Clearly state who or what is performing the action (e.g., "The system generates a token" vs "A token is generated").
  • Standard American English: Use standard American spelling and punctuation.
  • Conditional clauses first: Place "if" or "when" clauses before the instruction (e.g., "If you encounter an error, check the logs").
  • Define terms: Introduce new or unfamiliar terms/acronyms upon first use.
  • Consistent terminology: Use the same term for the same concept throughout the document.
  • Conciseness: Aim for one idea per sentence. Keep sentences short.

Formatting and Organization

  • Sentence case for headings: Capitalize only the first word and proper nouns in titles and headings.
  • Lists:
    • Numbered lists: Use for sequential steps or prioritized items.
    • Bulleted lists: Use for unordered collections of items.
    • Description lists: Use for term-definition pairs.
  • Serial commas: Use the Oxford comma (comma before the last item in a list of three or more).
  • Code formatting: Use code font for code-related text (filenames, variables, commands).
  • UI Elements: formatting user interface elements in bold.
  • Date formatting: Use unambiguous formats (e.g., "September 4, 2024" rather than "9/4/2024").
  • Structure: Use logical hierarchy with clear introductions and navigation. Headings should be task-based where possible.

Images and Code Samples

  • Images: Use simple, clear illustrations to enhance understanding.
  • Captions: Write captions that support the image.
  • Code Samples:
    • Ensure code is correct and builds without errors.
    • Follow language-specific conventions.
    • Comments: Focus on why, not what. Avoid commenting on obvious code.

Reference Hierarchy

  1. Project-specific style guidelines (if any exist in CONTRIBUTING.md or similar).
  2. Google Developer Documentation Style Guide.
  3. Merriam-Webster (spelling).
  4. Chicago Manual of Style (non-technical).
  5. Microsoft Writing Style Guide (technical).

II. Angular Documentation Specifics

Code Blocks

Use the appropriate language identifier for syntax highlighting:

  • TypeScript (Angular): Use angular-ts when TypeScript code examples contain inline templates.
  • HTML (Angular): Use angular-html for Angular templates.
  • TypeScript (Generic): Use ts for plain TypeScript.
  • HTML (Generic): Use html for plain HTML.
  • Shell/Terminal: Use shell or bash.
  • Mermaid Diagrams: Use mermaid.

Attributes

You can enhance code blocks with attributes in curly braces {} after the language identifier:

  • header="Title": Adds a title to the code block.
  • linenums: Enables line numbering.
  • highlight="[1, 3-5]": Highlights specific lines.
  • hideCopy: Hides the copy button.
  • prefer: Marks code as a preferred example (green border/check).
  • avoid: Marks code as an example to avoid (red border/cross).

Example:

```angular-ts {header:"My Component", linenums, highlight="[2]"}
@Component({
  selector: 'my-app',
  template: '<h1>Hello</h1>',
})
export class App {}
```

<docs-code> Component

For more advanced code block features, use the <docs-code> component:

  • path: Path to a source file (e.g., adev/src/content/examples/...).
  • header: Custom header text.
  • language: Language identifier (e.g., angular-ts).
  • linenums: Boolean attribute.
  • highlight: Array of line numbers/ranges (e.g., [[3,7], 9]).
  • diff: Path to diff file.
  • visibleLines: Range of lines to show initially (collapsible).
  • region: Region to extract from source file.
  • preview: Boolean. Renders a live preview (StackBlitz). Only works with standalone examples.
  • hideCode: Boolean. Collapses code by default.

Multifile Example:

<docs-code-multifile path="..." preview>
  <docs-code path="..." />
  <docs-code path="..." />
</docs-code-multifile>

Alerts / Admonitions

Use specific keywords followed by a colon for alerts. These render as styled blocks.

  • NOTE: For ancillary information.
  • TIP: For helpful hints or shortcuts.
  • IMPORTANT: For crucial information.
  • CRITICAL: For warnings about potential data loss or severe issues.
  • TODO: For incomplete documentation.
  • QUESTION: To pose a question to the reader.
  • SUMMARY: For section summaries.
  • TLDR: For concise summaries.
  • HELPFUL: For best practices.

Example:

TIP: Use `ng serve` to run your application locally.

Custom Components

  • Cards (<docs-card>):
    • Must be inside <docs-card-container>.
    • Attributes: title, link, href.
  • Callouts (<docs-callout>):
    • Attributes: title, important, critical.
  • Pills (<docs-pill>):
    • Must be inside <docs-pill-row>.
    • Attributes: title, href.
  • Steps / Workflow (<docs-step>):
    • Must be inside <docs-workflow>.
    • Attributes: title.
  • Tabs (<docs-tab>):
    • Must be inside <docs-tab-group>.
    • Attributes: label.
  • Videos (<docs-video>):
    • Attributes: src (YouTube embed URL), alt.

Images

Use standard markdown syntax with optional attributes for sizing and loading behavior.

  • #small, #medium: Append to image URL for sizing.
  • {loading: 'lazy'}: Add attribute for lazy loading.

Example:

![Alt Text](path/to/image.png#medium {loading: 'lazy'})

Headers

  • Use markdown headers (#, ##, ###).
  • Ensure a logical hierarchy (don't skip levels).
  • h2 and h3 are most common for content structure.