helpers/skills/doc-gap/SKILL.md
Use this skill to analyze context sufficiency for documentation generation. Reads workspace/context-package.json and produces workspace/gap-report.json with severity-rated gaps and a proceed/gather-more/stop recommendation.
npx skillsauth add opendatahub-io/ai-helpers doc-gapInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Assess whether the gathered context is sufficient to produce quality documentation.
workspace/context-package.json must exist (produced by doc-gather).
$ARGUMENTS optionally contains a component name to focus the analysis on. If empty, analyze all components found in the context package.
Input validation:
workspace/context-package.json.Read workspace/context-package.json and extract:
Perform these checks without LLM judgment:
Record each check as a finding with pass/fail status.
Read the gap analysis prompt from ${CLAUDE_SKILL_DIR}/prompts/gap-analysis.md.
Construct an LLM prompt combining:
Before prompt assembly, apply deterministic redaction to all snippets:
<REDACTED_TOKEN_1>).Ask the LLM to assess:
Combine deterministic check results with LLM assessment into a unified gap report.
Write workspace/gap-report.json with this structure:
{
"recommendation": "proceed",
"confidence": 0.82,
"summary": "Context is sufficient for basic documentation...",
"deterministic_checks": [
{
"check": "component_coverage",
"status": "pass",
"details": "Found context for 2/2 ticket components"
}
],
"gaps": [
{
"severity": "medium",
"category": "examples",
"description": "No sample YAML configurations found",
"impact": "Documentation will lack concrete examples",
"suggestion": "Check component repo for example/ directory"
}
],
"existing_coverage": [
{
"topic": "Model serving overview",
"source": "modules/serving/pages/con_model-serving.adoc",
"quality": "sufficient"
}
],
"analyzed_at": "2026-04-14T10:35:00Z"
}
Schema requirements:
recommendation, confidence, summary, deterministic_checks, gaps, existing_coverage, analyzed_at.recommendation MUST be one of: proceed, gather-more, stop.confidence MUST be a float in [0.0, 1.0].Primary: workspace/gap-report.json
Report to caller: recommendation, confidence score, number of gaps by severity.
workspace/context-package.json file must already exist (produced by doc-gather) — this skill will not create it.development
Run hexora static analysis on a Python package repository to detect suspicious code patterns, then triage findings with deterministic rules and AI reasoning to produce a structured risk report section.
development
Inspect recent git history of a Python package repository for suspicious commits touching supply-chain-sensitive files, then triage findings with AI reasoning to produce a structured risk report section.
development
Scan a Python package repository for compiled/binary files using Fromager-style detection and malcontent YARA analysis, then triage findings with deterministic rules and AI reasoning to produce a structured risk report section.
testing
Use this skill to identify non-Red Hat RPM packages installed in container images or on the local machine. For containers, pulls images across multiple architectures and release tags; for local scans, inspects the host directly. Extracts RPM signing metadata and reports packages not signed with the Red Hat GPG key as CSV output. Use when auditing compliance, checking supply-chain provenance, or scanning for third-party RPMs in RHOAI component images.