Token导航 LogoToken导航

Agent Skill · 开发

csv-documentation-generator(CSV 文档生成器)

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

csv-documentation-generator 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 4,140。

总安装 8,949周安装 362GitHub Stars 公开资料未说明下载 2,809核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.6.4

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:csv-documentation-generator(CSV 文档生成器)
来源仓库:https://github.com/zealot00/csv-documentation-generator
安装命令:
openclaw skills install csv-documentation-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install csv-documentation-generator

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

为制药与医疗器械行业生成计算机系统验证文档。产出 URS、FS、csv-documentation-generator 属于开发类 Skill,可作为该场景下的辅助能力补充。IQ/OQ 等标准验证文件模板。通过 clawhub 安装,适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

建议遵循 GMP 规范校验输出内容。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install csv-documentation-generator;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

csv-documentation-generator 怎么安装?

在终端执行 openclaw skills install csv-documentation-generator。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

csv-documentation-generator 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

csv-documentation-generator 需要什么权限?

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

csv-documentation-generator 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

csv-documentation-generator 用的人多吗?

公开数据是累计安装 8,949 次,近一周安装 362 次,下载 2,809 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

csv-documentation-generator 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
csv-documentation-generator

CSV 文档生成器 · 本页

8,949—需要联网MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
csv-documentation-generator
description
Use when generating computer system validation (CSV) documentation for pharmaceutical and medical device industries, including validation plans, URS, FS, IQ/OQ/PQ documents, and traceability matrices.
triggers
category
gxp-compliance
version
1.6.4
author
zealot00
homepage
https://github.com/zealot00/csv-documentation-generator
repository
https://github.com/zealot00/csv-documentation-generator
bugs
https://github.com/zealot00/csv-documentation-generator/issues
createdAt
2026-03-18
lastReviewedAt
2026-03-18
validationStatus
beta
compatibility
openclaw
>=1.0.0
python
>=3.10
requiredTools
inputSchema
type
object
required
[project, system]
properties
docType
type
string
enum
[vp, urs, fs, ra, iq, oq, pq, rtm, vsr, checklist, test-case, all]
project
type
string
description
项目名称 / Project name
system
type
string
description
系统名称及版本 / System name and version
category
type
integer
enum
[1, 2, 3, 4, 5]
description
GAMP category (1-5)
bilingual
type
boolean
default
true
output
type
string
default
./output
outputSchema
type
object
properties
docx
type
array
items
type
string
description
Generated Word documents
xlsx
type
array
items
type
string
description
Generated Excel documents

CSV Documentation Generator

Generate Computerized System Validation (CSV) documentation for pharmaceutical and medical device industries. Supports bilingual (Chinese/English) templates and multiple output formats (Word/Excel).

When to Use

Use this skill when:

  • Creating validation documentation for GMP-regulated systems
  • Generating User Requirements Specification (URS) with regulatory compliance checks
  • Preparing IQ/OQ/PQ protocols for system qualification
  • Creating traceability matrices linking requirements to test cases
  • Conducting risk assessments for computerised systems
  • Need documentation templates that comply with GAMP 5, 21 CFR Part 11, EU Annex 11

Supported Systems

System TypeGAMP CategoryDocuments
EDC (Electronic Data Capture)Category 4/5All 12 documents
CTMS (Clinical Trial Management)Category 4VP, URS, FS, RA, IQ, OQ, RTM
LIMS (Laboratory Information Management)Category 4/5All 12 documents
MES (Manufacturing Execution System)Category 4All 12 documents
ERP (Enterprise Resource Planning)Category 4VP, URS, RA, IQ, OQ
SCADA/DCSCategory 2/3VP, URS, IQ, OQ, PQ
Custom SoftwareCategory 3/4VP, URS, RA, IQ, OQ

Quick Start

# Navigate to skill directory
cd <SKILL_DIR>/csv-documentation-generator

# Run script - will automatically create virtual environment on first run
python3 scripts/generate.py vp --project "XX系统" --system "EDC v1.0" --output ./output/

# Note: If --category is not specified, interactive GAMP category selection will be prompted
# The script provides bilingual (Chinese/English) guidance based on GAMP 5 Second Edition

