Skip to main content
DocsAI reviewed Jul 21, 2026

DOC-AI-GOV

Define **governance** for **AI/LLM-assisted software development** (e.g., Cursor, Copilot, Claude): human review expectations, **evidence** that generated code is covered by requirements-based tests, **tool validation** for GxP-adjacent workflows, and alignment with **Computer Software Assurance (CSA)** principles (risk-based, critical thinking) without replacing your SOPs.

v1.0.1New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install meddev-skills-doc-ai-gov
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/meddev-skills-doc-ai-gov/SKILL.md

Setup guide →
0Save

Instructions

AI-Assisted Development Governance (LLM Coding Agents)

Purpose

Define governance for AI/LLM-assisted software development (e.g., Cursor, Copilot, Claude): human review expectations, evidence that generated code is covered by requirements-based tests, tool validation for GxP-adjacent workflows, and alignment with Computer Software Assurance (CSA) principles (risk-based, critical thinking) without replacing your SOPs.

When to Apply

  • Teams using LLMs for code generation, refactor, or test synthesis in regulated projects.
  • Establishing AI usage policies for design history / audit trail.
  • Qualifying IDE plugins or CI bots that touch production or QMS repositories.

Requirements (testable)

  1. Policy: Document where LLM assistance is allowed (e.g., scaffolding vs safety-critical modules) and required human review gates per risk class. Rationale: controlled process.
  2. Traceability: Every merged change must retain author/reviewer identity; LLM assistance disclosed in commit or PR template when policy requires. Rationale: audit trail.
  3. Independent Review: For Class B/C changes, second-person review of generated patches focusing on requirements coverage, failure modes, and misinterpreted specs. Rationale: defect detection beyond automation.
  4. Test Evidence: No merge without tests (or justified analysis) demonstrating REQ→TEST linkage for new behavior; forbid “LLM says it works” as evidence. Rationale: verification independence from generator.
  5. Prompt & Context Hygiene: No PHI/PII/proprietary trial data in prompts; use sanitized snippets; pin skill/context versions (e.g., SKILL.md hashes) when claims depend on agent guidance. Rationale: confidentiality and reproducibility.
    5a. IEC 62304 Skills by Class: Load REG-IEC62304 and child skills appropriate to safety class (e.g. DOC-SW-REQ, REG-IEC62304-SWRM for B/C, detailed design for C); record skill IDs/versions in change records. Rationale: proportional lifecycle guidance.
  6. Tool Validation (GxP): For tools affecting GMP/quality records, apply FDA CSA approach: risk assessment, intended use, testing records, and change control when models or plugins update. Rationale: 21 CFR Part 11 / 820 alignment for QMS software.
  7. Regression & Flakes: Treat LLM-generated tests like any other code — deterministic CI, seed control where needed, flake triage. Rationale: valid CI as design verification aid.
  8. Record Retention: Store PR descriptions, review comments, and test reports as part of DHF/evidence; avoid relying on vendor chat logs as SOLE records. Rationale: durable evidence.

Recommended Practices

  • Use a PR checklist: [ ] REQ IDs, [ ] tests added, [ ] reviewer not sole prompt author, [ ] no secrets in diff.
  • Snapshot agent skill versions in release notes when agent guidance materially influenced design.

Patterns

PR template excerpt (markdown):

## AI assistance
- [ ] No PHI/secrets in prompts or logs
- [ ] Assistant tools: Cursor 2.x + skills @ commit `abc1234`
- [ ] Reviewer verified REQ/TEST mapping for generated code

Commit message:

fix: debounce door sensor per REQ-62304-088

AI: scaffolded by LLM; reviewed by @jdoe; TEST-412 added

Anti-Patterns (risks)

  • Blind merge of generated safety-critical code — risk: latent defects and audit failure.
  • Pasting production credentials into chat — risk: data breach and Part 11 issues.
  • Skipping review because “coverage is high” — risk: wrong tests for the right requirement.

Verification Checklist

  • AI use policy acknowledged for the repo/product line.
  • PRs show human reviewer distinct from sole prompt author where required.
  • Requirements and tests updated for all generated behavior changes.
  • No sensitive data in prompts or CI logs (spot audit).
  • Tool/plugin major updates assessed under change control if GxP applies.

Traceability

  • Link REQ-* / TEST-* / PR URLs in change records; optional tag AI-GEN on commits for metrics (internal only).

References

  • FDA Guidance: “Computer Software Assurance for Production and Quality System Software” (2022).
  • IEC 62304:2006+A1:2015 — software development process (human processes still apply).
  • Internal QMS SOPs for design control and records (primary authority).

Changelog

  • 1.0.1 (2026-05-21): Require class-appropriate IEC 62304 child skills and version pinning in change records.
  • 1.0.0 (2026-03-20): Initial skill for LLM-assisted dev governance, review, and CSA alignment.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
meddev-authenticationDefine secure user/device authentication, session management, and RBAC suitable for medical device risk profiles. Use when working on authentication in medical device software.0 installsmeddev-state-machinesDefine explicit, testable state machines with safe states, controlled transitions, and error handling suited to medical device safety classes. Use when working on state machines in medical device software.0 installsmeddev-change-controlDefine controlled change-request workflow for software: impact analysis, approvals, verification scope, and regulatory submission flags. Configuration identification and baselines are in DOC-SCM (IEC 62304 Clause 8.1, 8.3); approved implementation and re-verification align with 8.2. Use when working on change control in medical device software.0 installsCONN-USBImplement safe USB device connectivity: class selection, enumeration handling, data validation, electrical and safety considerations.0 installsmeddev-ai-ml-medical-device-softwareAddress machine learning inside the regulated product (not LLM coding assistants): Good Machine Learning Practice (GMLP), training/validation data integrity, Predetermined Change Control Plans (PCCP) where applicable, drift monitoring, and linking models to ISO 14971 and software lifecycle controls. Use when working on ai ml medical device software in medical device software.0 installsTEST-HILValidate software with real or representative hardware, sensors, actuators, and timing, to uncover integration and safety issues not visible in simulation.0 installs

More from Medical Device Skills

View source →

More Docs skills

Browse category →

Frequently asked questions about DOC-AI-GOV

What does the DOC-AI-GOV skill do?

Define **governance** for **AI/LLM-assisted software development** (e.g., Cursor, Copilot, Claude): human review expectations, **evidence** that generated code is covered by requirements-based tests, **tool validation** for GxP-adjacent workflows, and alignment with **Computer Software Assurance (CSA)** principles (risk-based, critical thinking) without replacing your SOPs. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the DOC-AI-GOV skill?

Run `npx @skills-hub-ai/cli install meddev-skills-doc-ai-gov` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/meddev-skills-doc-ai-gov/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does DOC-AI-GOV work with?

DOC-AI-GOV runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the DOC-AI-GOV skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use DOC-AI-GOV after installing it?

In Claude Code, type `/meddev-skills-doc-ai-gov` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the DOC-AI-GOV skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.