| doc_id | DOC-AUTO-VALIDATE |
|---|---|
| doc_name | PMOSkills Automated Quality Gates and Validators Guide |
| version | 1.0.0 |
| status | Active |
| authority | PMBOK8 Developer Quality standards (Primary) |
| file_path | docs/developer-tools/automated-validators.md |
This guide details the technical architecture, script execution guidelines, and git hook integrations for the programmatic quality gates enforcing PMOSkills structural and schema compliance.
To ensure the integrity of the workspace, PMOSkills employs a 3-Tier testing pipeline that programmatically validates all repository assets:
┌──────────────────────────────────────────────────────────────────┐
│ L1 Structural Validation Gate │
│ (YAML Headers, Kebab-case Names, Directory Structures) │
└────────────────────────────────┬─────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────────────┐
│ L2 Content Validation Gate │
│ (Placeholder Audits, Zero Pre-filled Brackets Checkers) │
└────────────────────────────────┬─────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────────────┐
│ L3 Integration Flow Validation Gate │
│ (Linear vs Hybrid Scenario Flow Testing, Cross-skill linkages) │
└──────────────────────────────────────────────────────────────────┘
- Enforced By:
shared/validate_structure.py. - Scope: Verifies that all 41 standard process records (
PR01-PR41) are present, confirms filename kebab-case constraints, and validates folder structures.
- Enforced By: Shared quality checklists and placeholder auditors.
- Scope: Scans files recursively for standard brackets (
[...]) representing uninstantiated template data. Ensures compliance with core PMBOK 8th Edition citations.
- Enforced By: Integration flow test files under
tests/. - Scope: Simulates complete project scenario lifecycles (Waterfall, Agile, Hybrid) to confirm that inputs, skills, outputs, and gates link cleanly without logical breaks.
The primary tool for verifying repository health is validate_structure.py. Run it from the repository root:
python3 shared/validate_structure.pyThe script executes the following checks:
- File Inventory Audit: Confirms that all 41 process files in
reference/processes/are correctly named (PR01-...toPR41-...). - Naming Convention Audit: Flags any files with uppercase characters or spaces under
skills/orartifacts/. - Governance Headers Audit: Parses YAML front-matter blocks to verify
statusandauthoritykeys are present.
To prevent non-conforming code from entering your version control history, configure a git pre-commit hook:
- Create a file at
.git/hooks/pre-commit(or edit if it exists). - Add the following shell code:
#!/bin/bash echo "==========================================" echo "PMOSkills pre-commit Quality Gate Audit" echo "==========================================" # Run the structural validator python3 shared/validate_structure.py if [ $? -ne 0 ]; then echo "ERROR: PMOSkills structural validation failed. Commit aborted." exit 1 fi echo "SUCCESS: Quality gates passed. Proceeding with commit." exit 0
- Make the hook executable:
chmod +x .git/hooks/pre-commit
Authority: PMBOK 8 Developer Quality Standards · PMO Shared Governance Board · Dev Tools Guild