# Generate Validation Plan (with category specified)
python3 scripts/generate.py vp --project "XX系统" --system "EDC v1.0" --category 4 --output ./output/

# Generate full validation package
python3 scripts/generate.py all --project "XX系统" --system "MES" --category 4 --output ./validation/

Parse Requirements from Code (pre-generation)

# Navigate to skill directory
cd <SKILL_DIR>/csv-documentation-generator

# Parse source code for requirements (extracts @URS, @TEST, @FS, @TS markers)
python3 scripts/cli.py parse ./src

# For AI agents (non-interactive mode), use --auto-add:
python3 scripts/cli.py parse ./src --auto-add

# Review extracted requirements
cat requirements.json

Auto Environment Setup

This skill automatically handles environment setup:

  1. First run: Automatically creates .venv virtual environment in skill directory
  2. Dependencies: Automatically installs required packages (python-docx, openpyxl, etc.)
  3. Subsequent runs: Use the already-created virtual environment

This ensures consistent behavior and avoids dependency conflicts.

Interactive GAMP Category Selection

If --category is not specified, the script will prompt with bilingual (Chinese/English) guidance:

GAMP 5 (Second Edition) Category Selection:
  [1] Infrastructure Software - 基础设施软件
  [2] Firmware - 固件
  [3] Commercial Off-The-Shelf (COTS) - Non-configured - 商用现货软件 (不可配置)
  [4] Configured COTS - 配置型 COTS 软件 (e.g., EDC, CTMS, LIMS, MES)
  [5] Custom / Critical Application - 定制/关键应用

AI agents should guide users to select the appropriate category based on GAMP 5 Second Edition principles.

Available Commands

CommandDescriptionOutput Format
generate.py vpValidation Plan.docx
generate.py ursUser Requirements Specification.docx
generate.py fsFunctional Specification.docx
generate.py tsTechnical Specification.docx
generate.py raRisk Assessment (FMEA).docx
generate.py iqInstallation Qualification.docx
generate.py oqOperational Qualification.docx
generate.py pqPerformance Qualification.docx
generate.py rtmTraceability Matrix.xlsx
generate.py vsrValidation Summary Report.docx
generate.py checklistValidation Checklist.xlsx
generate.py test-caseTest Case Template.xlsx
generate.py allFull validation package.docx / .xlsx

Command Options

OptionDescriptionRequired
--projectProject nameYes
--systemSystem name and versionYes
--categoryGAMP category (1-5). If not specified, interactive selection will be prompted with bilingual GAMP 5 guidance.No (will prompt)
--bilingualEnable bilingual mode: 'true' or 'false' (default: true). When true, headers remain bilingual and content follows --language.No
--languagePrimary language for content: 'zh' (Chinese) or 'en' (English) (default: zh). Used when bilingual=false or for content in bilingual mode.No
--verbose / -vShow detailed progress information (default: simplified output)No
--outputOutput directoryYes
--formatOutput format: docx, xlsx, or both (default: both)No

Output Format Standards

All generated documents follow consistent naming and formatting rules:

Document Naming Convention

Document TypeFormatExample
Validation Plan{TYPE}_{PROJECT}.{ext}VP_XX系统.docx
User Requirements{TYPE}_{PROJECT}.{ext}URS_XX系统.docx
Functional Specification{TYPE}_{PROJECT}.{ext}FS_XX系统.docx
Traceability MatrixRTM_{PROJECT}.{ext}RTM_XX系统.xlsx

Output Directory Structure

{output_dir}/
├── VP_项目名.docx
├── URS_项目名.docx
├── FS_项目名.docx
├── TS_项目名.docx
├── RA_项目名.docx
├── IQ_项目名.docx
├── OQ_项目名.docx
├── PQ_项目名.docx
├── VSR_项目名.docx
├── RTM_项目名.xlsx
└── CHECKLIST_项目名.xlsx

Document Styling Standards

Fonts:

  • Chinese text: SimSun (宋体)
  • English text: Arial

Colors:

  • Table headers: #2563EB (Royal Blue) with white text
  • Priority markers: [必须] (red), [应该] (amber), [可以] (green)
  • Test results: [通过] (green), [失败] (red), [待测] (amber)

Template Variables

Common variables used in templates:

VariableDescriptionExample
{PROJECT_NAME}Project name临床试验系统
{SYSTEM_NAME}System nameEDC v1.0
{SYSTEM_VERSION}System version1.0
{GAMP_CATEGORY}GAMP category4
{DOC_ID}Document IDURS-001
{DATE}Document date2024-01-01
{AUTHOR}Document author张三
{REVIEWER}Reviewer name李四
{APPROVER}Approver name王五

Regulatory Compliance

GAMP 5 Categories

CategoryDescriptionValidation Approach
1Operating SystemLegacy
2FirmwareSimplified
3Commercial-off-the-shelf (COTS)Risk-based
4Configured COTSRisk-based
5Custom/CriticalFull validation

Key Regulatory Requirements

This skill includes compliance checks for:

  • 21 CFR Part 11: Electronic Records and Signatures

- Audit trail requirements - Electronic signature requirements - System access controls

  • EU Annex 11: Computerised Systems

- Validation requirements - Data integrity - Change control

  • ALCOA+: Data Integrity

- Attributable - Legible - Contemporaneous - Original - Accurate (+ Complete, Consistent, Enduring)

Semantic Action Graph

This skill encapsulates the following semantic actions for GxP document generation:

Action Graph

parse_requirements(source_path) → RequirementsDB
    │
    ▼
generate_vp(context) → Document
    │ ──────────────────────► generate_urs(context) → Document
    │                                           │
    │ ◄── (URS traceability) ──────────────────┤
    │                                           ▼
    ├────────────────────────────────────► generate_fs(context) → Document
    │                                           │
    │ ◄── (FS technical specs) ─────────────────┤
    │                                           ▼
    └────────────────────────────────────► generate_ra(context) → Document
                                                    │
                                        ┌───────────┴───────────┐
                                        ▼                       ▼
                              generate_iq_oq_pq(context)   generate_rtm(context)
                                        │                       │
                                        └───────────┬───────────┘
                                                    ▼
                                        generate_vsr(context) → Document

Semantic Actions

ActionDescriptionPre-conditions
parse_requirements()Parse @URS, @FS, @TEST markers from source codeSource code available
generate_vp()Create Validation PlanProject name, system name, GAMP category
generate_urs()Create User Requirements SpecificationSystem context, GxP scope
generate_fs()Create Functional SpecificationURS requirements linked
generate_ra()Create Risk AssessmentURS priorities, GxP scope
generate_iq_oq_pq()Create Qualification ProtocolsRA risk levels, TS config
generate_rtm()Create Traceability MatrixURS, FS, test cases linked
generate_vsr()Create Validation Summary ReportAll test results, deviations
sync_bidirectional()Sync requirements ↔ templatesTemplates and requirements.json exist
run_compliance_check()Verify GxP complianceRequirements and test results

Data Flow Semantics

FlowSemantic Meaning
VP → URSBusiness process analysis defines GxP scope for requirements
URS → FSFunctional requirements trace to design specifications
URS → RARequirement priority determines risk severity
RA → TestRisk level scales testing rigor (IQ/OQ/PQ scope)
All → RTMComplete traceability matrix for regulatory audit

Prompt Library

Critical Thinking Constraints and Content Fill Prompts are defined in prompts.md.

For GAMP 5 M12 Critical Thinking constraints, document generation triggering conditions, and content fill prompt templates, see prompts.md.

Reference Documents

Reference materials included in references/ folder:

FileDescription
gamp-5.mdGAMP 5 quick reference guide
21cfr-part11.md21 CFR Part 11 key requirements
annex-11.mdEU Annex 11 requirements
data-integrity.mdALCOA+ data integrity principles

Example Templates

Complete fill examples are provided in templates/examples/ directory:

Example FileDescription
urs-example.mdURS with complete requirement examples
fs-example.mdFS with traceability examples
ra-example.mdRA with hierarchical risk examples
iq-example.mdIQ with qualification check examples

AI agents SHOULD reference these examples for content style guidance when filling templates.

Bilingual Format

All templates support Smart Bilingual output controlled by --bilingual and --language flags:

--bilingual--languageBehavior
true (default)zhHeaders bilingual, content in Chinese
true (default)enHeaders bilingual, content in English
falsezhPure Chinese output
falseenPure English output

