Skip to content

Code Intelligence (AST, Dependency Graphs, Impact Analysis) #673

@hackobi

Description

@hackobi

Clawdia can read individual files but struggles with large codebases. No automatic dependency mapping or architecture visualization. This is needed for true "self-architecture" capability.

What to Build

A code-intelligence/ skill with:

  1. AST Parsing — Parse JS/TS files into abstract syntax trees, extract function signatures, imports, exports
  2. Dependency Graphs — Map which skills depend on which, which functions call which
  3. Cross-Reference Analysis — Find all usages of a function/variable across the codebase
  4. Architecture Visualization — Generate Mermaid diagrams of skill relationships
  5. Impact Analysis — Before making a change, show what else might break

Tools

  • @babel/parser for JS AST parsing
  • madge for dependency graph generation
  • Custom cross-reference indexer that persists to SQLite

Integration

  • capability-evolver: Before mutation, run impact analysis
  • skill-tester: Generate tests based on dependency graph
  • goal-tracker: Measure "self-architecture" progress

This is a Code Singularity prerequisite

Without understanding her own codebase at scale, Clawdia can't safely make architectural changes. This bridges the gap between "self-repair" (done) and "self-architecture" (not yet).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions