/t-stack:tstack-whyfrom t-stack
Use when you need to know why code has its shape before you change or remove it: "why do we do it this way", why a limit or threshold is that number, why an odd guard exists, what decision or incident led to it, or what a regression broke. Anchors on the code and its git history, searches the PRs, the cards (where owner decisions are quoted and dated), posts, docs, rooms and any other sources you can reach, and returns a cited answer that separates what the record says from what you infer. Skip for how the code works at runtime (use tstack-how).
Ships in t-stack. 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.
Read when SKILL.md points to them.
Code shows what it does, never why. The why lives in commit messages, PR threads, the cards, the owner's decisions and the rooms, and all of them are partial. This skill finds that record and reports it honestly: what someone wrote down, what the evidence points to, what you're guessing, and what nobody recorded.
Pin the question. Name the target (a function, a constant, a guard, a pattern) and the question about it. If it's vague, state your reading and go on.
Anchor in the code and its history. Get the file, the lines, the symbols, the last commits that touched them, and the PR numbers in their messages:
git log --oneline -20 -- "<path to the file>"
git log -S "<the exact text>" --oneline -- "<path to the file>"
git show <sha>
gh pr view <pr> --comments
Search the team's record. In a sfora project, decisions sit on the cards: the owner's words quoted and dated, "OWNER DECISIONS (date)" and "PM DECISIONS (date)" sections, review verdicts. Find the cards that mention the PR or the feature, and read them in full (sfora-board):
sfora tasks hq --bot claude-code
sfora cat /projects/hq/board/04-done/<card-file>.md --bot claude-code
Then the posts and docs (sfora-write), and the mission room's history (sfora-chat).
Search the other sources you can reach, one subagent per source, all at once: the issue tracker, design docs, team chat, error tracking, logs and metrics, analytics. Add the incident angle when the code looks defensive (a retry, a timeout, a rate limit, a flag, a guard). Brief: references/sources.md.
Write the answer with every claim in a confidence tier from references/confidence.md: what we found (cited), what we can reasonably infer, competing explanations, what we don't know, and the sources searched, one line each, including the ones that came back empty.
If a change follows, end with constraints: what to keep, what's free to change, what to avoid, and the risk. Put them in the design note on the card.
retryOnce" says nothing about why.The answer, with sections: the question, the code (path and lines), what we found, what we infer, competing explanations, what we don't know, sources searched (one line each, empty ones too), and the constraints if a change follows.
Detail: references/confidence.md, references/sources.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wavyrai/sfora-skills --plugin t-stack28 skills in this plugin
/tstack-architectUse when a change is big enough that writing code first would fix the wrong shape: a new module, a new data model, a change to who owns some state, or a card whose design the owner must see. Sketch the caller's usage, the types and the signatures first, compare at least two shapes, put the chosen sketch on the card or a doc, then build against it and scrap it when it keeps fighting you. Skip for a one-file fix with an obvious shape (just build it, with tstack-tdd), and for comparing finished candidates (use tstack-arena)./tstack-arenaUse when one attempt at a non-trivial piece of work would fix the wrong shape: a contested design, an API, a tricky algorithm, a page of copy. Run two to four independent candidates on the same brief, have a separate judge score them against a written rubric, pick one as the base, graft the best parts of the others into it by hand, and verify the result. Covers the brief, the rubric, the judge and the synthesis note on the card. Skip for work with one obvious answer, and for splitting work into slices (use tstack-swarm)./tstack-benchmark-checklistUse before you report or act on a performance number you measured: a speedup or regression in a PR, a CI step's time, a job's duration, a choice between two libraries or settings. Seven questions to answer with evidence from runs: what limits it, was each side tuned, does it break physical limits, did it error, does it repeat, does it matter end to end, and did the work happen at all. Covers how to state the number on a card. Skip for numbers you didn't measure, and for finding the slow code in the first place (use tstack-how, then measure).