tflow-skill-creator
Use when authoring or hardening a portable Agent Skill (a SKILL.md plus its scripts and references) that must stay valid and distributable across Claude Code and Codex skill directories
- License 许可
- MIT
- 所属仓库
- terra0rg/tflow
- 最近更新
- 2026-09-09
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- tflow-skill-creator
- license
- MIT
- description
- Use when authoring or hardening a portable Agent Skill (a SKILL.md plus its scripts and references) that must stay valid and distributable across Claude Code and Codex skill directories
- compatibility
- Portable Agent Skill source for Claude Code, OpenAI Codex, and runtimes that support SKILL.md with POSIX sh scripts.
02 资源文件 9
- 参考文档references/factory-loop.md4.7 KB
- 参考文档references/portability-notes.md3.6 KB
- 参考文档references/testing-checklist.md2.4 KB
- 脚本scripts/fixtures/fail-no-skill-md/.keep—
- 脚本scripts/improve.sh4.1 KB
- 脚本scripts/init.sh1.7 KB
- 脚本scripts/package.sh2.8 KB
- 脚本scripts/run-tests.sh11.6 KB
- 脚本scripts/validate.sh12.4 KB
03 SKILL.md 正文
tflow Skill Creator
Use this skill to turn an intent, research brief, or existing draft into a
portable Agent Skill. The canonical target is tflow-skill-creator; older
skill-creator names are historical context only.
Keep this entrypoint runtime-neutral. Detailed runtime path notes live in portability notes, not in this main file.
Required Gates
The factory is script-owned. Do not reimplement these deterministic steps from memory or prose.
- Capture the skill intent, target name, inputs, outputs, runtime assumptions, and evidence the finished skill must provide.
- Run
scripts/init.sh <skill-name> [target-root]to scaffold the target skill. - Author or edit
SKILL.md,references/,scripts/, andassets/as needed. - Run
scripts/validate.sh <skill-dir>and fix every failure before continuing. - Run
scripts/improve.sh <skill-dir>to write.skill-improvement.md. - Complete every checklist item in
.skill-improvement.md. - Run
scripts/package.sh <skill-dir>to createdist/<skill-name>/anddist/<skill-name>.tar.gz.
Use the full command sequence and failure handling in factory loop.
Fail Closed
If a required script is missing, exits non-zero, or produces output that shows a
gate failed, stop the factory pass. Report the command, exit status, relevant
output, and the file or decision needed next. Do not package a skill after a
failed validation or unchecked .skill-improvement.md item.
Authoring Rules
- Keep frontmatter to the portable Agent Skills fields:
name,description,license,compatibility, andmetadata. - Use the documented single-line frontmatter subset in portability notes; keep compatibility and metadata values as strings.
- Make
descriptiona trigger only. It must begin withUse whenand must not summarize the workflow. - Use plain relative Markdown links such as
[testing checklist](references/testing-checklist.md). - Do not use path-prefix force-load syntax.
- Keep heavy guidance in directly linked reference files.
- Keep scripts POSIX
sh, script-relative, and free of runtime install paths. - Require every bundled
shscript to passsh -n; runshellcheckwhen it is available. - Keep the source tree symlink-free.
Evidence Requirements
A successful pass ends with:
- source under
skills/<skill-name>/that passesscripts/validate.sh; - completed
.skill-improvement.mdwith no unchecked checklist entries; - package artifacts under
dist/; - a concise summary of paths changed and commands run.
See testing checklist for the evidence that must be captured before packaging.
04 同仓库更多 Skills
tflow-skill-test
Use when an Agent Skill needs a TDD-style test plan before authoring, or a finished skill needs the three-layer test pass — structural gate, deterministic script checks, and judged eval scenarios
tflow-skill-idea
Use when a raw Agent Skill idea needs interactive shaping into a research-ready idea brief — surfacing the core purpose with Five Whys and a human-chosen direction before any research or authoring begins
tflow-skill-factory
Use when a raw Agent Skill idea must become a tested, reviewed, and documented skill through the full eight-step pipeline; for a single phase alone, use the matching phase skill directly
pass-well-formed
Use when you need a canonical example of a well-formed skill that passes all quality checks
pass-verb-substring
Use when you need information about typically uninstalled prior art
pass-trigger-condition
Use when an observable trigger condition applies to the current state