Skills
A skill is a package of structured files that teaches an AI coding agent how to work with a specific tool or framework. The skill below was generated by Great Docs from this project’s documentation. Install it in your agent and it will be able to run commands, edit configuration, write content, and troubleshoot problems without step-by-step guidance from you.
Any agent — install with npx:
npx skills add https://teal-insights.github.io/excel-grapher/Codex / OpenCode
Tell the agent:
Fetch the skill file at https://teal-insights.github.io/excel-grapher/skill.md and follow the instructions.Manual — download the skill file:
curl -O https://teal-insights.github.io/excel-grapher/skill.mdOr browse the SKILL.md file.
SKILL.md
--- name: excel-grapher description: > Build and analyze dependency graphs from Excel workbooks. Use when writing Python code that uses the excel_grapher package. license: MIT compatibility: Requires Python >=3.11. --- # excel_grapher Build and analyze dependency graphs from Excel workbooks ## Installation ```bash pip install excel-grapher ``` ## API overview ### Public Modules Namespaced public API surfaces - `exporter.CodeGenerator` - `exporter.IdentityTransitCompression` - `exporter.OptimalCompression` - `exporter.BaseProjectionManifest` - `exporter.CollapsedGroup` - `exporter.CompositeProjectionManifest` - `exporter.FormulaRewrite` - `exporter.ProjectedNodeSnapshot` - `exporter.ProjectionResult` - `exporter.SemanticCatalogView` - `exporter.BundleDrilldown` - `exporter.DrilldownCell` - `exporter.DrilldownEdge` - `exporter.DrilldownStatement` - `exporter.SeriesDrilldown` - `exporter.StatementGraph` - `exporter.StatementLabels` - `exporter.StatementNode` - `exporter.SemanticVizPayload` - `exporter.ProjectionManifest` - `exporter.ProjectionStep` - `exporter.WebVizLayoutPlugin` - `exporter.SemanticCatalogError` - `exporter.to_web_viz_payload` - `exporter.apply_projection` - `exporter.build_forwarding_projection_manifest` - `exporter.build_optimal_projection_manifest` - `exporter.project_optimal` - `exporter.register_projection_manifest` - `exporter.resolve_projection_manifest` - `exporter.unregister_projection_manifest` - `exporter.load_semantic_catalog` - `exporter.drilldown_bundle` - `exporter.drilldown_partition` - `exporter.drilldown_series` - `exporter.drilldown_statement` - `exporter.build_statement_graph` - `exporter.statement_graph_to_networkx` - `exporter.to_semantic_viz_payload` - `exporter.write_semantic_viz_html` - `exporter.to_series_graph` - `exporter.list_web_viz_layouts` - `exporter.register_web_viz_layout` - `exporter.resolve_web_viz_layout` - `exporter.unregister_web_viz_layout` - `exporter.WebVizPayload` - `exporter.SEMANTIC_VIZ_PAYLOAD_VERSION` - `exporter.LAYOUT_CLUSTERED_FORCE` - `exporter.LAYOUT_FORCEATLAS2` - `exporter.LAYOUT_GRAPHVIZ_DOT` - `exporter.LAYOUT_GRAPHVIZ_SFDP` - `exporter.LAYOUT_SPRING` - `exporter.WebVizLayoutSpec` - `grapher.DynamicRefCellLimitError` - `grapher.GreaterThanCell` - `grapher.NotEqualCell` - `grapher.RealBetween` - `grapher.RealIntervalDomain` - `grapher.EdgeProvenance` - `grapher.DynamicRefConfig` - `grapher.DynamicRefLimits` - `grapher.DynamicRefTraceEvent` - `grapher.LightweightVizLocalEdges` - `grapher.LightweightVizModule` - `grapher.LightweightVizModuleEdge` - `grapher.LightweightVizPayload` - `grapher.CycleReport` - `grapher.DependencyGraph` - `grapher.GraphConsistencyIssue` - `grapher.And` - `grapher.Arith` - `grapher.Compare` - `grapher.GuardExpr` - `grapher.Literal` - `grapher.Neg` - `grapher.Not` - `grapher.Or` - `grapher.GuardCellRef` - `grapher.GuardRangeRef` - `grapher.Node` - `grapher.TacoBuildConfig` - `grapher.TacoIndex` - `grapher.SeriesGraph` - `grapher.SeriesGraphEdge` - `grapher.SeriesGraphNode` - `grapher.SheetGraph` - `grapher.SheetGraphEdge` - `grapher.SheetGraphNode` - `grapher.WorkbookCalcSettings` - `grapher.GraphReadView` - `grapher.CacheValidationPolicy` - `grapher.DependencyCause` - `grapher.GraphConsistencyKind` - `grapher.DynamicRefError` - `grapher.ExactMatchUndomainedCellWarning` - `grapher.WorkbookContextRequiredError` - `grapher.CycleError` - `grapher.GraphConsistencyError` - `grapher.RawFormulasRequiredError` - `grapher.ValidationResult` - `grapher.normalize_blank_range_specs` - `grapher.create_dependency_graph` - `grapher.list_dynamic_ref_constraint_candidates` - `grapher.build_graph_cache_meta` - `grapher.build_graph_cache_meta_portable` - `grapher.save_graph_cache` - `grapher.try_load_graph_cache` - `grapher.infer_dynamic_index_targets` - `grapher.infer_dynamic_indirect_targets` - `grapher.infer_dynamic_offset_targets` - `grapher.trace_dynamic_refs` - `grapher.select_path_induced_subgraph` - `grapher.select_shortest_path_subgraph` - `grapher.to_graphviz` - `grapher.to_mermaid` - `grapher.to_networkx` - `grapher.write_lightweight_viz_data` - `grapher.write_web_viz_html` - `grapher.warm_formula_shapes` - `grapher.dump_graph` - `grapher.load_graph` - `grapher.make_cell_node` - `grapher.format_cell_key` - `grapher.warm_preparsed_formulas` - `grapher.build_taco_index` - `grapher.input_keys_from_graph` - `grapher.to_series_graph` - `grapher.to_sheet_graph` - `grapher.get_calc_settings` - `grapher.validate_graph` - `grapher.write_workbook` - `grapher.GRAPH_CACHE_SCHEMA_VERSION` - `grapher.DynamicRefTraceFn` - `grapher.NodeHook` - `grapher.NodeKey` - `grapher.DEFAULT_MAX_RANGE_CELLS` - `grapher.format_key` - `grapher.needs_quoting` - `semantic_model.BoundSeries` - `semantic_model.CatalogOccupancy` - `semantic_model.KeyPoint` - `semantic_model.ScheduleIndex` - `semantic_model.SeriesCatalog` - `semantic_model.SeriesHole` - `semantic_model.Statement` - `semantic_model.CatalogEdges` - `semantic_model.DependenceEdge` - `semantic_model.SemanticCatalogLoader` - `semantic_model.SemanticCatalogView` - `semantic_model.EMITTER_OWNED_CONCEPTS` - `semantic_model.EMITTER_OWNED_MODULES` - `semantic_model.SEMANTIC_CONSUMER_MODULES` - `semantic_model.SHARED_CATALOG_TYPE_NAMES` - `semantic_model.SCHEDULE_AXIS` - `semantic_model.AccessClass` - `semantic_model.Direction` - `semantic_model.HoleKind` - `semantic_model.Layout` - `series_bindings.SeriesDomainIndex` - `series_bindings.ResolutionIssue` - `series_bindings.AuditFinding` - `series_bindings.BindingResolutionAuditReport` - `series_bindings.BindingBurndownReport` - `series_bindings.SeriesDomainHandle` - `series_bindings.BindingUpsertResult` - `series_bindings.DataValidationRule` - `series_bindings.SeriesValidationFinding` - `series_bindings.ValidationDomainSuggestion` - `series_bindings.SeriesRelationError` - `series_bindings.SeriesBindingsLoadError` - `series_bindings.SeriesBindingsSchemaError` - `series_bindings.BindingUpsertError` - `series_bindings.GroupMember` - `series_bindings.GroupNode` - `series_bindings.GroupsManifest` - `series_bindings.ConstantSeries` - `series_bindings.ConstantSeriesCell` - `series_bindings.InputSeries` - `series_bindings.InputSeriesCell` - `series_bindings.InternalSeries` - `series_bindings.InternalSeriesCell` - `series_bindings.LeafResolution` - `series_bindings.OutputSeries` - `series_bindings.OutputSeriesCell` - `series_bindings.ResolutionReport` - `series_bindings.SeriesResolution` - `series_bindings.ValidationIssue` - `series_bindings.ValidationReport` - `series_bindings.WorkbookSeriesBindings` - `series_bindings.BindingsCheckResult` - `series_bindings.audit_binding_resolutions` - `series_bindings.find_duplicate_formula_cell_bindings` - `series_bindings.find_duplicate_internal_formula_cell_bindings` - `series_bindings.find_sparse_label_bind_issues` - `series_bindings.findings_from_resolution` - `series_bindings.format_audit_findings` - `series_bindings.unfilled_label_binds` - `series_bindings.collapse_unbound_cells_to_ranges` - `series_bindings.contiguous_column_ranges` - `series_bindings.find_unbound_internal_formula_cells` - `series_bindings.format_burndown_report` - `series_bindings.format_row_column_spans` - `series_bindings.group_unbound_cells_by_sheet_row` - `series_bindings.internal_binding_burndown` - `series_bindings.layout_hint_for_range` - `series_bindings.layout_hint_for_span` - `series_bindings.load_exempt_addresses` - `series_bindings.manifest_binding_addresses` - `series_bindings.required_internal_formula_cells` - `series_bindings.bindings_canonical_sha256` - `series_bindings.derive_constant_series` - `series_bindings.cell_type_env_from_bindings` - `series_bindings.undomained_leaves` - `series_bindings.bindings_export_order` - `series_bindings.bindings_have_groups` - `series_bindings.group_manifest` - `series_bindings.group_slug` - `series_bindings.coerce_setter_input` - `series_bindings.derive_input_series` - `series_bindings.derive_internal_series` - `series_bindings.load_series_bindings` - `series_bindings.merge_series_binding_documents` - `series_bindings.parse_bindings_file` - `series_bindings.has_constant_direction` - `series_bindings.has_input_direction` - `series_bindings.has_internal_direction` - `series_bindings.has_output_direction` - `series_bindings.is_cataloged_series` - `series_bindings.merge_series_entries` - `series_bindings.normalize_bindings_document` - `series_bindings.normalize_series_entry` - `series_bindings.derive_output_series` - `series_bindings.expand_data_range` - `series_bindings.expand_data_range_for_graph` - `series_bindings.series_data_ranges` - `series_bindings.bound_label_addresses` - `series_bindings.resolve_series_binding` - `series_bindings.resolve_series_bindings` - `series_bindings.format_schema_errors` - `series_bindings.validate_bindings_document` - `series_bindings.bootstrap_binding_shards` - `series_bindings.upsert_series_binding` - `series_bindings.validate_series_bindings` - `series_bindings.compare_series_validation_domains` - `series_bindings.suggest_validation_domains` - `series_bindings.validation_cell_type_env` - `series_bindings.is_bind_implemented` - `series_bindings.is_layout_implemented` - `series_bindings.all_series_targets` - `series_bindings.output_series_targets` - `series_bindings.run_binding_checks` - `series_bindings.series_binding_public_addresses` - `series_bindings.target_set_sha256` - `series_bindings.validate_bindings_workbook` - `series_bindings.DIRECTIONS` - `series_bindings.Layout` - `series_bindings.SeriesInput` - `series_bindings.Record` - `series_bindings.Records` - `series_bindings.Scalar` - `series_bindings.ValidationLevel` - `series_bindings.SHARD_FILENAMES` - `series_bindings.CURRENT_SCHEMA_VERSION` - `series_bindings.IMPLEMENTED_BIND_KINDS` - `series_bindings.IMPLEMENTED_LAYOUTS` - `series_bindings.SUPPORTED_SCHEMA_VERSIONS` - `series_bindings.TargetsFrom` ### Exporter API Export and extension APIs under excel_grapher.exporter - `exporter.CodeGenerator` - `exporter.IdentityTransitCompression` - `exporter.ProjectionStep` - `exporter.ProjectionResult` - `exporter.ProjectionManifest` - `exporter.BaseProjectionManifest` - `exporter.CompositeProjectionManifest` - `exporter.ProjectedNodeSnapshot` - `exporter.FormulaRewrite` - `exporter.CollapsedGroup` - `exporter.apply_projection` - `exporter.build_forwarding_projection_manifest` - `exporter.register_projection_manifest` - `exporter.resolve_projection_manifest` - `exporter.unregister_projection_manifest` - `exporter.WebVizPayload` - `exporter.to_web_viz_payload` - `exporter.to_series_graph` - `exporter.LAYOUT_FORCEATLAS2` - `exporter.LAYOUT_GRAPHVIZ_DOT` - `exporter.LAYOUT_GRAPHVIZ_SFDP` - `exporter.LAYOUT_SPRING` - `exporter.LAYOUT_CLUSTERED_FORCE` - `exporter.WebVizLayoutPlugin` - `exporter.WebVizLayoutSpec` - `exporter.list_web_viz_layouts` - `exporter.register_web_viz_layout` - `exporter.resolve_web_viz_layout` - `exporter.unregister_web_viz_layout` ### Grapher Namespaced API Public grapher APIs available under excel_grapher.grapher - `grapher.DependencyCause` - `grapher.EdgeProvenance` - `grapher.LightweightVizLocalEdges` - `grapher.LightweightVizModule` - `grapher.LightweightVizModuleEdge` - `grapher.GRAPH_CACHE_SCHEMA_VERSION` - `grapher.DynamicRefTraceFn` - `grapher.GraphReadView` - `grapher.NodeHook` - `grapher.NodeKey` - `grapher.infer_dynamic_index_targets` - `grapher.infer_dynamic_indirect_targets` - `grapher.infer_dynamic_offset_targets` ### Series Bindings API Series binding manifest and codegen APIs - `series_bindings.InputSeries` - `series_bindings.InputSeriesCell` - `series_bindings.OutputSeries` - `series_bindings.OutputSeriesCell` - `series_bindings.Record` - `series_bindings.Records` - `series_bindings.Scalar` - `series_bindings.LeafResolution` - `series_bindings.ResolutionIssue` - `series_bindings.ResolutionReport` - `series_bindings.SeriesResolution` - `series_bindings.ValidationIssue` - `series_bindings.ValidationLevel` - `series_bindings.ValidationReport` - `series_bindings.WorkbookSeriesBindings` - `series_bindings.IMPLEMENTED_BIND_KINDS` - `series_bindings.IMPLEMENTED_LAYOUTS` - `series_bindings.SUPPORTED_SCHEMA_VERSIONS` - `series_bindings.bindings_canonical_sha256` - `series_bindings.derive_input_series` - `series_bindings.derive_output_series` - `series_bindings.has_input_direction` - `series_bindings.has_output_direction` - `series_bindings.merge_series_entries` - `series_bindings.normalize_bindings_document` - `series_bindings.normalize_series_entry` - `series_bindings.expand_data_range` - `series_bindings.expand_data_range_for_graph` - `series_bindings.format_schema_errors` - `series_bindings.load_series_bindings` - `series_bindings.merge_series_binding_documents` - `series_bindings.parse_bindings_file` - `series_bindings.resolve_series_binding` - `series_bindings.resolve_series_bindings` - `series_bindings.validate_bindings_document` - `series_bindings.validate_series_bindings` - `series_bindings.is_bind_implemented` - `series_bindings.is_layout_implemented` ### Classes Main classes provided by the package - `CodeGenerator`: Generate inverted-tree packages from a `DependencyGraph` - `ParseError`: Raised when a formula cannot be parsed into an AST ### CodeGenerator Methods Methods for the CodeGenerator class - `CodeGenerator.__enter__` - `CodeGenerator.__exit__` - `CodeGenerator.derive_input_series` - `CodeGenerator.generate_modules` ### Dataclasses Dataclass definitions - `And`: Logical AND - `Compare`: Comparison: left op right - `CycleReport`: Result of cycle analysis - `DependencyGraph`: Mutable workbook dependency graph - `DynamicRefConfig`: Configuration for resolving OFFSET/INDIRECT via constraint-based inference - `DynamicRefLimits`: Tuneable safety limits for dynamic-reference inference - `DynamicRefTraceEvent`: A single trace event emitted during dynamic-ref inference - `ExcelRange`: Rectangular worksheet reference geometry for evaluator and export - `FormulaEvaluator`: Evaluate Excel formulas over a `DependencyGraph` - `GreaterThanCell`: Metadata marker: the annotated cell is always greater than another cell - `GuardCellRef`: A cell reference used in a condition - `GuardExpr`: Base type for conditional dependency guards - `LightweightVizPayload`: LightweightVizPayload(version: 'int', core: 'LightweightVizCore', overlays: 'tuple[LightweightVizOverlay, ...]', annotations: 'Mapping[str, Any] | None' = None, viewer_hints: 'Mapping[str, Any] | None' = None) - `Literal`: A literal value in a condition - `Node`: Single workbook cell in a dependency graph - `Not`: Logical negation - `NotEqualCell`: Metadata marker: the annotated cell is never equal to another cell - `Or`: Logical OR - `RealBetween`: Real-valued interval constraint for Annotated float types (not enumerable for dynamic refs) - `RealIntervalDomain`: Closed real-valued interval metadata; not enumerable for dynamic-ref branching - `WorkbookCalcSettings`: WorkbookCalcSettings(iterate_enabled: 'bool', iterate_count: 'int', iterate_delta: 'float') ### FormulaEvaluator Methods Methods for the FormulaEvaluator class - `FormulaEvaluator.__post_init__` - `FormulaEvaluator.__enter__` - `FormulaEvaluator.__exit__` - `FormulaEvaluator.clear_caches` - `FormulaEvaluator.ast_cache_info` - `FormulaEvaluator.evaluate` ### Node Methods Methods for the Node class - `Node.__setattr__` - `Node.set_metadata` - `Node.update_metadata` - `Node.key` - `Node.shape` - `Node.column_index` - `Node.normalized_formula` - `Node.has_formula` - `Node.key_point` - `Node.dimension_binds` - `Node.apply_formula_text` ### DependencyGraph Methods Methods for the DependencyGraph class - `DependencyGraph.add_node` - `DependencyGraph.__contains__` - `DependencyGraph.__iter__` - `DependencyGraph.__len__` - `DependencyGraph.keys` - `DependencyGraph.add_edge` - `DependencyGraph.get_node` - `DependencyGraph.get_dependencies` - `DependencyGraph.get_dependents` - `DependencyGraph.get_edge_attrs` - `DependencyGraph.get_edge_guard` - `DependencyGraph.set_node_value` - `DependencyGraph.set_node_metadata` - `DependencyGraph.register_hook` - `DependencyGraph.leaves` - `DependencyGraph.formula_nodes` - `DependencyGraph.leaf_node_items` - `DependencyGraph.formula_keys` - `DependencyGraph.leaf_keys` - `DependencyGraph.target_keys` - `DependencyGraph.roots` - `DependencyGraph.cycle_report` - `DependencyGraph.evaluation_order` - `DependencyGraph.compress_identity_transits` ### Enumerations Enumeration types - `CacheValidationPolicy` - `XlError` ### Exceptions Exception classes - `CycleError`: Raised when a cycle prevents computing evaluation order - `DynamicRefError`: Raised when dynamic reference analysis cannot proceed - `SeriesBindingsLoadError`: Raised when binding files cannot be parsed or merged - `SeriesBindingsSchemaError`: Raised when a binding manifest fails JSON Schema validation ### Named Tuples Named tuple definitions - `ValidationResult`: ValidationResult(is_valid, in_graph_not_in_chain, in_chain_not_in_graph, messages) ### Typed Dicts TypedDict definitions - `ValidationReport` ### Functions Utility functions - `bindings_canonical_sha256`: SHA-256 hex digest of the canonical binding manifest - `build_graph_cache_meta` - `build_graph_cache_meta_portable`: Build expected cache metadata without access to the workbook file - `create_dependency_graph`: Build a dependency graph starting from target cells - `format_cell_key`: Format a (sheet, column_letters, row) triple into a canonical address - `get_calc_settings`: Extract calculation settings from xl/workbook.xml - `list_dynamic_ref_constraint_candidates`: Return sorted leaf cells missing dynamic-ref constraint entries - `load_series_bindings`: Load a binding sidecar file or directory of shards - `needs_quoting`: Return True if a sheet name must be wrapped in single quotes in a formula - `normalize_blank_range_specs`: Normalize a sequence of sheet-qualified range strings - `resolve_series_bindings`: Resolve all series in a binding manifest for the given direction - `save_graph_cache` - `select_path_induced_subgraph`: Return the induced subgraph over nodes lying on directed source->target paths - `select_shortest_path_subgraph`: Return the induced subgraph over all hop-shortest paths between two nodes - `to_graphviz`: Render a cell graph, `SheetGraph`, or `SeriesGraph` as GraphViz DOT - `to_mermaid`: Render a cell graph, `SheetGraph`, or `SeriesGraph` as a Mermaid flowchart - `to_networkx`: Convert a dependency, sheet, or series graph to a NetworkX DiGraph - `to_series_graph`: Collapse a cell graph to one node per bound series - `to_sheet_graph`: Collapse a cell graph to one node per sheet with consolidated edges - `to_web_viz_payload`: Build a web-visualization payload from a dependency graph - `trace_dynamic_refs`: Activate *callback* as the dynamic-ref tracer for the enclosed block - `try_load_graph_cache` - `validate_graph` - `validate_series_bindings`: Validate binding manifests against an extracted dependency graph - `write_lightweight_viz_data` - `write_web_viz_html`: Write a web visualization HTML bundle from a web-viz payload ### Constants Module-level constants and data - `format_key`: Format a sheet and A1 cell coordinate into a canonical address string ## Resources - [Full documentation](https://teal-insights.github.io/excel-grapher/) - [llms.txt](llms.txt) — Indexed API reference for LLMs - [llms-full.txt](llms-full.txt) — Comprehensive documentation for LLMs - [Source code](https://github.com/Teal-Insights/excel-grapher)