| name | kitaru-dev-commands |
| description | Full reference for Kitaru v2 development commands, tests, docs generation, packaging, Docker builds, and CI workflows. Use when a task needs commands beyond just check, just fix, or just test. |
Kitaru v2 development commands
Run just --list for the recipe inventory, then verify that a recipe's backing files exist before using it on v2. Treat pyproject.toml, source, tests, and existing scripts as authoritative when inherited recipes or workflows disagree.
Environment setup
uv sync
uv sync --extra cli
uv sync --extra mcp
uv sync --extra server
uv sync --extra worker
uv sync --extra otel
There is no v2 local extra, kitaru init command, or .kitaru/ project-marker setup.
Core workflow
just fix
just check
just test
just test tests/cli
just test tests/cli/test_app.py::test_help_version_schema_and_scaffold_skip_bootstrap
The full suite can be summarized without losing failure names:
just test 2>&1 | grep -E "FAILED|ERROR|passed|failed" | tail -20
Focused checks
just format-check
just lint
just typecheck
just typos
just yaml-check
just actions-lint
just zizmor
just audit
just links
just links-external
just example-coverage-audit
just migration-check
just build
CLI and MCP contracts
just cli-artifact-smoke
just mcp-schema-check
just mcp-wheel-smoke
uv run --extra cli kitaru schema
Do not copy MCP tool counts into this skill. Read tests/mcp/snapshots/metrics.json and run just mcp-schema-check.
CLI tests call src/kitaru/cli/app.py::main with explicit arguments and assert its returned integer code. They do not expect SystemExit(0).
Docs workflows
These require Node 22+ and pnpm.
just docs
just docs-build
just docs-validate
scripts/generate_sdk_docs.py is the v2 SDK-reference generator: griffe extraction filtered to a PUBLIC_API allowlist (kitaru.client, kitaru.task and its evaluator/importer modules). It needs the fumapy bridge (uv pip install ./docs/node_modules/fumadocs-python, after pnpm install in docs/); just generate-docs runs generation plus MDX conversion. Edit the allowlist and tests/scripts/test_generate_sdk_docs.py together — a drift test compares the allowlist to each published module's __all__. scripts/generate_cli_docs.py generates the CLI reference from the kitaru schema JSON contract (run in-process, needs the cli extra); it hardcodes no command names, so CLI changes flow through on regeneration.
UI and Docker
Read FRONTEND-TESTING.md before changing UI bundle, frontend smoke, Docker dashboard, or release UI behavior.
just ui-bundle
just UI_TAG=kitaru-ui-v0.2.0 ui-bundle
just UI_TAG=kitaru-ui-v0.3.0-rc.1 ui-bundle-prerelease
docker compose up -d db
just ui-serve
just ui-serve runs the API server from source against the local compose database and serves the bundle at http://localhost:8000.
The v2 Dockerfiles are docker/dev-client.Dockerfile, docker/dev-server.Dockerfile, docker/release-client.Dockerfile, and docker/release-server.Dockerfile. Follow docker/CLAUDE.md; do not use inherited v1 server-image recipes as v2 release evidence.
CI/CD workflows
| Workflow | Current v2 role |
|---|
ci.yml | Pushes to develop and pull requests. Base, CLI, and MCP test matrices cover Python 3.11-3.14; separate jobs validate CLI artifacts, installed MCP wheels, migrations, Docker server startup, and UI wheel packaging. |
docs.yml | SDK reference build/deploy workflow: generates the reference via scripts/generate_sdk_docs.py, converts to MDX, builds the static export. PRs build only; deployment runs on main push or manual dispatch. |
release.yml | Validates source and built artifacts, then performs versioning, PyPI, GitHub Release, Docker/ECR, Helm, release-branch, and main updates. Normal dispatch releases develop, not the current feature branch. |
spellcheck.yml | Separate typo/spell checking. |
image-optimiser.yml | Compresses changed images on eligible pull requests. |
zizmor.yml | Audits GitHub Actions security. |
The inherited llm-integration.yml still references absent v1 provider tests. Do not use it or the missing tests/live/ marker suite as proof of v2 behavior.