Repository navigation
Installation and Setup
What install.py writes into a project, where a shim finds this checkout, and how to put a project on it.
Only files under the project, and only these:
-
Scripts/<name>.py: one shim per script the config enables. A script the project wrote itself is kept and named in the summary;--forcereplaces it. Every script inScripts/is made executable. -
Scripts/project.toml: written once, as a starter guessed from the repository (.sln,Cargo.toml,CMakeLists.txt); never overwritten after that.
With --claude (or --skills for the first item alone):
-
.claude/skills/<name>/: the shared skills that apply, each with the project's own.claude/skill-extras/<name>.mdappended. These are copies, because Claude Code reads them off disk; re-running is how a project picks up a change. -
.claude/settings.json: the hooks that apply, added underhooks.PreToolUse. Every other key and every hook the project wrote itself stays as it is. -
.claude/CLAUDE.md: written when the project has none, importing the guideline blocks (claude/*.md) for its kind. A later run only adds an import for a block enabled since; a hand-writtenCLAUDE.mdis left alone and the summary names the lines it could add. -
.claude/skill-map: for a project with an[istarnova]block that has none yet.
With --submodule: git submodule add of this repository into .devscripts/ (see below).
In this order: DEVSCRIPTS, then ~/dev/tools/devscripts, then a .devscripts/ submodule of the project. The
hooks look the same way.
A project other people clone adds the submodule with install.py . --submodule. Its maintainer keeps working
against the live checkout; a contributor or CI gets the pinned version after git submodule update --init. A fix
here reaches such a project when it bumps the submodule (git -C .devscripts pull, then commit). A project only one
person works on does without: the live checkout is the point.
-
python3 ~/dev/tools/devscripts/install.py . --claudewrites the starterScripts/project.toml, the shims that config already enables and the Claude Code parts. The starter names the language the repository looks like, so the first run already brings that language's script and guidelines. -
Fill in
Scripts/project.toml. The starter guessesname,env_prefixand the solution; everything else is commented out. Uncomment what applies: a database, a resources project, a NuGet feed, a container unit. -
Run
install.py --claudeagain. Each block enables its scripts:[database]bringsdb.py,[localization]bringsgen_resx.pyandtranslations.py,[i18n]bringsi18n.py,[nuget]turns ondotnet.py publish. It also brings the skills, hooks and guideline imports the block enables. -
Fill in
.claude/CLAUDE.md: what the repository is and what holds in it only. A project with its own areas writes a.claude/skill-map, which turnsload-the-skill.shon at the next run. - Delete the project's old copies of anything now shimmed, after checking what they could do that the shared one cannot. A feature only one copy had belongs in the shared script.
- Verify:
python3 Scripts/dotnet.py verify(or the project's language), and whatever else it shimmed.
A script that refuses and names a missing key is working correctly: add the key, do not edit the shared script.
--only dotnet,find overrides the config-driven selection.
find.py picks a language profile from the repository root (*.sln/*.csproj → dotnet, CMakeLists.txt → cpp,
Cargo.toml → rust, pyproject.toml → python, package.json → typescript; nothing found → dotnet). A profile
sets the extensions searched, the build directories skipped and the declaration pattern behind "declared in",
--show and --types. [find] in project.toml overrides any part: profile, types, exclude (globs),
declaration (a regex, {symbol} is the name). --files lists what a search would look at, and a wrong --in
names what is there instead. --forward (C++) also lists the forward declarations (class X;), which "declared
in" skips. --multiple-types stays a C# check.
graph.py is the overview of a repository: who depends on a type, what it touches, the path between two, which
types of another repository it uses (uses OtherRepo), from a knowledge graph of the code (graphify) instead of
from reading thousands of files. It needs no project.toml block; the project git-ignores graphify-out/.
--in OtherRepo asks about another repository, whose graph is kept under its graphify-out/ when it git-ignores
that folder, otherwise under ~/.local/state/graphify/, so that its checkout stays clean.