Skip to content
Back to skills

Dark Factory Node Type

ASecurity

Guide for implementing, registering, and testing new pipeline node types and handlers in the Dark Factory DOT runner.

  • 8 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added August 31, 2026
testingnodetestingbackend

Security analysis

A100/100

Scanned August 31, 2026

npx -y skills add jleechanorg/dark-factory --skill dark-factory-node-type --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dark Factory Node Type?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dark Factory Node Type
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jleechanorg-dark-factory-node-type/badge)](https://www.skillsdirectory.com/skills/jleechanorg-dark-factory-node-type)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dark-factory-node-type
description: "Guide for implementing, registering, and testing new pipeline node types and handlers in the Dark Factory DOT runner."
---

# Adding a New Node Type in Dark Factory

Use this skill when extending the Dark Factory pipeline engine with a new node type, custom execution handler, or graph shape mapping in `runner/handlers.py`.

## When to use

- Adding a new handler function to `runner/handlers.py`.
- Registering a custom handler in `TYPE_REGISTRY` or `REGISTRY`.
- Referencing a new handler in `.dot` pipeline graphs via `type="..."` or custom node shape.
- Writing echo-backend unit tests to exercise custom handler outcomes and state mutations.

## Procedure

1. **Implement the handler:**
   Implement `_my_handler(node, ctx) -> Result` in `runner/handlers.py`.

2. **Register the handler:**
   Register in `TYPE_REGISTRY` (preferred — keyed by `type="..."`) or `REGISTRY` (keyed by DOT shape).

3. **Reference from a pipeline graph:**
   Reference from a `.dot` file with `mynode [type="my_handler", ...]`.

4. **Add echo-backend unit tests:**
   Echo-backend tests should drive paths via `ctx.state["<node>.outcome"]` — see `tests/test_gates.py`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.