Skill author

From himkt/cafleet · View interactive version

Skill author is an AI agent skill from the GitHub repository himkt/cafleet. Integrate a CAFleet Director/member team into a skill, with scoped roles, durable broker coordination, Director wake and explicit review gates.

How to use this skill

Skill file

Authoring a CAFleet team skill

Use CAFleet when independent investigation, implementation or review calls for subagents or agent teams. A direct local transformation can stay in the current session. A team has a Director and the members selected for its assignment; the host owns continuation.

Phase prerequisites

| Before | Read | Local responsibility |

|---|---|---|

| Designing the workflow | Core and backend bindings | Define outcome, role authority, file ownership, artifacts and user gates |

| Resolving outputs | Task-scope resolution, Director write protocol and member BASE | Normalize the task folder and inherit supplied BASE in members |

| Spawning | Spawn Protocol and Director policy | Diagnose environment, register the Director and select members/models |

| Rendering prompts | Canonical skeleton and audit convention | Supply absolute role/core/backend paths, identity, BASE, host prerequisites and lossless role constraints |

| Coordination | Coordination | Use artifact pointers and paired issue markers |

| Receiving | Director wake and backend notes | Poll once per preview typed into the Director pane, keep the composer clear and poll by hand at the manual poll points |

| Recovery / finish | Recovery / Shutdown | Preserve context and tear down owned members before the fleet |

Members open their authoritative role first, load their own backend and required skills through its supported loader, then use supplied host-rule equivalents for absent optional files. Ready is the first operational broker command; prerequisite shell reads may precede it only when shell is the available reader.

Integration decisions

Normalize research/design inputs to their task folder before resolving BASE. Agent-only artifacts use hidden folders; deliverables use visible paths. Inherit literal BASE or its documented disabled-audit state.

Render a compact role-by-path prompt to a unique .prompts/<member>-<UTC-compact>.md and preserve that pre-spawn audit input. Leave only {fleet_id}, {member_id}, {director_member_id}, {coding_agent} and {database_url} for CLI substitution; double other literal braces. A missing BASE follows its guarded inline transport branch.

Send individually to selected recipients. Members poll after ready, before reporting and on each wake. Ordinary members receive pane previews; the Director follows Director wake. Native shell dispatch returns submission metadata; inspect output and explicitly continue after completion evidence if the host has not resumed the member.

Worked example: summarize-pr

A Summarizer receives a read-only PR diff and produces a 200-word summary with three risk areas. Resolve actual paths/models/IDs for each run; examples use concrete values for readability.

Resolve and bootstrap

Normalize the task folder, resolve BASE and fetch the diff through the host's authorized GitHub workflow. Define a read-only Summarizer role and write its compact prompt under BASE.

Run cafleet doctor, then register the calling Director:

cafleet fleet create --name summarize-pr-1234 --coding-agent claude --json

Suppose this returns fleet 7 and Director 8. From then on, member replies arrive as previews in the Director pane under Director wake.

Render and spawn

The prompt references the authoritative role, installed CAFleet core/backend references and the member role's BASE section, host-rule source, assignment, literal identity placeholders and startup ready command. Its output scope names the summary artifact; Git and user communication remain Director-owned.

cafleet member create --fleet-id 7 --name summarizer --description "Summarizes a PR diff and three risks" --file /repo/researches/pr-1234/.prompts/summarizer-20260911T100100Z.md --json

Receive that member's ready and record it. Dispatch its scope when inputs exist.

Review and revisions

Receive the Summarizer's report under Director wake.

Read and record the completed report, inspect the summary and present it. Record revisions as actionable markers at the artifact pointer and send ready (doc). The member revises, removes the marker and sends addressed (doc); keep handling previews under Director wake through the review loop.

Teardown

After the authorized outcome, run a final poll, delete fleet 7 and confirm it is absent from the active list. Fleet deletion ends each ordinary member as member deletion does, closing its pane, then deregisters the registry while keeping the Director's pane and retaining history. Preserve artifacts and immutable prompt inputs.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.