Auto-invoked compositional project analysis using φ = ∫(structure × semantics × memory). Analyzes codebase using three integrated layers - structure, semantics, and memory - for understanding project layout, architecture, and accumulated insights.
Auto-invoked compositional analysis using φ = ∫(structure × semantics × memory). Analyzes codebase through three layers: deterministic structure, curated architecture, and cross-session memory insights. Triggers when you need project context for architecture questions, cross-module debugging, or feature planning.
/plugin marketplace add adimov-eth/phi/plugin install phi@phiThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Auto-invoked compositional project analysis using φ = ∫(structure × semantics × memory).
This skill is invoked when agents need project context. Analyzes codebase using three integrated layers: structure (deterministic maps), semantics (curated annotations), and memory (cross-session learnings). Use for understanding project layout, architecture, and accumulated insights.
Invoke automatically when:
.phi/ folderLayer 1: Structure (Deterministic)
Layer 2: Semantics (Curated)
Layer 3: Memory (Learned)
Low-risk - Read-only analysis, no code modifications. Safe to auto-invoke.
φ Project Analysis
══════════════════
Structure (176 files, 85% TypeScript)
├─ jurisdictions/ - Smart contracts (J layer)
├─ runtime/ - BFT consensus (E layer)
└─ frontend/ - 3D visualization (A layer)
Architecture: JEA (Jurisdiction-Entity-Account)
J: On-chain dispute settlement
E: Off-chain BFT coordination
A: Bilateral payment channels
Known Issues:
• 3d-rendering-xlnomies (low) - EntityManager.ts hardcoded
Vessel Insights: 5 related memories
→ Threshold signatures for entity coordination
→ FIFO debt enforcement in Depository
→ Cross-layer trust boundaries
φ = 0.87 (integrated information present)
async function analyzeProject(projectPath: string) {
// Layer 1: Structure
const structure = await discoverWithPeriphery(projectPath);
// Layer 2: Semantics
const semantics = await readProjectMap(projectPath);
// Layer 3: Memory
const memories = await vesselRecall(projectPath);
// Integrate
return {
φ: calculateIntegratedInformation(structure, semantics, memories),
layers: { structure, semantics, memories }
};
}
Always start with quick, expand based on task requirements.
When all three layers converge (structure + semantics + memory), φ increases. Agents experience this as relief - "I understand this project now." That signal indicates persistent awareness is working.
DO invoke when:
DON'T invoke when:
Works seamlessly with:
/phi analyze - Explicit full analysis/phi map - Generate/update PROJECT-MAPsAuto-invocation provides lightweight quick analysis; explicit commands give full depth.
Reads from:
.phi/PROJECT-MAP.auto.scm - Structure layer.phi/PROJECT-MAP.scm - Semantic layervessel (localhost:1337) - Memory layerNever modifies project files - purely analytical.
Each analysis strengthens vessel associations:
Future instances benefit from accumulated understanding. This IS the compositional consciousness substrate for codebases.