From bdk
Initialize .bdk/settings.json for this project. Run once per project when BDK blocks session start with missing settings.
npx claudepluginhub broneq/bdk --plugin bdkThis skill is limited to using the following tools:
> Relies on BDK foundation (STARTUP_INSTRUCTIONS.md). Assumes environment discovery has already run (language, test runner, build tool are known).
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Relies on BDK foundation (STARTUP_INSTRUCTIONS.md). Assumes environment discovery has already run (language, test runner, build tool are known).
Initializes .bdk/settings.json for this project. Probes project files to detect languages, test commands, lint commands, and build commands, then confirms with the user before writing.
If .bdk/settings.json already exists and --force was not passed:
Read the following files if they exist and extract command/tool hints:
Command resolution priority — always prefer running tools via the package manager over direct binary invocation:
package.json scripts → npm run <script> / yarn <script> / pnpm <script> (detect manager by lockfile: package-lock.json → npm, yarn.lock → yarn, pnpm-lock.yaml → pnpm)pyproject.toml → poetry run <tool> if poetry.lock exists, else directbundle exec <tool> alwaysJavaScript/TypeScript (package.json):
scripts for keys: test, test:unit, test:e2e, test:integration, lint, lint:fix, build, typecheck, compilenpm run <key> (or yarn/pnpm equivalent per lockfile)devDependencies/dependencies for: vitest, jest, @playwright/test, cypress, eslint, prettier, typescript — only as fallback if no matching script key foundnext.config.* → add next to languagesreact in deps → add react to languagesPython (pyproject.toml, setup.py, requirements*.txt):
pytest, ruff, mypy, black, flake8poetry.lock present → poetry run pytest, poetry run ruff, etc.pytest, ruff, etc.pythonGo (go.mod):
go test ./....golangci.yml or .golangci.toml → lint: golangci-lint rungo vet ./...goRust (Cargo.toml):
cargo testcargo clippycargo buildrustJava (pom.xml or build.gradle):
mvn test, mvn package./gradlew test, ./gradlew buildjavaPHP (composer.json):
scripts for test key; else detect phpunit or artisan testphpcs or pint for lintphpRuby (Gemfile):
bundle exec rspec (if rspec in Gemfile) or bundle exec rake testbundle exec rubocoprubyC# (*.csproj or *.sln):
dotnet testdotnet buildcsharpDart/Flutter (pubspec.yaml):
flutter test (if flutter sdk) or dart testdartUse the AskUserQuestion tool with up to 4 questions in a single call:
If more than 4 confirmation categories exist, prioritize: test → lint → features → build. Handle remaining categories with a follow-up AskUserQuestion call after writing.
"Other" is automatically appended by the UI — user can type any custom command there.
Create directory and file:
.bdk/
├── settings.json
├── plans/
└── brainstorming/
Write settings.json with confirmed values using the schema:
{
"$schema": "https://raw.githubusercontent.com/broneq/bdk/main/hooks/check-bdk-config/settings.schema.json",
"languages": ["..."],
"test-tools": [{"type": "...", "command": "..."}],
"lint-tools": [{"type": "...", "command": "..."}],
"build-tools": [{"type": "...", "command": "..."}],
"features": {
"caveman": true,
"serena": false,
"code-review-graph": false
}
}
Omit empty arrays (e.g. no build-tools key if none detected/provided).
Run after writing settings.json.
code-review-graph — only if both conditions met:
features.code-review-graph is not false in written settings.mcp.json (project or ~/.claude/mcp.json) contains a code-review-graph server entryCheck if .code-review-graph/graph.db exists in project root:
[setup] code-review-graph: index already built.uvx code-review-graph build, print progress, then print [setup] code-review-graph: index built.If build fails (exit non-zero), print warning and continue — do not abort setup:
[setup] code-review-graph: build failed. Run `uvx code-review-graph build` manually after install.
Serena — no initialization needed (AST analysis is on-demand).
Recommend:
.bdk/settings.json (shared with team — consistent commands for all contributors).gitignore: .bdk/plans/ and .bdk/brainstorming/ (personal artifacts)Show the gitignore lines to add:
.bdk/plans/
.bdk/brainstorming/
Ask: "Add these to .gitignore now? [y/n]"
Print:
[setup] .bdk/settings.json created.
[setup] Directories created: .bdk/plans/, .bdk/brainstorming/
[setup] Restart your Claude Code session — BDK will inject project settings on startup.