AgentSkillsCN

documentation-templates

技术文档模板

SKILL.md
--- frontmatter
name: documentation-templates
description: Templates for technical documentation

Documentation Templates

Standard templates for project documentation.


README Template

markdown
# Project Name

Brief description.

## Quick Start

\`\`\`bash
# Installation
npm install

# Run
npm run dev
\`\`\`

## Features

- Feature 1
- Feature 2

## Configuration

| Variable | Description | Default |
|----------|-------------|---------|
| API_URL | API endpoint | http://localhost |

## API Reference

See [API Documentation](./docs/api.md)

## Contributing

1. Fork the repo
2. Create feature branch
3. Submit PR

## License

MIT

API Endpoint Template

markdown
## GET /api/users/{id}

Get user by ID.

### Parameters

| Name | Type | Description |
|------|------|-------------|
| id | int | User ID |

### Response

\`\`\`json
{
  "id": 1,
  "name": "John",
  "email": "john@example.com"
}
\`\`\`

### Errors

| Status | Description |
|--------|-------------|
| 404 | User not found |

Architecture Doc Template

markdown
# Architecture: [System Name]

## Overview

Brief description of the system.

## Components

| Component | Purpose |
|-----------|---------|
| API | REST endpoints |
| Database | Data storage |

## Data Flow

1. User action
2. API call
3. Database query
4. Response

## Decisions

| Decision | Rationale |
|----------|-----------|
| SQL Server | Existing infrastructure |

When to Document

✅ Document❌ Skip
Public APIsInternal helpers
Complex logicSelf-documenting code
Architecture decisionsObvious patterns