From agentic-docs
Update existing platform documentation with automatic gap detection in openshift/enhancements
How this skill is triggered — by the user, by Claude, or both
Slash command
/agentic-docs:update-platform-docsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Incrementally update existing AI-optimized platform documentation in `openshift/enhancements/ai-docs/` without regenerating everything.
Incrementally update existing AI-optimized platform documentation in openshift/enhancements/ai-docs/ without regenerating everything.
Features:
Use when:
Don't use when:
SKILL_DIR=$(find ~/.claude/plugins/cache -path "*/update-platform-docs" -type d | head -1)REPO_PATH="${provided_path:-$PWD}"bash "$SKILL_DIR/scripts/discover.sh" "$REPO_PATH"bash "$SKILL_DIR/scripts/gap-detection.sh" "$REPO_PATH"Based on user request, perform ONE OR MORE of:
platform/operator-patterns/platform/operator-patterns/index.mdAGENTS.md navigation if neededtemplates/operator-pattern-template.md for structuredomain/kubernetes/ or domain/openshift/domain/*/index.mdAGENTS.md navigation if neededtemplates/domain-concept-template.md for structurepractices/*/practices/*/index.mdAGENTS.md navigation if neededtemplates/practice-template.md for structuredecisions/adr-NNNN-*.mddecisions/index.mdAGENTS.md navigation if neededtemplates/adr-template.md for structureworkflows/ (e.g., exec-plans/)workflows/index.mdAGENTS.md navigation if neededAGENTS.mdbash "$SKILL_DIR/scripts/validate.sh" "$REPO_PATH"User request: "Add RBAC patterns to operator patterns"
Actions:
platform/operator-patterns/rbac.md using pattern templateplatform/operator-patterns/index.mdAGENTS.md under "Standard Operator Patterns"User request: "Add exec-plans guidance to workflows"
Actions:
workflows/exec-plans/ directoryworkflows/exec-plans/README.md from templateworkflows/exec-plans/template.md from templateworkflows/index.md with new sectionAGENTS.md under "Workflows"User request: "Add link to new ADR in AGENTS.md"
Actions:
AGENTS.mdUser request: "Add security practices section with STRIDE and secrets handling"
Actions:
practices/security/threat-modeling.mdpractices/security/secrets.mdpractices/security/index.mdAGENTS.md under "Engineering Practices"MUST follow these conventions:
index.md NOT README.md (exception: exec-plans/README.md)adr-NNNN- prefix (4 digits with leading zeros)templates/Verification Requirements: API/CRD claims link to github.com/openshift/api or kubernetes/apimachinery; pattern claims link to implementations; version/convention claims verified in actual repos (3+ samples); architectural claims link to enhancements/ADRs
- [filename.md](filename.md) - Brief descriptionAfter updates, verify:
✅ New files use correct naming conventions ✅ Index files updated with new entries ✅ AGENTS.md updated if needed (and 100-200 lines) ✅ Internal links work ✅ Files follow reference style (tables, checklists) ✅ No duplication of dev-guide/guidelines content
Automatic workflow:
Gap categories scanned:
User chooses:
/update-platform-docs
# Automatic gap detection runs:
🔍 Scanning ai-docs/ for gaps...
## Platform Patterns
Missing:
- platform/operator-patterns/webhooks.md
- platform/operator-patterns/finalizers.md
## Workflows
Missing:
- workflows/exec-plans/README.md
- workflows/exec-plans/template.md
📊 Summary: 4 missing files detected
# User selects:
"Fill all gaps" OR "Fill exec-plans only" OR "Custom: add observability practices"
# Actions: Creates missing files, updates indexes, validates
/update-platform-docs
# User: "Add exec-plans guidance to workflows"
# Actions:
mkdir -p ai-docs/workflows/exec-plans
# Create README.md from template
# Create template.md from template
# Update workflows/index.md
# Update AGENTS.md
# Update create-structure.sh
# Validate
/update-platform-docs
# User: "Add webhooks pattern to operator patterns"
# Actions:
# Create platform/operator-patterns/webhooks.md from template
# Update platform/operator-patterns/index.md
# Update AGENTS.md (add link to webhooks)
# Validate
/update-platform-docs
# User: "Add conversion webhooks section to webhooks.md"
# Actions:
# Read platform/operator-patterns/webhooks.md
# Add new section with conversion webhook guidance
# Validate (check line count, style)
/update-platform-docs [--path <repository-path>]
Arguments:
--path <repository-path>: Path to enhancements repository (default: current directory)Before running:
✅ Platform Documentation Updated
Repository: /path/to/enhancements
Changes:
✅ Created: ai-docs/workflows/exec-plans/README.md
✅ Created: ai-docs/workflows/exec-plans/template.md
✅ Updated: ai-docs/workflows/index.md
✅ Updated: AGENTS.md (added exec-plans link)
Validation:
✅ File naming conventions correct
✅ Index files updated
✅ AGENTS.md: 192 lines (target: ≤200)
✅ Internal links valid
✅ Reference style maintained
Next Steps:
1. Review changes
2. Run: git add ai-docs/ AGENTS.md
3. Run: git commit -m "Add exec-plans workflow guidance"
Wrong: Adding verbose descriptions to AGENTS.md Right: Keep compressed, table-based navigation only
Wrong: Creating new file without updating parent index.md Right: Always update corresponding index.md
Wrong: Creating README.md (except in exec-plans/) or adr-1-topic.md
Right: Use index.md (or exec-plans/README.md as exception) and adr-0001-topic.md
Wrong: Copying content from dev-guide/guidelines Right: Link to authoritative source or reformat for AI agents
Wrong: Patterns from memory, API fields without checking github.com/openshift/api, unverified conventions Right: Verify in actual code, link to type definitions (k8s/apimachinery, openshift/api), check multiple repos for patterns
/component-docs - Create component documentationGuides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Runs a structured interview session to sharpen plans or designs, producing ADRs and a glossary as output.
Applies curated color/font themes to slides, docs, and HTML artifacts. Includes 10 preset themes and can generate custom themes on demand.
2plugins reuse this skill
First indexed Jul 11, 2026
npx claudepluginhub cblecker/ai-helpers --plugin agentic-docs