Install
darkf publishes to npm as @psimona/darkf (the unscoped darkf name
is blocked by npm’s typosquat filter). The binary it installs is darkf.
Global install
Requires Bun — darkf ships as source and runs on the Bun runtime:
bun install -g @psimona/darkfdarkf --helpSkills
The package bundles two agent skills — darkf-usage and
darkf-writing-workflows — for writing and running workflows. Install
them into your agent host:
darkf setupSetup copies both skills into every detected host’s skills dir (claude,
opencode, codex, gemini, cursor — a host is detected by its skills dir
existing or its binary being on PATH). The installed copies always
mirror what the package ships: the next setup or upgrade replaces local
edits to a darkf-* skill. darkf doctor reports the state without
writing anything.
Add to a Bun project
bun add @psimona/darkfWorkflow files import the API by deep path:
import { EXIT, type WorkflowDef } from "@psimona/darkf/src/core/index.ts";import { claudeCodeRunner } from "@psimona/darkf/src/kit/agents/claude-code.ts";Sibling checkout (development)
To track darkf’s source live instead of a published version, clone the repo next to your project and depend on the folder:
git clone https://github.com/psimona/darkf ../darkf{ "workspaces": ["../darkf/darkf"], "dependencies": { "@psimona/darkf": "workspace:*" }}Two different directories named darkf show up here — don’t conflate them:
../darkf above is the clone of this repo; darkf/my-workflow is a
directory inside your own project, holding your own workflow config.
(A third, .darkf/, dot-prefixed, is darkf’s runtime directory inside your
project — gitignore that one; never gitignore darkf/.)