Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Ticket Compound

ASecurity

Capture what a ticket taught us into the **shared** store (`thoughts/` + ADRs), so future agents on any machine make better decisions. This is `research-curate` evolved from *inventory* to *action*. Read `reference.md` (this dir) for the learnings-store schema before writing anything. **Two authority levels (hard rule):** - **Autonomous** — write/append/update/delete in `thoughts/shared/learnings/` and `thoughts/shared/CONCEPTS.md`, and prune stale notes in `thoughts/shared/{research,plans}/`...

20 stars
0 votes
0 copies
2 views
Added 9/3/2026
ai-agentsgobashsqldebugginggit

Works with

claude codeterminal

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add coalesce-labs/catalyst --skill ticket-compound --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ticket Compound?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Ticket Compound
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/coalesce-labs-ticket-compound/badge)](https://www.skillsdirectory.com/skills/coalesce-labs-ticket-compound)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: ticket-compound
description:
  Compound-engineering capture + curation for a finished ticket — the engineering feedback loop.
  Harvests the Friction sections that phase agents left in their artifacts plus the git diff, writes a
  structured entry to the shared learnings store (thoughts/shared/learnings/), prunes/amends stale
  notes there autonomously, captures new domain vocabulary to thoughts/shared/CONCEPTS.md, and PROPOSES (for
  human approval) any ADR change. Non-blocking — runs after a ticket ships or fails, never on the
  critical path. **Trigger (CTL-2244):** invoke once merge-pr's post-merge deploy-verification
  (CTL-2232) resolves a terminal sentinel for the ticket's merge — the same relay-native signal
  `compound-estimate` and `ticket-retro` use, see
  the `compound-estimate` skill's `references/trigger.md`. Also use when the user says "compound this ticket",
  "capture learnings", "what did we learn", or run as /catalyst-dev:ticket-compound <TICKET>
  [mode:headless].
disable-model-invocation: false
user-invocable: true
allowed-tools: Read, Write, Edit, Bash, Grep, Glob, Task, AskUserQuestion
---

# ticket-compound — engineering compound loop

Capture what a ticket taught us into the **shared** store (`thoughts/` + ADRs), so future agents on any machine make better decisions. This is `research-curate` evolved from *inventory* to *action*. Read `reference.md` (this dir) for the learnings-store schema before writing anything.

**Two authority levels (hard rule):**
- **Autonomous** — write/append/update/delete in `thoughts/shared/learnings/` and
  `thoughts/shared/CONCEPTS.md`, and prune stale notes in `thoughts/shared/{research,plans}/`.
- **Propose only (APPROVE-gated)** — any change to `docs/adrs.md`. Never edit an ADR directly; queue
  it for the morning ritual to approve.

**Paths.** Commands below name files inside this skill's own directory as `${CLAUDE_SKILL_DIR}/…`. Claude Code fills that in. On any other harness, set CLAUDE_SKILL_DIR to the absolute directory that contains this SKILL.md before running them. If you cannot, stop and report `skill_dir_unresolved`.

## Invocation

```
/catalyst-dev:ticket-compound <TICKET> [mode:headless]
```

- `<TICKET>` — Linear key (e.g. `CTL-619`). If omitted, detect from the branch / `CATALYST_TICKET`.
- `mode:headless` — non-interactive: apply all unambiguous autonomous actions silently, mark
  ambiguous learnings `status: stale`, never block on a prompt, end with the sentinel line. This is what the morning ritual (and, later, the daemon) use. Default is interactive.

## Step 1 — Gather raw signal (the orchestrator reads; do NOT delegate writes)

For `<TICKET>`, collect:
1. **Friction** — every `## Friction` / `friction:` block the phase agents left in their artifacts:
   `thoughts/shared/{research,plans}/*<TICKET>*.md` and the worker signal files `~/catalyst/workers/<TICKET>/*.json`.
   - `thoughts/shared/friction/<TICKET>.md` — the dedicated per-phase friction log (primary friction source).
2. **The diff** — `git log --oneline origin/main..HEAD` and `git diff --stat origin/main..HEAD`
   (or the merged SHA from `phase-monitor-merge.json`).
3. **Ticket** — read via direct SQL against the replica (title, description, final state, estimate); see the `linearis` skill's "Reading Linear" section.
4. **Event trail** (optional) — the ticket's lines in `~/catalyst/events/YYYY-MM.jsonl`.

Capture learnings from **failed/abandoned** tickets too — the dead-ends are high-signal ("what didn't work" is a first-class section).

## Step 2 — Three TEXT-ONLY sub-agents (parallel; they return text, never write files)

Spawn via Task, all at once. Each returns text to you; **you** do the single write in Step 3 (avoids partial-write races):

- **Context Analyzer** — from the diff + ticket + friction, pick the track (bug vs knowledge),
  `problem_type`, `category` (subdir), `component`, `severity`, and a filename slug. Returns the frontmatter skeleton (validate against `reference.md`).
- **Solution Extractor** — write the entry body per the track's template (bug: Problem/Symptoms/What
  Didn't Work/Solution/Why This Works/Prevention; knowledge: Context/Guidance/Why This Matters/When to Apply/Examples). Ground every claim in the diff/friction — no invention.
- **Related-Learnings Finder** — `rg -li "<keywords>" thoughts/shared/learnings/**/*.md`, read the
  frontmatter of hits, and score overlap (problem, root cause, component, files, prevention). Returns HIGH (4–5) / MODERATE (2–3) / LOW (0–1) plus the matched paths.

## Step 3 — Assemble + write ONE learnings entry (overlap routing)

- **HIGH overlap** → update the existing entry in place (merge new detail, set `last_updated:`),
  rather than creating a near-duplicate. This is the anti-bloat rule.
- **MODERATE/LOW** → create `thoughts/shared/learnings/<category>/<slug>.md`.

Then validate frontmatter (fail loud on the YAML traps in `reference.md`):

```bash
bash "${CLAUDE_SKILL_DIR}/scripts/compound/validate-learnings.sh" "<written-path>"
```

## Step 4 — Curate the store (five outcomes, autonomous in thoughts/)

For the related entries the Finder surfaced, classify and act — **autonomously** (this is the `thoughts/` layer):
| Outcome | When | Action |
|---|---|---|
| Keep | accurate, refs valid | none |
| Update | core correct, refs/paths drifted | targeted in-place edit |
| Consolidate | 2+ heavily overlap, both correct | merge into the canonical, delete the subsumed |
| Replace | core guidance now misleading | write successor, delete old |
| Delete | implementation gone AND domain gone AND no inbound links | remove (git history preserves) |

Same five-outcome pass applies to stale `thoughts/shared/{research,plans}/` notes this ticket contradicted (the "off-track context that got us redirected"). In `mode:headless`, only act on unambiguous cases; mark the rest `status: stale` + `stale_reason`.

## Step 5 — Vocabulary → CONCEPTS.md (autonomous)

Scan the diff + friction for Catalyst domain terms not yet in `thoughts/shared/CONCEPTS.md` (e.g. "reclaim", "revive-budget", "orphan", "signal ownership"). Append concise definitions. Create the file if absent.

## Step 6 — ADR changes → PROPOSE, never apply

If a learning rises to a standing rule (something *every* agent must always do/avoid), do NOT edit `docs/adrs.md`. Append a proposal to the approval queue:

```
thoughts/shared/compound/pending/<TICKET>.md
```

Each proposal: the target ADR (new / amend `ADR-NNN` / supersede `ADR-NNN`), the exact proposed text, and a one-line rationale + evidence (ticket + learning path). The morning ritual surfaces these; a human approves via `briefing-followup`'s `action-compound` handler, which is the only thing that writes `docs/adrs.md`.

## Step 7 — Discoverability check (pointer only)

Confirm `CLAUDE.md` teaches agents that the learnings store exists, its shape, and when to grep it. If not, propose (interactive) / apply (headless) a **minimal pointer** — never the learnings themselves:

```
thoughts/shared/learnings/ — past problem→solution entries (grep by component/tags/problem_type).
Search before implementing or debugging in a known area. Curated by /catalyst-dev:ticket-compound.
```

## Step 8 — Report

- **Interactive:** summarize entry written/updated, curation actions, CONCEPTS additions, and any
  queued ADR proposals (with the approval command).
- **Headless:** structured block ending with the grep-able sentinel:

```
✓ ticket-compound complete (headless)
ticket: CTL-619
entry: thoughts/shared/learnings/orchestrator-issues/daemon-false-dead-first-commit.md (created)
curated: 1 updated, 0 deleted ; concepts: +2 ; adr-proposals: 1 (pending approval)
ticket-compound complete
```

## Out of scope (this slice)
- The estimation loop (separate slice — `compound-estimate` owns estimation numbers).
- `ticket-retro` (the cross-ticket view — separate slice).

Superseded: this section used to defer the automatic trigger to "the daemon firing this automatically after `monitor-deploy` (manual / morning-ritual triggered for now)" — that daemon hook was never built, and `monitor-deploy` (`phase-monitor-deploy`) is itself retiring. CTL-2244 fulfills that deferred wiring instead: `merge-pr` Step 14 (the `merge-pr` skill's `references/post-merge.md`) now invokes this skill directly once Step 13b's deploy verification resolves a terminal sentinel — see the `compound-estimate` skill's `references/trigger.md` for the full contract.

Attribution

coalesce-labscoalesce-labs
View sourceMore from coalesce-labs →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Caveman

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

1023331 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

651 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →