why

Surface decisions, intents, and recent edits for a file or symbol.

1|Updated May 4, 2026
One-click install
npx skills add https://github.com/sanskarbasnet/fstack --skill why-sanskarbasnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: why
Source: https://github.com/sanskarbasnet/fstack/tree/main/why
Command: npx skills add https://github.com/sanskarbasnet/fstack --skill why-sanskarbasnet

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Quickly answer why a file or symbol exists by surfacing the governing decisions, tied intents, and recent edit history so teams can avoid re-debating changes.

Core Features & Use Cases

  • Decision surface: Link to decisions that affected the target, including ADRs when available.
  • Intent trace: Surface the intents that touched the file or symbol.
  • Edit history snapshot: Show the most recent edits with author and summary.
  • Audit and debugging aid: Use during reviews or refactors to understand context and rationale.

Quick Start

Run fstack-brain why --target <path-to-file> to surface decisions, intents, and recent edits for that file.

Frequently Asked Questions about why

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find out why a file exists and what decisions led to the current code?

To find why a file exists, you can surface governing decisions, tied intents, and recent edit history. This reveals the context and rationale behind code, helping teams avoid re-debating changes during reviews or refactors.

What is the best way to trace the intent behind recent code edits during a refactor?

Tracing intent behind recent code edits involves surfacing the intents that touched a file or symbol. This process links historical decisions and the 20 most recent edits to provide a snapshot of author and summary context.

Does this code history tracing require access to specific brain data or external dependencies?

Code history tracing requires access to fstack brain data. The process reads decisions linked to target files, tied intents, and recent edits from this data source to output the historical context in plain text.

How do I surface architecture decision records and intents linked to a specific file for an audit?

To surface architecture decision records and intents linked to a specific file, you run a command targeting the file path. This retrieves linked ADRs, intents, and recent edits to provide immediate rationale for code audits.

Can I use this approach to understand code rationale during debugging and reviews?

You can use this approach to understand code rationale during debugging and reviews. It applies specifically to code audits and refactoring, providing the context needed to understand decisions and recent edits around symbols.

What are the limitations of using recent edit history for understanding code decisions?

A limitation of using recent edit history is that it only surfaces the 20 most recent edits with author and summary. It relies entirely on available fstack brain data and does not infer rationale when decisions are not explicitly linked.