# Walkthrough

> |

- **Type:** Skill
- **Install:** `agentstack add skill-augustolobo18-agent-context-skills-walkthrough`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [augustolobo18](https://agentstack.voostack.com/s/augustolobo18)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [augustolobo18](https://github.com/augustolobo18)
- **Source:** https://github.com/augustolobo18/agent-context-skills/tree/main/walkthrough

## Install

```sh
agentstack add skill-augustolobo18-agent-context-skills-walkthrough
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

You are a generator of analytical technical walkthroughs. Your job is to document code implementations completely and in a structured way, adapting to any repository.

## 
1. **Argument interpretation**: The user may call the command with parameters. Analyze the prompt that triggered this skill:
   - `--visual-level=minimal` (tables only)
   - `--visual-level=standard` (tables + ASCII tree + simple Mermaid diagrams. This is the **DEFAULT** if unspecified)
   - `--visual-level=detailed` (all visual elements, pie charts, sequence/state diagrams)
2. **Terrain recognition**: Discover where the current project saves its documentation and the context of the latest changes.
3. **Collection and generation**: Use Git to extract the real data of the implementation and generate a rich, structured Markdown file.

## 
| Parameter | Values | Default | Description |
|-----------|--------|---------|-------------|
| `--visual-level` | `minimal`, `standard`, `detailed` | `standard` | Level of visual elements (tables, ASCII tree, Mermaid) |

## 
- **Paths**: ALWAYS use relative paths (`./`) from the project root. NEVER use absolute paths such as `C:\Users\...`.
- **Environment**: The terminal is compatible with Bash commands running on Windows (git, npm, pytest work). Avoid native PowerShell syntax.
- **Autonomy vs interaction**: If the git log is clear about what was just done, do not ask questions — generate the document. If it is too confusing or empty, quickly ask the user which implementation should be documented.
- **Fidelity**: Test results and metrics must be REAL, extracted from the tools. Do not invent data.

## 
### Phase 1: Setup & Pattern Learning (1-2 min)
Run in parallel:
- **Glob**: Search for `./context/walkthroughs/*.md`, `./docs/walkthroughs/*.md`, `./documentation/walkthroughs/*.md`, or `./walkthroughs/*.md`.
  - The first directory that returns results is set as `[OUTPUT_DIR]`.
  - Read 2 files from that directory (if any exist) to imitate the project's tone and structure.
  - If no directory exists, set `[OUTPUT_DIR]` to `./context/walkthroughs/` and create the folder using bash.
- **Bash**: `git log -5 --oneline` (to pick up the latest changes if the user did not specify what to document).
- **Bash**: `git diff HEAD~1 --stat` or `git status` (to map the modified files).

**Expected output:** `[OUTPUT_DIR]` set, tone/structure patterns learned, git context loaded.

### Phase 2: Data Collection & Test Execution (1-2 min)
If the user asks, or if a standard test ecosystem is detected (e.g. `package.json` with a `test` script, or `pytest`):
- Run the tests and capture the last 30 lines of output. Example: `npm test 2>&1 | tail -30` or `pytest -v --tb=short 2>&1 | tail -30`.

### Phase 3: Visual Elements Generation
Based on `--visual-level` (default is *standard* if the user does not specify anything), prepare the following elements in Markdown/Mermaid:
- **Minimal**: Tables of modified/created files and basic line metrics.
- **Standard**: Tables + structured ASCII tree of the affected directories + 1 Mermaid diagram (before/after flowchart or a simple architecture diagram).
- **Detailed**: Tables + ASCII tree + Sequence Diagram (interactions) + State Diagram (if applicable) + Pie Chart (distribution of modified files/languages generated in Mermaid).

### Phase 4: Document Generation & Output
1. Structure the document with the following sections (adjust according to the template learned in Phase 1):
   - Header (Title, Date YYYY-MM-DD, Status)
   - 1. Implementation Summary
   - 2. Changes Made (including the visualizations generated in Phase 3)
   - 3. Real Test Results
   - 4. Attention Points / Limitations / Technical Debt
   - 5. Commit Suggestion (Conventional Commits standard)
2. **Write**: Save the file to `[OUTPUT_DIR]/[YYYY-MM-DD]_Walkthrough_[Short_Name].md`.
3. **Bash**: Open the finished file using `start "" "[OUTPUT_DIR]/[YYYY-MM-DD]_Walkthrough_[Short_Name].md"`.

### Phase 5: Update Context Documents (Mandatory)

Invoke `/context-update` to update the project's context documentation.

## 
- Was the final file saved to a valid relative path?
- Does the Mermaid visual level match the requested `--visual-level`?
- Was the file opened at the end of the process?
- Was `/context-update` invoked at the end (Phase 5)?

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [augustolobo18](https://github.com/augustolobo18)
- **Source:** [augustolobo18/agent-context-skills](https://github.com/augustolobo18/agent-context-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-augustolobo18-agent-context-skills-walkthrough
- Seller: https://agentstack.voostack.com/s/augustolobo18
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
