/tl:promotefrom tl
Graduates durable patterns from agent learnings to project rules. Applies graduation criteria (3+ retro cycles, 21-day stability, cross-agent applicability). Use after /curate or /retro.
Ships in tl. 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.
None: SKILL.md is the whole skill.
You are running promote — scanning all agent learnings for patterns that have earned their place as project rules. A pattern graduates when it has survived repeated retro cycles, remained stable, applies across agents, and can be phrased as a testable constraint.
Optional filter: $ARGUMENTS — if provided, restrict candidates to those matching this keyword or agent name.
/curate produces a curated learnings set in context — promote reads it directly/retro surfaces promotion candidates in Phase 4f lifecycle analysis/tend, which orchestrates curate then promote in sequenceCheck context for /curate output
-> Load all agent learnings + archives
-> Check git history for survival / stability signals
-> Detect overlap with existing rules
-> Apply graduation criteria (all 6 must pass)
-> Emit pipe-format report with Draft Rules section
-> (Optional) Write approved rules to rules/ or .claude/rules/
Before loading from disk, scan conversation context for prior /curate output blocks.
Scan for ## Curated Learnings: ... / **Source**: /curate pattern.
If curated learnings output is present:
State: "Reading curated learnings from /curate output above."
Note from the curate output:
cross-agent: true — these are pre-flagged candidatesKEEP action with relevance: high — stable, valued entries### Gaps section (not relevant for promotion — skip it)This pre-screening narrows the candidate pool before loading full learnings from disk.
Scan for ## Curated Rules: ... / **Source**: /curate pattern.
If curated rules output is present:
State: "Reading curated rules from /curate output above."
Note from the rules curate output:
relevance: passive — redundancy already detected, avoid promoting learnings that duplicate these rulesrelevance: low — these cover dormant domains, avoid promoting learnings into these same domains### Passive Context Budget section — use total line count and potential savings to inform placement decisions (prefer project-local .claude/rules/ over global rules/ when budget is already high)This context improves placement decisions and prevents promoting patterns into already-redundant areas.
If no /curate output of either type is in context:
Proceed to Phase 1 without pre-screening. All learnings will be evaluated.
ls .claude/tackline/memory/agents/*/learnings.md 2>/dev/null
ls .claude/tackline/memory/agents/*/archive.md 2>/dev/null
Read each learnings.md file found. For each file, note:
(added: YYYY-MM-DD, dispatch: <source>)Read each .claude/tackline/memory/agents/*/archive.md that exists. Archive entries can reveal historical patterns — an entry archived and re-added across multiple cycles is a strong promotion signal.
ls rules/*.md .claude/rules/*.md 2>/dev/null
Read each rule file. Read CLAUDE.md. Build a topic map of what is already covered passively — these are used in Phase 3 for overlap detection.
If docs/domains.md exists, read it. Use the domain-to-rule mapping to enrich the topic map from 1c — domains that already have Rule entries indicate well-covered areas where promotion would add redundancy. Domains with Learnings entries but no Rule entries indicate areas where promotion is most valuable.
If docs/domains.md does not exist, skip this step.
From the learnings loaded in Phase 1, collect entries that are plausible rule candidates based on surface characteristics:
cross-agent: true from a /curate output in contextIf $ARGUMENTS is a keyword or agent name, filter to candidates that match the argument before continuing.
Group semantically similar entries across agents into clusters. A cluster is a set of entries that express the same underlying pattern. Each cluster becomes one candidate item.
For each cluster, record:
added: date across entries (used for stability check)For each candidate cluster, evaluate all six criteria. All six must pass for promotion. Mark each as PASS or FAIL with a brief reason.
Check the git history of the contributing learnings files:
git log --follow --oneline -- .claude/tackline/memory/agents/<name>/learnings.md 2>/dev/null
A survival cycle is a retro commit where the entry was present and not removed. Look for commits with "retro" in the message that span the entry's lifecycle.
PASS: Entry appears across 3+ retro-tagged commits without being removed. FAIL: Entry is newer than 3 retro cycles, or was added and removed within the same cycle.
Graceful degradation: If git history is unavailable or the file has fewer than 3 retro commits, check entry age instead. An entry older than 60 days with a stable added: date is a weak PASS signal — note the limitation.
git log --follow --oneline --since="21 days ago" -- .claude/tackline/memory/agents/<name>/learnings.md 2>/dev/null
PASS: No modifications to the entry content in the last 21 days. The pattern is settled, not actively evolving. FAIL: Entry text was revised recently — the learning is still being refined.
PASS: 2 or more distinct agents have an entry in this cluster, or a /curate output in context flagged the entry cross-agent: true.
FAIL: Only one agent has this pattern. A single-agent pattern belongs in that agent's learnings, not in a global rule.
PASS: The pattern applies regardless of which agent is running or which type of task is being executed. It is a workflow constraint, not a domain heuristic. FAIL: The pattern applies only to skill authoring, only to sprint planning, or only to a specific file type. Domain-specific knowledge stays in agent learnings.
PASS: Can be phrased as "do X", "prefer X over Y", or "when X, do Y". A reviewer can determine whether the rule was followed or violated. FAIL: Vague or aspirational ("think carefully about X", "be thorough"). Cannot be checked.
Compare the pattern against the topic map built in Phase 1c.
PASS: No existing rule in rules/ or .claude/rules/ covers this pattern.
FAIL: An existing rule already addresses this behavior — the learning is PASSIVE (redundant). Cite the specific rule filename.
Emit in pipe format per rules/pipe-format.md:
## Promotion Candidates: Agent Learnings -> Rules
**Source**: /promote
**Input**: all agents (or: $ARGUMENTS if provided)
**Pipeline**: /curate (N items) -> /promote (M candidates) [if /curate output was in context]
OR
**Pipeline**: (none — working from direct input)
### Items (N)
1. **PROMOTE: <pattern title>** — <representative text of the pattern>
- agents: <comma-separated list of agents with this pattern>
- survival: PASS — present in [n] retro commits (oldest: YYYY-MM-DD)
- stability: PASS — last modified YYYY-MM-DD ([n] days ago)
- cross-agent: PASS — found in [agent1], [agent2]
- universality: PASS — applies to all agents regardless of domain
- actionability: PASS — "prefer X over Y" (testable)
- no-overlap: PASS — not covered by any existing rule
- target: rules/<suggested-filename>.md | .claude/rules/<suggested-filename>.md
- placement-reason: <why this tier — every session vs. project-local>
2. **DEFER: <pattern title>** — <representative text>
- agents: <comma-separated list>
- survival: FAIL — only [n] retro cycles detected; needs [3-n] more
- stability: PASS
- cross-agent: PASS
- universality: PASS
- actionability: PASS
- no-overlap: PASS
- defer-reason: Insufficient retro survival. Re-evaluate after next 2 retros.
3. **SKIP: <pattern title>** — <representative text>
- agents: <agent-name only>
- cross-agent: FAIL — single agent only; keep in agent learnings
- skip-reason: Single-agent pattern; not a rule candidate.
### Draft Rules (N)
For each PROMOTE candidate, provide the draft markdown for the rule file:
---
**Draft: rules/<filename>.md**
# <Rule Title>
<One paragraph explaining the constraint and its rationale.>
## Rule
<The testable constraint in "do X", "prefer X over Y", or "when X do Y" form.>
## Rationale
<Why this constraint exists — what it prevents or enables.>
---
### Summary
<One paragraph: how many candidates were evaluated, how many passed all criteria, how many were deferred (and the most common reason), how many were skipped as single-agent. Note whether /curate context was used and whether it helped narrow the candidate pool. Mention if any candidates are borderline and warrant a second opinion.>
Item ordering: PROMOTE first (most actionable), then DEFER (pending), then SKIP (closed).
For each PROMOTE candidate, determine where the rule file should live. Apply rules/information-architecture.md principles:
| Question | If Yes | If No |
|---|---|---|
| Does every session need this? | rules/<file>.md (passive, auto-loaded) | Continue to next question |
| Do most sessions in this project need this? | Add to CLAUDE.md under relevant section | Continue |
| Do some sessions need this (project-specific)? | .claude/rules/<file>.md (project-local) | Keep as learnings only |
Universal constraints (applicable in any Claude Code project) → rules/
Project-specific constraints (only apply in this codebase) → .claude/rules/
Orientation-level context (high-level workflow) → CLAUDE.md
Record the placement rationale for each candidate in its target: and placement-reason: fields.
After presenting the output, ask the user:
"Promote these [N] candidates? I'll write rule files as shown in the Draft Rules section. (y/n/select)"
If y: Write all PROMOTE candidates.
If n: Stop. The pipe-format report is the primary artifact.
If select: List numbered candidates and ask which to write.
For each approved candidate, write the draft rule to the target path:
rules/<filename>.md
.claude/rules/<filename>.md
Use the exact markdown from the ### Draft Rules section as the file content.
Before writing, check that the target file does not already exist:
ls <target-path> 2>/dev/null
If the file exists, stop and ask: "A file already exists at . Overwrite, merge, or skip?"
Do not overwrite without explicit confirmation.
After writing a rule, update the source learnings entries that were promoted:
For each contributing agent's learnings.md, find the entry that was promoted and append (promoted to: <target-path>) to the entry text. This marks the entry as graduated so the next /curate run scores it PASSIVE and archives it.
Example:
- Skill frontmatter must include allowed-tools restricted to minimum needed (added: 2026-01-15, dispatch: sprint-manual) (promoted to: rules/skill-constraints.md)
If the source learnings file cannot be found or the entry text has changed since evaluation, skip this step for that entry and note the discrepancy.
Read each written rule file and confirm:
All six criteria must pass. A pattern that is cross-agent, actionable, and stable but only survived 2 retro cycles is a DEFER, not a PROMOTE. The criteria protect against premature graduation.
DEFER is not a failure. A deferred candidate is valuable — it means the pattern is promising but needs more time. Record the gap (e.g., "needs 1 more retro cycle") so the next /promote run knows where to look first.
Cite specific rule files for overlap. When skipping a candidate because it overlaps an existing rule, name the file: "covered by rules/commits.md". Vague overlap claims cannot be verified.
Placement follows IA principles. Rules that every project needs go in rules/. Rules that only apply to this codebase go in .claude/rules/. When in doubt, prefer project-local — it is easier to promote than to demote.
Draft rule text must be testable. Before emitting a draft, verify it can be checked. "Prefer X over Y" — can a reviewer look at a file and determine if the rule was followed? If not, rephrase until it can.
Don't promote single-agent patterns. If only one agent has a pattern, it belongs in that agent's Core learnings, not in a rule. Rules multiply value across all agents and sessions — single-agent patterns do not benefit from that scope.
Read /curate output if it exists in context. The cross-agent: true flag from /curate is a strong pre-screening signal. Use it to prioritize the candidate pool rather than re-deriving from scratch.
Git history is the ground truth for survival. Self-reported added: dates in learnings files can be wrong. Always verify survival against git log of the learnings file. Note when git history is unavailable and state the limitation.
See also: /curate (upstream — produces scored learnings set that /promote consumes), /tend (orchestrates curate + promote in sequence), /retro (Phase 4f surfaces promotion candidates for /promote to evaluate), /consolidate (backlog review — analogous lifecycle for tasks, not learnings).
What SKILL.md sets; muted values are Claude Code's defaults
55 skills in this plugin
/active-learnUse when an agent's performance is uneven and you want systematic improvement. Runs diagnose -> challenge-gen -> challenge-run -> update learnings in a loop. Works with or without a team. Keywords: active-learn, training, adversarial, improve, agent, loop, capability, tuning, solo./adviseUse when you're unsure what to work on next. Reads git state, session history, and task tracker to recommend next actions. Works with just git, richer with more context. Keywords: advise, suggest, next, what now, recommend, orient./assembleUse when starting a project, forming a team for long-horizon work, or upgrading from ad-hoc agent dispatch. Creates persistent roles with ownership and learnings that improve across sessions. Keywords: team, project, setup, roles, persistent, agents, staff, learning./assessUse when items need categorical triage (critical/warning/ok), not numeric scoring. Groups items by verdict against a rubric. Unlike rank (scores) or filter (binary). Keywords: evaluate, judge, categorize, triage, verdict, rubric, severity, classify./blossomUse when a goal is vague and you need to explore before planning. Runs spikes to discover what work exists, then produces a prioritized backlog. Keywords: explore, discover, spike, plan, epic, backlog, investigate./bootstrapUse when starting a new project or adding Claude Code support to an existing one. Sets up CLAUDE.md, hooks, rules, and generates tailored agents. Keywords: bootstrap, scaffold, setup, new project, init, kickstart.npx claudepluginhub tyevans/tackline --plugin tacklineOther plugins' skills for the same job