Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

update-platform-docs

БесплатноЗапускает вложенные скриптыНе проверен

Update existing platform documentation with automatic gap detection in openshift/enhancements

openshift-engот openshift-eng★ 123 звезды на GitHub

Об этом скилле

Platform Documentation Updater

Incrementally update existing AI-optimized platform documentation in openshift/enhancements/ai-docs/ without regenerating everything.

Features:

  • Automatic gap detection - Scans ai-docs/ and reports missing files
  • Targeted updates - Add specific content without full regeneration
  • Smart navigation - Auto-updates index files and AGENTS.md
  • Validation - Ensures quality and conventions

Use when:

  • Discovering what's missing from documentation
  • Adding new content to existing documentation
  • Adding new sections (e.g., workflows/exec-plans/)
  • Updating AGENTS.md with new links
  • Adding new domain concepts, patterns, or ADRs
  • Fixing or enhancing existing files

Don't use when:

  • You want to completely regenerate all docs from scratch

Execution Workflow

Phase 1: Discovery & Gap Detection

  • Resolve this skill directory from the location of the loaded SKILL.md. Resolve all scripts/ and templates/ paths relative to it. Do not search a plugin cache or assume the repository is the current directory.
  • Preflight every script and template required by the selected update before changing the repository. Stop and identify any missing resource.
  • Determine repo path: REPO_PATH="${provided_path:-$PWD}"
  • Run the resolved scripts/discover.sh with "$REPO_PATH"
  • Verify ai-docs/ exists (ai-docs/ should already exist in openshift/enhancements)
  • Run the resolved scripts/gap-detection.sh with "$REPO_PATH"
  • Show gap detection results to user
  • Ask user: Fill detected gaps OR specify custom addition?

Phase 2: Perform Updates

Based on user request, perform ONE OR MORE of:

Add New Platform Pattern

  • Create new file in platform/operator-patterns/
  • Update platform/operator-patterns/index.md
  • Update AGENTS.md navigation if needed
  • Use templates/operator-pattern-template.md for structure

Add New Domain Concept

  • Create new file in domain/kubernetes/ or domain/openshift/
  • Update corresponding domain/*/index.md
  • Update AGENTS.md navigation if needed
  • Use templates/domain-concept-template.md for structure

Add New Practice

  • Create new file in practices/*/
  • Update corresponding practices/*/index.md
  • Update AGENTS.md navigation if needed
  • Use templates/practice-template.md for structure

Add New ADR

  • Create new file in decisions/adr-NNNN-*.md
  • Update decisions/index.md
  • Update AGENTS.md navigation if needed
  • Use templates/adr-template.md for structure

Add New Workflow Section

  • Create new directory in workflows/ (e.g., exec-plans/)
  • Create files in new section
  • Update workflows/index.md
  • Update AGENTS.md navigation if needed

Update AGENTS.md

  • Read current AGENTS.md
  • Add new navigation links
  • Verify line count stays 100-200 lines
  • Maintain compressed table format

Update Existing Files

  • Read current file
  • Make targeted updates (add section, update content)
  • Preserve existing structure
  • Maintain file length targets

Phase 3: Validation & Verification

  • Run the resolved scripts/validate.sh with "$REPO_PATH"
  • Verify new files follow conventions, AGENTS.md 100-200 lines, internal links work
  • Anti-hallucination: Pattern claims verified in sample repos, API fields link to github.com/openshift/api or k8s/apimachinery, cross-check terminology with openshift-docs
  • All technical claims have references (type definitions, implementations, or enhancements)

Phase 4: Report

  • List files created
  • List files updated
  • Show validation status
  • Suggest git commit command

Update Scenarios

Scenario 1: Add New Operator Pattern

User request: "Add RBAC patterns to operator patterns"

Actions:

  1. Create platform/operator-patterns/rbac.md using pattern template
  2. Add entry to platform/operator-patterns/index.md
  3. Add link to AGENTS.md under "Standard Operator Patterns"
  4. Validate

Scenario 2: Add New Workflow Section

User request: "Add exec-plans guidance to workflows"

Actions:

  1. Create workflows/exec-plans/ directory
  2. Create workflows/exec-plans/README.md from template
  3. Create workflows/exec-plans/template.md from template
  4. Update workflows/index.md with new section
  5. Add link to AGENTS.md under "Workflows"
  6. Validate

Scenario 3: Update AGENTS.md

User request: "Add link to new ADR in AGENTS.md"

Actions:

  1. Read current AGENTS.md
  2. Find "Cross-Repo Architectural Decisions" section
  3. Add new ADR link in table format
  4. Verify line count ≤200
  5. Validate

Scenario 4: Add Multiple Related Files

User request: "Add security practices section with STRIDE and secrets handling"

Actions:

  1. Create practices/security/threat-modeling.md
  2. Create practices/security/secrets.md
  3. Update `
Полный SKILL.md на GitHub

Установить update-platform-docs в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/discover.shscripts/gap-detection.shscripts/validate.shtemplates/adr-template.mdtemplates/domain-concept-template.mdtemplates/operator-pattern-template.mdtemplates/practice-template.md

FAQ

Что делает скилл update-platform-docs?

Update existing platform documentation with automatic gap detection in openshift/enhancements

Как установить скилл update-platform-docs?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл update-platform-docs запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить update-platform-docs с