pingcap/tidb · Archived

tidb-bazel-prepare-gate

Use when deciding whether make bazel_prepare is required before build or test commands based on local file changes in TiDB.

First seen May 16, 2026

Installation

$ npx skills add pingcap/tidb --skill tidb-bazel-prepare-gate

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from pingcap/tidb.

npx skills add pingcap/tidb

Browse all from pingcap/tidb

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 40.4K
License LICENSES
Default branch master
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,631 B
  • docs SUMMARY.md 154 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

TiDB Bazel Prepare Gate

Overview

Use this skill before build/test commands when you are unsure whether make bazelprepare is required. Policy source: AGENTS.md -> Build Flow -> When make bazelprepare is required. In normal coding loops, skip this skill unless one of the decision-rule triggers is likely present.

Inspect Local Changes

Run from repository root:

git status --short
git diff --name-status
git diff --name-status --cached
git ls-files --others --exclude-standard
git diff -U0 -- '*.go'
git diff -U0 --cached -- '*.go'

Decision Rules

Trigger conditions are defined in AGENTS.md -> Build Flow -> When make bazel_prepare is required. Compare the output from the commands above against those conditions.

For the top-level test-function trigger in existing _test.go files, inspect added lines in git diff -U0 -- '.go' and git diff -U0 --cached -- '*.go' output for patterns like:

+func TestXxx(t *testing.T) {

and treat that as requiring make bazel_prepare.

For import-section changes in existing Go files, inspect git diff -U0 -- '.go' and git diff -U0 --cached -- '.go' for added/removed import lines, for example:

+import (
-import "fmt"
+	"context"

and treat those changes as requiring make bazel_prepare.

If any condition matches, run make bazelprepare. If none of the rules match, continue without make bazelprepare and report the evidence.