What problem does it solve?
In the TiDB repository, running make bazel_prepare unnecessarily slows down the coding loop, but skipping it when required causes stale Bazel build files and confusing build or test failures. This Skill inspects local git changes and applies the decision rules from AGENTS.md to decide whether make bazel_prepare must run before build or test commands.
Core Features & Use Cases
- Local Change Inspection: Runs git status, diff, and untracked-file commands from the repository root to gather evidence about modified files.
- Rule-Based Decision: Compares changes against the trigger conditions defined in AGENTS.md, including new top-level test functions in
*_test.go files and import-section changes in Go files.
- Use Case: After adding
func TestNewFeature(t *testing.T) to an existing test file, use this Skill to detect the added test function in the diff output and confirm that make bazel_prepare must run before bazel test.
Quick Start
Check my current uncommitted changes in the TiDB repository and tell me whether I need to run make bazel_prepare before building.