Bilingual Template Format

Templates use dual-language format for headers:

## 1. 目的 / Purpose

本文档定义了... / This document defines...

Tables use dual-language headers:

中文English
验证计划Validation Plan
用户需求User Requirements

Content cells use format like 中文 / English:

模块 / Module描述 / Description
用户管理 / User Management系统应... / System should...

Requirements Traceability

This skill supports GAMP 5 compliant requirements traceability across the entire validation lifecycle.

Automated Traceability Chain

代码注释 (@URS[module]) 
    ↓
requirements.json (需求解析)
    ↓
URS 模板 (自动同步章节)
    ↓
FS/TS 文档 (引用需求ID)
    ↓
测试用例 (关联需求ID)
    ↓
测试结果 (解析需求ID)
    ↓
RTM (追溯矩阵自动生成)

Code Comment Standards (AI Agent Must Follow)

When generating code, AI agents MUST include requirement markers for automatic traceability. Use the standardized @REQ format:

# @REQ URS-001 - 系统应支持基于角色的访问控制 (RBAC)
# @REQ URS-002 - 用户密码必须满足复杂度要求(至少8位)
# @FS FS-001
# @TS TS-001
# @TEST[OQ-UM-001] - 验证用户角色分配功能
# @RISK H  # High risk module

def assign_role(user_id: str, role: str) -> bool:
    '''
    @REQ URS-001 - Role-based access control required
    @TEST[OQ-UM-001] - Test role assignment
    '''
    # Implementation...

Standard comment formats:

PatternExampleDescription
// @REQ URS-xxx// @REQ URS-001 - 系统应支持RBACRequirement with ID and description
# @REQ# @REQ URS-001 - 描述Python-style comment
/* @REQ *//* @REQ URS-001 - 描述 */Multi-line comment
// @TEST[type-id]// @TEST[OQ-UM-001] - 验证Test case link
// @FS// @FS FS-001FS reference
// @TS// @TS TS-001TS reference
// @RISK [H/M/L]// @RISK HRisk level (High/Medium/Low)

Risk levels:

  • H (High): Security, compliance, electronic signature, audit trail related
  • M (Medium): Default for most requirements
  • L (Low): Simple features, documentation, reports

Standard Modules

Module ID中文名English NameTest Prefix
user_mgmt用户管理User ManagementUM
audit_trail审计追踪Audit TrailAT
data_mgmt数据管理Data ManagementDM
business_func业务功能Business FunctionsBF
reporting报告功能ReportingRP
integration接口集成IntegrationINT
security安全SecuritySEC
compliance合规ComplianceCMP

注意: 章节号(4.X)是动态分配的,基于模板中已有的章节。同步时会自动为新模块分配下一个可用编号。

System Prompt Integration (Manual Configuration Required)

⛔ This step is NOT automatic. You must manually add these rules to your agent's system prompt (AGENTS.md) if you want @REQ/@TEST annotations to apply across ALL skills.

To enable cross-skill annotation enforcement, add the following to your AGENTS.md or agent system prompt:

Code Annotation Rules (for GxP traceability):
- When writing code that implements requirements, add @REQ markers: # @REQ URS-xxx - description
- When writing test cases, add @TEST markers: # @TEST[OQ-UM-xxx] - description
- Mark high-risk code sections with @RISK H (security, compliance, audit trail related)
- Mark medium-risk code with @RISK M
- Mark low-risk code with @RISK L

Why this is needed: OpenClaw skills only execute when active. There is no mechanism to make instructions persist across skill switches except via the system prompt.

See STANDARDS.md for full documentation and standards/code-annotations.json for the standards file.

Test Case ID Format

Test case IDs follow the format: {IQ|OQ|PQ}-{ModulePrefix}-{Number}

TypeExampleDescription
IQIQ-UM-001Installation Qualification test
OQOQ-UM-001Operational Qualification test
PQPQ-UM-001Performance Qualification test

Auto-Sync Feature

Before generating documents, use --sync to automatically update templates with new requirements:

# Generate URS and sync requirements to template
python3 scripts/generate.py urs --sync \
  --project "临床系统" \
  --system "EDC v1.0" \
  --category 4 \
  --output ./validation/

