Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问clear审计通过

technical-writing技术写作

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

1,058

周安装

45

GitHub Stars

127

下载量

371
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:technical-writing(技术写作)
来源仓库:https://github.com/anton-abyzov/specweave
仓库路径:skills/technical-writing
安装命令:
npx skills add https://github.com/anton-abyzov/specweave --skill technical-writing
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/anton-abyzov/specweave --skill technical-writing

简介

专注于开发者文档编写,涵盖 README、API 参考、教程与变更日志。

  • 擅长提炼结构、统一术语、修复链接与整理零散材料。technical-writing 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 保留项目事实与命令路径,避免虚构未经验证的信息。
  • 对外文案需控制语气,防止过度承诺或夸大功能范围。
  • 建议配合版本控制与发布流程,确保文档与代码同步更新。

SKILL.md

Technical Writing Skill

Self-contained technical documentation expertise for ANY user project.

Expert in developer-focused documentation: READMEs, API references, tutorials, and changelogs.


Core Documentation Types

1. README Files

Essential Structure:

# Project Name

One-sentence description.

## Features
- Key feature 1
- Key feature 2

## Installation

npm install project-name


## Quick Start

import { ProjectName } from 'project-name'; const instance = new ProjectName();


## Usage

[Basic example]

## API Reference

[Link or inline reference]

## Contributing

[Link to CONTRIBUTING.md]

## License

MIT

Best Practices:

  • Lead with value (what problem solved?)
  • Code examples > long explanations
  • Progressive disclosure (quick start → advanced)
  • Keep updated with code

2. API Documentation

Function/Method Documentation:

/**
 * Compress image with quality settings
 *
 * @param {string} input - Path to input image
 * @param {CompressOptions} options - Compression options
 * @param {number} options.quality - Quality 0-100 (default: 80)
 * @param {string} options.format - Output format: jpeg|png|webp
 *
 * @returns {Promise<CompressResult>} Compression result with saved bytes
 *
 * @example
 * const result = await compress('photo.jpg', { quality: 90 });
 * console.log(`Saved ${result.savedBytes} bytes`);
 */

REST API Documentation:

### POST /api/users

Create a new user.

**Request**:

{ "email": "user@example.com", "name": "John Doe" }


**Response** (201 Created):

{ "id": "uuid", "email": "user@example.com", "name": "John Doe", "created": "2025-11-24T12:00:00Z" }


**Errors**:

- 400: Invalid email format
- 409: Email already exists

3. Tutorials

Structure:

# Tutorial: Build X in 10 Minutes

**You'll learn**:
- How to set up X
- Core concepts
- Build a working example

**Prerequisites**:
- Node.js 18+
- Basic JavaScript knowledge

## Step 1: Setup

npm create vite@latest my-project cd my-project npm install


## Step 2: Create Component

[Code with explanation]

## Step 3: Test It

[How to run and verify]

## Next Steps

- Advanced feature 1
- Advanced feature 2
- Link to API docs

Best Practices:

  • State prerequisites up front
  • Break into small, testable steps
  • Show expected output at each step
  • Link to related docs

4. Changelogs

Keep a Changelog Format (keepachangelog.com):

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
- New feature X for Y use case

### Changed
- Improved performance of Z by 40%

### Fixed
- Critical bug in authentication (CVE-2024-1234)

## [1.2.0] - 2025-11-24

### Added
- Real-time notifications via WebSocket
- Export to PDF functionality

### Changed
- Updated dependencies (React 19)

### Deprecated
- `oldMethod()` - use `newMethod()` instead

### Removed
- Legacy API v1 endpoints

### Fixed
- Memory leak in image processing
- CORS issue with production domain

### Security
- Fixed SQL injection vulnerability (CVE-2025-5678)

## [1.1.0] - 2025-11-01

[Previous release notes]

Categories:

  • Added: New features
  • Changed: Changes in existing functionality
  • Deprecated: Soon-to-be removed features
  • Removed: Now removed features
  • Fixed: Bug fixes
  • Security: Vulnerability fixes

Style Guide Essentials

Voice & Tone

Active Voice (preferred):

  • ✅ "The function returns an array"
  • ❌ "An array is returned by the function"

Present Tense (preferred):

  • ✅ "The API validates input"
  • ❌ "The API will validate input"

Second Person (for tutorials):

  • ✅ "You can configure the timeout"
  • ❌ "Users can configure the timeout"

Clarity Rules

Be Specific:

  • ✅ "Set timeout to 5000ms"
  • ❌ "Set a reasonable timeout"

Avoid Jargon (or explain it):

  • ✅ "Idempotent (can be called multiple times safely)"
  • ❌ "The endpoint is idempotent"

Short Sentences:

  • ✅ "Install the package. Then import it."
  • ❌ "After installing the package, you need to import it into your project."

