Claude Code skills and commands for debugging Conforma policy violations.
These tools help you understand and resolve EC validation failures by:
- Parsing validation logs to extract violations
- Reading policy rule source code and metadata
- Analyzing what each rule checks and how to fix it
- Providing actionable debugging reports
Copy the .claude directory to your project or home directory:
# Clone this repo
git clone https://github.com/conforma/claude-skills.git
# Copy to your project
cp -r claude-skills/.claude /path/to/your/project/
# Or copy to home directory for global access
cp -r claude-skills/.claude ~/Set up a local debugging environment from a Conforma validation log.
/ec-setup logs/validation.log
This command:
- Extracts the policy configuration from the log
- Saves the public key for signature verification
- Pulls the policy OCI bundle
- Generates a
run.shscript to reproduce the validation locally
Parse a log file and debug all policy violations.
/ec-debug-violations logs/validation.log
This command:
- Extracts all unique violation codes from the log
- Looks up each rule's metadata (title, description, solution)
- Analyzes affected components and error messages
- Provides root cause analysis and recommended actions
- Generates a prioritized summary
Core skill for investigating individual policy violations. Automatically invoked when asking about EC violations.
Example prompts:
- "Why did
olm.unmapped_referencesfail?" - "What does the
rpm_packages.unique_versionrule check?" - "Debug this EC validation error: [paste error]"
.claude/
├── commands/
│ ├── ec-setup.md # /ec-setup command
│ └── ec-debug-violations.md # /ec-debug-violations command
├── skills/
│ └── ec-policy-debugging/
│ ├── SKILL.md # Skill definition
│ ├── debugging.md # Full debugging reference
│ └── summarize_violations.py # Log parsing utility
└── settings.local.json # Claude Code settings
- Claude Code CLI
- ec-cli (for local validation)
- conftest (for pulling policy bundles)
- cosign (for downloading attestations)
- crane (for inspecting images)
-
Get a validation log from a failed Konflux/Conforma pipeline
-
Set up debugging environment:
/ec-setup logs/my-validation.log -
Debug all violations:
/ec-debug-violations logs/my-validation.log -
Investigate specific violations:
"Why is olm.unmapped_references failing for the operator bundle?" -
Run validation locally (after setup):
cd release-policies-myimage-amd64/ ./run.sh
Apache 2.0