# Litflux

> Turn complex codebases into interactive, source-grounded maps of business logic and execution flows.

Litflux is a paid AI agent skill on Agensi by Kuma, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $3 (one-time purchase)
- Creator: [Kuma](https://www.agensi.io/creators/kuma)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/litflux
- Tags: ai-agents, code-review, documentation, python, javascript

## About this skill

Understanding a complex codebase usually involves drowning in thousands of lines of source or relying on outdated README diagrams. This skill transforms raw source code into interactive, hierarchical business decomposition and internal logic flowcharts that stay grounded in the actual implementation.

### What it does
- **Source tracking** maps business logic directly to file paths and line ranges to ensure diagrams reflect reality.
- **Hierarchical decomposition** breaks down complex systems into logical layers rather than just mirroring the file directory.
- **Interactive flowcharts** generates internal logic views showing causal relationships, branches, and failure paths.
- **Automated validation** runs preflight and geometry checks to catch overlapping nodes, broken links, or missing source references.
- **Visual orchestration** handles coordinate calculation and layout for multi-step workflows.

### How it works
1. **Scope Definition**: The skill analyzes the repository to identify entry points and core capabilities based on your queries.
2. **Trace Implementation**: It follows execution paths through the source, noting conditions, resource access, and dependencies.
3. **Logic Modeling**: It organizes findings into a structured JS module defining objects, relationships, and timing (immediate vs. deferred).
4. **Drawing & Build**: It executes the `build_graph.py` tool to generate an interactive HTML package with calculated viewports.
5. **Quality Review**: It validates the output against the source for accuracy and runs a visual check for readability.

### Frameworks & tools
Built for environments with **Python 3** and **Node.js**. It integrates with the `litflux` drawing engine and leverages `agent-browser` for visual verification of generated artifacts.

### Why this beats prompting it yourself
Generic prompts often result in "hallucinated" architecture that ignores edge cases or specific code structures. This skill enforces a strict multi-step verification loop where every diagram node must be backed by a specific code reference, preventing the divergence between documentation and reality.

### Use cases
- **Onboarding new devs** by generating interactive maps of a legacy system's core transaction flows.
- **Feature auditing** to visualize how a specific input propagates through multiple modules and data transformations.
- **Code reviews** where visual representation of logic changes helps identify side effects in complex branches.

### Known limitations
Does not execute the target project's application, model calls, or database operations. Visual verification requires an existing `agent-browser` setup.

## Requires

- Python
- Node.js

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Litflux skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does Litflux ensure its diagrams are accurate and not just 'guessing' based on code patterns?

Litflux uses source tracking to map every diagram node to specific file paths and line ranges, ensuring the output reflects the actual implementation rather than a generalized 'hallucination.' Unlike standard prompts, it uses a multi-step verification loop to validate that the logic flows are technically accurate.

### What specific technical environment or tools do I need to run this skill?

The skill is designed for environments running Python 3 and Node.js. It integrates seamlessly with the 'litflux' drawing engine and requires 'agent-browser' to perform visual verification of the generated interactive artifacts.

### What exactly is included in the Litflux skill package?

You receive the full skill logic for source tracing and logic modeling, the `build_graph.py` tool for coordinate calculation and HTML generation, and the automated validation suite. This package provides everything needed to turn a raw repository into an interactive, hierarchical business decomposition.

### Are there specific types of codebases where this skill performs best?

Litflux is best suited for complex back-end logic, transaction flows, and multi-module data transformations. While it can map any codebase, its primary value lies in deconstructing 'spaghetti' code or legacy systems into readable, hierarchical business layers.

### Does Litflux need to execute my code to generate the flowcharts?

No, Litflux performs static analysis and logic modeling without executing your application, model calls, or database operations. This makes it a secure choice for auditing sensitive or resource-intensive codebases without needing a live production environment.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
