types-architecture

Define TypeScript architecture and core type definitions for ChainGraph.

15|3|Updated Apr 29, 2025
One-click install
npx skills add https://github.com/chaingraphlabs/chaingraph --skill types-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: types-architecture
Source: https://github.com/chaingraphlabs/chaingraph/tree/main/.claude/skills/types-architecture
Command: npx skills add https://github.com/chaingraphlabs/chaingraph --skill types-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides the foundational TypeScript architecture and core type definitions that power ChainGraph, including the port system, decorators, and execution engine, enabling consistent development across core packages.

Core Features & Use Cases

  • 9-port type system, decorator framework, and compositional node architecture
  • End-to-end execution engine with propagation support
  • Guidance for building or extending chaingraph-types, ports, or flow definitions

Quick Start

Inspect the sources under packages/chaingraph-types/src to understand base type definitions, decorators, and node composition; review the execution engine integration; then scaffold new type definitions using the provided decorators and port types.

Frequently Asked Questions about types-architecture

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

FAQPage Schema
How do I define a TypeScript port system for a node-based execution engine?

You can define a TypeScript port system for a node-based execution engine by using a 9-port type architecture with decorators to establish consistent core type definitions and compositional node design.

What is the best way to structure TypeScript decorators for node composition?

Structuring TypeScript decorators for node composition involves applying a decorator framework to generate metadata for compositional node classes, enabling consistent execution context and propagation logic across the architecture.

How does type propagation work in an integrated TypeScript execution engine?

Type propagation in an integrated TypeScript execution engine works by passing execution context through a defined port system and compositional nodes, ensuring consistent flow definitions and state management during runtime.

Can I extend existing flow definitions and node classes in a TypeScript architecture?

Yes, you can extend existing flow definitions and node classes by scaffolding new type definitions using the provided decorators and port types within the chaingraph-types package architecture.

Do I need advanced TypeScript knowledge to implement a decorator-driven node architecture?

Yes, implementing a decorator-driven node architecture requires advanced TypeScript knowledge, as it involves complex type definitions, a 9-port type system, and integrated execution engine propagation logic.

Why does my execution engine need a 9-port type system for node composition?

Your execution engine needs a 9-port type system for node composition to satisfy strict architectural requirements for decorator metadata, diverse flow definitions, and integrated execution context propagation.