Skip to content
cccskills
FreePublished on GitHubEnglish overview

understand-chat

Ask questions about a codebase using a knowledge graph, a map of its components and relationships. Get explanations tied to specific files, functions, dependencies, and architectural layers, with warnings when the graph may be outdated.

OriginalShow the original description

Use when you need to ask questions about a codebase or understand code using a knowledge graph

AI rating100/ 100See how to install

Good for

  • Understanding how a feature works
  • Finding callers and dependencies
  • Locating code related to a concept
  • Understanding architectural layers

Overview

What it does

Answers questions about a project using a knowledge graph that records code components and their relationships. It searches names, summaries, and tags related to your question, then follows calls and dependencies to explain how the relevant parts connect. The explanation identifies specific files and functions, their locations, and the architectural layers they belong to.

When it helps

Use it when you are new to a codebase or need to find the processing behind a feature. By focusing on relevant parts, it gives you a starting point before reading through the whole project. If no matching entries are found, it says so and suggests related search terms.

Example requests

  • “Explain the files and functions involved in login.”
  • “Show me what calls this module and what it depends on.”

Notes

You need knowledge-graph.json, created beforehand with /understand. It is stored in .ua/, or .understand-anything/ in existing environments. The skill checks Git changes and warns before answering if the graph does not reflect them. If Git information cannot be checked, it continues answering with a caution.

This overview was written by AI (OpenAI Codex) from the public SKILL.md. Check the original below for the exact behavior.

Objective evaluation

AI rated this skill on four points using only the contents of its SKILL.md. Stars and popularity are not taken into account.

Clear instructionsIs it clear when to use it and what it does?
AGoodIt explicitly answers codebase questions by finding relevant components and relationships in a knowledge graph.
Concrete stepsAre steps, inputs, outputs, and examples spelled out?
AGoodIt specifies searches of names, summaries, and tags, checks of connections and layers, and what answers should include.
SafetyAre sending data, deleting files, and running commands disclosed?
AGoodOperations focus on graph reading and Git inspection, with commit validation required before comparing changes.
Easy setupDoes it need few tools or API keys, and are they documented?
AGoodIt specifies the required knowledge-graph.json location and directs users to /understand when it is missing.

The total counts each point as A = 25, B = 15, C = 5. Rated by AI (OpenAI Codex) as of Oct 21, 2026. Treat it as a guide and read the original before installing.

Disagree? Request a re-evaluation

Tell us which point is wrong and why. No login needed. We will check it against the SKILL.md, redo the evaluation, and show the result here.

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

Files included (1)

  • SKILL.md4.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

/understand-chat

Answer questions about this codebase using the knowledge graph in the project's data directory (.ua/knowledge-graph.json, or the legacy .understand-anything/knowledge-graph.json when that directory is present).

Graph Structure Reference

The knowledge graph JSON has this structure:

  • project — {name, description, languages, frameworks, analyzedAt, gitCommitHash}
  • nodes[] — each has {id, type, name, filePath?, summary, tags[], complexity, languageNotes?}
    • Code node types: file, function, class, module, concept
    • Non-code node types: config, document, service, table, endpoint, pipeline, schema, resource
    • Domain/knowledge node types: domain, flow, step, article, entity, topic, claim, source
    • IDs use the node type as prefix, e.g. file:path, function:path:name, config:path, article:path
  • edges[] — each has {source, target, type, direction, weight}
    • Key types: imports, contains, calls, depends_on, configures, documents, deploys, triggers, contains_flow, flow_step, related, cites
  • layers[] — each has {id, name, description, nodeIds[]}
  • tour[] — each has {order, title, description, nodeIds[]}

How to Read Efficiently

  1. Use Grep to search within the JSON for relevant entries BEFORE reading the full file
  2. Only read sections you need — don't dump the entire graph into context
  3. Node names and summaries are the most useful fields for understanding
  4. Edges tell you how components connect — follow imports and calls for dependency chains

