af-skill-fix-tests
How to fix tests
SKILL.md
| Name | af-skill-fix-tests |
| Description | How to fix tests |
flowai
An Assisted Engineering framework: the developer remains the architect and reviewer, while AI handles implementation under supervision.
The developer sets the task, approves the plan, and controls every diff.
Note: Multi-agent SDLC pipelines have been moved to a separate project: flowai-pipelines.
The Assisted Engineering Paradigm
Assisted Engineering is a development model where the human retains full authority over architecture, design decisions, and final acceptance. AI acts as an executor — it writes code, runs checks, and proposes changes, but every meaningful action requires explicit developer approval.
Division of responsibility:
-
Developer (Architect + Reviewer)
- Defines goals and constraints
- Reviews and approves plans before implementation
- Inspects every diff before commit
- Makes architectural decisions
- Accepts or rejects results
-
AI Agent (Executor)
- Analyzes the codebase and gathers context
- Proposes implementation plans
- Writes code following approved plan
- Runs tests and verification
- Prepares atomic commits for review
Control flow:
Developer: sets task
→ AI: proposes plan
→ Developer: reviews plan, approves or adjusts
→ AI: implements step by step
→ Developer: reviews each diff
→ AI: commits approved changes
Installation
Requires Deno v2.x.
deno install -g -A jsr:@korchasa/flowai
flowai
On first run, flowai interactively creates .flowai.yaml to configure which packs and skills to sync.
Quick Start Prompt
Copy and paste the following prompt into your AI IDE (Claude Code, Cursor, OpenCode) to install and initialize flowai in your project:
Install the flowai framework in this project:
- Check if Deno v2.x is installed (
deno --version). If not, ask the user which OS they are on and install Deno using the official method for their platform (macOS:brew install denoorcurl -fsSL https://deno.land/install.sh | sh, Windows:irm https://deno.land/install.ps1 | iex, Linux:curl -fsSL https://deno.land/install.sh | sh).- Run
deno install -g -A jsr:@korchasa/flowaito install the CLI (skip if already installed).- Run
flowaiin the project root to sync skills and agents into the IDE config directory.- Run
/flowai-initto analyze the codebase and generate AGENTS.md files, documentation scaffolding, and development commands.
Updating
Run /flowai-update in your AI IDE. It handles the full update cycle:
- Updates the
flowaiCLI to the latest version - Syncs skills and agents into IDE config directories
- Detects convention changes in framework templates
- Proposes per-file migrations for scaffolded artifacts (AGENTS.md, devcontainer, deno.json tasks) — with diffs and confirmation for each file
How It Works
flowai is a set of Skills and Agents — markdown instruction files that AI coding assistants (Cursor, Claude Code, OpenCode, etc.) load into context to follow structured workflows.
- Skills (
SKILL.md) — step-by-step workflows for specific tasks - Agents (
.md) — role definitions with specialized capabilities - Documentation (
documents/) — persistent project memory across sessions
AI models lose context between sessions. flowai compensates by storing all decisions, requirements, and architecture in structured docs that the agent reads at the start of every session.
Product vs. Development Tooling
This repository contains two distinct layers. Do not confuse them:
framework/— the product itself. Skills and agents organized into packs that users install into their projects viaflowai. This is what flowai distributes..claude/skills/,.claude/agents/— internal development tooling. Skills and agents used to develop flowai itself (benchmark runner, cursor-agent integration, code generation helpers). These are NOT distributed to users. Tracked in git directly.
Packs
The framework is organized into packs — modular groups of skills, agents, hooks, and scripts. Each pack has a pack.yaml with metadata. Users select which packs to install via .flowai.yaml.
core
Base commands for development workflows (commit, plan, review, init, etc.).
Commands:
flowai-init— project initialization (AGENTS.md, docs scaffolding, dev commands)flowai-plan— task planning (GODS format)flowai-commit— atomic commits with QA and self-reflectionflowai-review— QA + code review of current changesflowai-review-and-commit— review quality, then commit if approvedflowai-reflect— self-analysis of recent workflowai-maintenance— project health checkflowai-investigate— deep bug investigationflowai-answer— codebase questions without modificationsflowai-spec— structured feature specificationflowai-update— update flowai framework (sync skills/agents, migrate artifacts)
Setup:
flowai-skill-setup-ai-ide-devcontainer— AI IDE devcontainer setupflowai-skill-configure-deno-commands— configure Deno tasks
Agents:
flowai-console-expert— complex console tasks and command executionflowai-diff-specialist— git diff analysis and atomic commit preparationflowai-skill-adapter— adapts skills to project specifics after upstream update
engineering
Procedural engineering knowledge (research, diagrams, writing, testing, etc.).
Skills:
flowai-skill-deep-research— multi-source web research with sub-agentsflowai-skill-draw-mermaid-diagrams— Mermaid diagramsflowai-skill-fix-tests— fix failing testsflowai-skill-write-prd— Product Requirements Documentsflowai-skill-write-dep— Development Enhancement Proposalsflowai-skill-write-gods-tasks— GODS-format tasksflowai-skill-write-in-informational-style— informational writing styleflowai-skill-manage-github-tickets— GitHub issue managementflowai-skill-browser-automation— browser automationflowai-skill-conduct-qa-session— Q&A sessionsflowai-skill-analyze-context— token usage analysisflowai-skill-engineer-prompts-for-instant— prompts for fast modelsflowai-skill-engineer-prompts-for-reasoning— prompts for reasoning modelsflowai-skill-interactive-teaching-materials— interactive HTML teaching materials
Agents:
flowai-deep-research-worker— research worker for deep research sub-tasks
devtools
Skill and agent authoring tools.
Skills:
flowai-skill-engineer-skill— create/modify a skillflowai-skill-engineer-command— create/modify a commandflowai-skill-engineer-rule— create/modify a ruleflowai-skill-engineer-hook— create/modify a hookflowai-skill-engineer-subagent— create/modify a subagentflowai-skill-write-agent-benchmarks— agent benchmarks
deno
Deno-specific skills.
Skills:
flowai-skill-deno-cli— Deno CLI operationsflowai-skill-deno-deploy— Deno Deploy management
typescript
TypeScript-specific setup skills.
Setup:
flowai-setup-agent-code-style-ts-deno— Deno/TS code styleflowai-setup-agent-code-style-ts-strict— strict TypeScript
CLI Commands
The flowai CLI provides commands beyond interactive skill sync:
flowai sync
Sync framework skills/agents into project-local IDE config dirs. Primary command for installation and updates.
Supports installing from a git branch or local path via .flowai.yaml:
# Install from a branch (uses official repo by default)
source:
ref: feat/new-skill
# Install from a fork
source:
git: https://github.com/someone/flowai-fork.git
ref: main
# Install from local directory
source:
path: /path/to/flowai/framework
flowai loop <prompt>
Run Claude Code non-interactively with real-time stream-json output. Base primitive for automation (CI, cron, scripts).
# Simple prompt
flowai loop "read deno.json and tell me the version"
# Invoke a skill via prompt
flowai loop "/flowai-skill-analyze-context"
# With agent and auto-approve
flowai loop --yolo --agent console-expert "list all TODO comments"
# Repeated execution with pause
flowai loop --yolo --interval 5m --max-iterations 10 "/flowai-maintenance"
Options: --agent, --model, --cwd, --yolo, --timeout, --interval, --max-iterations. Run flowai loop --help for details.
Developer Workflow
1. Project Setup
Initialize the project structure and documentation:
- Run
flowai-initto analyze the codebase and generateAGENTS.md, SRS, SDS - Configure development commands for your stack
2. Task Cycle
Every task follows the same supervised loop:
- Task — describe what needs to be done
- Plan (
flowai-plan) — AI proposes a plan in GODS format. You review, adjust, approve - Execute — AI implements the approved plan. You watch the diffs
- Verify —
deno task check(or your project's equivalent) must pass. No exceptions - Review & Commit (
flowai-review-and-commit) — AI reviews changes, then prepares atomic commits. You review before push
3. Maintenance
flowai-maintenance— project health auditflowai-investigate— root cause analysis for complex bugsflowai-answer— codebase Q&A without modifications
Key Principles
- Developer controls, AI executes — no autonomous commits, no unsupervised architectural changes
- Explicit workflows — every task type has a defined skill with clear steps
- Persistent memory — documentation in
documents/bridges the gap between sessions - Single verification gate —
deno task checkis the source of truth for project health - IDE-agnostic — skills work across Cursor, Claude Code, OpenCode, and other AI-assisted editors
Project Structure
framework/ # THE PRODUCT — distributed to users via flowai CLI
core/ # Core workflow commands and agents
engineering/ # Procedural engineering knowledge
devtools/ # Skill/agent authoring tools
deno/ # Deno-specific skills
typescript/ # TypeScript-specific setup skills
cli/ # Distribution tool — published to JSR as @korchasa/flowai
src/ # CLI source (BundledSource, sync, transform, plan)
scripts/ # Bundle script (generates bundled.json + _version.ts)
documents/ # Project documentation (SRS, SDS, whiteboards)
scripts/ # Deno task scripts + benchmark infrastructure
benchmarks/ # Benchmark runs, config, lock (scenarios in framework/skills/)
deno.json # Single config: JSR metadata, imports, tasks
AGENTS.md # Project vision, rules, agent instructions
.claude/ # INTERNAL — dev tooling + framework resources
skills/ # Dev-only skills (tracked) + framework skills (via flowai)
agents/ # Dev-only agents (tracked) + framework agents (via flowai)
Documentation as Memory
Documentation is not optional — it is the only mechanism that preserves context between AI sessions.
AGENTS.md— project vision, constraints, mandatory rulesrequirements.md(SRS) — functional and non-functional requirementsdesign.md(SDS) — architecture, components, data modelswhiteboards/— task plans per session (GODS: Goal, Overview, Done, Solution)
The agent reads these at session start. If the docs are outdated, the agent works with wrong assumptions. Keep them accurate.
Development Setup
For contributors working on flowai itself (not end-user installation):
Prerequisites: Deno, Git
git clone https://github.com/korchasa/flowai.git
cd flowai
deno task check
Dev-only skills and agents live in .claude/skills/ and .claude/agents/ (tracked in git). Framework skills/agents are installed by flowai from bundled source.
License
MIT