Repository navigation
Description
Related: the fly lexicon (#736), the Sprites-as-Ops work (#762) · Motivation: Fly's MCP post
Add agent-facing skills for fly and for the Sprites Ops. Fly's own guidance is that agents should discover capabilities from short, progressive summaries (skills) and drive CLIs / APIs directly, rather than loading MCP tool schemas up front. chant already has a skills mechanism that nine lexicons use. The fly lexicon ships MCP tools but no skills, and the Sprites work has no agent-facing skill at all — this closes that gap.
Context
chant skills are short operational playbooks (src/skills/*.md, frontmatter + guide) registered on a plugin via createSkillsLoader(import.meta.url, [{ file, name, description, triggers, parameters, examples }]). They are exactly the "essential skill summaries, discovered progressively" that Fly's post recommends over MCP's upfront schema dump.
Every lexicon ships a canonical chant-<name>.md main skill — chant-aws, chant-azure, chant-gcp, chant-k8s, chant-github, chant-gitlab, chant-forgejo, chant-helm, chant-docker, chant-temporal. fly is the only lexicon with no skills at all (lexicons/fly/src/skills/ does not exist, flyPlugin has no skills: field), while it does expose mcpTools()/mcpResources(). So this is not a novel addition — it fills the one gap in a universal convention, and it corrects an ordering that runs against Fly's stated preference (skills over MCP). This issue is additive: the MCP tools stay as a compatibility bridge (matching Fly's own nuanced stance).
Follow the shape of the existing main skills — lexicons/gcp/src/skills/chant-gcp.md and lexicons/aws/src/skills/chant-aws.md are the closest peers (a lexicon that builds then applies over a REST API), and lexicons/temporal/src/skills/chant-temporal-ops.md is the peer for the Sprites Op skill.
What to build
1. fly main skill — lexicons/fly/src/skills/chant-fly.md
The missing main skill, named per the universal convention (chant-<name>.md). Frontmatter skill: chant-fly / description: / user-invocable: true, then an operational playbook mirroring chant-gcp.md/chant-aws.md. Register via skills: createSkillsLoader(import.meta.url, [...]) on flyPlugin (lexicons/fly/src/plugin.ts).
chant-fly.md— "Deploy to Fly": authorApp+Machinefrom@intentius/chant-lexicon-fly;chant buildlints (region / guest / mount / no-secret-literals);flyApplyreconciles over the Machines API — owned-only prune viamanaged-by: chant, waits each machine tostarted. The endpoint story:FLY_FLAPS_BASE_URLpoints the same code at mudflaps (offline, no account) or real Fly withFLY_API_TOKEN. Point agents at theexamples/local-flyloop.- Optional secondary
chant-fly-patterns.md— volumes + mounts, IPs/certs, apply-only secrets (D7), and the app-boundary ownership model.
2. sprites skill — lexicons/temporal/src/skills/chant-temporal-sprites.md
A secondary temporal skill, named to sit alongside temporal's existing chant-temporal.md (main) and chant-temporal-ops.md. Add it to temporalPlugin's existing createSkillsLoader([...]) array.
chant-temporal-sprites.md— "Run an agent task in a Sprite": the Op/activity model (spriteCreate/spriteExec/spriteCheckpoint/spriteRestore/spriteDestroy), caller-chosen id + checkpoint label, and the headline checkpoint-as-compensation pattern (aCheckpointphase + OponFailure: [Restore]for fast rollback).SPRITES_BASE_URLtargets the emulator or real Sprites. Frame it as the direct-API/Op approach, complementary to the Sprites SDKs and CLI — the structured, replayable way to drive a Sprite, not an MCP wrapper. Point atexamples/sprites-agent-task.
Acceptance criteria
-
flyPlugin.skillsreturns thechant-flymain skill (fly is no longer the only lexicon without one); the.mdrenders a correct, runnable playbook (commands and resource names match the shipped lexicon). -
temporalPlugin.skillsincludeschant-temporal-spritesalongside its existingchant-temporalandchant-temporal-opsskills. -
chant dev check-lexicon lexicons/flystill passes (skills flip the Tier-2 "≥1 skill" check to PASS; no Tier-1 regression). - Skill bodies use no MCP framing as the primary path; they lead with authoring + the CLI/Op flow and the
*_BASE_URLoverride, matching Fly's guidance. - Examples referenced in the skills (
examples/local-fly,examples/sprites-agent-task) exist and the commands shown actually run. - Docs updated with the skill. Add a short "Agent skill" note to the fly README (
lexicons/fly/README.md) and the docs-site overview (lexicons/fly/docs/src/content/docs/index.mdx) pointing atchant-flyas the agent-facing entry point — so the lexicon docs reflect skill inclusion once it ships (do this in the same PR, not before the skill exists).
Out of scope
- Removing or changing the fly MCP tools (they stay as a bridge).
- New skills for other lexicons.
Activity
skills: add the fly main skill + a Sprites Op skill (#769) (#773)