track
This skill should be used when the user asks to "initialize tracking", "enable/disable tracking", "toggle auto-tracking", "configure tracking verbosity", "export bibliography", "export methodology", "generate BibTeX", "create citation timeline", or anything involving the track plugin for reference and prompt tracking. Single unified interactive entry point.
What this skill does
# Track — Reference and Prompt Tracking
The track plugin records research sources and prompts to `claude_usage/` during a Claude Code session via two hooks: `capture-sources.sh` (PostToolUse, fires on Read/Grep/WebFetch/WebSearch) and `capture-prompt.sh` (Stop, fires after each assistant response). Sources are written in compact ASCII format with zero LLM cost; prompts are classified MAJOR/MINOR by a Claude Haiku call for verbosity filtering. Exports produce bibliographies, methodology sections, BibTeX, citations, or timelines from the tracked data.
This skill is the single interactive entry point for initializing, configuring, toggling, and exporting tracking data. Hooks run independently of this skill — toggling them on/off only changes a flag in `.claude/.ref-config`.
## First Step
When invoked with no arguments, the FIRST action must be a single AskUserQuestion tool call (no preamble). Use this EXACT string for the `question` field:
"What would you like to do with track?"
Set `header: "Action"` and offer these options:
- `init` — Initialize tracking files and enable hooks
- `config` — View or update verbosity and export settings
- `auto` — Toggle hook-based tracking on/off
- `export` — Export tracked data (bibliography / methodology / bibtex / citations / timeline)
- `help` — Show subcommand grammar and usage examples
If the user's message already includes a subcommand (e.g. `/track export bibliography`), skip the AUQ and jump straight into the matching workflow below. See "Subcommand Grammar" for the full argument form.
## Helper Commands
All real work is done by thin wrappers in the plugin's `bin/` directory. Claude Code puts that directory on `PATH` automatically, so invoke them as bare commands — **no path construction, no `$CLAUDE_PLUGIN_ROOT`**. (`$CLAUDE_PLUGIN_ROOT` is not substituted inside SKILL.md files; see [anthropics/claude-code#9354](https://github.com/anthropics/claude-code/issues/9354).)
- `track-init` — initialize tracking files and configuration
- `track-config [KEY=VALUE ...]` — view or update verbosity/export settings
- `track-auto [on|off]` — toggle hook-based tracking
- `track-export <format> [output]` — export tracked data
Do NOT edit `claude_usage/prompts.md`, `claude_usage/sources.md`, or `.claude/.ref-config` directly from this skill. Use the commands.
## Configuration Reference
The `.claude/.ref-config` file holds four values read by both the skill and the hooks:
| Key | Values | Default | Purpose |
|---|---|---|---|
| `TRACKING_ENABLED` | `true` / `false` | `true` | Master switch for hooks |
| `PROMPTS_VERBOSITY` | `all` / `major` / `minimal` / `off` | `major` | What gets written to `prompts.md` |
| `SOURCES_VERBOSITY` | `all` / `off` | `all` | What gets written to `sources.md` |
| `EXPORT_PATH` | path string | `exports/` | Default output directory for `track-export` |
## Workflow: INIT
1. Run `track-init` with no arguments.
2. Show the script's output verbatim in a code block.
3. On success, tell the user: tracking files are created at `claude_usage/`, the config file is at `.claude/.ref-config`, and hooks will fire automatically on the next tool call or assistant response.
Init is parameterless — no AUQ sequence needed. If `claude_usage/` already exists, the script handles that idempotently; pass the output through unchanged.
## Workflow: CONFIG
Two modes:
- **No args** → call `track-config` with no arguments. The script itself uses AskUserQuestion internally for interactive flow. Pass its output through.
- **With `KEY=VALUE` pairs** → call `track-config KEY=VALUE [KEY=VALUE ...]` directly and show the result.
Supported keys: `prompts=all|major|minimal|off`, `sources=all|off`, `export_path=<path>`.
Prerequisite: `.claude/.ref-config` must exist. If missing, advise running `track init` first.
## Workflow: AUTO
1. If the user supplied `on` or `off` as an argument, call `track-auto on` or `track-auto off` directly.
2. Otherwise, AUQ: `header: "Auto-tracking"`, question: "Enable or disable hook-based tracking?", options: `on`, `off`, `cancel`.
3. Show the script's output.
Auto only flips `TRACKING_ENABLED` in the config file. It does not delete tracked data.
## Workflow: EXPORT
1. **Format** — If not provided, AUQ: `header: "Export format"`, question: "Which export format?". Options: `bibliography`, `methodology`, `bibtex`, `citations`, `timeline`, `cancel`.
2. **Output path** — If not provided, prompt as free-text. Mention the default from `EXPORT_PATH` in `.claude/.ref-config` as a hint (e.g. "Leave blank for the default: `exports/bibliography.md`"). If the user supplies a bare filename without a directory, the script resolves it against `EXPORT_PATH`.
3. **Run** — Call `track-export <format> [output]` and show the result in a code block.
Prerequisite: `claude_usage/sources.md` and/or `claude_usage/prompts.md` must exist. If absent, advise running `track init` first.
**Format notes:**
- `bibliography` — Markdown numbered bibliography from sources.
- `methodology` — Markdown sections from prompts, organized by MAJOR classification.
- `bibtex` — BibTeX entries suitable for `\cite{}`.
- `citations` — Numbered inline citations.
- `timeline` — Chronological activity log combining sources and prompts.
## Workflow: HELP
Print a static reference. Do NOT call any helper script. Output the following verbatim (under 60 lines total):
1. The subcommand grammar block from "Subcommand Grammar" below.
2. The configuration reference table from "Configuration Reference" above.
3. The examples block from "Subcommand Grammar → Examples" below.
## Subcommand Grammar (skip the AUQs)
The first positional argument is the subcommand. **If the first argument matches a subcommand below, jump straight into that workflow** and only AUQ for what is missing.
```
/track → fully interactive (action AUQ first)
/track init
/track config [KEY=VALUE ...]
/track auto [on|off]
/track export <format> [output]
/track help
```
### Subcommand → helper-command mapping
| Subcommand | Helper invocation |
|---|---|
| `init` | `track-init` |
| `config [ARGS]` | `track-config [ARGS]` |
| `auto [on\|off]` | `track-auto [on\|off]` |
| `export FORMAT [OUTPUT]` | `track-export FORMAT [OUTPUT]` |
| `help` | (no helper — print static reference inline) |
### Examples
```
/track init
/track config prompts=all
/track config prompts=major sources=off export_path=paper/refs/
/track auto off
/track auto on
/track export bibliography
/track export bibtex refs.bib
/track export methodology paper/methodology.md
```
### Argument detection
If no subcommand is present and no arguments are supplied, run the fully interactive flow starting with the action AUQ.
If a known config key (`prompts=`, `sources=`, `export_path=`) is the first positional, assume `config`. If a known export format (`bibliography`, `methodology`, `bibtex`, `citations`, `timeline`) is the first positional, assume `export`. Otherwise ask.
## Important Notes
- Hooks fire based on `TRACKING_ENABLED` in `.claude/.ref-config`. Toggle via `/track auto`, not by editing the file directly.
- The Stop hook is debounced (5s) to prevent runaway haiku processes; outputs appear on the next conversation turn, not immediately.
- All file operations are CWD-relative. Invoke `/track` from the project root where `claude_usage/` should live.
- If `/track:init`, `/track:config`, etc. (colon syntax) are invoked by muscle memory, treat as the space-separated form. The old colon-separated commands no longer exist as separate skills.
- If the user asks to "migrate from v1.x" or "migrate tracking", point at `plugins/track/MIGRATION.md` — the `migrate` skill no longer exists. Current versions auto-migrate legacy files during `track-init`.
- Always show the final command before running it, so the user can spot mistakes.
- After any modification, optionally show the resulting config via `track-config` with no args — but only if the user wants to verify.
- If the useRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.