circleci-config-validator

Validate .circleci/config.yml files for syntax, structure, security, and best practices. Use when validating CircleCI pipeline configuration, auditing CI/CD workflows, linting .circleci/config.yml, or checking CircleCI config for common mistakes.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "circleci-config-validator" with this command: npx skills add charlie-morrison/circleci-config-validator

circleci-config-validator

A pure Python 3 (stdlib + PyYAML) validator for .circleci/config.yml files covering 22 rules across 5 categories.

Commands

python3 scripts/circleci_config_validator.py <command> [options] FILE
CommandDescription
validateFull validation — all 22 rules
checkQuick syntax + structure check only
jobsList all jobs with executor type and step count
graphShow workflow dependency graph as text

Options

OptionDescription
--format text|json|summaryOutput format (default: text)
--strictTreat warnings as errors (exit 1)

Rules

IDCategorySevDescription
S001StructureEYAML syntax error
S002StructureEMissing version key
S003StructureEInvalid version (must be 2 or 2.1)
S004StructureWMissing jobs or workflows section
S005StructureWUnknown top-level keys
J001JobsEJob missing execution environment
J002JobsEJob missing steps
J003JobsWEmpty steps list
J004JobsWUnknown step name
J005JobsErun step missing command
W001WorkflowsEWorkflow references undefined job
W002WorkflowsECircular job dependency via requires
W003WorkflowsErequires references undefined job
W004WorkflowsWEmpty workflow (no jobs)
SEC1SecurityEHardcoded secret in environment variable
SEC2SecurityWsetup_remote_docker without version pin
SEC3SecurityWDeprecated deploy step used
SEC4SecurityIcontext used without branch filters
B001Best PracticesIMissing resource_class
B002Best PracticesINo working_directory set
B003Best PracticesWsave_cache without matching restore_cache
B004Best PracticesWDocker image using latest tag

Examples

# Full validation
python3 scripts/circleci_config_validator.py validate .circleci/config.yml

# Quick syntax check
python3 scripts/circleci_config_validator.py check .circleci/config.yml

# JSON output for CI
python3 scripts/circleci_config_validator.py --format json validate .circleci/config.yml

# One-line pass/fail
python3 scripts/circleci_config_validator.py --format summary validate .circleci/config.yml

# Strict mode (warnings = errors)
python3 scripts/circleci_config_validator.py --strict validate .circleci/config.yml

# List jobs
python3 scripts/circleci_config_validator.py jobs .circleci/config.yml

# Dependency graph
python3 scripts/circleci_config_validator.py graph .circleci/config.yml

Exit Codes

  • 0 — No errors (warnings may exist)
  • 1 — Errors found (or warnings in --strict mode)
  • 2 — File not found or YAML parse error

Requirements

  • Python 3.7+
  • PyYAML (falls back to graceful error if unavailable)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

AxonFlow Governance Policies

Govern OpenClaw with AxonFlow — block dangerous commands, detect PII, prevent data exfiltration, protect agent config files, explain policy decisions, grant...

Registry SourceRecently Updated
Security

Crypto Guardian

Provides security guidance and checks for safely managing crypto wallets, keys, seed phrases, approvals, multisig, and incident response for AI agents.

Registry SourceRecently Updated
Security

Secrets Audit

Scan projects and codebases for exposed secrets, API keys, tokens, passwords, and sensitive credentials. Detects hardcoded secrets in source code, config fil...

Registry SourceRecently Updated
Security

CSP Policy Generator

Generate, validate, and tighten Content Security Policy (CSP) headers for web applications. Analyze existing pages to discover resource origins, build least-...

Registry SourceRecently Updated