Skip to content
This repository was archived by the owner on Nov 15, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 2 additions & 107 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,109 +1,4 @@
# qute-code-kit

Tom's **personal skills & templates library** — reusable Claude Code components
under `claude/` (skills, agents, an AGENTS.md starter) and doc templates under
`templates/`. The research scaffold (pin gate,
line template, research-workflow) is qute-research's, not the kit's. Browse and copy what you need into
target repos; a copied skill carries a `PROVENANCE.yaml` stamp (source path,
source commit, each file `tracked` or `forked from <sha>, reason: …`).

**What belongs here: generic skills only.** A skill whose content is bound to
one project lives in that project's repo, which is its master (TOM-1235,
2026-09-28: the dm-evo fund chain moved to dm-evo-lab, `backtest` and
`evo-dm-brand` to dm-evo-core, `brand-rockbridge` to robo-lab).

**The plugins are NOT here.** `qute-essentials` and `qute-research` live in
`tomlupo/qute-plugins`, with their marketplace, release tooling and ADRs
(`docs/adr/` here is a pointer). This repo has no release cadence — do not add
plugin manifests, marketplace files, or `/ship` release wiring here. Changes to
guards, hooks, review/release regime, or plugin skills belong in qute-plugins.

## Layout

| Path | Contents |
|---|---|
| `claude/skills/` | Generic kit skills, grouped: `quant/`, `engineering/`, `visual/` (`<name>/SKILL.md` + assets) |
| `claude/agents/` | Personal-kit subagents |
| `claude/root-files/` | Root-level AGENTS.md starter |
| `templates/docs/` | Doc starters (PRD, tech spec, user flows) |
| `docs/playbooks/`, `docs/cheatsheets/`, `docs/prompts/` | Workflows, references, reusable prompts |
| `docs/adr/` | Pointer to the plugin ADRs (history in git) |

## Conventions

- Conventional Commits with scope (e.g. `feat(skill): ...`, `docs(playbook): ...`).
- Skills are directories containing `SKILL.md`. Agents can be single `.md` files or directories with `AGENT.md`.
- No hardcoded secrets — use `${ENV_VAR}` placeholders.
- This is a curated tree, not a generated one — no build step, no manifests.

## Adding a kit component

1. Create the file(s) under the appropriate `claude/<type>/` directory.
2. Add a row to the relevant table in `INVENTORY.md`.
3. Commit with Conventional Commits (`feat(skill-name): ...`).

**The kit is the incubator** (Tom, 2026-09-28). A NEW **generic** skill starts
here — not in a plugin — and is copied by hand into the repos that try it. When it has
become part of a process every repo or lab should run the same way, move it into
a plugin in **qute-plugins** (`qute-essentials`, or `qute-research` for the
research lifecycle), release it there, and delete it here — moving means moving.

MCP server configs are not kept here (removed 2026-09-28, TOM-1235): a copied
config drifts from the server it describes, and each server's own install docs
are the authority.

## Skill frontmatter properties

| Property | Values | Default | Purpose |
|----------|--------|---------|---------|
| `name` | string | directory name | Skill identifier (lowercase, hyphens, max 64 chars) |
| `description` | string | first paragraph | When to use (include trigger phrases) |
| `argument-hint` | string | (none) | Hint shown during autocomplete |
| `user-invocable` | `true` / `false` | `true` | Whether users can invoke via `/skill-name` |
| `disable-model-invocation` | `true` / `false` | `false` | Prevent model from auto-invoking |
| `allowed-tools` | tool names | (all) | Restrict tools when active |
| `model` | model name | (inherit) | Model to use when active |
| `agent` | agent name (e.g. `Explore`) | (none) | Subagent type when `context: fork` is set |
| `context` | `fork` | (none) | Fork context for isolated subagent execution |
| `hooks` | hook config | (none) | Lifecycle hooks scoped to this skill |

**When to use each:**

- `disable-model-invocation: true` — user-initiated only (pair it with `agents/openai.yaml` `policy.allow_implicit_invocation: false` so Codex agrees).
- `user-invocable: false` — model-only skills.
- `agent: <name>` — search/research skills where a subagent protects the main context window.
- `context: fork` — side-output produced in parallel (e.g. memory/summarization).
- `allowed-tools` — read-only or restricted skills.
- `argument-hint` — skills invoked with arguments.

### Skill dynamic features

**String substitutions** in skill content:

| Variable | Description |
|----------|-------------|
| `$ARGUMENTS` | All arguments passed when invoking the skill |
| `$ARGUMENTS[N]` | Specific argument by 0-based index |
| `$N` | Shorthand for `$ARGUMENTS[N]` |
| `${CLAUDE_SESSION_ID}` | Current session ID |

**Dynamic context injection:** Use `` !`command` `` to run shell commands before skill content is sent to Claude.

## Agent frontmatter properties

