/knowledge-skills:knowledge-repofrom knowledge-skills
Scan merged PRs and propose updates to AI context files (CLAUDE.md, AGENTS.md) and skill files (SKILL.md, prompts) as a git-apply-able patch. Non-interactive.
Ships in knowledge-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Scan merged PRs from the last N days, extract knowledge relevant to AI agent
context, and propose updates to context and skill files as a git apply-able
patch.
Parse $ARGUMENTS for:
--days N (default: 7) — how far back to scan merged PRsExecute these phases in order. Exit early where indicated.
Run all agents in the foreground (run_in_background: false) and wait for
their results. Do not end your turn to wait for a background notification.
Before reporting success, verify that artifacts/run-report.json exists and,
unless taking an early exit below, artifacts/proposed-updates.patch exists.
Read the repo context file provided by the CI runner:
cat artifacts/repo-context.json
This contains forge (github/gitlab) and slug (owner/repo).
If it does not exist, print an error and STOP.
Create the artifacts directory structure:
mkdir -p artifacts/pr-data artifacts/pr-extractions
Run bash $SKILL_DIR/scripts/list-context-files.sh artifacts/context-file-list.txt
echo '{"early_exit":"no_context_files","prs_scanned":0}' > artifacts/run-report.json
PR data is pre-fetched by the CI runner and placed in artifacts/pr-data/.
ls artifacts/pr-data/*.json 2>/dev/null | wc -l
If zero, write this run report and STOP:
echo '{"early_exit":"no_prs","prs_scanned":0}' > artifacts/run-report.json
For each .json file in artifacts/pr-data/:
123.json → 123).$SKILL_DIR/prompts/extract-agent.md.{ID} with the actual PR ID.artifacts/pr-extractions/{id}.md before
starting the next PR. If the file is missing, print an error and STOP;
do not treat a failed extraction as having no knowledge.After all PRs have been extracted, check if any extraction file contains knowledge items.
Read each artifacts/pr-extractions/*.md file and look for content under the
## Knowledge Items heading beyond just the heading itself.
If NO extraction file contains any knowledge items, write this run report and STOP:
echo '{"early_exit":"no_knowledge","prs_scanned":N,"prs_with_knowledge":0}' > artifacts/run-report.json
(Replace N with the actual count of PR data files.)
Read $SKILL_DIR/prompts/synthesize-agent.md.
Dispatch a foreground Agent with the prompt, using model opus.
After the agent completes, check for changes:
git diff --stat
If the diff is empty (no tracked files were modified), write this run report and STOP:
echo '{"early_exit":"no_changes","prs_scanned":N,"prs_with_knowledge":M,"changes_proposed":0}' > artifacts/run-report.json
Save the diff for the review agent:
git diff > artifacts/proposed-diff.txt
$SKILL_DIR/prompts/review-agent.md.artifacts/review.md and parse the verdict
from the YAML frontmatter.If the review verdict is PASS, skip this phase entirely.
If the verdict is REVISE:
$SKILL_DIR/prompts/revise-agent.md.Capture the final patch:
git diff > artifacts/proposed-updates.patch
Reset the working tree:
git checkout -- .
Write artifacts/run-report.json with these fields:
forge: the detected forge typerepo: the owner/repo slugdate_range: {"from": "YYYY-MM-DD", "to": "YYYY-MM-DD"}prs_scanned: count of files in artifacts/pr-data/prs_with_knowledge: count of extraction files with non-empty knowledge itemsknowledge_items: {"high": N, "medium": N, "low": N} counts from extractionschanges_proposed: count of changes listed in artifacts/changes-summary.mdreview_verdict: the verdict from artifacts/review.mdpatch_file: "artifacts/proposed-updates.patch"Build these counts by reading the extraction and summary files.
Print: "Knowledge sync complete. Artifacts written to artifacts/"
What SKILL.md sets; muted values are Claude Code's defaults
knowledge-skills@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin knowledge-skills4 skills in this plugin
/enrich-reportsEnrich case study skeletons with analysis-derived lessons, error signatures, fix types, and prevention advice. Non-interactive./knowledge-extractionIngest enriched failure reports into the LLM wiki and maintain an examples catalog of real incidents and their fixes./wiki-curatorMerge duplicate wiki pages, drop stale claims, and keep the wiki index and log from growing without bound.Other plugins' skills for the same job