Skip to content
Back to skills

Extend Engine

ASecurity

Use when adding or changing a flowctl capability - a step kind, assertion kind, System 1 operation, config key, CLI command, MCP tool, or a public export of core. Gives the files to touch in TDD order and the checks that must pass.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
testinggoapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 16, 2026

npx -y skills add connext-solutions/flowctl --skill extend-engine --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Extend Engine?

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

Security grade badge for Extend Engine
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/connext-solutions-extend-engine/badge)](https://www.skillsdirectory.com/skills/connext-solutions-extend-engine)

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: extend-engine
description: Use when adding or changing a flowctl capability - a step kind, assertion kind, System 1 operation, config key, CLI command, MCP tool, or a public export of core. Gives the files to touch in TDD order and the checks that must pass.
---

# Extend the flowctl engine

Read `packages/core/AGENTS.md` (layout, gotchas) before starting. Every recipe is test first.

## Always

1. Write the failing test through the module's interface (unit if no browser is needed, else `*.browser.test.ts` on fixture-app). Run it, see it fail for the right reason.
2. Implement the smallest change. Keep folders' layer order (`flow ← browser ← run ← system1 ← explore`).
3. `bun run check` after each edit; `bun run verify` before saying done.
4. Decide whether it needs an ADR (`write-adr` skill): yes if it changes an invariant, the flow YAML format, the System 1 protocol, a result shape, an exit code or a default users rely on.
5. Update docs where users or agents look: root README quickstart (user-facing), `packages/<pkg>/AGENTS.md` table or gotchas, `CONTEXT.md` for a new domain term.

## Recipes

| Change | Steps |
|---|---|
| **Step kind** | `flow/schema.ts` (zod) → `flow/steps.ts` (normalise + `serializeStep`) → `browser/executor.ts` → browser test on fixture-app (add the control to `/lab` if missing) → recorder if exploration can produce it |
| **Assertion kind** | `flow/schema.ts` → `run/verifier.ts` → **`seeded-bug` skill** (a bug only this assertion catches) → unit test for parsing, accuracy test for catching. Remember assertions poll until `assertTimeout` |
| **System 1 operation** | `system1/protocol.ts` (`OPS`) + `system1/prompts.ts` (`OP_TEXT`) → `explore/request.ts` → `explore/act.ts` → `policy.test.ts` case → fake System 1 (`fixture-app/src/system1.ts`) → golden test diff reviewed → contract tier run (billed; ask first) |
| **Config key** | `config.ts` zod schema with a default, written like the existing sections → `config.test.ts` (default + override) → README quickstart if users set it |
| **CLI command** | Logic in core first (with its test) → `cli/src/index.ts` (parse, call, format) → `cli/test/cli.browser.test.ts` → `cli/README.md` usage + exit codes |
| **MCP tool** (phase 2b) | Core behaviour first → `mcp/src/server.ts` `registerTool` with a zod shape → test through `InMemoryTransport.createLinkedPair()` → keep results compact; nothing on stdout but the protocol |
| **Public export** | Add to `core/src/index.ts` → update the list in `core/test/api.test.ts` on purpose → mention it in `core/README.md` |

## Done means

`bun run verify` green, the new behaviour has a test that failed before, docs updated, ADR written if step 4 said so.

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.