Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

ogt-docs-define-toolsogt 文档定义工具

Agent Skill

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

总安装

220

周安装

9

GitHub Stars

公开资料未说明

下载量

71
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/opendndapps/ogt-skills --skill ogt-docs-define-tools

简介

用于辅助文档、README 和内容稿件的整理与改写。

  • 适合提炼结构、补齐章节、统一术语或检查链接。
  • 应保留项目已有事实,避免把未确认信息写成确定结论。
  • 涉及对外文案时需控制语气,避免过度营销或夸大能力。
  • ogt-docs-define-tools 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

OGT Docs - Define Tools

Complete guide for documenting project tools, CLIs, and utilities.

Overview

Tools documentation ensures team members can effectively use CLIs, scripts, and integrations. Each tool is documented with usage examples, configuration options, and common workflows.

flowchart TB
    subgraph tools ["docs/define/tools/"]
        direction TB
        CLI["cli/"]
        SCRIPTS["scripts/"]
        DEV["dev/"]
        THIRD["third_party/"]
    end

    CLI --> OGT["ogt/"]
    CLI --> MAKE["make/"]

    SCRIPTS --> BUILD["build/"]
    SCRIPTS --> DATA["data/"]

    DEV --> DOCKER["docker/"]
    DEV --> DEBUG["debug/"]

    THIRD --> STRAPI["strapi/"]
    THIRD --> VITE["vite/"]

When to Use

  • Documenting a new CLI tool
  • Adding a development script
  • Integrating a third-party tool
  • Creating tool usage guides
  • Documenting configuration options

Folder Structure

docs/define/tools/
├── cli/                            # Command-line interfaces
│   └── {tool_name}/
│       ├── definition.md           # Tool overview and purpose
│       ├── commands.md             # Command reference
│       ├── examples.md             # Usage examples
│       ├── config.md               # Configuration options
│       ├── .version                # Tool version
│       └── .install                # Installation method
│
├── scripts/                        # Project scripts
│   └── {script_name}/
│       ├── definition.md           # Script purpose
│       ├── usage.md                # How to use
│       └── .location               # Script file path
│
├── dev/                            # Development tools
│   └── {tool_name}/
│       ├── definition.md
│       ├── setup.md                # Setup instructions
│       └── workflow.md             # Common workflows
│
└── third_party/                    # External tools
    └── {tool_name}/
        ├── definition.md
        ├── integration.md          # How it integrates
        ├── config.md               # Our configuration
        └── .version                # Version we use

Example: docs/define/tools/cli/ogt/

Documenting an internal CLI tool.

Folder Structure

docs/define/tools/cli/ogt/
├── definition.md
├── commands.md
├── examples.md
├── config.md
├── .version
└── .install

definition.md

# Tool: OGT CLI

## Summary

OpenGameTools CLI for managing ORC data collections, running audits, and automating content workflows.

## Purpose

The OGT CLI provides:

- Data collection management (scan, status, signal)
- Content auditing and validation
- Generation pipeline control
- Database operations

## Installation

Global install

npm install -g @orc/ogt-cli

Project install (recommended)

npm install --save-dev @orc/ogt-cli

Verify installation

ogt --version

Quick Start

# Scan a collection
ogt scan creatures

# Check entry status
ogt status front/data/app-creatures/dragon

# Run audit
ogt audit creatures --check-assets

Architecture

ogt
├── scan      # Scan collections for entries
├── status    # Get/set entry status
├── signal    # Manage skill signals
├── audit     # Run content audits
├── check     # Validate files/data
├── generate  # Content generation pipeline
├── db        # Database operations
└── report    # Generate reports

Configuration

See config.md for configuration options.

Related

  • docs/define/tools/scripts/data/ - Data scripts
  • docs/rules/code/ - Coding standards
### commands.md

OGT CLI Commands

ogt scan

Scan collections for entries and their status.

Usage

ogt scan <collection> [options]

Options

OptionDescriptionDefault
--status <status>Filter by statusall
--missing <signal>Find entries missing signal-
--format <format>Output format (table, json, csv)table
--limit <n>Limit results-

