leoyeai/openclaw-master-skills/csv-documentation-generator

Claude Code and agent skill by leoyeai/openclaw-master-skills

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

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.

Install

npx vskill@latest install leoyeai/openclaw-master-skills/csv-documentation-generator

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as leoyeai/openclaw-master-skills/csv-documentation-generator.

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

bash
# 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)
bash
# 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:

markdown
## 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...

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2,157
Repository forks
324
7-day trend score
43

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/leoyeai/openclaw-master-skills/csv-documentation-generator/badge)](https://verified-skill.com/skills/leoyeai/openclaw-master-skills/csv-documentation-generator)

Something wrong with this skill or its page? Tell us.