/tsh-core:initfrom TSH Core
One-shot setup of a project's Claude Code context. Audits existing context, then creates or repairs CLAUDE.md files, path-scoped rules, and decision-record archives with index.
Ships in TSH Core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The one command that takes a repository from any starting state — nothing, a
partial setup, or a drifted one — to a complete, wired set of context primitives:
a root CLAUDE.md (nested ones where ownership demands), path-scoped rules in
.claude/rules/, a decision-record archive with its index, and a maintenance
section telling every future session which skill keeps each artifact true.
The failure this skill exists to prevent is a half-initialized repository. A
CLAUDE.md with no decision index, an ADR directory nothing references, a setup
done once with no note saying how it is maintained — each looks finished and
quietly stops paying off.
Scope boundary. This skill owns the sequence and the wiring — which skill runs when, and the maintenance section in
CLAUDE.md. Every rule about the artifacts themselves belongs to the owning skill:managing-claude-contextfor the memory layer,managing-decision-recordsfor record format and lifecycle. This skill loads their rules; it never restates them. Step 4 hands off to a skill of another plugin when it is installed, and that skill's rules, not this one's, govern what it runs and writes.
/tsh-core:init — this skill is user-invoked only and never loads
by description matchEverything managing-claude-context and managing-decision-records state about
precedence applies unchanged here: an existing CLAUDE.md is revised in place, an
existing ADR convention and location win over the defaults, and Claude Code's own
documentation outranks all of it. Init adds one thing — it is safe to run
repeatedly, and a second run must converge to "nothing to do", never re-create
what the first run built.
This skill does not:
managing-decision-records| Severity | Rule |
|---|---|
| MUST | Execute managing-claude-context's procedure in full as Step 1, starting with its inventory. Init never writes before that audit has run. |
| NEVER | Overwrite an existing CLAUDE.md wholesale. Revise in place and report what changed. (Owned by managing-claude-context; restated because it blocks.) |
| MUST | Read the owning skill's SKILL.md before touching its artifact — never work its area from memory. |
| MUST | Leave the repository with a decision index — docs/decisions/README.md, or the existing archive location — even when no decision has been recorded yet. An empty indexed archive is the correct starting state. (Init's own rule, not the owner's: managing-claude-context wires an index only where records exist or are wanted; a bootstrap counts as wanting one.) |
| NEVER | Invent a decision record to fill an empty archive. Propose candidates in the report; a human confirms and managing-decision-records governs the writing. |
| MUST | Wire the maintenance section into root CLAUDE.md exactly per ./references/wiring-tsh-core-skills.md — conditional phrasing, every path in backticks, never a leading @. |
| MUST | In Step 4, invoke the capturing skill when it is installed and never do its work by hand; when it is absent, say so in the report. |
| MUST | End with a report of what was created, what was repaired and what was left alone, and flag the result as a proposal for human review. |
| Reference | Load when | Covers |
|---|---|---|
| managing-claude-context | Step 1, before writing anything | The memory layer: inventory, bootstrap vs. drift audit, layer choice, CLAUDE.md and .claude/rules/ rules, decision-index wiring |
| managing-decision-records | Step 2, when a record is proposed or the archive's shape is in question | Record format, numbering, status vocabulary and lifecycle |
| Wiring tsh-core skills | Step 3, before writing or repairing the maintenance section | The canonical maintenance block, why its phrasing is conditional, repairing a stale variant, adapting paths |
Step 1 — Establish the memory layer. Read
managing-claude-context and execute its
procedure in full. Its own first step inventories what loads and branches —
nothing found → bootstrap, something found → drift audit — and its Step 5 wires
the decision index. Run it through its self-check even when the repository looks
already set up: repair is this command's job as much as creation.
Step 2 — Ensure the decision archive exists. If Step 1 left the repository
without one, create the index — default docs/decisions/README.md; an existing
archive location wins — with the binding note and an empty four-column table, per
the indexing reference managing-claude-context loads. Do not backfill records:
when the codebase clearly embodies undocumented decisions, list them as
candidates in the final report and point at
managing-decision-records instead of
writing them.
Step 3 — Wire the maintenance section. Read
wiring-tsh-core-skills.md, then add
the section to root CLAUDE.md — or repair the existing variant in place. It
counts against the 200-line budget like every other line.
Step 4 — Capture the project's checks. With tsh-product-engineering
installed, invoke /tsh-product-engineering:capturing-project-checks: it writes the
project's own verification and security-invariant skills into .claude/skills/ and
its own fenced block into root CLAUDE.md (CLAUDE.local.md in a repository
attached in local mode), under its rules, not this skill's. Without it, say so in the
report and name that command; never write those skills by hand here. That skill runs the project's check commands to prove them, within its own
safety rules; init itself still runs none. A repository with no CI yet gets a thin
result, and the block that skill writes says when to re-run it. On a re-run it
converges like the rest of init: unchanged commands are not run again and nothing
already answered is asked again.
Step 5 — Verify and report. Run /context and confirm everything written or
repaired loads, or is scoped to load on read. Report three lists — created,
repaired, left alone — plus any decision candidates from Step 2 and Step 4's own
report (or the line saying the capturing skill is not installed), and close by
flagging the setup as a proposal for the team to review, not a finished artifact.
- [ ] managing-claude-context's procedure ran in full, inventory first, self-check included
- [ ] No existing file was overwritten wholesale; every revision is reported
- [ ] Every artifact was written under its owning skill's rules, loaded not recalled
- [ ] A decision index exists, at the default or the repository's own location
- [ ] No decision record was invented; candidates are listed for a human
- [ ] The maintenance section is in root CLAUDE.md — conditional, backticked, no bare @
- [ ] The project's checks were captured, or the report says the capturing skill was absent
- [ ] /context confirms the result loads
- [ ] The report lists created / repaired / left alone and calls the result a proposal
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/authoring-claude-extensionsDecides which Claude Code extension a need calls for — skill, subagent, hook, or plugin — and then writes it. Use when building or changing any of those four, when a workflow keeps getting pasted into chat, when a side task floods the conversation, or when a setup has to be shared across repositories or published as a plugin. A single hook wired into this repository's settings.json is Claude Code's own configuration, not an extension to author./managing-claude-contextSets up and maintains the project-context files Claude Code loads — root and nested `CLAUDE.md`, path-scoped rules in `.claude/rules/`, and a decision-record index — so a repository's conventions reach the model without bloating every session. Use when a repository has no `CLAUDE.md`, when Claude keeps ignoring a convention, or when the memory files have drifted from the code./managing-decision-recordsOwns the shape and lifecycle of architecture decision records — the four-section format, the status vocabulary, numbering, superseding, and keeping `docs/decisions/README.md` in step. Use when adding a decision record, changing one's status, superseding an old decision, or deciding whether something warrants a record at all./managing-git-worktreesManages Git worktree lifecycle requests: creating a worktree for a new branch from a freshly fetched base branch on origin — any branch, defaulting to origin's own default branch — adopting a branch that already exists on origin, such as a pull request's head branch, into its own worktree, listing registered worktrees, and removing a precisely identified worktree. Use when the user asks for worktree creation, adoption of an existing branch, listing, removal, or safe Git worktree lifecycle guidance./writing-technical-documentsApplies TSH's writing standard to any technical document — README, CHANGELOG, ADR, RFC, runbook, PR description, ticket, user story, bug report or test plan — so it leads with the conclusion, states only verified facts, and is short enough to be read. Use when writing or revising a document meant for other people, or when asked to tighten, shorten or clarify prose — load it before rewriting, even for one pasted paragraph, because the standard decides what to cut.npx claudepluginhub thesoftwarehouse/agentic-collections --plugin tsh-coreOther plugins' skills for the same job