Examples

# Scan all creatures
ogt scan creatures

# Find creatures missing portraits
ogt scan creatures --missing portrait

# Get JSON output
ogt scan creatures --format json

# Filter by status
ogt scan creatures --status draft

ogt status

Get or set entry status.

Usage

# Get status
ogt status <path>

# Set status
ogt status <path> <new_status>

Status Values

  • stub - Minimal placeholder
  • draft - Work in progress
  • review - Ready for review
  • approved - Reviewed and approved
  • published - Live in production

Examples

# Get status
ogt status front/data/app-creatures/dragon
# Output: draft

# Set status
ogt status front/data/app-creatures/dragon approved
# Output: Status changed: draft -> approved

ogt signal

Manage skill processing signals.

Usage

# Check signal
ogt signal <path> <signal_name>

# Set signal
ogt signal <path> <signal_name> --set

# Clear signal
ogt signal <path> <signal_name> --clear

Common Signals

SignalMeaning
portraitHas portrait image
descriptionHas description
statsHas stat block
loreHas lore/background
ai_generatedGenerated by AI
human_reviewedReviewed by human

Examples

# Check if entry has portrait
ogt signal front/data/app-creatures/dragon portrait
# Output: portrait: false

# Mark as having portrait
ogt signal front/data/app-creatures/dragon portrait --set

# Clear signal
ogt signal front/data/app-creatures/dragon ai_generated --clear

ogt audit

Run content audits on collections.

Usage

ogt audit <collection> [options]

Options

OptionDescription
--check-assetsVerify asset files exist
--check-schemaValidate against schema
--check-linksVerify internal links
--fixAuto-fix issues where possible
--reportGenerate audit report

Examples

# Full audit
ogt audit creatures --check-assets --check-schema

# Generate report
ogt audit creatures --report > audit-report.md

# Auto-fix issues
ogt audit creatures --fix

ogt check

Validate files and data.

Subcommands

ogt check assets <path> <asset_name>   # Check for missing assets
ogt check slugs <path>                  # Validate slug conventions
ogt check indexed <collection>          # Verify index exports
ogt check data <path>                   # Validate against schema

Examples

# Check for missing portraits
ogt check assets static/public/creatures portrait.png -r

# Validate slugs
ogt check slugs front/data/app-creatures -r

# Check index exports
ogt check indexed creatures

ogt generate

Content generation pipeline.

Usage

ogt generate <collection> <entry> [options]

Options

OptionDescription
--prompt <type>Generate prompt only
--applyApply generated content
--model <model>AI model to use
--dry-runPreview without changes

Examples

# Generate description for creature
ogt generate creatures dragon --prompt description

# Apply generated content
ogt generate creatures dragon --apply

# Preview changes
ogt generate creatures dragon --dry-run
### examples.md

OGT CLI Examples

Common Workflows

New Entry Workflow

# 1. Create entry folder
mkdir -p front/data/app-creatures/phoenix

# 2. Create minimal data.ts
cat > front/data/app-creatures/phoenix/data.ts << 'EOF'
export const phoenix = {
  slug: 'phoenix',
  name: 'Phoenix',
  type: 'creature',
};
EOF

# 3. Set initial status
ogt status front/data/app-creatures/phoenix stub

# 4. Generate content
ogt generate creatures phoenix --prompt description
ogt generate creatures phoenix --apply

# 5. Update status
ogt status front/data/app-creatures/phoenix draft

Audit Before Release

# 1. Run full audit
ogt audit creatures --check-assets --check-schema --check-links

# 2. Review issues
ogt audit creatures --report | less

# 3. Fix auto-fixable issues
ogt audit creatures --fix

# 4. Verify fixes
ogt audit creatures --check-assets

Find Incomplete Entries

# Find entries without portraits
ogt scan creatures --missing portrait

# Find entries without descriptions
ogt scan creatures --missing description

# Find stubs that need work
ogt scan creatures --status stub

Batch Status Update

# Move all draft to review
for entry in $(ogt scan creatures --status draft --format csv | tail -n +2); do
  ogt status "$entry" review
