一键导入
coderabbit-inheritance-scanner-check
Use when checking a repository's .coderabbit.yaml (or .coderabbit.yml) to determine whether inheritance: true is set
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when checking a repository's .coderabbit.yaml (or .coderabbit.yml) to determine whether inheritance: true is set
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a Component Readiness triage record link to a JIRA issue description
Grade component health based on regression triage metrics for OpenShift releases
Fork, sync, and open a fix PR to add inheritance: true to a repo's .coderabbit.yaml
Fetch and analyze component health regressions for OpenShift releases
Analyze and compare disruption across one or more Prow CI job runs by examining interval data, audit logs, pod logs, and CPU metrics
Analyze a payload (rejected, accepted, or in-progress) with historical lookback to identify root causes of blocking job failures and produce an HTML report
| name | CodeRabbit Inheritance Scanner - Check |
| description | Use when checking a repository's .coderabbit.yaml (or .coderabbit.yml) to determine whether inheritance: true is set |
This skill checks a single repository's .coderabbit.yaml (or .coderabbit.yml) to determine whether inheritance: true is set.
Use this skill as Step 2 of the /teams:coderabbit-inheritance-scanner command. Call it once per repo found by the search skill. Multiple repos can be checked in a single bash invocation using the batch procedure below.
For a batch of repos stored in a bash array, run the following to classify each one:
# Input: REPOS array of "org/repo" strings
# Output: prints classification and default branch for each repo
for REPO in "${REPOS[@]}"; do
CONTENT=""
CFGFILE=""
for FILENAME in .coderabbit.yaml .coderabbit.yml; do
CONTENT=$(gh api "repos/${REPO}/contents/${FILENAME}" --jq '.content' 2>/dev/null | base64 -d 2>/dev/null)
if [ -n "$CONTENT" ]; then
CFGFILE="$FILENAME"
break
fi
done
# Get default branch for link generation
DEFAULT_BRANCH=$(gh api "repos/${REPO}" --jq '.default_branch' 2>/dev/null)
if [ -z "$CONTENT" ]; then
echo "ERROR|${REPO}|${DEFAULT_BRANCH}|${CFGFILE}"
continue
fi
if echo "$CONTENT" | grep -qE '^\s*inheritance:\s*true'; then
echo "COMPLIANT|${REPO}|${DEFAULT_BRANCH}|${CFGFILE}"
elif echo "$CONTENT" | grep -qE '^\s*inheritance:\s*false'; then
echo "FALSE|${REPO}|${DEFAULT_BRANCH}|${CFGFILE}"
else
echo "MISSING|${REPO}|${DEFAULT_BRANCH}|${CFGFILE}"
fi
sleep 0.3
done
Pipe-separated fields per line:
STATUS|org/repo|default_branch|config_filename
Where STATUS is one of:
COMPLIANT - inheritance: true is setFALSE - inheritance: false is explicitly setMISSING - the inheritance key is absentERROR - could not fetch the file