Command Palette

Search for a command to run...

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

component-docs

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

Create lean component documentation for OpenShift repositories

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

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

Component Documentation Creator

Creates lean component agentic documentation for OpenShift component repositories.

Philosophy: Component docs contain ONLY component-specific knowledge. Generic platform patterns live in the openshift/enhancements repo (dev-guide/, guidelines/, CONVENTIONS.md). Code is the source of truth — read it, verify claims against it, but link to existing repo docs that explain the "why".

Two-Tier Architecture

Platform: openshift/enhancements

Contains: Development conventions (dev-guide/), coding standards (CONVENTIONS.md), enhancement guidelines (guidelines/), cross-repo architectural context

Component: Component Repos (LEAN)

Contains: Component-specific architecture, behavioral contracts, development guides, test patterns

Decision Rule: "Would another repo need to duplicate this?"

  • YES → Platform (platform)
  • NO → Component (component)

What Gets Created

component-repo/
├── AGENTS.md                      # Executive briefing (40-60 lines)
├── CLAUDE.md → AGENTS.md          # Symlink (Claude Code auto-loads)
├── REVIEW.md                      # Review instructions (Claude Code Review + CodeRabbit)
├── .coderabbit.yaml               # CodeRabbit config (points at REVIEW.md)
└── ai-docs/
    ├── ARCHITECTURE.md            # Internals, integrations, behavioral contracts, design refs
    ├── DEVELOPMENT.md             # Build, common tasks, mistakes
    ├── TESTING.md                 # Test suites and patterns
    └── ENHANCEMENTS.md            # Optional — enhancement/KEP/design doc catalog

What NOT to Include (lives in Platform)

❌ Generic framework patterns (controller-runtime, status conditions, common libraries) ❌ Testing practices (test pyramid, E2E framework) ❌ Security practices (STRIDE, RBAC guidelines) ❌ Reliability practices (SLO framework) ❌ Kubernetes fundamentals (Pod, Node, Service) ❌ Cross-repo ADRs (etcd, CVO orchestration, immutable nodes)

Hosted knowledge resources

If running inside the Chai Bot environment, use the documentation and other resources configured there, including Slack, Jira, and CodeRAG knowledge. Verify cross-repository facts against authoritative sources, such as upstream GitHub sources or Chai Bot's configured CodeRAG. See Phase 1 for specific query steps.

Execution Workflow

Phase 1: Setup

  • Read existing CLAUDE.md / AGENTS.md before overwriting: If the repo already has either file, read it first and extract important points (build instructions, critical warnings, repo conventions, key patterns, retrieval priorities, documentation maps, and useful direct links) to incorporate into the generated docs. Existing content is prior work — preserve it, don't overwrite blindly.
  • Back up prior agent docs before writing: Save any existing CLAUDE.md / AGENTS.md content under ai-docs/_sources/. Use them as temporary source material for review and recovery during generation.
  • Discover existing repo docs: Scan docs/, docs/enhancements/, design/, CONTRIBUTING.md, and any files with "design", "proposal", "enhancement" in the name. These will be linked from ENHANCEMENTS.md and ARCHITECTURE.md as appropriate. Also scan documentation files at the repository root and look elsewhere throughout the repository for relevant documentation, regardless of filename or location.
  • Record documentation sources used: As existing repository documents are used as sources, record each repo-relative path in ai-docs/_sources/repository-docs-used.txt, one path per line.
  • Resolve this skill directory from the location of the loaded SKILL.md. Resolve all scripts/, templates/, and guides/ paths relative to it. Do not search a plugin cache or assume the repository is the current directory.
  • Preflight required resources: scripts/create-structure.sh, scripts/validate.sh, scripts/cleanup-sources.sh, all referenced templates, and any guide required by the selected execution path. Stop before writing if a required resource is unavailable.
  • Determine repo path: REPO_PATH="${provided_path:-$PWD}"
  • Detect component name from repo (e.g., machine-config-operator → MCO)
  • Run the resolved scripts/create-structure.sh with "$REPO_PATH".
  • Gather tribal knowledge (Chai Bot / hosted environment): If knowledge tools (researcher, Slack, Jira) are available, query them for tribal knowledge about this repository:
    • Search for "<repo-name> convention OR pitfall OR mistake OR gotcha"
    • Search for "<repo-name> review process OR reviewer expectations"
    • Search for "<repo-name> common rejection OR frequently rejected"
    • Search for "<repo-name> design decision OR historical context"
    • Save findings to ai-docs/_sources/tribal-knowledge-notes.md for use in later phases
    • If no hosted knowledge tools are available, skip this step

Phase 2: Create AGENTS.md (40-60 lines)

  • Create initial AGENTS.md at repo r
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

guides/REVIEW-GENERATION.mdscripts/cleanup-sources.shscripts/create-structure.shscripts/validate.shtemplates/AGENTS-template.mdtemplates/DEVELOPMENT-template.mdtemplates/REVIEW-template.mdtemplates/TESTING-template.mdtemplates/coderabbit-template.yaml

FAQ

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

Create lean component documentation for OpenShift repositories

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

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

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

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

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

Сравнить component-docs с