# Trace architecture

> Trace architecture is an open-source agent skill for developer tools. Builds a traced, evidence-backed Markdown map of a codebase's architecture and flows. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/nvsravank/avagahana/tree/master/skills/trace-architecture
- **Repository:** https://github.com/nvsravank/avagahana
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** trace-architecture
- **Collection:** https://github.com/nvsravank/avagahana
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill has the agent produce a single Markdown file containing linked architecture diagrams of a whole repository, covering context, layers, key request flows, lifecycles, stored data and deployment environments. Each box and arrow is tied to the file and line where it was found, and marked as verified or inferred, so readers can trace claims back to code.

Before drawing, the agent records the commit it read and inventories the project's folders, entry points, build and deployment files, schemas and external services. It can use an existing code graph file as a navigation aid if one is present. The map opens on a short guided walkthrough shaped to the reader's purpose, such as onboarding, a security review or a release summary, and the agent verifies the diagrams before presenting them.

The skill is a plain instruction file with no bundled scripts. It refers to companion skill documents for the diagram format and checking loop, so it works best alongside the illuminate-concept skill from the same Avagahana project, and it expects the agent to have read access to the repository.

## When your agent uses it

> Avagahana map of a whole codebase: one Markdown file of linked diagrams (context, layers, key flows, lifecycles, data, deployments), every box and arrow backed by evidence from the code, opening on a guided walkthrough for the reader's purpose (onboarding, a security review, a release, an overview). Always use this skill, together with illuminate-concept, when the user wants to: understand, explain or document a project, repository or codebase, or give someone an overview of it or onboard them; review its architecture or design, or do a security review of it; or see what a release, version or tag changed since an earlier one. Make the map as well as any text answer or report, unless they ask for text only. Use it even when no diagram is asked for. Prefer an Avagahana map to a custom HTML page for explaining a codebase.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/nvsravank/avagahana/tree/HEAD/skills/trace-architecture)
- [License: MIT](https://github.com/nvsravank/avagahana/tree/HEAD/skills/trace-architecture)

## Features

- **Evidence-linked diagrams:** Every box and arrow cites the file and lines it came from, with a verified or inferred mark.
- **Multiple diagram kinds:** Covers context, layers, key flows, lifecycles, data models and deployments as needed.
- **Purpose-driven walkthrough:** Opens the map on a short guided story tailored to onboarding, security review or release changes.
- **Commit-pinned sources:** Records the repository and full commit read so the map can be reproduced against a known state.
- **Release comparison maps:** Supports per-release map files and comparisons against the previous release's map.
- **Large-project splitting:** Proposes splitting very large codebases across subagents, with the user's approval first.

## Good for

- Explain how a codebase is structured to a new engineer
- Draw the request flow from an API entry point to the database
- Produce a security review map of a project's boundaries and secrets handling
- Document what changed between two release tags
- Create a diagram-backed overview of a repository's deployment setup

## Install

### Claude Code

This skill ships in the `avagahana` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add nvsravank/avagahana
/plugin install avagahana@avagahana
```

Or copy only this skill to `~/.claude/skills/trace-architecture`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nvsravank/avagahana.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/trace-architecture &&
cp -R "$tmp/skills/trace-architecture" ~/.claude/skills/trace-architecture &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/trace-architecture` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/trace-architecture` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nvsravank/avagahana.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/trace-architecture &&
cp -R "$tmp/skills/trace-architecture" ~/.agents/skills/trace-architecture &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/trace-architecture` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/trace-architecture` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nvsravank/avagahana.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/trace-architecture &&
cp -R "$tmp/skills/trace-architecture" ~/.cursor/skills/trace-architecture &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/trace-architecture` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/nvsravank/avagahana.git --path skills/trace-architecture
```

Or copy the folder to `~/.gemini/skills/trace-architecture` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/trace-architecture`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nvsravank/avagahana.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/trace-architecture &&
cp -R "$tmp/skills/trace-architecture" ~/.copilot/skills/trace-architecture &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/trace-architecture` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/nvsravank/avagahana.git
```

Then copy `avagahana/skills/trace-architecture` into your agent's skills folder as `trace-architecture`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does the skill need any scripts or extra tools installed?

No scripts are bundled and the skill does not set allowed tools. It relies on reading the repository and on the companion illuminate-concept skill for the diagram format.

### Does Trace architecture change the codebase?

The instructions do not ask the agent to modify the repository. It writes one map file and does not install or run code graph tools unless the user asks.

### What happens if the working tree has uncommitted changes?

The agent is told to ask the user whether to commit first or map the last commit, so the map matches a recorded commit.

### Can Trace architecture map a very large project?

It does the work itself by default. For projects too big for one pass it proposes splitting the work across subagents and waits for approval before starting.

### How do I install Trace architecture in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/trace-architecture to use it in all your projects, or to .claude/skills/trace-architecture in one project. Or install the avagahana plugin, which includes it: /plugin marketplace add nvsravank/avagahana, then /plugin install avagahana@avagahana.

### Does Trace architecture run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Trace architecture?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Trace architecture?

The closest alternatives to Trace architecture are Architecture blueprint generator, Improve codebase architecture, Context map, Diagramming code and Acquire codebase knowledge.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Architecture blueprint generator](https://ai-powered.com/skills/architecture-blueprint-generator): Architecture blueprint generator is an open-source agent skill for developer tools.
- [Improve codebase architecture](https://ai-powered.com/skills/improve-codebase-architecture): Improve codebase architecture is an open-source agent skill for developer tools.
- [Context map](https://ai-powered.com/skills/context-map): Context map is an open-source agent skill for developer tools.
- [Diagramming code](https://ai-powered.com/skills/diagramming-code): Diagramming code is an open-source agent skill for developer tools.
- [Acquire codebase knowledge](https://ai-powered.com/skills/acquire-codebase-knowledge): Acquire codebase knowledge is an open-source agent skill for developer tools.
- [Graph](https://ai-powered.com/skills/graph): Graph is an open-source agent skill for files and documents.
- [Codebase onboarding](https://ai-powered.com/skills/codebase-onboarding): Codebase onboarding is an open-source agent skill for developer tools.
- [Repo recon](https://ai-powered.com/skills/repo-recon): Repo recon is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/trace-architecture