| Property | Required | Description |
|----------|----------|-------------|
| `name` | Yes | Unique identifier (lowercase, hyphens) |
| `description` | Yes | When Claude should delegate to this agent |
| `tools` | No | Allowed tools (inherits all if omitted) |
| `disallowedTools` | No | Tools to deny from inherited list |
| `model` | No | `sonnet`, `opus`, `haiku`, or `inherit` |
| `permissionMode` | No | `default`, `acceptEdits`, `dontAsk`, `bypassPermissions`, `plan` |
| `skills` | No | Skills preloaded into agent context at startup |
| `hooks` | No | Lifecycle hooks scoped to this agent |

## Hook events

`SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, `Notification`, `SubagentStart`, `SubagentStop`, `Stop`, `PreCompact`, `SessionEnd`.

Options: `once: true` (run once per session, skills only), `async: true` (non-blocking, command hooks only).
Retired: do not add anything here. The skills, agent and templates are in `tomlupo/qute-plugins` `library/`
(`README.md` says where each went). Change them there.
95 changes: 0 additions & 95 deletions INVENTORY.md

This file was deleted.

67 changes: 10 additions & 57 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,13 @@
# qute-code-kit
# qute-code-kit (retired)

Tom's **personal skills & templates library** for Claude Code — a curated tree
of skills, an agent, doc templates, and playbooks
that you browse and **copy by hand** into target repos. Nothing here installs,
releases, or self-updates.
Retired 2026-11-14 (TOM-3843, TOM-3853). Its skills, agent and templates now live in
[`tomlupo/qute-plugins`](https://github.com/tomlupo/qute-plugins) under `library/`, byte-equal, and this repo
holds no second copy:

> **The plugins are not here.** `qute-essentials` (guards, hooks, the session
> loop, `/pr`, `/ship`) and `qute-research` (the research lifecycle) live in
> [`tomlupo/qute-plugins`](https://github.com/tomlupo/qute-plugins) and install
> from its marketplace; qute-essentials brings Matt Pocock's skills along as a
> dependency. This repo has **no plugin, no marketplace manifest, and no release
> cadence**.
- `claude/skills/{quant,engineering,visual}/*` → `library/skills/{quant,engineering,visual}/*`
- `claude/agents/data-pipeline-debugger.md` → `library/agents/`
- `claude/root-files/AGENTS.md`, `templates/*` → `library/templates/`

## The kit: `claude/`

10 generic skills (quant/data, engineering, visual/UX), a subagent and an
`AGENTS.md` starter. Browse [`INVENTORY.md`](INVENTORY.md) for the
full map. A skill bound to one project does not live here: its master is that
project's repo (TOM-1235, 2026-09-28).

**New generic skills start here** — the kit is the incubator; the rule and the
promotion path are in [`CLAUDE.md`](CLAUDE.md).

Pick what you need and copy it by hand. A copied skill carries a
`PROVENANCE.yaml` (source path, source commit, each file `tracked` or
`forked from <sha>, reason: …`) so its drift from the kit can be checked:

```bash
# Skill — copy the directory, then stamp PROVENANCE.yaml in the copy
cp -r ~/workspace/projects/qute-code-kit/claude/skills/quant/market-datasets ~/projects/myrepo/.claude/skills/

# Agent — single file
cp ~/workspace/projects/qute-code-kit/claude/agents/data-pipeline-debugger.md ~/projects/myrepo/.claude/agents/
```

`pyproject.toml` and `.claude/settings.json` starters are not here: `onboard
repo` (qute-essentials) offers them where a repo has none (TOM-1235).

## Templates: `templates/`

Doc starters (PRD, tech spec, user flows) and a `WORKFLOW.md` orchestrator
contract. ADRs take their shape from `/decision`, and the tracker binding is
stamped by `onboard repo` — both qute-essentials. The research
scaffold — pin gate, line template, research-workflow — lives in the
qute-research plugin (`templates/research-scaffold/`), stamped by `onboard repo`.

## Browse

- [`INVENTORY.md`](INVENTORY.md) — full kit contents (skills / agents / templates)
- [`docs/playbooks/`](docs/playbooks/) — multi-step workflows (compound engineering, multi-agent review, investment research, session continuity, …)
- [`docs/cheatsheets/`](docs/cheatsheets/) — Claude CLI, prompt engineering, XML prompting
- [`docs/prompts/`](docs/prompts/) — reusable prompt patterns
- [`docs/playbooks/skill-router.md`](docs/playbooks/skill-router.md) — which skill, when (the discipline one-pager)
- [`docs/adr/`](docs/adr/) — pointer to the plugin ADRs (history stays in git)
- [`docs/resources.md`](docs/resources.md) — curated external links (interesting repos, tools, reading)

See [`CLAUDE.md`](CLAUDE.md) for repo conventions. Before committing here, install
[pre-commit](https://pre-commit.com) and [gitleaks](https://github.com/gitleaks/gitleaks), then run
`pre-commit install` — this repo is public.
A repo that stamped a kit skill (`source_repo: qute-code-kit`) re-stamps it against `library/` in qute-plugins.
The plugins (qute-basic, qute-factory, qute-research) were never here. `docs/` (playbooks, prompts, cheatsheets, resources), `CONTEXT.md`, `conductor.yml`, `CHANGELOG.md`
and the history stay as they were, to be read only. The old `INVENTORY.md` is in git history.
Loading
Loading