AgentSkillsCN

docs-structure

运用Page Object Model、稳定的选择器与恰当的等待机制,编写可靠的Playwright端到端测试。适用于使用e2e-runner创建或维护端到端测试时使用。

SKILL.md
--- frontmatter
name: docs-structure
description: Structure technical documentation for APIs, guides, and README. Use when writing docs, README, API references, or working with technical-writer.

Docs Structure

README Template

code
# Project Name
Brief description (1-2 sentences)

## Quick Start
- Prerequisites
- Install steps
- Run command

## Key Features
- Bullet list

## Configuration
- Env vars, config options

## Usage
- Examples

## Contributing / License

API Reference

  • Endpoint: method, path, description
  • Parameters: name, type, required, description
  • Response: status, body shape, example
  • Errors: possible codes and meanings

User Guide

  • Task-oriented headings
  • Step-by-step with numbered lists
  • Code examples where relevant
  • Screenshots for UI flows

Principles

  • Audience first: Match skill level and goals
  • Scannable: Headings, bullets, short paragraphs
  • Examples: Working code over abstract description
  • Up to date: Remove outdated docs when changing behavior