/dkitchen:build-repofrom dkitchen
Sets up dkitchen repo rules: code layout areas, in-place module changes, reuse policies, and CI ding check gates. Use when configuring repo rules, adding checks, or preventing copy proliferation.
Ships in dkitchen. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Install the rules that keep the repo from filling up with copies: docs/agents/code.md from kitchen/repo/, its pointer line, the [check] table in .dkitchen.toml, the Ruff and import-linter settings in pyproject.toml, and a CI workflow that runs ding check and the tests on every PR. An executor is a fresh session every time; when it cannot find the module to change, it writes a new copy. These rules make changing the module in place the only path that passes, from the first PR.
The checks are preventive: they hold from the first PR, with no baseline and no exception list. Layout rules look only at what a PR adds, so existing files never turn CI red. Ruff and the import contracts look at the whole tree, so the existing violations they find are cleaned up first, in a ticket of their own, before those checks are switched on.
A kitchen in its own repo. When .dkitchen.toml sets code, code.md and [check] go in the kitchen, and everything this skill reads about layout, tools, and violations is read in the code repo's checkout, where ding check and ding map also run. The code repo's own files, its pyproject.toml tables and CI workflow, change only as a PR the user approves. When the code repo is shared, recommend installing nothing into it: executors run ding check in their worktrees, and ding pr runs it before each PR opens. Offer the checks to the team only when the user says the team adopts them, as one PR: the settings as [tool.dkitchen.check] in the code repo's pyproject.toml, with rules pointing at the team's own docs, such as its CONTRIBUTING.md, the tool tables, and the workflow, which installs dkitchen from PyPI; its commit needs a Guard-change: trailer, since checks were already in force. Once it merges, remove [check] from the kitchen's .dkitchen.toml, since the code repo's table wins and two copies drift. Leave [merge] required_checks to the team.
Follow Installing for the prerequisites, language, rendering, updating in place, pointer blocks, and approval. When /setup-dkitchen brought you here, the prerequisites and the language are already settled: skip them. The checks themselves are ding check and ding map (docs/ding.md).
pyproject.toml tables. Each starts with a comment listing what to adapt.docs/agents/roles.md and docs/agents/reviewing.md must exist, since the guard-change rule relies on the PR reviewer. When they are missing, stop and offer build-team first.pyproject.toml, setup.py, or Python packages). For another language, install only code.md and the layout checks ([check] with ruff = false and imports = false), and tell the user that lint and import contracts need their language's own tools.docs/agents/code.md, [check] and [merge] in .dkitchen.toml, [tool.ruff] and [tool.importlinter] in pyproject.toml, and .github/workflows/, read in full when present.src/ layout); test files and where they sit; output folders and whether .gitignore covers them; third-party code and submodules.ruff check --select F,E9,B006,B008,B011,B012,B018,B023,PGH004 . and ruff format --check .;lint-imports --config <a scratch file> with the contract drafted in section B;_v2), ticket numbers in paths, code in docs, misplaced tests. These never fail a PR, but a cleanup ticket can clear them.Done when every top-level folder has a proposed area, and you can name the test command, the Python version, and the count of each kind of existing violation.
Summarize the layout, the proposed areas, and the existing violations by kind, with a few examples of each.
Ask the sections as rounds, as Installing says. C waits for A and B, since the areas and the import contract decide what counts as a violation.
A. Areas. Show each top-level folder with its proposed area, as a table: library, tools, experiments, tests, docs, outputs, assets, or vendor. Every folder gets one; there is no "other". A folder whose contents are mixed goes to the area most of it belongs to, and the rest becomes part of the cleanup. List the top-level files the usual names do not cover (the usual names); each one is either listed in root_files or moved.
B. Import contract. Recommend one forbidden contract: the library packages import no experiment, tool, test, or doc packages. Offer more layers only when the library already has a clear one, such as a core package the rest builds on.
C. Existing violations. For each check with violations, recommend one of two paths: fix them in this run when they are few and mechanical, such as a one-time ruff format; otherwise switch that check off (ruff = false or imports = false) and open a cleanup ticket with write-ticket, which switches it on when it lands. Never write an exception list.
D. Reuse. Ask which library module holds each shared component, such as durable writes, progress bars, or model clients, so code.md can point executors at it.
E. CI. Propose the Python version, the install command, and the test command for the workflow, and the [merge] required_checks entries: checks and tests.
Done when every section has an answer.
Show the user:
docs/agents/code.md (a diff when updating), and the new pointer blocks;[check] and [merge] required_checks for .dkitchen.toml;pyproject.toml tables, adapted from the reference, and ruff and import-linter added to the dev dependencies;.github/workflows/dkitchen.yml;Done when the user approves the draft, including each cleanup ticket.
Render with --templates repo, as Installing says, then fill and translate. Rewrite both pointer blocks from what render.py prints. Write the settings, the pyproject.toml tables, and the workflow; make the approved fixes; open the cleanup tickets.
When the repo already had [check], the change is a guard change: the commit carries Guard-change: #<ticket> <reason>.
Done when every approved file exists with its approved content and every cleanup ticket is open.
Run the checks in Installing, then:
ding check --base HEAD passes on the working tree, with the switches as approved; in a kitchen of its own, on the code repo's checkout.ding map lists the library modules.<library>/scratch_v2.py makes ding check --base HEAD fail with version-copy; delete it afterwards.Done when every check passes, or the user has been told exactly which one fails and why.
Tell the user, briefly: every PR now runs checks and tests, and a merge needs both; executors run ding check before handing over; ding map finds the module to change; a change to a check carries a Guard-change: trailer; and a lesson that keeps coming back can become a check of its own, a script listed in [check] commands.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub 917dhj/dkitchen --plugin dkitchen11 skills in this plugin
/build-nightBuild or change how a dkitchen kitchen keeps working while the user is away — night orders, what the orchestrator moves forward on its own, and the orchestrator log. Use when the user asks for the kitchen to keep moving overnight or while they are away./build-runnerBuild or change the experiment runner of a dkitchen kitchen in this repo — one resumable entry point for work done item by item (evaluations, batch inference, data processing), with run identity and per-item commits. Use when the user asks to set up a runner, make runs resumable, or stop writing one script per experiment./build-teamBuild or change the team of a dkitchen kitchen in this repo — its roles, design lines, tickets, PR review, watches, run budgets, and model-visible text rules. Use when the user asks to set up the kitchen's team, add or split a designer, or change how the roles work together./goodmorningWhen the user is back, close the night orders and report what needs their decision, how the orders were used, where work stalled, and what moved. Run in the orchestrator session./goodnightBefore the user goes offline, collect every decision the next hours will need, get the user's approvals and boundaries in one pass, and post them as night orders. Run in the orchestrator session./improve-kitchenPeriodic pass over a dkitchen kitchen's recent failures and friction. Turns each recurring one into a lesson, places it where it is hardest to ignore, retires the text that placement replaces, and brings proposals to the user for approval.Other plugins' skills for the same job