跳到正文
cccskills
免费在 GitHub 公开

documentation

Write and edit gh-aw documentation using Diátaxis, a framework that separates learning, task instructions, reference, and explanations. Apply Astro Starlight Markdown conventions while keeping examples focused and removing repeated or unnecessary content.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Write concise Diataxis docs for gh-aw with Starlight markdown conventions.

查看安装方法

适用场景

  • Write a beginner tutorial with a working result
  • Create a guide for a specific task
  • Standardize CLI and API reference pages
  • Trim repetitive documentation

包含的文件(1)

  • SKILL.md7.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Documentation

Documentation lives in docs/, uses GitHub-flavored Markdown, renders with Astro Starlight, and follows Diátaxis.

Diátaxis Framework

Organize documentation into four Diátaxis types:

1. Tutorials (Learning-Oriented)

Purpose: Guide beginners through achieving a specific outcome to build confidence.

  • Start with what the user will build or achieve
  • Provide a clear, step-by-step path from start to finish
  • Include concrete examples and working code
  • Assume minimal prior knowledge
  • Focus on the happy path (avoid edge cases and alternatives)
  • End with a working result the user can see and use
  • Use imperative mood: "Create a file", "Run the command"

Avoid: Explaining concepts in depth, multiple options, troubleshooting

2. How-to Guides (Goal-Oriented)

Purpose: Show how to solve a specific real-world problem or accomplish a particular task.

  • Title format: "How to [accomplish specific goal]"
  • Assume the user knows the basics
  • Focus on practical steps to solve one problem
  • Include necessary context but stay focused
  • Show multiple approaches only when genuinely useful
  • End when the goal is achieved
  • Use imperative mood: "Configure the setting", "Add the following"

Avoid: Teaching fundamentals, explaining every detail, being exhaustive

3. Reference (Information-Oriented)

Purpose: Provide accurate, complete technical descriptions of the system.

  • Organized by structure (CLI commands, configuration options, API endpoints)
  • Comprehensive and authoritative
  • Consistent format across all entries
  • Technical accuracy is paramount
  • Include all parameters, options, and return values
  • Use descriptive mood: "The command accepts", "Returns a string"
  • Minimal narrative or explanation

Avoid: Instructions, tutorials, opinions on usage

4. Explanation (Understanding-Oriented)

Purpose: Clarify and illuminate topics to deepen understanding.

  • Discuss why things are the way they are
  • Explain design decisions and tradeoffs
  • Provide context and background
  • Connect concepts to help form mental models
  • Discuss alternatives and their implications
  • Use indicative mood: "This approach provides", "The engine uses"

Avoid: Step-by-step instructions, exhaustive reference material

General Style Guidelines

  • Tone: Neutral, technical, not promotional
  • Voice: Avoid "we", "our", "us" (use "the tool", "this command")
  • Headings: Use markdown heading syntax, not bold text as headings
  • Lists: Avoid long bullet point lists; prefer prose with structure
  • Code samples: Minimal and focused; exclude optional fields unless relevant
  • Language tag: Use aw for agentic workflow snippets with YAML frontmatter

Example workflow code block:

on: push
# Your workflow steps here

GitHub-Flavored Markdown Syntax

Documentation files use GitHub-flavored markdown with Astro Starlight for rendering. Key syntax elements:

Frontmatter

Every documentation page must have frontmatter:

title: Page Title
description: Brief description for SEO and navigation

GitHub Alerts

Use GitHub's alert syntax for notes, tips, warnings, and cautions:

> [!NOTE]
> Important information the reader should notice.

> [!TIP]
> Helpful advice for the reader.

> [!WARNING]
> Warning about potential issues or pitfalls.

> [!CAUTION]
> Critical warning about dangerous operations.

> [!IMPORTANT]
> Key information users need to know.

Code Blocks

  • Use syntax highlighting with language tags
  • Add title attribute for file names: ```yaml title=".github/workflows/example.yml"
  • Use aw language for agentic workflow files with YAML frontmatter
  • Add wrap for line wrapping: ```aw wrap

Links

  • Internal links: Use relative paths between documentation pages
  • External links: Open in new tab automatically
  • Link text: Use descriptive text, avoid "click here"

Tabs

Use tabs for showing alternatives (e.g., different languages, platforms):

import { Tabs, TabItem } from '@astrojs/starlight/components';

<Tabs>
  <TabItem label="npm">
    ```bash
    npm install package
    ```
  </TabItem>
  <TabItem label="yarn">
    ```bash
    yarn add package
    ```
  </TabItem>
</Tabs>

Cards

Use cards for navigation or highlighting multiple options:

import { Card, CardGrid } from '@astrojs/starlight/components';

<CardGrid>
  <Card title="Getting Started" icon="rocket">
    Quick introduction to the basics.
  </Card>
  <Card title="Advanced Usage" icon="setting">
    Deep dive into advanced features.
  </Card>
</CardGrid>

Remember: Keep components minimal. Prefer standard markdown when possible.