Code Examples

Show Complete Examples:

// ✅ GOOD - Complete, runnable
import { connect } from 'database';

const db = await connect({
  host: 'localhost',
  port: 5432
});

const users = await db.query('SELECT * FROM users');
console.log(users);
// ❌ BAD - Incomplete
db.query('SELECT * FROM users');

Include Error Handling:

// ✅ GOOD
try {
  const result = await processImage('photo.jpg');
  console.log('Success:', result);
} catch (error) {
  console.error('Failed to process image:', error.message);
}

Documentation Structure

Information Architecture

Organize by User Journey:

docs/
├── getting-started/
│   ├── installation.md
│   ├── quick-start.md
│   └── first-project.md
├── guides/
│   ├── authentication.md
│   ├── deployment.md
│   └── troubleshooting.md
├── api-reference/
│   ├── client.md
│   ├── server.md
│   └── types.md
└── examples/
    ├── basic-crud.md
    ├── real-time-updates.md
    └── advanced-queries.md

Progressive Disclosure:

  1. Getting Started: Quickest path to value
  2. Guides: Task-oriented how-tos
  3. API Reference: Complete technical reference
  4. Examples: Real-world patterns

Navigation Best Practices

Clear Hierarchy:

  • Use consistent heading levels (H1 → H2 → H3)
  • Don't skip heading levels
  • One H1 per page

Cross-Linking:

  • Link to related docs
  • Link to prerequisites
  • Link to next steps

Table of Contents (for long pages):

## Table of Contents

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
  - [Basic Example](#basic-example)
  - [Advanced Example](#advanced-example)
- [API Reference](#api-reference)

OpenAPI / Swagger

OpenAPI 3.0 Template

openapi: 3.0.0
info:
  title: User API
  version: 1.0.0
  description: User management API

servers:
  - url: https://api.example.com/v1

paths:
  /users:
    get:
      summary: List all users
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/User'

    post:
      summary: Create user
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUser'
      responses:
        '201':
          description: User created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'

components:
  schemas:
    User:
      type: object
      properties:
        id:
          type: string
          format: uuid
        email:
          type: string
          format: email
        name:
          type: string

    CreateUser:
      type: object
      required:
        - email
        - name
      properties:
        email:
          type: string
          format: email
        name:
          type: string

Documentation Maintenance

Versioning Strategy

Version docs alongside code:

docs/
├── v1.0/
│   ├── api.md
│   └── guides.md
├── v2.0/
│   ├── api.md
│   ├── guides.md
│   └── migration.md
└── latest/ → symlink to v2.0/

Migration Guides:

# Migrating from v1 to v2

## Breaking Changes

### Authentication

**v1**:

const api = new API({ token: 'abc123' });


**v2**:

const api = new API({ auth: { bearer: 'abc123' } });


### What Changed

- `token` parameter renamed to `auth.bearer`
- Supports multiple auth methods now

### Migration Steps

1. Update API initialization
2. Test authentication flow
3. Update error handling (new error codes)

Keep Docs Fresh

Automation:

  • Generate API docs from code (JSDoc, TypeDoc, OpenAPI)
  • Auto-update version numbers in docs
  • CI/CD checks for broken links

Review Checklist:

  • [ ] Code examples run without errors
  • [ ] All links work (no 404s)
  • [ ] Version numbers match package.json
  • [ ] Screenshots show current UI
  • [ ] Deprecation warnings added for old features

Common Pitfalls

❌ Avoid:

  • Outdated examples (don't run)
  • Missing prerequisites
  • Incomplete code snippets
  • Vague error messages ("something went wrong")
  • Over-explaining obvious things
  • Using future tense ("will do X")

✅ Do:

  • Test all code examples
  • State prerequisites up front
  • Show complete, runnable code
  • Specific error messages with fixes
  • Respect reader's intelligence
  • Use present tense

Quick Reference Templates

Function Documentation

/**
 * Brief description
 *
 * @param {Type} paramName - Description
 * @returns {Type} Description
 * @throws {ErrorType} When/why
 * @example
 * functionName(arg);
 */

CLI Command Documentation

### command [options]

Description of what command does.

**Options**:
- `-f, --flag`: Description (default: value)
- `-o, --option <value>`: Description

**Examples**:

command --flag --option=value

Error Documentation

### Error: ECONNREFUSED

**Cause**: Cannot connect to database

**Solutions**:
1. Check database is running: `docker ps`
2. Verify connection string in `.env`
3. Check firewall allows port 5432

This skill is self-contained and works in ANY user project.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.89%
按下载量换算107

OpenCode

23.51%
按下载量换算87

Cursor

16.99%
按下载量换算63

Gemini CLI

10.4%
按下载量换算39

Antigravity

6.44%
按下载量换算24

Codex

3.23%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills