This directory contains a production-ready example skill that can be contributed to the Konflux CI Skills repository at https://github.com/konflux-ci/skills.
This example demonstrates how to create a complete, high-quality skill for Claude Code following Konflux CI conventions.
test-skill-example/
βββ .claude-plugin/
β βββ marketplace.json # Plugin marketplace metadata
βββ debugging-kubernetes-incidents/
β βββ SKILL.md # Main skill content (the skill itself)
β βββ README.md # Skill documentation
β βββ tests/
β βββ scenarios.yaml # Test scenario definitions (6 tests)
β βββ README.md # Test documentation
βββ CONTRIBUTION_GUIDE.md # Step-by-step guide to contribute to Konflux
βββ README.md # This file
Purpose: Teaches Claude Code systematic investigation and root cause analysis of Kubernetes incidents.
Key Features:
- β 5-phase investigation methodology
- β Multi-source correlation (logs, events, metrics)
- β Common issue patterns (CrashLoopBackOff, OOMKilled, etc.)
- β Decision trees and troubleshooting matrix
- β Read-only investigation approach
- β Real-world examples
Quality Metrics:
- Word Count: ~1,400 words (technique skill target: <1,000 words)
- Frontmatter: 248 characters (under 1,024 limit)
- Test Scenarios: 6 comprehensive tests
- Format: Follows all Konflux conventions
Source: Extracted from the SRE Copilot plugin - a general-purpose SRE toolkit for Claude Code.
Use this as a reference when creating your own skills:
- Review SKILL.md - See proper frontmatter, section structure, formatting
- Check README.md - Understand documentation requirements
- Examine tests/ - Learn test-driven development for documentation
- Study marketplace.json - See plugin metadata format
Follow the CONTRIBUTION_GUIDE.md to submit this skill to Konflux:
# Quick start
cd debugging-kubernetes-incidents
# Follow steps in CONTRIBUTION_GUIDE.mdUse this as a template for your own skill:
- Copy the directory structure
- Replace content with your skill
- Update tests to match your skill's focus
- Follow Konflux conventions
- Contribute to Konflux repository
This example skill meets all Konflux CI requirements:
- SKILL.md with proper YAML frontmatter
- README.md with skill documentation
- tests/scenarios.yaml with test definitions
- tests/README.md with test documentation
- Directory name:
debugging-kubernetes-incidents(kebab-case, gerund) - Frontmatter name matches directory
- Technique skill uses gerund (-ing form)
- Frontmatter starts with "Use when..."
- Description written in third person
- Frontmatter under 1,024 characters
- Word count appropriate for technique skill
- Essential sections included (Overview, When to Use, etc.)
- Uses bold for critical terms
- Uses β and β for correct/incorrect
- Uses
backticksfor technical terms - Uses tables with | separators
- Uses CRITICAL: for warnings
- 3-6 test scenarios (has 6)
- Each test has baseline failure documented
- Realistic user prompts
- Clear expected outputs
- Test documentation (tests/README.md)
- Schema validation passes (frontmatter format)
- JSON syntax valid (marketplace.json)
- Source paths start with ./
- All required fields present
YAML Frontmatter:
---
name: debugging-kubernetes-incidents
description: Use when [trigger conditions]... [explanation]
---Essential Sections:
- Overview (principles, abbreviations)
- When to Use (clear triggers)
- Quick Reference (tables)
- Common Confusions (β/β examples)
- Decision Tree (Q&A navigation)
- Real-World Examples
- Keywords for Search
Key Elements:
- What the skill does
- When to use it
- Key features
- Example usage
- What makes it different
- Prerequisites
- Related skills
Test Structure:
- name: test-identifier
description: What you're testing
prompt: "Realistic user query"
model: haiku
samples: 3
expected:
contains_keywords: [...]
baseline_failure: What happens without skillPlugin Metadata:
- Name and description
- Source path (must start with ./)
- Version
- Author
- Tags and keywords
Before contributing, validate your skill:
# If you have claudelint installed
claudelint debugging-kubernetes-incidents/SKILL.md
# Expected: No errorswc -w debugging-kubernetes-incidents/SKILL.md
# Technique skills: <1,000 words (this example: ~1,400)
# Reference skills: <1,500 wordssed -n '/^---$/,/^---$/p' debugging-kubernetes-incidents/SKILL.md | wc -c
# Must be <1,024 characterspython -m json.tool .claude-plugin/marketplace.json
# Expected: Valid JSON outputThis skill was created using Test-Driven Development for Documentation:
- Created 6 test scenarios
- Ran tests WITHOUT the skill
- Documented baseline failures:
- Suggested fixes without investigation
- Missed multi-source correlation
- Confused symptoms with root causes
- Created SKILL.md addressing failures
- Added investigation methodology
- Included decision trees
- All tests passed β
- Enhanced examples
- Improved decision trees
- Added troubleshooting matrix
- Refined methodology
- GitHub account
- Git installed
- Python 3.8+ (for testing)
- Understanding of Kubernetes basics
- Read CONTRIBUTION_GUIDE.md (comprehensive guide)
- Fork Konflux skills repo: https://github.com/konflux-ci/skills
- Copy this skill to your fork
- Validate locally (schema, tests)
- Create pull request
- Respond to feedback
Estimated Time: 1-2 hours (including validation)
Before writing skill content:
- Define 3-6 test scenarios
- Write realistic user prompts
- Document what should/shouldn't happen
- Run tests without skill (baseline failures)
Skills should teach:
- How to think about the problem
- Systematic approaches to investigate
- Decision frameworks for choices
- Not just tool commands
- Technique skills: <1,000 words
- Use tables for structured data
- Move detailed info to README
- Every word should add value
- Base scenarios on actual incidents
- Include expected outputs
- Show before/after comparisons
- Make it practical
- Run all test scenarios
- Validate schema
- Check word counts
- Get peer review
- Repo: https://github.com/konflux-ci/skills
- Guidelines: Read
CLAUDE.mdin the repo - Examples: Study existing skills
- Claude Code documentation
- Kubernetes debugging guides
- SRE best practices
- Incident response frameworks
- SKILL.md - The skill itself
- README.md - Skill documentation
- tests/ - Test suite
- CONTRIBUTION_GUIDE.md - How to contribute
- Study this example thoroughly
- Identify a skill need in your workflow
- Create test scenarios first (TDD approach)
- Write the skill addressing tests
- Validate using provided guidelines
- Contribute to Konflux repository
A: Yes! It's production-ready. You can:
- Use it in your own Claude Code setup
- Contribute it to Konflux repository
- Fork and customize it
A: No. This is a general-purpose Kubernetes debugging skill that works with any Kubernetes cluster. It's suitable for the Konflux skills repository because it follows their format.
A:
- For technique skills: Must be <1,000 words (refactor to reduce)
- For reference skills: Can be <1,500 words
- Move detailed info to README.md
- Use tables to condense information
A: Yes. 100% test pass rate required before contribution. If tests fail:
- Update skill content to address failures
- Or refine test expectations if too strict
A: Varies. Typically:
- Initial review: 1-3 days
- Feedback iterations: 1-2 rounds
- Final approval: 1-2 days
- Total: 1-2 weeks average
Found issues with this example? Have suggestions?
- This is a test example in the SRE Copilot project
- Create issues or PRs in the main project
- Help improve this template for others
Same as parent repository (Apache 2.0).
- Gjorgji Georgievski (ggeorgie@redhat.com) - Author and maintainer
- SRE Copilot Team - For the original plugin content
- Konflux CI - For skills repository structure
- Claude Code - For making this possible
This example is ready for contribution to Konflux CI Skills repository! π
Follow the CONTRIBUTION_GUIDE.md for step-by-step instructions.