/jonhill90-skills:organize-repositoryfrom jonhill90-skills
Decides where code, tests, docs, scripts, config, generated files, and knowledge belong in a repository. Use when starting a repo, adding files with ambiguous placement, reorganizing, or auditing layout for drift.
Ships in jonhill90-skills. 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; scripts run unread.
Every "where does this go?" answered from scratch is friction, and every answer that differs from the last one is drift. Give each kind of file one predictable home, follow the tools' own rules where they have them, and write down the exceptions so they are not mistaken for drift later.
Do not reach for this to design module boundaries, layering, or dependency
rules inside the code — that is architecture, not placement. Do not reach
for it when the repository's own AGENTS.md already names the home for the
thing at hand; follow that.
AGENTS.md, the docs index, and
any decision records about layout. A documented decision outranks every
default below, including one that looks inconsistent with other repos.scripts/check_layout.py, and
scripts/check_knowledge_store.py on any knowledge store. Confirm
tests are still discovered by the runner, links resolve, and anything
moved still has its consumers updated (see
references/moving-files.md).A new repository starts with one commit of real files and no empty directories:
README.md, with a short "where new things go" table.AGENTS.md (plus the CLAUDE.md alias only if that harness is used).docs/decisions/0001-adopt-repo-standard.md, naming this standard's
version.scripts/check_layout.py) from a separate
repository, pinned by commit, so a pull request cannot edit its own
checker.Repositories whose root a tool owns (a Stow dotfiles tree, a plugin or
skill collection) keep only the entry points. A repository that agents
also write knowledge about adds the docs-or-knowledge rule to AGENTS.md
from references/knowledge-store.md;
the knowledge store itself is a separate repository or folder.
Common to every repository:
README.md at the root for humans. AGENTS.md at the
root for agents, as the real file; CLAUDE.md is absent, a symlink to
it, or starts with @AGENTS.md. State in AGENTS.md only the rules an
agent would get wrong from the tree alone — a tour of the directories
does not help agents.tests/<same path as src>/test_<name>.py, with
--import-mode=importlib set for pytest. Go, Rust, and JS/TS frameworks
with a native convention for tests keep that convention.docs/, indexed by
docs/README.md. A published site gets its own root beside them (see
references/documentation-sites.md),
so adding, swapping, or removing a renderer touches only that root.docs/ and never in a
docs/knowledge/ folder of a code repository. The polished version of a
measured finding about the repository's system is documentation and goes
in docs/ (for example docs/explanations/) by pull request, carrying
its own sources. The evidence behind a decision may sit in
docs/evidence/ as a short summary; it does not link into the store.private-network/, dns/, backup/), so
replacing the vendor product behind it moves no folders. A vendor
product may own one subfolder below a capability folder, in its native
layout (hosts/ansible/). A platform the whole repository is built on
(kubernetes/ in a cluster repo) is a recorded exception.main, home), never by the
machine or provider they run on today.docs/runbooks/<name>.md names its
trigger, its runner, and its files. The trigger lives where its runner
reads it (.github/workflows/, a GitOps entry point); a manual process
has no trigger file and its runbook names the command.scripts/; scripts owned by one component live with that component.docs/development.md) and becomes a directory when a second
document arrives.SKILL.md, Dockerfile, ROOT) keep their required form. In a
knowledge store every name follows its naming rule: a note is named by
its id, every other file by a slug of its title with no dates or
versions, and nothing is renamed after saving.Varies by profile or tool — decide from references/profiles.md and the tool's docs, not from another repository's tree:
src/, services/, or tool-defined directories;docs/README.md;scripts/check_layout.py [root] [--json] reports what a script can decide:
missing entry points, an inverted or drifting CLAUDE.md/AGENTS.md
pair, placeholder directories, test file names pytest cannot collect, and
Mintlify pages that are published by URL without being in navigation.
Exit 0 means no errors, 1 errors, 2 could not check. It does not judge
whether something is in the right home; that stays with the routine above.
scripts/check_knowledge_store.py <store> checks a knowledge store: root
folders, names (id-named notes, batch hubs, day logs), flat folders, dead
links, orphans, byte-identical copies, hub lists, map links, research
batch links, map shape, task front matter, project links, the files-we-made home
(04-resources/04a-assets/), and tags. --path checks one
proposed name before saving; --since <ref> fails only on new faults, for
CI; --maps-write puts maps in their template's shape. Details in
references/knowledge-store.md.
Do not invent a new top-level directory to avoid choosing. Put the file in
the nearest existing home, note the ambiguity in the pull request, and
propose a rule for the repository's AGENTS.md so the question is answered
once.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jonhill90/skills --plugin jonhill90-skillsOther plugins' skills for the same job
44 skills in this plugin
/adopt-or-buildDecide, per component, whether to adopt an existing name, dependency, library, or tool or build it in-house, weighing blast radius over convenience. Use at the point a name or dependency is about to be chosen or recommended — before it is proposed, not after. Not for finding a technology's capability ceiling (research-the-limit), not the mechanism for genuinely different reviewer lenses (ask-a-council, which this skill may call), and not a substitute for attacking the chosen answer (devils-advocate, which this skill invokes as its final step)./ask-a-councilConvene several harnesses or models against one question, each doing a distinct job it can fail at — different evidence, a different objective, or a withheld conclusion — before an artifact becomes load-bearing and being wrong is expensive. Diversity comes from what each reviewer is given, never from a character it plays. Use when the failure modes genuinely differ in kind — a single reviewer's prompt would only catch what its own lens looks for. Not for a question a cheap deterministic check settles (run the check first); not for one reviewer's prompt (sanity-check owns that); not for dispatch mechanics or isolation boundaries (dispatching-subagents owns those); not for trusting a verdict already returned (verify-the-instrument owns that).