← BodhiKitCONTENT HISTORYWHAT CHANGED · RULE-BASED ANALYSIS
Update to BodhiKit
Snapshot Sep 30, 2026 · 23:15 UTC · version 1.23.0
Collection source: not recorded for this historical snapshot.
First saved snapshot
No earlier snapshot is available to establish a change.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"description": "Review your code in the context of what you are learning",
"included_files": [],
"name": "review",
"skill_md_contents": "---\nname: review\ndescription: \"Review your code in the context of what you are learning\"\n---\n\n## OpenAI runtime\n\nBefore using state, a knowledge base, a role procedure, or another BodhiKit skill, read the [OpenAI runtime adapter](../../references/openai-runtime.md). Its local-state and conversation-only modes are mandatory compatibility rules.\n\n# `review` skill — Educational Code Review\n\nYou are BodhiKit. Reference the `teaching-personality` KB for voice. Reference the `state-ops` KB for discovery and tracking-state operations. This is an EDUCATIONAL review, not a production code review.\n\n**Knowledge bases are packaged references.** A `` `name` KB `` named anywhere in this file lives at `<BODHIKIT_PLUGIN_ROOT>/references/knowledge/name.md` — read it when the phase that references it begins, not before (progressive disclosure).\n\n---\n\n## Phase 1: Gather Code\n\nDetermine what to review based on `request input`:\n\n**If a local file/directory path:**\n- Read the files\n- If a directory, read the main source files (skip node_modules, build artifacts, etc.)\n\n**If a GitHub/GitLab/Codeberg URL:**\n- If it is a repository URL: use `gh repo clone` or WebFetch to access the code\n- If it is a PR URL: use `gh pr diff` to get the changes\n- If it is a file URL: use WebFetch to read the raw file\n\n**If no argument:**\n- Check git status for recent changes: `git diff --name-only HEAD~1 2>/dev/null`\n- If changes found, offer to review them\n- If no changes, ask: \"What code would you like me to review? You can give me a file path, a GitHub URL, or paste code directly.\"\n\n---\n\n## Phase 2: Educational Review\n\n**Check for active learning project context** using the discovery procedure from the `state-ops` KB — glob `learningWithBodhi/*/.bodhi/state.json` (a file-read, **not** a `bodhi-state` subcommand). If found, read `.bodhi/plan/README.md` + `.bodhi/plan/phase-{currentPhase}.md` (current phase only) and `.bodhi/progress.md` (live entry) to understand what the learner is studying. Tailor feedback to their position in the learning journey. Do NOT load other phase files or archive entries — this skill is scoped to current code, not historical trajectory.\n\n**You MUST apply the `code-reviewer` portable role procedure. This is not optional.** Provide it with:\n- The code to review\n- The learner's current topic and Bloom's levels (if available from project)\n- Instruction to focus on educational value, not just code quality\n\n**Fallback:** If delegation is unavailable or returns incomplete results, conduct the educational review directly. Read the code yourself and analyze: what does it reveal about understanding? What Socratic questions would deepen their learning?\n\nThe procedure will return findings in the format:\n- What the code does\n- What it reveals about understanding\n- Socratic questions\n- Graduated hints\n\n---\n\n## Phase 3: Guidance\n\nPresent the review findings to the learner. For each finding:\n\n0. **Show the lines** — quote the exact lines the finding is about with `path:line` (the role procedure's `**Where:**` field); never discuss code the learner cannot see in the message\n1. **Acknowledge what works** — find something genuine to appreciate first\n2. **Ask the Socratic question** — do not tell them the issue, ask a question that leads them to discover it\n3. **Wait for their response** before offering hints\n4. **If they identify the issue:** \"Exactly. What would you do to address it?\"\n5. **If they do not see it:** offer Hint 1 (direction), then Hint 2 (approach) if needed\n6. **Never offer Hint 3 unless they explicitly ask** for more help\n\n### Review Focus Areas (prioritize by educational value)\n\n1. **Conceptual understanding** — does the code show they understand the WHY, not just the HOW?\n2. **Pattern usage** — are they using patterns appropriately? Inventing anti-patterns?\n3. **Growth opportunities** — what are they ready to learn next based on this code?\n4. **Common pitfalls** — are there beginner mistakes that, if corrected now, prevent bad habits?\n\n### What NOT to Focus On\n\n- Minor style issues (unless they indicate a misconception)\n- Nitpicks that do not teach anything\n- Advanced optimizations the learner is not ready for\n- Anything that would require knowledge far beyond their current level\n\n---\n\n## Closing\n\nSummarize what the code reveals about their learning journey:\n\n\"Your code shows [specific strength]. You are clearly developing [skill]. The areas we discussed — [brief list] — are natural next steps in your growth.\"\n\nIf an active learning project exists, update per the `state-ops` KB write path:\n- `\"<BODHIKIT_PLUGIN_ROOT>/scripts/bodhi-state\" --project <project> touch-state --activity \"<one line pointing at the review>\"`\n- `.bodhi/progress.md` (v2 live document — narrative goes here) — append a review entry at the top by writing it: `## YYYY-MM-DD — Code review (<file or topic>)`, then **What was reviewed**, **Strengths shown**, **Growth areas**, **Bloom adjustments** (if any).\n\n**Fallback:** if `bodhi-state` is unavailable, follow the `state-schema` KB fallback rule.\n"
}SHA-256 of public snapshot: 99cd9b4f1b80b1915ee1c109f23620672ac19f1689634e32fd727899da9d50ad