# Generate full validation package with sync
python3 scripts/generate.py all --sync \
  --project "XX系统" \
  --system "MES" \
  --category 4 \
  --output ./validation/

What --sync does:

  1. Reads requirements.json for all requirements
  2. Groups requirements by module
  3. Checks if each module section exists in template
  4. Auto-appends new module sections if missing
  5. Backs up original template before modification

Sync Template to Database

Use --sync-template-to-db to extract requirements from templates and add them to requirements.json:

# Extract requirements from urs.md template to requirements.json
python3 scripts/generate.py urs --sync-template-to-db \
  --project "临床系统" \
  --system "EDC v1.0" \
  --category 4 \
  --output ./validation/

What --sync-template-to-db does:

  1. Reads the template (e.g., urs.md)
  2. Extracts all requirements in | URS-xxx | description | format
  3. Loads existing requirements.json (if exists)
  4. Adds new requirements that don't already exist
  5. Preserves existing requirements and test results

Interactive Mode

For interactive step-by-step document generation with confirmation prompts:

python3 scripts/generate.py all --interactive \
  --project "临床系统" \
  --system "EDC v1.0" \
  --category 4 \
  --output ./validation/

Interactive workflow:

[1/11] 解析代码注释...
  → 按 Enter 继续,'s' 跳过,'q' 退出:

[2/11] 同步需求到数据库...
  → 按 Enter 继续,'s' 跳过,'q' 退出:

[3/11] 生成 URS...
  → 按 Enter 继续,'s' 跳过,'q' 退出:
  ✓ ./output/URS_临床系统.docx
...

Options:

  • Enter - Execute this step
  • s - Skip this step
  • q - Quit (already generated files are preserved)

Compliance Check

Run GAMP 5 compliance validation to check requirements coverage and test coverage:

# Run compliance check (text output)
python3 scripts/generate.py check \
  --requirements requirements.json \
  --test-results test_results.json

# Run compliance check (JSON output for CI/CD)
python3 scripts/generate.py check \
  --requirements requirements.json \
  --test-results test_results.json \
  --output-format json

Compliance checks performed:

  • Requirement coverage (ensures all code requirements are documented)
  • High-risk module verification (IQ/OQ/PQ tests for critical modules)
  • Test coverage threshold (default 80%)

Exit codes:

  • 0 - All checks passed
  • 1 - Warnings present
  • 2 - Errors found

Incremental Update (Smart Rebuild)

Use --diff-only to skip regeneration when requirements haven't changed:

# Only regenerate RTM if requirements changed
python3 scripts/generate.py rtm --diff-only \
  --project "临床系统" \
  --system "EDC v1.0" \
  --category 4 \
  --output ./validation/

How it works:

  1. Computes SHA256 hash of requirements after each generation
  2. Stores hash in .requirements.hash in output directory
  3. On subsequent runs, compares current hash against stored hash
  4. Skips generation if hash matches (requirements unchanged)

Git Hooks (Automated Compliance)

Install post-commit hooks to automatically run compliance checks after code commits:

# Install hooks locally (per-project)
./scripts/git-hooks/install.sh --local

# Install hooks globally (all projects)
./scripts/git-hooks/install.sh --global

# Uninstall hooks
./scripts/git-hooks/install.sh --uninstall

What the hook does:

  • Detects commits with code or requirements changes
  • Runs compliance check (non-blocking)
  • Outputs warnings to stderr without blocking commit

Bidirectional Sync

Use --sync for bidirectional sync between template and requirements.json:

# Full bidirectional sync (both directions)
python3 scripts/generate.py urs --sync \
  --project "临床系统" \
  --system "EDC v1.0" \
  --category 4

# Only sync template → JSON
python3 scripts/generate.py urs --sync --sync-direction to-json

# Only sync JSON → template
python3 scripts/generate.py urs --sync --sync-direction to-template

Conflict resolution:

# Keep template descriptions on conflict
python3 scripts/generate.py urs --sync --conflict-resolution template

# Keep JSON descriptions on conflict
python3 scripts/generate.py urs --sync --conflict-resolution json

# Keep newer version based on updated_at
python3 scripts/generate.py urs --sync --conflict-resolution newer

