pflow-skill
Installation
SKILL.md
If skill-context.sh or skill-finalize.sh fails (non-zero exit or "status":"error" in its JSON)
print ⚠️ <error.message> and stop.
Steps
- Context. Run
.agents/skills/pflow-skill/scripts/skill-context.sh→{skills_dir, skills:[{name,description,scripts}]}. - Clarify. New skill: you MUST know (a) what it does and (b) when it triggers — ask if ambiguous, never assume; propose a kebab-case NAME. Edit: confirm the change if intent is unclear.
- Build. Write or edit
skills/<NAME>/following the template below. New or renamed skill: update its row in the Skills table ofREADME.md; rename: updateallowed-toolspaths and every mention of the old name. - Validate. Run
.agents/skills/pflow-skill/scripts/skill-finalize.sh --name "<NAME>"→{status:"ok",skill_dir,scripts_chmod,long_lines:["file:line:length"]}. Rewrap everylong_linesentry and rerun until it is empty.
Template
Skills use a 3-phase structure (phases 1 and 3 are optional):