grafema-dual-path-type-classification-mismatch

Diagnose dual-path AST node classification mismatches causing Grafema coordinate lookup failures.

36|2|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/Disentinel/grafema --skill grafema-dual-path-type-classification-mismatch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grafema-dual-path-type-classification-mismatch
Source: https://github.com/Disentinel/grafema/tree/main/.claude/skills/grafema-dual-path-type-classification-mismatch
Command: npx skills add https://github.com/Disentinel/grafema --skill grafema-dual-path-type-classification-mismatch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps debug and resolve issues in Grafema where the same Abstract Syntax Tree (AST) node is classified differently by two distinct code paths, leading to coordinate-based lookup failures.

Core Features & Use Cases

  • Diagnose Type Mismatches: Identifies scenarios where a node is incorrectly classified as a 'LITERAL' when it should be an 'OBJECT_LITERAL' or 'ARRAY_LITERAL'.
  • Resolve Lookup Failures: Fixes problems where bufferArrayMutationEdges fails to find nodes due to these classification discrepancies.
  • Use Case: When tracing data flow in Grafema, you notice that certain array mutations aren't being tracked correctly. This Skill helps you pinpoint and fix the underlying AST classification issue.

Quick Start

Use the grafema-dual-path-type-classification-mismatch skill to debug coordinate-based node lookup failures in Grafema.

Frequently Asked Questions about grafema-dual-path-type-classification-mismatch

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

FAQPage Schema
Why does my AST node lookup fail when it is classified as LITERAL instead of OBJECT_LITERAL in Grafema?

AST node lookup fails in Grafema due to a dual-path classification mismatch where one code path assigns LITERAL while another assigns OBJECT_LITERAL at the same coordinates. This discrepancy causes coordinate-based lookups to miss the correct node type.

How do I debug bufferArrayMutationEdges failing to track array mutations in Grafema?

Debugging bufferArrayMutationEdges failures requires identifying dual-path AST classification mismatches where ObjectExpression or ArrayExpression nodes are incorrectly typed as LITERAL, breaking coordinate-based node retrieval during data flow tracing.

What causes extractLiteralValue to return incorrect types for ObjectExpression and ArrayExpression nodes?

extractLiteralValue returns incorrect types when dual code paths classify the same AST node differently, creating a mismatch between LITERAL and OBJECT_LITERAL or ARRAY_LITERAL classifications at identical coordinates, disrupting type resolution.

How do I resolve coordinate-based node lookup failures caused by dual-path type classification in Grafema?

Resolving coordinate-based node lookup failures involves diagnosing the dual-path AST classification mismatch, ensuring both code paths consistently assign OBJECT_LITERAL or ARRAY_LITERAL instead of LITERAL for ObjectExpression and ArrayExpression nodes.

Can I trace data flow in Grafema when array mutations are not being tracked correctly?

Tracing data flow when array mutations are untracked requires fixing the underlying AST classification issue where dual code paths mismatch LITERAL and ARRAY_LITERAL types, restoring accurate coordinate-based node lookups for mutation edges.