create-harness-docs

智能分析项目结构,自动创建符合 Harness Engineering 要求的文档体系。支持 Spring Boot、React、Vue、NestJS、Express、Django、FastAPI、Go 等多种项目类型。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "create-harness-docs" with this command: npx skills add zhangjiayu139/create-harness-docs

Create Harness Docs (智能版)

自动分析当前项目类型并创建对应的 Harness Engineering 文档体系。

功能

  1. 智能检测 - 自动识别项目类型 (Spring Boot/React/Vue/NestJS 等)
  2. 生成对应模板 - 根据项目类型生成相应的分层架构、CI 配置
  3. 创建文档 - AGENTS.md、架构文档、质量评级等
  4. 架构测试 - 为 Java 项目生成 ArchUnit 测试

支持的项目类型

类型检测依据分层架构
Spring Bootpom.xmlEntity→DAO→Service→Controller
Reactpackage.json + reactTypes→Components→Hooks→Pages
Vuepackage.json + vueTypes→Components→Composables→Views
NestJS@nestjs/coreEntities→Repositories→Services→Controllers
ExpressexpressTypes→DAO→Service→Controller
Djangomanage.pyModels→Views→Serializers→Urls
FastAPIfastapiModels→Schemas→Services→Routes
Gingo.modModels→Repository→Service→Handler

使用方法

# 在项目目录运行,自动检测类型并创建文档
node create-harness-docs.js --init

# 选项
# --init          创建所有文档
# --agents        仅创建 AGENTS.md
# --architecture  仅创建架构文档
# --quality       仅创建质量评级
# --validate      验证现有文档

创建的文件

项目目录/
├── AGENTS.md                     # 入口/索引
├── docs/
│   ├── architecture/
│   │   ├── ARCHITECTURE.md      # 架构总览
│   │   └── domains/             # 业务域详情
│   ├── plans/                   # 执行计划
│   └── quality/grades.md        # 质量评级
├── .github/workflows/
│   └── harness-ci.yml          # CI 配置
└── (Java) src/test/.../ArchitectureTest.java  # ArchUnit 测试

核心原则

遵循 OpenAI Harness Engineering:

  1. AGENTS.md 是目录,不是手册 - 知识放 docs/
  2. 严格分层 - 根据项目类型定义的分层架构
  3. 约束即代码 - 用 linter/ArchUnit 强制规则
  4. 持续清理 - 定期处理技术债务

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Gigo Lobster Taster

🦞 GIGO · gigo-lobster-taster: 正式试吃模式:跑完整评测,默认上传云端、生成个人结果页并进入排行榜。 Triggers: 试吃我的龙虾 / 品鉴我的龙虾 / lobster taste / lobster taster.

Registry SourceRecently Updated
General

Invoice Generator

Creates professional invoices in markdown and HTML

Registry SourceRecently Updated
92001kalin
General

backstage companion

Anti-drift protocol script. Ensures parity between docs and system. Triggers: 'bom dia PROJECT' / 'good morning PROJECT' (load project context with health ch...

Registry SourceRecently Updated
General

stratos-storage

Upload and download files to/from Stratos Decentralized Storage (SDS) network. Use when the user wants to store files on Stratos, retrieve files from Stratos, upload to decentralized storage, or download from SDS.

Registry SourceRecently Updated