AGENT SKILL

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

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.

  1. Capture the skill intent, target name, inputs, outputs, runtime assumptions, and evidence the finished skill must provide.
  2. Run scripts/init.sh <skill-name> [target-root] to scaffold the target skill.
  3. Author or edit SKILL.md, references/, scripts/, and assets/ as needed.
  4. Run scripts/validate.sh <skill-dir> and fix every failure before continuing.
  5. Run scripts/improve.sh <skill-dir> to write .skill-improvement.md.
  6. Complete every checklist item in .skill-improvement.md.
  7. Run scripts/package.sh <skill-dir> to create dist/<skill-name>/ and dist/<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, and metadata.
  • Use the documented single-line frontmatter subset in portability notes; keep compatibility and metadata values as strings.
  • Make description a trigger only. It must begin with Use when and 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 sh script to pass sh -n; run shellcheck when it is available.
  • Keep the source tree symlink-free.

Evidence Requirements

A successful pass ends with:

  • source under skills/<skill-name>/ that passes scripts/validate.sh;
  • completed .skill-improvement.md with 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