fabll
How FabLL (faebryk.core.node) maps Python node/trait declarations into the TypeGraph + instance graph, including field/trait invariants and instantiation patterns.
Install
mkdir -p .claude/skills/fabll && curl -L -o skill.zip "https://mcp.directory/api/skills/download/3009" && unzip -o skill.zip -d .claude/skills/fabll && rm skill.zipInstalls to .claude/skills/fabll
About this skill
FabLL (Fabric Low Level) Module
fabll (primarily src/faebryk/core/node.py) is the high-level Python API for defining and working with hardware components. It bridges the gap between Python classes and the underlying TypeGraph and instance graph.
Quick Start
import faebryk.core.faebrykpy as fbrk
import faebryk.core.graph as graph
import faebryk.core.node as fabll
g = graph.GraphView.create()
tg = fbrk.TypeGraph.create(g=g)
class _App(fabll.Node):
pass
app = _App.bind_typegraph(tg=tg).create_instance(g=g)
Relevant Files
src/faebryk/core/node.py(Node/Traits/fields, type registration, binding/instantiation helpers)src/faebryk/core/faebrykpy.py(edge types used by FabLL under the hood)src/faebryk/core/graph.py(GraphView wrapper used by instances)
Dependants (Call Sites)
- Library (
src/faebryk/library/): Every component (Resistor, Capacitor, etc.) inherits fromNode. - Compiler: Generates
Nodesubclasses dynamically fromatofiles. - Solvers: Operate on
Nodeinstances to extract parameters and constraints.
How to Work With / Develop / Test
Core Concepts
- Nodes are wrappers over graph instances: a
fabll.Nodeis constructed with agraph.BoundNode. - Declaration via class attributes:
- structural children:
SomeType.MakeChild(...) - trait attachments:
Traits.MakeEdge(SomeTrait.MakeChild().put_on_type())(or similar)
- structural children:
- Binding:
- type binding:
MyType.bind_typegraph(tg) - instance creation:
.create_instance(g)
- type binding:
- Type identifiers:
- library types (
faebryk.library.*) intentionally have short identifiers (class name) for ato imports - non-library types include a module-derived suffix; type IDs must be unique (enforced in
Node._register_type)
- library types (
Development Workflow
- Prefer adding behavior as a Trait rather than deepening class hierarchies.
- If you need a new structural relation/field kind, it lives in
src/faebryk/core/node.py(field system). - Keep an eye on invariants enforced at class creation time (metaclass +
__init_subclass__).
Testing
- Core tests:
ato dev test --llm test/core/test_node.py -qandato dev test --llm test/library/test_traits.py -q
Best Practices
- Prefer Traits: Don't add methods to
Nodesubclasses if they can be a Trait. This allows them to be applied to different component families. - Avoid deep inheritance: FabLL enforces single-level subclassing for node types (
Node.__init_subclass__). - Type-safe traversal: when you must traverse trait edges manually, prefer
EdgeTrait.traverse(trait_type=...).
Internals & Runtime Behavior
Instantiation & Lifecycle
- Don’t call
MyNode()with no args: instances are created from a bound type viabind_typegraph(...).create_instance(...). - TypeGraph context is required:
import faebryk.core.graph as graph import faebryk.core.faebrykpy as fbrk g = graph.GraphView.create() tg = fbrk.TypeGraph.create(g=g) inst = MyNode.bind_typegraph(tg).create_instance(g=g) - Single-level subclassing invariant:
Node.__init_subclass__forbids “deeper than one level” inheritance for node types.
Trait Implementation
- Traits are Nodes: Traits are not just Python mixins; they are
Nodesubclasses that typically contain anImplementsTraitedge. - Trait Definition:
class MyTrait(Node): is_trait = Traits.MakeEdge(ImplementsTrait.MakeChild().put_on_type()) - Resolution: Use
node_instance.get_trait(TraitType)to retrieve a trait instance. This performs a graph traversal.
Performance & Memory
- Type Creation: Creating a type involves significant overhead (executing fields, resolving dependencies). Once created, instantiating instances is faster but still involves allocation in the Zig backend.
- Tree Structure: Nodes are linked via
EdgeComposition.add_childcreates this edge. Large trees (10k+ nodes) should be constructed carefully to avoid Python loop overhead; the underlying graph is efficient, but Python interactions cost time.
More by atopile
View all skills by atopile →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversLearn how to use Python to read a file and manipulate local files safely through the Filesystem API.
Connect Blender to Claude AI for seamless 3D modeling. Use AI 3D model generator tools for faster, intuitive, interactiv
Cloudflare Container Sandbox lets your MCP client run secure, sandboxed LLM code in Node or Python. Run code safely in t
Find official MCP servers for Google Maps. Explore resources to build, integrate, and extend apps with Google directions
Create and edit PowerPoint presentations in Python with Office PowerPoint. Use python pptx or pptx python tools to add s
Apify Actor offers 4,000+ cloud tools for web scraping. Scrape any website for data from e-commerce, social media, maps,
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.