done

Export Report

# Generate CSV of all entries with status
ogt scan creatures --format csv > creatures-status.csv

# Generate full audit report
ogt audit creatures --report > audit-$(date +%Y%m%d).md
### config.md

OGT CLI Configuration

Configuration File

OGT looks for configuration in:

  1. ogt.config.js in project root
  2. ogt key in package.json
  3. Command-line arguments (highest priority)

Configuration Options

ogt.config.js

module.exports = {
  // Data directories
  dataDir: 'front/data',
  staticDir: 'static/public',

  // Collections
  collections: {
    creatures: {
      dataPath: 'app-creatures',
      staticPath: 'creatures',
      schema: 'schemas/creature.json',
    },
    items: {
      dataPath: 'app-items',
      staticPath: 'items',
      schema: 'schemas/item.json',
    },
  },

  // Asset requirements
  assets: {
    portrait: {
      filename: 'portrait.png',
      required: true,
      dimensions: { width: 512, height: 512 },
    },
    thumbnail: {
      filename: 'thumbnail.png',
      required: false,
      dimensions: { width: 128, height: 128 },
    },
  },

  // Generation settings
  generate: {
    model: 'claude-3-opus',
    temperature: 0.7,
    maxTokens: 2000,
  },

  // Output settings
  output: {
    format: 'table',
    colors: true,
    verbose: false,
  },
};

Environment Variables

VariableDescriptionDefault
OGT_DATA_DIRData directoryfront/data
OGT_STATIC_DIRStatic assetsstatic/public
OGT_MODELDefault AI modelclaude-3-opus
OGT_VERBOSEVerbose outputfalse

Command-Line Overrides

# Override data directory
ogt scan creatures --data-dir ./custom/data

# Override output format
ogt scan creatures --format json

# Enable verbose mode
ogt scan creatures -v
### .version

1.2.0

### .install

npm install -g @orc/ogt-cli

---

## Example: docs/define/tools/scripts/build/

Documenting build scripts.

### Folder Structure

docs/define/tools/scripts/build/ ├── definition.md ├── usage.md └──.location

### definition.md

Script: Build Scripts

Summary

Collection of build scripts for frontend and backend builds.

Scripts

ScriptLocationPurpose
build:frontpackage.jsonBuild frontend
build:backpackage.jsonBuild backend
build:allpackage.jsonBuild everything
build:dockerMakefileBuild Docker images

Quick Reference

# Frontend build
yarn build:front

# Backend build
yarn build:back

# Full build
yarn build:all

# Docker build
make build
### usage.md

Build Scripts Usage

Frontend Build

Development Build

yarn build:front

Outputs to front/dist/.

Production Build

NODE_ENV=production yarn build:front

Enables minification and tree-shaking.

Build Options

# Analyze bundle size
yarn build:front --analyze

# Generate sourcemaps
yarn build:front --sourcemap

# Specify output directory
yarn build:front --outDir ./custom-dist

Backend Build

Standard Build

yarn build:back

Builds Strapi admin panel.

Production Build

NODE_ENV=production yarn build:back

Docker Build

Build All Images

make build

Build Specific Service

docker-compose build orc-front
docker-compose build orc-back

Build with No Cache

make build-no-cache

CI/CD

Build is triggered automatically:

  • On push to main: Full build
  • On PR: Frontend only
  • On release tag: Production build + deploy
### .location

package.json scripts Makefile

---

## Example: docs/define/tools/dev/docker/

Documenting development tools.

### Folder Structure

docs/define/tools/dev/docker/ ├── definition.md ├── setup.md └── workflow.md

### definition.md

Tool: Docker Development

Summary

Docker Compose setup for local development of all ORC services.

Services

ServicePortImage
orc-front23001node:20-alpine
orc-back23050node:20-alpine
orc-back-postgres23030postgres:16
orc-n8n23020n8nio/n8n
orc-static23010nginx:alpine

Quick Start

# Start all services
docker-compose up -d

# View logs
docker-compose logs -f

# Stop services
docker-compose down