Content to Avoid

  • "Key Features" sections
  • Marketing language or selling points
  • Excessive bullet points (prefer structured prose)
  • Overly verbose examples with all optional parameters
  • Mixing documentation types (e.g., tutorials that become reference)

Avoiding Documentation Bloat

Documentation bloat reduces clarity and makes content harder to navigate. Common types of bloat include:

Types of Documentation Bloat

  1. Duplicate content: Same information repeated in different sections
  2. Excessive bullet points: Long lists that could be condensed into prose or tables
  3. Redundant examples: Multiple examples showing the same concept
  4. Verbose descriptions: Overly wordy explanations that could be more concise
  5. Repetitive structure: The same "What it does" / "Why it's valuable" pattern overused

Writing Concise Documentation

When editing documentation, focus on:

Consolidate bullet points:

  • Convert long bullet lists into concise prose or tables
  • Remove redundant points that say the same thing differently

Eliminate duplicates:

  • Remove repeated information
  • Consolidate similar sections

Condense verbose text:

  • Make descriptions more direct and concise
  • Remove filler words and phrases
  • Keep technical accuracy while reducing word count

Standardize structure:

  • Reduce repetitive "What it does" / "Why it's valuable" patterns
  • Use varied, natural language

Simplify code samples:

  • Remove unnecessary complexity from code examples
  • Focus on demonstrating the core concept clearly
  • Eliminate boilerplate or setup code unless essential for understanding
  • Keep examples minimal yet complete
  • Use realistic but simple scenarios

Example: Before and After

Before (Bloated):

### Tool Name
Description of the tool.

- **What it does**: This tool does X, Y, and Z
- **Why it's valuable**: It's valuable because A, B, and C
- **How to use**: You use it by doing steps 1, 2, 3, 4, 5
- **When to use**: Use it when you need X
- **Benefits**: Gets you benefit A, benefit B, benefit C
- **Learn more**: [Link](url)

After (Concise):

### Tool Name
Description of the tool that does X, Y, and Z to achieve A, B, and C.

Use it when you need X by following steps 1-5. [Learn more](url)

Documentation Quality Guidelines

  1. Preserve meaning: Never lose important information
  2. Be surgical: Make precise edits, don't rewrite everything
  3. Maintain tone: Keep the neutral, technical tone
  4. Test locally: Verify links and formatting are still correct

Structure by File Type

  • Getting Started: Tutorial format
  • How-to Guides: Goal-oriented, one task per guide
  • CLI Reference: Reference format, complete command documentation
  • Concepts: Explanation format, building understanding
  • API Reference: Reference format, complete API documentation

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Coordinate work across AI agents with shared rules for locating team files, recording decisions and their reasons, and requesting help. It also defines who owns revisions after a reviewer rejects an artifact.

中文简介正在准备中。当前显示英语简介。

  • Locate team files across separate working directories
  • Record decisions that affect other agents
  • Request input from another specialist
github/gh-aw54212026年10月19日 更新

Set shared development rules for an agent team: keep specific agent names out of product code, tests, and CI configuration, verify affected tests before finishing, and record lessons learned from mistakes.

中文简介正在准备中。当前显示英语简介。

  • Share development rules across multiple agents
  • Keep team-specific agent names out of code and tests
  • Check affected tests before declaring work complete
github/gh-aw54212026年10月19日 更新

Routes requests to design, create, update, debug, or upgrade GitHub Agentic Workflows to the appropriate instructions. It helps the agent select a workflow-specific procedure and apply any additional rules defined for the repository.

中文简介正在准备中。当前显示英语简介。

  • Designing a new workflow through questions
  • Investigating failed runs and recurring errors
  • Upgrading workflows and addressing deprecations
github/gh-aw54212026年10月19日 更新

Prepare architecture proposals before implementation so the team can agree on a direction. Organize evidence, technical choices, effects on existing work, risks, and the first release’s scope into a document with clear recommendations and decision owners.

中文简介正在准备中。当前显示英语简介。

  • Proposing a major architecture change
  • Replanning milestones after a foundation change
  • Comparing technical options before seeking approval
github/gh-aw54212026年10月19日 更新

Update the gh-aw-firewall version used by gh-aw, rebuild generated files, and review release notes and configuration schemas, which define valid settings. It guides related code and test updates while identifying follow-up work that remains.

中文简介正在准备中。当前显示英语简介。

  • Updating the firewall version used by gh-aw
  • Reviewing release notes for integration changes
  • Checking configuration schema differences
github/gh-aw54212026年10月19日 更新

Review git and gh operations in gh-aw workflows to check credential availability for each repository. Identify missing token handoffs, risky expansions of limited checkouts, and error handling needed where credentials are intentionally unavailable.

中文简介正在准备中。当前显示英语简介。

  • Reviewing git operations after repository checkout
  • Checking tokens for private cross-repository access
  • Reviewing sparse and shallow checkout changes
github/gh-aw54212026年10月19日 更新

查看 github 的全部技能

报告此技能的问题