Section numbering behavior:

  • Sync automatically creates module sections with ### 4.X headers
  • Section numbers are dynamically assigned based on existing sections in the template
  • Only modules with requirements in requirements.json will have sections created
  • Custom modules (e.g., pm_query, multi_lock) are supported and will be assigned the next available section number

Monorepo Support

For projects with multiple subprojects (monorepo structure):

# Auto-detect monorepo root
python3 scripts/generate.py rtm --project "临床系统" --system "EDC v1.0"

# Explicitly specify monorepo root
python3 scripts/generate.py rtm --project "临床系统" --system "EDC v1.0" \
  --project-root /path/to/monorepo

Detected monorepo layouts:

  • apps/, packages/, projects/, modules/, services/ directories
  • Each subproject with its own requirements.json

Template Versioning

Templates are versioned for compatibility tracking:

# Check compatibility (automatic on generate)
python3 scripts/generate.py rtm --project "系统" --system "v1.0" --category 4

# Specify template version
python3 scripts/generate.py rtm --template-version 1.2.0 \
  --project "系统" --system "v1.0" --category 4

Automatic migrations:

  • Templates are automatically migrated to current version
  • Version checks prevent incompatible generator/template combinations

CI/CD Integration

Use provided CI/CD templates for automated documentation generation:

GitHub Actions (templates/ci/github-actions.yml):

- uses: actions/checkout@v4
- uses: actions/setup-python@v5
  with:
    python-version: '3.11'
- run: pip install -r requirements.txt
- run: python scripts/generate.py check --output-format json
- run: python scripts/generate.py all --diff-only

GitLab CI (templates/ci/gitlab-ci.yml):

generate:rtm:
  extends: .csv-docs-base
  script:
    - python scripts/generate.py rtm --diff-only
  artifacts:
    paths:
      - validation/RTM*.xlsx

Important Notes

Template Requirements Are Examples

The URS/FS/TS IDs and descriptions in templates are examples only. For actual projects:

  1. Review and modify template requirements based on real system needs
  2. Delete or replace example requirements as appropriate
  3. Use --sync-template-to-db to populate initial requirements, then customize
Change-Driven Risk Assessment (GxP)

Per GxP requirements, any system change requires a risk assessment. When generating RA documents, include the change description:

python3 scripts/generate.py ra \
  --project "临床系统" \
  --system "EDC v1.0" \
  --change-description "升级数据库从 v12 到 v14" \
  --output ./validation/

Parsing Requirements from Code

# Navigate to skill directory
cd <SKILL_DIR>/csv-documentation-generator

# Parse source code for requirements using csv-docs CLI
python3 scripts/cli.py parse ./src

# View extracted requirements
cat requirements.json

Troubleshooting

Common Issues

IssueSolution
python-docx not installedRun: pip install -r requirements.txt
Encoding errorsEnsure UTF-8 encoding in your terminal
Template not foundCheck you are in the correct directory

Getting Help

Run with verbose output:

python3 scripts/generate.py --help

Examples

AI Agent (Non-Interactive Mode)

For AI agents running in non-interactive mode, use --auto-add to automatically add all parsed requirements:

# Parse and auto-add all requirements (non-interactive)
python3 scripts/cli.py parse ./src --auto-add

# Generate with verbose output
python3 scripts/generate.py all --project "XX系统" --system "System v1.0" --category 4 --verbose

Example 1: Generate URS for CTMS

python3 scripts/generate.py urs \
  --project "临床试验管理系统" \
  --system "CTMS v2.0" \
  --category 4 \
  --bilingual true \
  --output ./validation/

Example 2: Generate Risk Assessment

python3 scripts/generate.py ra \
  --project "质量管理系统" \
  --system "QMS v1.5" \
  --category 4 \
  --critical-functions "数据录入,审计追踪,权限控制" \
  --output ./validation/

Example 3: Generate Traceability Matrix

python3 scripts/generate.py rtm \
  --project "实验室系统" \
  --system "LIMS v3.0" \
  --category 4 \
  --urs-file ./URS-001.md \
  --fs-file ./FS-001.md \
  --output ./validation/

平台分布

OpenClaw

78.87%
按下载量换算2,215

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

可疑

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills