code-logic

Convert Rust and Python source code into Universal Logic Graph files.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/Develata/Deve-Skills --skill code-logic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-logic
Source: https://github.com/Develata/Deve-Skills/tree/main/My-Skills/code-logic
Command: npx skills add https://github.com/Develata/Deve-Skills --skill code-logic

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, tree-sitter, tree-sitter-rust, tree-sitter-python, networkx, graphviz, argparse, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill provides developers with an AST-based analyzer that converts Rust and Python source code into a Universal Logic Graph (ULG) for AI-friendly reasoning and visualization.

Core Features & Use Cases

  • AST-based control-flow analysis for Rust and Python that maps code into a Universal Logic Graph.
  • Outputs AI-optimized Logic DSL and Graphviz SVG for visualization.
  • Use Case: Quickly understand complex codebases by generating unified graphs that reveal control-flow, exceptions, and module relationships.

Quick Start

Run the analyzer on a Rust or Python file to generate a logic graph and corresponding outputs.

Frequently Asked Questions about code-logic

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a control-flow graph from Python source code?

You can analyze a Rust or Python project by running a recursive scan that connects modules into a unified atlas, generating a combined Logic DSL and Graphviz SVG that reveals module relationships and control-flow.

Does this code analysis tool require Graphviz and Tree-sitter to run?

Yes, this code analysis tool requires Graphviz and Tree-sitter parsers for Rust and Python to run, along with Python 3.8+ and dependencies like NetworkX and PyYAML to generate the logic graphs.

What is a Universal Logic Graph and how does it help with code analysis?

A Universal Logic Graph is an AI-optimized representation of source code control-flow and exceptions. It helps with code analysis by mapping complex Rust and Python structures into a format suitable for AI reasoning and visual inspection.

Can I configure the code analysis settings via a YAML file?

Yes, you can configure the code analysis settings via a logic_config.yaml file, allowing you to manage how the Tree-sitter parsers and Graphviz outputs are generated for your Rust and Python source files.

What are the limitations of using AST-based analysis for generating logic graphs?

The limitations of this AST-based analysis include support restricted to Rust and Python source code only, and it requires specific Tree-sitter parsers and Graphviz installed in the environment to generate the Logic DSL and SVG outputs.