技术文档风格检查器Skill tech-writing-linter

技术文档风格检查器是一款自动化工具,用于对技术文档进行全面的质量评估。它集成了Vale和write-good等专业工具,能够强制执行技术写作规范、检查术语一致性、评估可读性分数(如Flesch-Kincaid)、检测行话和被动语态,并支持自定义风格指南。适用于软件开发、API文档、产品手册等所有技术写作流程,帮助团队提升文档的专业性、清晰度和一致性。关键词:技术文档检查,写作风格,可读性分析,术语一致性,Vale,write-good,文档质量,自动化校对。

其他 0 次安装 0 次浏览 更新于 2/26/2026

name: tech-writing-linter description: 对技术文档进行风格、一致性和可读性检查 allowed-tools:

  • Bash
  • Read
  • Write
  • Glob

技术文档风格检查技能

概述

使用 Vale、write-good 和自定义风格指南,对技术文档的风格、一致性、术语和可读性进行检查。

功能

  • Vale 和 write-good 集成
  • 技术写作规则强制执行
  • 术语一致性检查
  • 可读性评分(Flesch-Kincaid 等)
  • 自定义风格指南强制执行
  • 行话和被动语态检测
  • 包容性语言检查

目标流程

  • 所有文档流程

输入模式

{
  "type": "object",
  "required": ["paths"],
  "properties": {
    "paths": {
      "type": "array",
      "items": { "type": "string" },
      "description": "技术文档文件的路径"
    },
    "engine": {
      "type": "string",
      "enum": ["vale", "write-good", "both"],
      "default": "vale"
    },
    "styleGuide": {
      "type": "string",
      "enum": ["google", "microsoft", "redhat", "custom"],
      "default": "google"
    },
    "options": {
      "type": "object",
      "properties": {
        "minReadability": {
          "type": "number",
          "default": 60,
          "description": "最低 Flesch 阅读易读性分数"
        },
        "checkTerminology": {
          "type": "boolean",
          "default": true
        },
        "customTerms": {
          "type": "object",
          "description": "自定义术语映射"
        }
      }
    }
  }
}

输出模式

{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": { "type": "string" },
          "issues": { "type": "array" },
          "readabilityScore": { "type": "number" }
        }
      }
    },
    "summary": {
      "type": "object",
      "properties": {
        "totalIssues": { "type": "number" },
        "byCategory": { "type": "object" },
        "averageReadability": { "type": "number" }
      }
    }
  }
}

使用示例

{
  kind: 'skill',
  skill: {
    name: 'tech-writing-linter',
    context: {
      paths: ['docs/**/*.md'],
      engine: 'vale',
      styleGuide: 'google',
      options: {
        minReadability: 60,
        checkTerminology: true
      }
    }
  }
}