Answer architecture question using flat file access (Read/Glob/Grep)
Ships in rhoai-security-reviewer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Answer an architecture-context question by reading the architecture docs directly from the filesystem. Produce a machine-readable JSON answer and a human-readable markdown summary.
You will receive the following in the prompt:
QUESTION — the architecture question to answerQUESTION_ID — the corpus question ID (e.g., t1-001)ARCH_CONTEXT_DIR — absolute path to the architecture-context directoryOUTPUT_DIR — directory to write your output files$ARCH_CONTEXT_DIR. Do not access any other directories, repos, or external sources.architecture/rhoai-3.4-ea.2/kserve.md).The directory is organized by RHOAI release version:
architecture/rhoai-{VERSION}/{component}.mdarchitecture/rhoai-{VERSION}/PLATFORM.mdoverlays/{NNNN}-{description}.mdcurrent-ga, early-access, latest-released, newest (point to version dirs)Start by listing the architecture/ directory to see available versions, then navigate to the relevant version.
Your primary output is a JSON file conforming to this schema.
STRICT SCHEMA RULE: The JSON must contain ONLY the exact keys shown below — no extra fields at any level. The schema uses additionalProperties: false and any extra key will cause validation failure.
{
"question_id": "t1-001",
"question": "Is InstructLab a RHOAI component?",
"answer": "No. InstructLab is not listed in the RHOAI component inventory. It is a RHEL AI component.",
"answerable": false,
"sources_cited": [
{
"source": "architecture/rhoai-3.4-ea.2/PLATFORM.md",
"excerpt": "Component Count: 45 ... [InstructLab not in list]"
}
],
"confidence": "high"
}
Field definitions:
question_id: string — the corpus question ID from QUESTION_IDquestion: string — the question text from QUESTIONanswer: string — your answer, or "Not documented in the architecture-context." if the information is not presentanswerable: boolean — true if you found the answer in the docs, false if the information is not documentedsources_cited: array of objects, each with:
source: string — file path relative to architecture-context root (e.g., architecture/rhoai-3.4-ea.2/kserve.md)excerpt: string — the relevant passage from that file (max 200 chars)confidence: string enum — one of:
high — found an exact answer in the docsmedium — inferred from partial information across one or more docslow — uncertain; docs are ambiguous or cover the topic only tangentiallyUnderstand the question. Determine what kind of information is being asked for: component existence, a specific fact (port, CRD, API), a cross-component relationship, or directory navigation.
Navigate the architecture directory. Use Glob to list available versions and components. Identify the most relevant version for the question (default to the latest or rhoai.next if the question doesn't specify).
Search for relevant content. Use Grep to find mentions of the subject across component docs. Use Read to examine the most relevant files.
Formulate your answer. Base it strictly on what the docs say. If the docs don't cover the topic, say so.
Cite your sources. List every file you read that contributed to your answer, with the relevant excerpt.
Assess your confidence. High if the docs directly answer the question, medium if you had to infer, low if the docs are unclear.
Write two files in OUTPUT_DIR:
{QUESTION_ID}.json — the JSON object described above{QUESTION_ID}.md — a human-readable rendering:# Answer: {QUESTION_ID}
## Question
{question text}
## Answer
{answer text}
## Sources
- **{file path}**: {excerpt}
## Confidence: {high/medium/low}
## Answerable: {yes/no}
What SKILL.md sets; muted values are Claude Code's defaults
/rhoai-security-reviewer:bench-answer-flatfrom rhoai-security-reviewer
rhoai-security-reviewer@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin rhoai-security-reviewer28 skills in this plugin
/bug-context-mapMap bug to available architecture contextOther plugins' skills for the same job