Instructions

  1. Resolve the data directory $UA_DIR. Run UA_DIR=$([ -d .understand-anything ] && echo .understand-anything || echo .ua) — this is the legacy .understand-anything/ when it already exists, otherwise the new .ua/. Check that $UA_DIR/knowledge-graph.json exists in the current project root. If not, tell the user to run /understand first.

  2. Check graph freshness before using graph-derived context:

    • Read project.gitCommitHash from the graph metadata as GRAPH_COMMIT_RAW. Resolve it as a commit before using it in any Git diff, then compare it with git rev-parse HEAD and inspect project-scoped committed and working-tree changes from the project root:
      GRAPH_COMMIT=$(git rev-parse --verify --end-of-options "${GRAPH_COMMIT_RAW}^{commit}" 2>/dev/null)
      git rev-parse HEAD
      git diff --name-only "$GRAPH_COMMIT" HEAD -- .
      git diff --cached --name-only -- .
      git diff --name-only -- .
      git ls-files --others --exclude-standard -- .
      
    • The -- . pathspec is required: commits that only touch a sibling monorepo project must not make this graph stale. A hash mismatch alone is not stale when the project diff is empty.
    • Ignore the selected data directory (.ua/ or legacy .understand-anything/) in every command's output because it contains generated graph artifacts, not project source drift.
    • If the committed diff or any working-tree command reports project files, warn before answering that graph-derived context may omit those changes. Suggest: Run /understand to refresh the graph.
    • Run the commit diff only when GRAPH_COMMIT_RAW resolves successfully. If the graph commit or Git metadata is missing, invalid, or unavailable, give a brief best-effort warning and continue instead of blocking.
  3. Read project metadata only — use Grep or Read with a line limit to extract just the "project" section from the top of the file for context (name, description, languages, frameworks).

  4. Search for relevant nodes — use Grep to search the knowledge graph file for the user's query keywords: "$ARGUMENTS"

    • Search "name" fields: grep -i "query_keyword" in the graph file
    • Search "summary" fields for semantic matches
    • Search "tags" arrays for topic matches
    • Note the id values of all matching nodes
  5. Find connected edges — for each matched node ID, Grep for that ID in the edges section to find:

    • What it imports or depends on (downstream)
    • What calls or imports it (upstream)
    • This gives you the 1-hop subgraph around the query
  6. Read layer context — Grep for "layers" to understand which architectural layers the matched nodes belong to.

  7. Answer the query using only the relevant subgraph:

    • Reference specific files, functions, and relationships from the graph
    • Explain which layer(s) are relevant and why
    • Be concise but thorough — link concepts to actual code locations
    • If the query doesn't match any nodes, say so and suggest related terms from the graph

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

understand

FreeSummaryAI rating 80

Analyze project code, configuration, and documentation to build a graph for interactive architecture exploration. It maps components and dependencies, supports Japanese descriptions, and can update the analysis based on changes since the previous analyzed commit.

  • Understand the structure of an unfamiliar project
  • Explore dependencies between components
  • Generate architecture descriptions in Japanese
Egonex-AI/Understand-Anything87.6KUpdated Oct 21, 2026

understand-dashboard

FreeSummaryAI rating 90

Launch the Understand Anything web dashboard to explore an existing codebase knowledge graph, a map of its structure and relationships. Open the current project or a specified directory and receive the local access URL.

  • Explore an analyzed codebase visually
  • Open the current project's dashboard
  • View graph data from another project directory
Egonex-AI/Understand-Anything87.6KUpdated Oct 21, 2026

understand-diff

FreeSummaryAI rating 90

Analyze Git changes or pull requests against a knowledge graph, a map of code components and relationships. Identify modified files, nearby dependencies, affected architectural layers, and review risks, then save data for a dashboard visualization.

  • Understanding a pull request before review
  • Checking the impact of uncommitted changes
  • Reviewing changes across architectural layers
Egonex-AI/Understand-Anything87.6KUpdated Oct 21, 2026

understand-domain

FreeSummaryAI rating 70

Extract business areas, workflows, and process steps from a codebase and display them as an interactive horizontal flow graph. Use an existing knowledge graph, a map of project components, or run a lightweight scan of project files.

  • Understanding business workflows from code
  • Mapping business areas and process steps
  • Creating a business view from an existing knowledge graph
Egonex-AI/Understand-Anything87.6KUpdated Oct 21, 2026

understand-explain

FreeSummaryAI rating 100

Get a detailed explanation of a file, function, or module using an existing knowledge graph and its source code. It explains architectural roles, dependencies, callers, and data flow for readers who may not know the programming language.

  • Understand the role of a specific file
  • Trace a function’s callers and dependencies
  • Follow inputs, processing, and outputs
Egonex-AI/Understand-Anything87.6KUpdated Oct 21, 2026

understand-figma

FreeSummaryAI rating 80

Analyze a Figma file and turn its pages, screens, components, instances, and design tokens—shared design values—into an interactive graph. Open the dashboard to explore the file's structure and relationships.

  • Review the structure of a Figma file
  • Explore components, variants, and instances
  • Inspect how shared design values are used
Egonex-AI/Understand-Anything87.6KUpdated Oct 21, 2026

See all skills by Egonex-AI

Report a problem with this skill