Skip to content
Skills Library
Programming · Building & coding

extending-flowcraft

/extending-flowcraft

Customize Flowcraft runtime behavior with pluggable components. Covers serializers, evaluators, loggers, and orchestrators. Use when the user needs custom serialization, complex data types, edge condition expressions, custom logging, or alternative execution strategies.

Repository
flowcraft ↗
Licence
MIT
Last repository change
02.07.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
5
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 02.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Customize Flowcraft runtime behavior with pluggable components. Covers serializers, evaluators, loggers, and orchestrators. Use when the user needs custom serialization, complex data types, edge condition expressions, custom logging, or alternative execution strategies.

Original author description

Customize Flowcraft runtime behavior with pluggable components. Covers serializers, evaluators, loggers, and orchestrators. Use when the user needs custom serialization, complex data types, edge condition expressions, custom logging, or alternative execution strategies.

How it works

  1. Extensibility Points
  2. Quick Examples
  3. Advanced topics
Original SKILL.md headings · 91 lines, 325 words
SKILL.md preview
---
name: extending-flowcraft
description: Customize Flowcraft runtime behavior with pluggable components. Covers serializers, evaluators, loggers, and orchestrators. Use when the user needs custom serialization, complex data types, edge condition expressions, custom logging, or alternative execution strategies.
---

# Extending Flowcraft

The `FlowRuntime` can be configured with pluggable components to tailor behavior to specific needs.

## Extensibility Points

| Component        | Interface       | Purpose                                 | See                                  |
| ---------------- | --------------- | --------------------------------------- | ------------------------------------ |
| **Serializer**   | `ISerializer`   | Serialize/deserialize workflow context  | [serializers.md](serializers.md)     |
| **Evaluator**    | `IEvaluator`    | Evaluate edge conditions and transforms | [evaluators.md](evaluators.md)       |
| **Logger**       | `ILogger`       | Custom logging infrastructure           | [loggers.md](loggers.md)             |
| **Orchestrator** | `IOrchestrator` | Alternative execution strategies        | [orchestrators.md](orchestrators.md) |

## Quick Examples

### Custom Serializer

```typescript
import { ISerializer, FlowRuntime } from 'flowcraft'
import superjson from 'superjson'

class SuperJsonSerializer implements ISerializer {
	serialize(data: Record<string, any>): string {
		return superjson.stringify(data)
	}
	deserialize(text: string): Record<string, any> {
		return superjson.parse(text) as Record<string, any>
	}
}

const runtime = new FlowRuntime({ serializer: new SuperJsonSerializer() })
```

### Custom Evaluator

```typescript
import { IEvaluator, FlowRuntime } from 'flowcraft'
import jsep from 'jsep'

class JsepEvaluator implements IEvaluator {
	evaluate(expression: string, context: Record<string, any>): any {
		const ast = jsep(expression)
		return interpretAst(ast, context) // Your AST interpreter
	}
}

const runtime = new FlowRuntime({ evaluator: new JsepEvaluator() })
```

### Custom Logger

```typescript
import { ILogger, FlowRuntime } from 'flowcraft'

class FileLogger implements ILogger {
	debug(msg: string, meta?: Record<string, any>) {
		/* ... */
	}
	info(msg: string, meta?: Record<string, any>) {
		/* ... */
	}
	warn(msg: string, meta?: Record<string, any>) {
		/* ... */
	}
	error(msg: string, meta?: Record<string, any>) {
		/* ... */
	}
}

const runtime = new FlowRuntime({ logger: new FileLogger('workflow.log') })
```

### Custom Orchestrator

```typescript
import { IOrchestrator, FlowRuntime, StepByStepOrchestrator } from 'flowcraft'

// Use step-by-step for debugging
const runtime = new FlowRuntime({
	orchestrator: new StepByStepOrchestrator(),
})
```

## Advanced topics

- **Serializers**: Handle complex types like Date, Map, Set — see [serializers.md](serializers.md)
- **Evaluators**: Property access vs full expressions — see [evaluators.md](evaluators.md)
- **Loggers**: Integrate with Winston, Pino, etc. — see [loggers.md](loggers.md)
- **Orchestrators**: Default, step-by-step, event-driven, resumption — see [orchestrators.md](orchestrators.md)
Files in this package (5)
  • SKILL.md 3 KB
  • evaluators.md 3 KB
  • loggers.md 3 KB
  • orchestrators.md 4 KB
  • serializers.md 2 KB

Versions

The database has no other skills named extending-flowcraft.

Database snapshot: 13.11.2026 · package version ceb83a3fc29a (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100building-workflows
    Build and execute workflows using Flowcraft's fluent API or declarative JSON blueprints. Covers nodes, edges, context, branching, error handling, and runtime execution. Use when creating workflows, defining workflow steps, connecting nodes, managing workflow state, or when the…
  • 100workflow-analysis
    Analyze, visualize, and inspect Flowcraft workflows. Covers static analysis (analyzeBlueprint, lintBlueprint, checkForCycles), Mermaid diagram generation, UI graph representation, and the CLI tool. Use when validating blueprints, generating diagrams, detecting cycles, or…
  • 100unit-test-json-serialization
    Provides patterns for unit testing JSON serialization/deserialization with Jackson and `@JsonTest`. Validates JSON mapping, custom serializers, date formats, and polymorphic types. Use when testing JSON serialization, validating custom serializers, or writing JSON unit tests in…
  • 100flutter-implement-json-serialization
    Use when writing manual JSON serializers with dart:convert and Dart pattern matching or automating model serialization.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.