Files

  • docker-compose.yml - Service definitions
  • .env - Environment variables
  • Makefile - Common commands
### setup.md

Docker Setup

Prerequisites

  • Docker Engine 24+
  • Docker Compose 2.0+
  • 8GB RAM minimum

Initial Setup

1. Clone and Configure

# Clone repository
git clone https://github.com/org/orc.git
cd orc

# Copy environment template
cp .env.example .env

# Edit .env with your values
vim .env

2. Build Images

# Build all images
docker-compose build

# Or use make
make build

3. Start Services

# Start in background
docker-compose up -d

# Verify services
docker-compose ps

4. Initialize Database

# Run migrations
docker-compose exec orc-back yarn strapi db:migrate

# Seed data (optional)
docker-compose exec orc-back yarn seed

5. Access Services

Troubleshooting

Port Conflicts

# Check what's using a port
lsof -i :23001

# Change port in .env
PORT_FRONT=23101

Container Won't Start

# View container logs
docker-compose logs orc-back

# Rebuild from scratch
docker-compose down -v
docker-compose build --no-cache
docker-compose up -d

Database Connection Issues

# Verify postgres is running
docker-compose ps orc-back-postgres

# Check connection
docker-compose exec orc-back-postgres psql -U postgres
### workflow.md

Docker Workflows

Daily Development

Start Day

# Start services
docker-compose up -d

# Verify all running
docker-compose ps

# Tail logs
docker-compose logs -f orc-front orc-back

During Development

# Restart after code change (hot reload usually works)
docker-compose restart orc-front

# View specific service logs
docker-compose logs -f orc-back --tail 100

# Run command in container
docker-compose exec orc-front yarn test

End Day

# Stop services
docker-compose stop

# Or remove containers (preserves data)
docker-compose down

Common Tasks

Rebuild After Dependency Change

# Rebuild specific service
docker-compose build orc-front
docker-compose up -d orc-front

Reset Database

# Stop and remove volumes
docker-compose down -v

# Start fresh
docker-compose up -d

# Re-seed
docker-compose exec orc-back yarn seed

Run Tests

# Frontend tests
docker-compose exec orc-front yarn test

# Backend tests
docker-compose exec orc-back yarn test

Debug Container

# Shell into container
docker-compose exec orc-front sh

# View container details
docker-compose inspect orc-front

Make Commands

CommandDescription
make upStart all services
make downStop all services
make logsTail all logs
make recreateForce recreate containers
make buildBuild all images
make cleanRemove containers and volumes
---

## Creating New Tool Documentation

flowchart TD A[New Tool] --> B{Type?}

B -->|CLI| C[cli/{name}/] B -->|Script| D[scripts/{name}/] B -->|Dev Tool| E[dev/{name}/] B -->|External| F[third_party/{name}/]

C --> G[Create Folder] D --> G E --> G F --> G

G --> H[Write definition.md] H --> I{Has Commands?}

I -->|Yes| J[Add commands.md] I -->|No| K[Add usage.md]

J --> L[Add examples.md] K --> L

L --> M{Configurable?} M -->|Yes| N[Add config.md] M -->|No| O[Add signals] N --> O

O --> P[.version, .install, etc.]


---

## Signal Files Reference

| Signal | Type | Content | Purpose |
| --- | --- | --- | --- |
| `.version` | Content | Version string | Track tool version |
| `.install` | Content | Install command | How to install |
| `.location` | Content | File path | Where script lives |
| `.deprecated` | Empty | - | Tool is deprecated |
| `.replaced_by` | Content | New tool path | Point to replacement |

---

## Documentation Quality Checklist

Before finalizing tool documentation:

- Purpose is clearly explained
- Installation/setup documented
- All commands documented
- Options/flags listed
- Examples for common use cases
- Configuration options explained
- Troubleshooting section included
- Version documented
- Related tools cross-referenced

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.65%
按下载量换算25

Claude

28.19%
按下载量换算20

Cursor

17.76%
按下载量换算13

Gemini CLI

9.26%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/opendndapps/ogt-skills --skill ogt-docs-define-tools 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills