tflow
A factory for authoring Agent Skills to the agentskills.io open standard (spec v1).
What this is
tflow produces portable Agent Skills — Markdown SKILL.md files paired with POSIX sh
scripts. There is no compiled application: the deliverables are the skills themselves and
the scripts that author and validate them. The keystone is validate.sh, the linter every
artifact is gated through (spec compliance, tflow conventions, and portability).
The shipped skills
tflow-skill-idea — interactive idea shaping: Five Whys and a human-chosen
direction turn a raw prompt into a research-ready eight-field idea brief.
tflow-research — bounded web research synthesized into a sourced decision brief
across brainstorm, find-idea, and improve-idea modes.
tflow-skill-test — TDD for skills: a define mode that writes the test plan
before the skill exists, and a run mode that executes the three-layer pass
(structural gate, script checks, judged eval scenarios).
tflow-skill-creator — the disciplined factory loop that takes a skill from intent to
distributable evidence: the init / validate / improve / package scripts plus the
run-tests.sh self-test suite.
tflow-skill-factory — the loop controller: idea → research → validate →
test-plan → create → test-run → check → doc, with bounded re-research and
improvement loops, artifact gates between every phase, and a final run summary.
tflow-prompt — prompt enhancement: rewrites a raw or first-draft prompt
using established prompt-engineering techniques and returns the stronger
prompt plus an auditable change log.
tflow-gateway — the family front door: sharpens a raw request with
tflow-prompt, discovers the installed tflow skills, routes to the best
fit, and accepts the result against acceptance checks fixed before
delegation, with a bounded re-delegation loop.
Quick start
sh skills/tflow-skill-creator/scripts/validate.sh <skill-dir>
sh skills/tflow-skill-creator/scripts/validate.sh --quiet <skill-dir>
sh skills/tflow-skill-creator/scripts/run-tests.sh
shellcheck --shell=sh --exclude=SC2115,SC2016,SC2329 skills/*/scripts/*.sh
Repo layout
skills/<name>/
SKILL.md # frontmatter + body, must pass validate.sh
scripts/ # POSIX sh scripts (validate, init, improve, package, run-tests)
references/ # supporting reference material
assets/ # templates and other static assets
Skills install portably under both .claude/skills/ and .codex/skills/ — the same
SKILL.md must validate in either location.
Documentation
The three docs/ guides are linked as absolute GitHub URLs because docs/ is not shipped
in the npm tarball; the CHANGELOG.md link is relative because it does ship.
Development
pip install pre-commit
pre-commit install
Contributions run through a three-check gate, enforced identically by the local
pre-commit hook and by GitHub Actions CI (.github/workflows/ci.yml) on every push to
main and every pull request:
- shellcheck (
--shell=sh) on the skill scripts, with scripts/fixtures/
excluded so intentionally-broken fixtures don't fail the lint.
- The skill self-test suite (
run-tests.sh).
- yamllint on the project's YAML.
Skill scripts stay POSIX sh (#!/bin/sh, set -eu, no bashisms, no hardcoded runtime
paths). The pre-commit / CI tooling is a separate Python-based dev layer and does not relax
that rule. Any change to a validate.sh rule needs a matching pass-* / fail-* fixture so
the self-test suite keeps the gate honest.
License
Released under the MIT License (© 2026 glapsfun). See LICENSE.