agentleFS
SentryKnown publishergetsentry/flue-agents/.agents/skills/flue-framework/SKILL.md

flue-framework

Skill3 starsChanged 6 months agoApache-2.0View on GitHub

Use when building, modifying, debugging, or deploying Flue TypeScript agents and workflows, especially Flue project layout, createAgent, workflows, tools, skills, subagents, sandboxes, routing, ecosystem channels such as GitHub, SDK clients, persistence, Sentry observability, or Cloudflare Workers deployment.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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
  1. Very specific:

    Use this skill for Flue framework work in this repository or in any TypeScript project using @flue/runtime or @flue/cli.

    line 8
  2. Very specific:

    Use pnpm commands when installing, building, or testing.

    line 14
  3. Very specific:

    Keep secrets in .env locally or platform secrets in production.

    line 15
  4. Very specific:

    Use createAgent(...) for continuing agent instances and run({ init, payload, env }) for finite workflows.

    line 33
  5. Distinctive:

    Prefer workflows for bounded jobs that need deterministic setup, validation, side effects, or structured return data.

    line 35
  6. Distinctive:

    Prefer tools for executable application capabilities, skills for reusable instructions, subagents for delegated specialist reasoning, and …

    line 36
  7. Distinctive:

    Use Valibot result schemas when application code depends on fields rather than prose.

    line 37
  8. Distinctive:

    After Flue code changes in this repo, run the smallest relevant checks:

    line 42
  9. Very specific:

    Run pnpm run test when behavior, validation, persistence, or workflow logic changes.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Flue Framework

Use this skill for Flue framework work in this repository or in any TypeScript project using @flue/runtime or @flue/cli.

First Actions

  1. Inspect the project layout before editing. Flue discovers only the first source directory that exists: .flue/, then src/, then the project root.
  2. In this repo, preserve the src/ layout: src/agents/, src/workflows/, src/skills/, src/app.ts, and src/cloudflare.ts. Do not add .flue/ or root-level Flue modules unless the whole repo is being migrated.
  3. Use pnpm commands when installing, building, or testing.
  4. Keep secrets in .env locally or platform secrets in production. Never place secrets in imported skills, agent modules, config, fixtures, or docs.

Route By Need

NeedRead
Project setup, source discovery, configuration, models, providers, and local commandsreferences/project-setup.md
Addressable agents, finite workflows, sessions, structured results, dispatch, and direct transport exportsreferences/agents-workflows.md
Tools, MCP servers, skills, subagents, sandbox selection, filesystem, and shell behaviorreferences/capabilities.md
GitHub channel ingress, native delivery payloads, Octokit tools, or webhook dedupereferences/channel-github.md
HTTP routing, Hono app.ts, public route exposure, SDK clients, WebSockets, and CLI surfacesreferences/routing-sdk-cli.md
Session persistence, workflow runs, durable execution, events, logs, telemetry, and error handlingreferences/persistence-observability.md
Sentry setup, Flue event reporting, Cloudflare wrappers, or Sentry data-export boundariesreferences/observability-sentry.md
Cloudflare Workers target, Durable Objects, wrangler.jsonc, Workers AI, Sandbox, cloudflare.ts, and deploymentreferences/cloudflare-deploy.md
Build failures, runtime failures, security mistakes, migration issues, or ambiguous Flue behaviorreferences/troubleshooting.md

Runtime Defaults

  • Use createAgent(...) for continuing agent instances and run({ init, payload, env }) for finite workflows.
  • Export route or websocket only when the module should expose that public transport.
  • Prefer workflows for bounded jobs that need deterministic setup, validation, side effects, or structured return data.
  • Prefer tools for executable application capabilities, skills for reusable instructions, subagents for delegated specialist reasoning, and sandboxes for filesystem or command execution.
  • Use Valibot result schemas when application code depends on fields rather than prose.
  • For Cloudflare in this repo, default model paths should use the configured Workers AI binding, e.g. cloudflare/..., unless the task explicitly changes providers.

Verify

After Flue code changes in this repo, run the smallest relevant checks:

pnpm run typecheck
pnpm run build

Run pnpm run test when behavior, validation, persistence, or workflow logic changes.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.