adding-skill-program
Skill197 starsChanged 2 months agoMITView on GitHub
Read wizard-development for the shared design policy. Use Pi for new agent work and prefer an orchestrator flow. Linear runs are for very simple work and existing flows. The Anthropic SDK remains a supported legacy fallback, deprecated as the default for new work; the shared guide owns the fallback criteria and gateway model/effort/system-prompt contract. These are contribution defaults. Current runtime bindings still default many programs to Anthropic plus linear; documentation changes do not migrate them. - Content-only capability: use the…
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- e2e-tests/test-applications/react-native-test-app/.cursor/rules/posthog-integration.mdcCursor rule
- adding-framework-supportSkill
- exploring-the-wizardSkill
- ink-tuiSkill
- wizard-developmentSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Read wizard-development for the shared design policy.
- Very specific: line 30
Content-only capability: use the existing skill command machinery when it can express the workflow.
- Very specific: line 37
Native program: use a ProgramConfig when the wizard needs its own flow, screens, detection, composition, or other native behavior.
- Distinctive: line 40
Keep product instructions in context-mill.
- Distinctive: line 48
Use metrics as the current Pi/orchestrator example and read the runner architecture when changing execution behavior.
- Very specific: line 53
Add the program config under src/programs/<name>/.
- Distinctive: line 73
Check program OAuth scopes against the tools the program needs.
- Very specific: line 114
Use a headless step's onReady for session-dependent detection, then render structured frameworkContext.detectError data in the intro.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Adding a Skill-Based Program
Read wizard-development for the shared design policy. Use Pi for new agent work and prefer an orchestrator flow. Linear runs are for very simple work and existing flows. The Anthropic SDK remains a supported legacy fallback, deprecated as the default for new work; the shared guide owns the fallback criteria and gateway model/effort/system-prompt contract.
These are contribution defaults. Current runtime bindings still default many programs to Anthropic plus linear; documentation changes do not migrate them.
Choose the contribution surface
- Content-only capability: use the existing skill command machinery when it
can express the workflow.
Context-mill owns skill content and
cliEntries. A new skill-backed child of an existing family ships through context-mill; inspect family dispatch. Unpromoted skills run through the skill command. - Native program: use a ProgramConfig when the wizard needs its own flow, screens, detection, composition, or other native behavior. Keep product instructions in context-mill.
Command names, program id, content-mill agentFlow, and skillId have
different roles. Use the full product name for public commands. The config field
is id, not the retired flowKey.
Build a native orchestrator program
Use metrics as the current Pi/orchestrator example and read the runner architecture when changing execution behavior.
- Add the program config under
src/programs/<name>/. SetagentFlowwhen its content-mill flow differs fromid; setting it explicitly also documents the content dependency. Keep arundefinition so the outer runner executes agent work. - Supply the flow's seed and task prompts in context-mill, including the task
dependencies and applicable skill variants. The
orchestrator
loads
agentFlow ?? id, requires a seed prompt, and checks task-skill variants before running.run.skillIdalone does not define this flow. - Register the config in
PROGRAM_REGISTRY and add its
Pi/orchestrator entry to
PROGRAM_BINDINGS.
Existing binding checks
enforce coverage;
ProgramIdcurrently widens tostring. - For a standalone native command, create a command module with
nativeCommandFactory
and register it in main.ts. A native family child uses the
handlers in family dispatch. Program registration derives screen sequences
and store lookup, not the top-level CLI
.use()chain. - Check program OAuth scopes against the tools the program needs; add scopes only when the base set is insufficient.
Model and effort selections in flow frontmatter must be supported by the wizard and gateway. Follow the cross-repo procedure in wizard-development before introducing a model or changing gateway-required prompt material.
Simple linear programs and existing flows
For a very simple linear flow, use
createSkillProgram to
configure installation of one skill. Register the native program as above with
an explicit Pi/linear binding; the factory does not select a sequence. Read
SkillProgramOptions for required fields;
audit demonstrates factory customization and
a dynamic run(session) that seeds a ledger.
Revenue analytics builds its
config directly and adds prerequisite detection.
ProgramRun.customPrompt, abortCases, postRun, and buildOutroData are
consumed by the
linear sequence. postRun
runs after success; buildOutroData receives session and credentials, with host
information inside credentials. The orchestrator currently uses its own task
prompts, failure handling, and outro, and does not invoke those hooks. Check
this limitation before migrating a linear flow; setting an orchestrator binding
does not preserve these behaviors automatically.
Screens, prerequisites, and composition
Reuse AGENT_SKILL_STEPS:
intro, health check, auth, run, outro, and keep-skills. Auth also applies the
shared AI opt-in gate for agent
programs. Override screenId, not screen, when adapting a step. New screens
need an entry in ScreenId, a
component, and registration in
screen-registry. Follow
ink-tui for rendering and store usage.
Use a headless step's onReady for session-dependent detection, then render
structured frameworkContext.detectError data in the intro. onInit runs when
the TUI starts rendering with its initial session; onReady runs after the real
session is assigned. See store hooks and
run-wizard. The
noninteractive runner also
walks onReady by default; set ciPreRun only when it needs a different
prerequisite strategy.
requires currently records metadata; it does not execute or enforce prior
programs. Compose real work through ProgramStep.run, with onRunPrep and
targetDir when needed. The
integration run step
and self-driving demonstrate this.
Composed sub-runs are structurally linear; orchestrators cannot nest. A host run
step without run can also set targetDir and onRunPrep to scope the
program's own agent to a picked project and keep its sequence, as
error-tracking does.
Validate the affected path
Reuse the relevant registry, binding, detection, or routing checks. Add a focused behavioral test only for a meaningful gap; avoid tests that repeat configuration fields. Check that the selected CLI route resolves the intended program and that its content-mill flow is available. Use the exploration guide for a warranted end-to-end run against a disposable app. Follow wizard-development for proportionate checks; documentation-only changes need source/link verification.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

