Skip to content

fix(hooks): split git-kb doctor and git-kb code doctor in SessionStart guidance - #16

Merged
gold-silver-copper merged 1 commit into
mainfrom
cut/extensions
Nov 27, 2026
Merged

gold-silver-copper merged 1 commit into
mainfrom
cut/extensions

Conversation

@gold-silver-copper

@gold-silver-copper gold-silver-copper commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Companion PR for https://github.com/gitkb/gitkb-core/pull/1701.

What changed

  • plugin/scripts/session-start.sh: replace git-kb doctor --check repos,code,kb --json with git-kb doctor --check repos,kb --json and git-kb code doctor --json.
  • tests/session-start.bats: update assertion to match.

Compatibility

Safe to merge before or after https://github.com/gitkb/gitkb-core/pull/1701 (git-kb doctor --check repos,kb and git-kb code doctor both work on current main as well).

Checked

  • bash -n plugin/scripts/session-start.sh
  • Executed plugin/scripts/session-start.sh against a real initialized .kb and verified the JSON additionalContext output.

Summary by CodeRabbit

  • Bug Fixes
    • Updated session-start guidance to run repository and knowledge-base checks separately from code health checks.

…t guidance

gitkb/gitkb-core#1701 moves code checks out of `git-kb doctor --check code` into `git-kb code doctor`. Suggest `git-kb doctor --check repos,kb --json` and `git-kb code doctor --json` instead of `repos,code,kb`.
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

For projects with a full .kb setup, session-start guidance now recommends separate commands for repository/KB checks and code health. The test assertion now expects both commands.

Changes

Session-start guidance

Layer / File(s) Summary
Separate full-KB health checks
plugin/scripts/session-start.sh, tests/session-start.bats
The guidance replaces the combined repos,code,kb check with repos,kb and git-kb code doctor --json. The test asserts both commands.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Suggested reviewers: mateodelnorte

Merge Risk: Minimal · up to d808b

This updates the session-start guidance to recommend separate repository/KB and code health checks, and the test is updated to match. The change is low-risk and ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: SessionStart guidance now calls git-kb doctor and git-kb code doctor separately. The diff changes plugin/scripts/session-start.sh and tests/session-start.bats to do ex…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: SessionStart guidance now calls git-kb doctor and git-kb code doctor separately. The diff changes plugin/scripts/session-start.sh and tests/session-start.bats to do exactly that, so the title is fully related to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the KB today
Then sends the code doctor on its way
Repos and KB get their own call
The tests confirm the change for all
Soft paws hop through checks in play

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Team
  • Run ID: 3d2cbbf5-625a-475e-8c82-dfc94dad791c
Commits

Reviewing files that changed from the base of the PR and between c341b4b and d808bab.

Files selected for processing: 2

  • plugin/scripts/session-start.sh
  • tests/session-start.bats

Included review availability: This review used your included allowance. 5 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 8 reviews per hour.

@coderabbitai
coderabbitai Bot requested a review from mateodelnorte November 27, 2026 17:31
@gold-silver-copper
gold-silver-copper merged commit 96b3c24 into main Nov 27, 2026
3 checks passed
@gold-silver-copper
gold-silver-copper deleted the cut/extensions branch November 27, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant