Skip to content
Back to skills

How

ASecurity

Explores the codebase to explain subsystem architecture, runtime flow, component boundaries, and onboarding mental models. Answers how does X work, where should this live, and which package owns this.

  • 5 stars
  • 0 votes
  • 0 copies
  • 10 views
  • Added October 19, 2026
code-qualitygorefactoringgit

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 21, 2026

npx -y skills add sirius-cc-wu/sirius-skills --skill how --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of How?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for How
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sirius-cc-wu-how/badge)](https://www.skillsdirectory.com/skills/sirius-cc-wu-how)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: how
description: "Explores the codebase to explain subsystem architecture, runtime flow, component boundaries, and onboarding mental models. Answers how does X work, where should this live, and which package owns this."
---

# How (Subsystem Runtime & Architecture Exploration)

## Overview

Explore the codebase to answer "how does X work?" questions. Produce architectural explanations at the level of a senior engineer onboarding onto a subsystem—enough to build a working mental model without drowning in annotated source code dumps.

Companion to the `why` skill:
- **`how`** answers *what* the system does, where boundaries live, and *how* data flows through runtime components.
- **`why`** answers *what forces* (historical decisions, constraints, incidents, trade-offs) led to its shape.

---

## When to Use

- When onboarding onto an unfamiliar subsystem or crate.
- When answering structural questions: *"Where should this feature live?"*, *"Which crate owns this responsibility?"*, *"Is this the right layer?"*.
- Before proposing an architectural change, new contracts, or refactoring in Playbook 6 (`PB-6: Investigation Spike`).
- When a teammate or operator asks for a high-level runtime walkthrough with Mermaid diagrams.

### When NOT to Use

- When asking for historical motivation, commit archaeology, or why an edge case was handled; use `why`.
- When stepping interactively through a bounded git commit, branch diff, or pull request; use `walkthrough-me`.
- When formally deriving black-box system sequence diagrams for business use-cases; use `system-behavior`.

---

## Model Architecture & Roles

This skill leverages a dual-role pattern balancing high-speed parallel exploration with deep architectural synthesis:

- **Explorers (Parallel Gathering)**:
  - Fast, read-only subagents with large context windows.
  - Runtime: Antigravity read-only subagent (`invoke_subagent` with `TypeName: "research"`, `Role: "Subsystem Explorer"`, omitting `Model`) or `agy` read-only runner.
- **Explainer / Synthesizer (Synthesis & Diagramming)**:
  - High-rigor frontier model specialized in architectural synthesis.
  - Runtime: Reviewer model derived from `mode` and `budget` in `~/.config/thinker/config.yaml` (default: **`gemini-4-neon-<budget>`** via `agy`; fallback: **`claude-opus-5-5-<min(budget, high)>`** in `claude` mode).

---

## Workflow

```mermaid
flowchart TD
    Q["1. Assess Complexity (Simple vs Complex)"] -->|Simple (Single module / function)| Direct["Step 2b. Direct Explain Pass (Reviewer model)"]
    Q -->|Complex (Subsystem / Cross-crate flow)| Parallel["Step 2a. Parallel Decompose (2–4 Angles)"]
    Parallel --> Exp["Spawn Parallel Explorers (research subagent / agy)"]
    Exp --> Synth["Step 3. Synthesize and Diagram (Mermaid via Reviewer model)"]
    Direct --> Present["Step 4. Present / Record Architecture Note"]
    Synth --> Present
```

### Step 1. Assess Complexity

Evaluate the scope of the question:
- **Simple** (a single module, a small utility, or a narrow function): Skip explorer decomposition. Run a direct explainer pass via Step 2b.
- **Complex** (a subsystem spanning multiple files, services, cross-crate interactions, or full architectural overview): Decompose into parallel exploration angles via Step 2a.

When in doubt, start with the simple direct pass.

### Step 2a. Explore (Complex Questions)

Decompose the question into 2 to 4 exploration angles, each covering a distinct slice of the subsystem (e.g., Entry/Trigger Points, Core Data Transformation, External Boundaries/Storage, Error/Cleanup Lifecycles).

Spawn parallel read-only explorers in a single batch:
- Each explorer receives the prompt template from `references/explorer-prompt.md` filled with its specific angle and the user's question.
- Explorers trace call paths, map abstractions, record files read, and identify non-obvious surprises.

### Step 2b. Direct Explain (Simple Questions)

Run a single exploration and explanation pass using the synthesizer runner:
- Build the prompt from `references/explainer-prompt.md` omitting the explorer findings section.
- Proceed to Step 4.

### Step 3. Synthesize (Complex Questions)

Once all explorer subagents return, invoke the synthesizer (Reviewer model via `agy` — `gemini-4-neon-<budget>` in `gemini` mode, `claude-opus-5-5-<min(budget, high)>` in `claude` mode):
- Inject all explorer findings into `references/explainer-prompt.md`.
- Reconcile overlapping areas, verify key files directly, and generate structured Mermaid flow/sequence diagrams.

### Step 4. Present & Record

Present the synthesized walkthrough to the operator:
- **Overview**: 1–2 paragraphs summarizing purpose and behavior.
- **Key Concepts**: Core domain abstractions, structs, and traits.
- **How It Works**: Step-by-step runtime flow, transformation stages, and Mermaid sequence/flowchart diagrams.
- **Where Things Live**: Clear directory/file map.
- **Gotchas**: Non-obvious behaviors, edge cases, and historical traps.

If executed as part of an architecture spike (PB-6), optionally record the artifact in `docs/architecture/investigations/<topic>.md`.

---

## Reference Files

- `references/explorer-prompt.md`: Base prompt template for parallel explorer agents.
- `references/explainer-prompt.md`: Prompt template for architectural synthesis and Mermaid generation.

Files in this skill

  • SKILL.md5.1 KB
  • references/explainer-prompt.md3 KB
  • references/explorer-prompt.md2.6 KB

Attribution

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

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.