kitaru-dev
Skill300 starsChanged 2 months agoApache-2.0View on GitHub
Kitaru just recipes, CLI structure and structured-output contract, analytics events, and PR-description conventions. Use when running project commands, adding CLI commands or analytics events, or writing a PR description.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- devtools/AGENTS.mdAGENTS.md
- plugins/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docker/CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- kitaru-adapter-developmentSkill
- kitaru-devSkill
- kitaru-docsSkill
- kitaru-importer-developmentSkill
- kitaru-releaseSkill
- kitaru-tests-releaseSkill
- kitaru-ui-api-developmentSkill
- kitaru-adapter-developmentSkill
- kitaru-docsSkill
- kitaru-importer-developmentSkill
- kitaru-releaseSkill
- kitaru-tests-releaseSkill
- kitaru-ui-api-developmentSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 4 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this when you need the command catalog beyond the daily loop in the root AGENTS.md, or when adding CLI commands, analytics events, or …
- Very specific: line 44
When resolving pyproject.toml or uv.lock conflicts, do not regenerate the whole lockfile: that silently reverts intentional …
- Very specific: line 50
Add the package manifest, source, tests, README, changelog, plugin workspace lock entry, and a row in plugins/README.md.
- Very specific: line 51
Add every new Python distribution to release/release-units.toml and the expected inventory in tests/scripts/test_release_units.py.
- Very specific: line 52
Add every new PyPI kitaru-* distribution to src/kitaru/worker/process.py::_FIRST_PARTY_KITARU_PACKAGES, including packages outside the …
- Very specific: line 57
Use plugins/DEVELOPMENT.md for package and candidate-server commands, and the kitaru-release skill for version selection and publication.
- Very specific: line 74
Treat tests/mcp/snapshots/metrics.json and src/kitaru/mcp/registry.py as the inventory authorities.
- Distinctive: line 82
When changing evaluation, replay, or experiment commands or contracts, read Evaluation contracts.
- Very specific: line 98
Add event names to AnalyticsEvent in src/kitaru/analytics/events.py.
- Distinctive: line 100
Never include user content, file paths, prompts, credentials, or secret values.
- Distinctive: line 101
Keep analytics failures non-fatal.
- Very specific: line 105
Use a clear human-readable title without a [Codex] prefix.
- Very specific: line 107
Add a changelog.d/<pr-number>.<section>.md fragment for user-facing changes instead of editing CHANGELOG.md.
- Very specific: line 109
Every PR description should include a Reviewer Notes H2 or H3 section that explains the story and risks of the change, plus a concrete …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Kitaru Development, CLI, and PR Workflow
Use this when you need the command catalog beyond the daily loop in the root AGENTS.md, or when adding CLI commands, analytics events, or PR descriptions.
Python Workflows
uv sync: install the base SDK and development dependenciesuv sync --extra cli: include the optional CLIuv sync --extra mcp: include the optional native MCP serveruv sync --extra server: include server componentsuv sync --extra worker: include worker componentsuv sync --extra otel: include OpenTelemetry integrationsjust check: run formatting, lint, OpenAPI freshness, changelog fragments, typecheck, typos, YAML, actions lint, and linksjust openapi-check: verify that the committed OpenAPI specification matches the application schemajust changelog-check: validate the changelog fragments underchangelog.d/just fix: auto-fix formatting, lint issues, and YAMLjust test: run the full pytest suitejust test tests/test_file.py::test_name: run one targeted testjust lint: lint onlyjust typecheck: type check onlyjust typos: typo check onlyjust format-check: check formatting without modifying filesjust yaml-check: check YAML formattingjust actions-lint: lint GitHub Actions workflows; requiresactionlintjust zizmor: audit GitHub Actions workflow security withzizmorjust audit: audit Python dependencies withpip-auditand the documented ignore listjust links: check Markdown links offline; requireslycheejust links-external: check links including external URLs; slowjust example-coverage-audit: validateexamples/example-coverage.yamlmetadata and waiversjust build: build wheel and sdist locallyjust cli-artifact-smoke: verify clean CLI wheel and source installationsjust plugin-artifact-smoke: build every default-plugin wheel, load its configured entrypoints, and verify default registrationjust mcp-schema-check: verify public MCP registry budgets and committed snapshotsjust mcp-wheel-smoke: verify clean base and[mcp]installs from the wheel underdist/just migration-check: compare Alembic migrations with the ORM schema; requires PostgreSQL
There is no v2 kitaru init command or local extra. Do not carry the v1 .kitaru/ project-marker setup into v2 instructions or tests.
When resolving pyproject.toml or uv.lock conflicts, do not regenerate the whole lockfile: that silently reverts intentional dependency-security bumps. Upgrade only the packages involved and run just audit before pushing.
New Distribution Integration Review
Before opening a PR that creates an independently published package, trace how it will be built, installed, discovered, and released. This applies to a new adapter, importer, evaluator, or other Python distribution; adding an evaluator inside the existing kitaru-evaluator wheel does not create a new distribution. For substantial packages, ask a bounded independent subagent to review the integration points and omissions, then verify its findings against the code. Record the applicable paths and any deliberate exclusions in Reviewer Notes or Release context so a reviewer can check the complete package path.
- Add the package manifest, source, tests, README, changelog, plugin workspace lock entry, and a row in
plugins/README.md. Add artifact import metadata for a non-default package, and check whetherplugins/pyproject.tomlneeds an update. - Add every new Python distribution to
release/release-units.tomland the expected inventory intests/scripts/test_release_units.py. Check that the release workflow and CI matrix discover it; edit fixed selections only when they actually exclude the new package. - Add every new PyPI
kitaru-*distribution tosrc/kitaru/worker/process.py::_FIRST_PARTY_KITARU_PACKAGES, including packages outside the default server catalog. Run the inventory-based test intests/worker/test_process.py; the server catalog is not the worker's package list. - Decide separately whether the server should offer the package by default. Set
default-catalogin the release inventory accordingly, and changeDEFAULT_PLUGIN_DEFINITIONSand its tests only for an approved default. Do not add adapters to the server catalog. - Inspect package-specific selections and exclusions, including candidate-wheel builds, example dependencies, and the quickstart's
--no-install-packagelist in.github/workflows/ci.yml. There is no global plugin ignore list; those exclusions apply to their particular example or build. Update them only when the new package enters that path. - Check the required core version, release order, documentation, and runnable examples. For worker-installed exact pins, test candidate-wheel resolution with a cutoff predating the package, verify that supported
uvaccepts the package exception, and verify that olderuvretains the prior command and warns. Only a postpublication registry install proves the published wheel resolves under that cutoff. Run the focused package tests, release-inventory test, andjust plugin-artifact-smokebefore handoff.
Use plugins/DEVELOPMENT.md for package and candidate-server commands, and the kitaru-release skill for version selection and publication. Do not treat registration metadata or a local wheel as proof that the published package can be installed by a worker.
Docs Workflows
These require Node 22+ and pnpm.
just docs: preview docs locally atlocalhost:3000just docs-build: build the static docs exportjust docs-validate: validate the export as served under/docsjust generate-docs: regenerate the SDK and CLI reference content
scripts/generate_sdk_docs.py extracts the v2 SDK reference through a PUBLIC_API allowlist. Edit that allowlist and tests/scripts/test_generate_sdk_docs.py together; the test compares each published module against its __all__. The generator needs the fumapy bridge after installing the docs dependencies. scripts/generate_cli_docs.py generates CLI reference content from the offline kitaru schema contract rather than a hardcoded command list.
Native MCP Server
The native v2 server is installed with kitaru[mcp] and started with kitaru-mcp. It defaults to read-only; standard and destructive expose progressively broader capabilities.
Treat tests/mcp/snapshots/metrics.json and src/kitaru/mcp/registry.py as the inventory authorities. Do not copy tool counts into prose. Run just mcp-schema-check after changing MCP models, registry declarations, descriptions, annotations, or SDK versions. Build the wheel and run just mcp-wheel-smoke after entrypoint, packaging, lifecycle, or optional-import changes.
CLI Structure
The kitaru console script is defined in pyproject.toml under [project.scripts]. src/kitaru/cli/__init__.py is the lazy entry point, src/kitaru/cli/app.py registers the shared Cyclopts applications, and command implementations live under src/kitaru/cli/.
Register new leaf commands through the _spec(...) and _register(...) metadata in src/kitaru/cli/app.py. Tests should call main([...]) with an explicit argument list and assert the returned integer exit code.
When changing evaluation, replay, or experiment commands or contracts, read Evaluation contracts.
Structured Output Contract
Agent-facing commands use the version-1 structured contract. Success documents include schema_version, command, ok, warnings, links, and next_actions, plus item for one result or items, count, and page for a list. Streaming commands emit JSONL events. Structured errors are one JSON object on stderr with a stable error kind and exit code.
For agent-facing use, prefer --output json --machine --non-interactive --no-browser. A deliberate dashboard or device-login handoff is the exception.
Document login consistently: kitaru login starts the interactive managed-cloud device flow and connects to the Kitaru workspace selected or created in the browser. kitaru login SERVER targets the full managed or self-hosted instance URL, while kitaru login --local provisions or reuses the CLI-owned Docker or Podman Compose deployment. The local deployment defaults to http://localhost:8000; --port takes precedence over KITARU_LOCAL_PORT, and the selected port persists with the deployment. kitaru logout stops that deployment when it is selected, and kitaru logout --volumes also deletes its PostgreSQL data.
kitaru status shows the selected server, provenance, credential state, compatibility, and live-worker count. kitaru info adds local package, Python, platform, and server details. kitaru doctor runs independent local, server, authentication, and tooling checks without stopping after the first failure. These commands never print secret values.
Analytics
Analytics events live in src/kitaru/analytics/events.py; source attribution lives in src/kitaru/analytics/source.py. Server-side feature events are emitted through the application analytics service. MCP attribution is set once for the MCP lifecycle through AnalyticsSource.MCP.
- Add event names to
AnalyticsEventinsrc/kitaru/analytics/events.py. - Track only reviewed, non-sensitive metadata such as event names, boolean flags, enum values, and counts.
- Never include user content, file paths, prompts, credentials, or secret values.
- Keep analytics failures non-fatal.
Pull Requests
Use a clear human-readable title without a [Codex] prefix. Include what changed, why it was needed, important implementation decisions, and reviewer focus areas. Link related issues when applicable.
Add a changelog.d/<pr-number>.<section>.md fragment for user-facing changes instead of editing CHANGELOG.md. Any slug works in place of the number while the PR does not exist yet. See changelog.d/README.md for the format.
Every PR description should include a Reviewer Notes H2 or H3 section that explains the story and risks of the change, plus a concrete Reproduction subsection. Keep local hygiene commands as a short note after reproduction rather than using them as a substitute for reviewer guidance.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

