Skip to content
Skills Library
Programming · Analysis

speclink-trace

/speclink-trace

Use when someone asks how a capability came to be or why it works this way — walks its provenance chain across archived changes, source discussions, evidence and live code.

Repository
speclink ↗
Licence
MIT
Last repository change
27.10.2026

Assessment and security

96/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content31 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when someone asks how a capability came to be or why it works this way — walks its provenance chain across archived changes, source discussions, evidence and live code.

Original author description

Use when someone asks how a capability came to be or why it works this way — walks its provenance chain across archived changes, source discussions, evidence and live code.

How it works

SKILL.md has no level-two headings · 77 lines, 835 words

SKILL.md preview
---
name: speclink-trace
description: "Use when someone asks how a capability came to be or why it works this way — walks its provenance chain across archived changes, source discussions, evidence and live code."
license: MIT
compatibility: Requires speclink CLI.
metadata:
  author: speclink
  version: "v1.53.0"
  generatedBy: "Speclink"
---

**Conversation language**: write to the user in the language they use with you — progress updates, questions, and summaries. This skill is written in English, and its example messages show structure, not language: translate their prose, and keep commands, file paths, code, and fixed tokens (severity labels, status words) as they are. When a step sets the language of its own output — a document, a report, or the way it presents results and asks about them (for example through `locale`) — that step decides for that output. When you edit a document that already exists and no step sets its language, keep the language it is written in. When you run in a forked context that cannot see the conversation, use the language of the request you were given.

Answer "how did this come to be / why is it designed this way" for a feature: map the question to a capability, walk its provenance chain (archived changes → source discussions → evidence → live code), and reply with one sourced narrative.

**Input**: A natural-language question after `$speclink-trace` (e.g., `$speclink-trace why does archiving stamp @trace blocks?`). The question names or implies one feature or behavior.

**Prerequisites**: This skill requires the `speclink` CLI and `git`. If any `speclink` command fails with "command not found" or similar, report the error and STOP.

**Steps**

1. **Canon pass — map the question to a capability**

   Run `speclink list --specs --json` and match the question against the canonical capability names; when a name alone is not conclusive, check its scope with `speclink show <name> --item-type spec`.

   - One capability clearly matches → continue with step 2.
   - No capability plausibly covers the question → skip to step 6 and answer from the codebase. Do NOT reply "no spec found" and stop.

2. **Fetch the provenance chain**

   Run `speclink trace <capability> --json`. The payload carries:

   - `changes`: the archived changes that touched the capability, oldest first — each with `archivedDir`, `fromDiscussion` (slug or null) and `evidence` (per-task file lists, or null)
   - `discussions`: each source discussion with its full `promotedTo` fan-out — the sibling changes it spawned and the capabilities they touched
   - `requirements`: which change each canonical requirement currently comes from

   If the command fails with name suggestions, redo step 1 against those exact names.

3. **Read the story behind each link**

   - For every discussion slug: `speclink discuss show <slug>` — pull the conclusion (the decision and its reasons) and the rounds where alternatives were weighed and rejected.
   - For every change in the chain: its `proposal.md` sits inside the archived change directory named by `archivedDir` — pull the motivation ("Why") section.
   - Note the sibling changes from `promotedTo` and the capabilities that evolved alongside.

4. **Locate the touched code**

   - `evidence` non-null → the per-task `files` lists name what the change touched; use them as the file set.
   - `evidence` null → look the change up in version-control history instead: `git log --oneline --name-only` and match commit subjects carrying the change name (the commit-scope convention). Treat the hits as best-effort leads, not guarantees. Nothing found → answer from the discussion and proposal content; never stop, and never ask the user to supply a missing record.

5. **Let live code have the last word**

   Any statement about CURRENT behavior must come from the current code, freshly consulted in this session. Evidence lists and commits are historical snapshots — cite them for "how it got here", never for "how it is".

6. **No spec matched — answer from the codebase**

   Search the code for the behavior by keyword; use `git log -S` and `git blame` to find the commits that introduced it; read the commit messages as decision leads. Then answer in exactly the format of step 7.

7. **Compose the answer**

   One narrative, containing:

   - the decision and its reasons
   - alternatives that were considered and rejected (when the records show them)
   - related capabilities that evolved together
   - a source path for every claim — spec path, discussion slug, archived change directory, commit hash, or code file

**Output**

```
## <capability or topic>: how it came to be

<narrative: decision → reasons → rejected alternatives → current state>

**Sources**
- <claim> — <path / slug / commit>
```

**Guardrails**

Check these before you answer:

- [ ] Every claim carries a source path; a claim you cannot source gets qualified or dropped.
- [ ] The answer NEVER contains internal pipeline words — "degraded", "fallback", "old era", "incomplete data", "no evidence recorded" and the like. All sources (discussions, proposals, commits, code) are woven in as natural citations of one story.
- [ ] Missing records change where you look, never what the reader sees: the answer format is identical whether it was assembled from the chain, from git history, or from code archaeology.
- [ ] git commit-message conventions are best-effort leads; when they yield nothing, discussions and proposals carry the answer.
- [ ] Do not edit any file — this skill only reads and answers.

Versions

RepositoryScoreLicence
This page · momochenisme/speclink96MIT
momochenisme/speclink96MIT

Database snapshot: 13.11.2026 · package version 09528b4bdb51 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 86trace-analysis
    Trace an analytical claim to its receipt, source, query, result, and run evidence. Use when the user asks where a number came from, wants to verify a query, or needs to inspect provenance.
  • 90why
    Trace why code is the way it is, with every claim cited. Use for "why does X work this way", why a choice was made, a regression's origin, or before changing code that looks deliberate.
  • 100speclink-baseline
    Use when adopting Speclink on a codebase that already has behavior but no specs — establishes the baseline by generating the initial specs from what the code does today.
  • 100past-lives
    Aang consulting his past lives (Roku, Kyoshi) for why things were decided. Use for why, /why, "why does X work this way", "why did we pick Y", design rationale, the history behind a regression, postmortem context, or where a threshold number came from. Queries every evidence…
  • 100code-flow-tracer
    Trace code execution paths and data flow. Use when user asks "how does X work", "what happens when X", "trace the flow of X", "where does data come from", or needs to understand feature implementation.
  • 100speclink-baseline
    Use when adopting Speclink on a codebase that already has behavior but no specs — establishes the baseline by generating the initial specs from what the code does today.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.