Skip to content
Back to skills

Understand

ASecurity

Analyze a codebase to produce an interactive knowledge graph for understanding architecture, components, and relationships

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentspythonbashnodegit

Works with

  • claude code

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add kmshihab7878/claude-code-setup --skill understand --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Understand?

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

Security grade badge for Understand
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kmshihab7878-understand/badge)](https://www.skillsdirectory.com/skills/kmshihab7878-understand)

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: understand
description: Analyze a codebase to produce an interactive knowledge graph for understanding architecture, components, and relationships
argument-hint: [--full] [--mode coremind|claude|generic]
---

# /understand

Analyze the current codebase and produce a `knowledge-graph.json` file in `.understand-anything/`. This file powers the interactive dashboard for exploring the project's architecture.

## Options

- `$ARGUMENTS` may contain:
  - `--full` — Force a full rebuild, ignoring any existing graph
  - `--mode coremind` — Use CoreMind specific layer patterns and 10-stage pipeline tour (default for CoreMind)
  - `--mode claude` — Analyze the Claude Code setup (~/.claude/) instead of a project
  - `--mode generic` — Use generic layer detection for any project
  - A directory path — Analyze a specific project directory

## Instructions

Run the `coremind_understand` Python engine:

```bash
cd ~/.claude/tools && python3 -m coremind_understand <project_root> [options from $ARGUMENTS]
```

**Default behavior:**
- If current directory is CoreMind (contains `src/coremind/`): uses `--mode coremind`
- If `$ARGUMENTS` contains `claude` or `setup`: uses `--mode claude` with `~/.claude` as target
- Otherwise: uses `--mode generic`

After the analysis completes, automatically run `/understand-dashboard` to launch the visualization.

## What it produces

- `.understand-anything/knowledge-graph.json` — The graph (nodes, edges, layers, tour)
- `.understand-anything/meta.json` — Analysis metadata (commit hash, timestamp)

## Schema compliance

The engine produces output that passes the Understand-Anything Zod schema validation with zero errors. All nodes have valid `type` (file|function|class|module|concept), `complexity` (simple|moderate|complex), and all edges have `direction` and `weight` fields.

## Incremental updates

If a graph already exists and the git commit hash hasn't changed, the engine reports "up to date" and exits. Use `--full` to force a complete re-analysis.

Files in this skill

  • SKILL.md2 KB
  • architecture-analyzer-prompt.md10.9 KB
  • file-analyzer-prompt.md14.2 KB
  • graph-reviewer-prompt.md8.2 KB
  • project-scanner-prompt.md9.1 KB
  • tour-builder-prompt.md12.1 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.

Comments

Loading comments…