Skip to content

fly + sprites skills: the missing fly main skill + a Sprites Op skill (agent-facing, per Fly's MCP guidance) #769

Closed

Description

@lex00

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": author App + Machine from @intentius/chant-lexicon-fly; chant build lints (region / guest / mount / no-secret-literals); flyApply reconciles over the Machines API — owned-only prune via managed-by: chant, waits each machine to started. The endpoint story: FLY_FLAPS_BASE_URL points the same code at mudflaps (offline, no account) or real Fly with FLY_API_TOKEN. Point agents at the examples/local-fly loop.
  • 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 (a Checkpoint phase + Op onFailure: [Restore] for fast rollback). SPRITES_BASE_URL targets 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 at examples/sprites-agent-task.

Acceptance criteria

  • flyPlugin.skills returns the chant-fly main skill (fly is no longer the only lexicon without one); the .md renders a correct, runnable playbook (commands and resource names match the shipped lexicon).
  • temporalPlugin.skills includes chant-temporal-sprites alongside its existing chant-temporal and chant-temporal-ops skills.
  • chant dev check-lexicon lexicons/fly still 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_URL override, 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 at chant-fly as 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

  1. added
    enhancement
    on Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions