saflib-workflows — Summary
saflib-workflows is a TypeScript workflow orchestration library (@saflib/workflows) that structures AI-assisted software development into sequential, resumable step sequences — providing a CLI (saf-workflow) that agents follow as a series of prompts, automated scripts, and file templates, with optional git commits and agent CLI invocation between steps.
Problem it solves: AI coding agents lack a structured way to perform multi-step development workflows (database schema updates, API route additions, service initialization) that require a specific sequence of automation + agent judgment steps; saflib-workflows defines these sequences as TypeScript workflow definitions with steps that mix automated scripts, template file copies, and agent prompt invocations.
Distinctive trait: Workflows are defined as TypeScript type-safe step sequences (using defineWorkflow + step primitives) that can be nested (a workflow calls sub-workflows via makeWorkflowMachine), producing a CLI that guides both humans and AI agents through the sequence with status tracking and resume capability.
Target audience: Full-stack TypeScript developers building SAF (Scalable Application Framework) applications who want to encode complex, multi-service development sequences as reusable, versioned, and resumable workflow definitions.
Production-readiness: Playground repository is 0-star, unlicensed, last pushed November 2025; the parent saflib library has 6 stars and is actively maintained (last pushed May 2026). This is a narrowly-scoped framework for the SAF ecosystem.
Differs from seeds: Most similar to spec-driver in its sequential workflow approach with discrete phases, but saflib-workflows is not a Claude Code plugin — it's a standalone TypeScript library with its own CLI that can be integrated with any agent CLI (including Cursor via -- -r cursor). Unlike taskmaster-ai which manages a task backlog, saflib-workflows defines structured development procedures (add schema, add route, init service) as composable, resumable step machines. No CLAUDE.md injection, no hooks, no spec files — pure TypeScript workflow definitions.