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
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
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
- Very specific: line 8
Use this skill for Flue framework work in this repository or in any TypeScript project using @flue/runtime or @flue/cli.
- Very specific: line 14
Use pnpm commands when installing, building, or testing.
- Very specific: line 15
Keep secrets in .env locally or platform secrets in production.
- Very specific: line 33
Use createAgent(...) for continuing agent instances and run({ init, payload, env }) for finite workflows.
- Distinctive: line 35
Prefer workflows for bounded jobs that need deterministic setup, validation, side effects, or structured return data.
- Distinctive: line 36
Prefer tools for executable application capabilities, skills for reusable instructions, subagents for delegated specialist reasoning, and …
- Distinctive: line 37
Use Valibot result schemas when application code depends on fields rather than prose.
- Distinctive: line 42
After Flue code changes in this repo, run the smallest relevant checks:
- Very specific: line 49
Run pnpm run test when behavior, validation, persistence, or workflow logic changes.
≈ “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.
Files
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
- Inspect the project layout before editing. Flue discovers only the first source directory that exists:
.flue/, thensrc/, then the project root. - In this repo, preserve the
src/layout:src/agents/,src/workflows/,src/skills/,src/app.ts, andsrc/cloudflare.ts. Do not add.flue/or root-level Flue modules unless the whole repo is being migrated. - Use
pnpmcommands when installing, building, or testing. - Keep secrets in
.envlocally or platform secrets in production. Never place secrets in imported skills, agent modules, config, fixtures, or docs.
Route By Need
| Need | Read |
| Project setup, source discovery, configuration, models, providers, and local commands | references/project-setup.md |
| Addressable agents, finite workflows, sessions, structured results, dispatch, and direct transport exports | references/agents-workflows.md |
| Tools, MCP servers, skills, subagents, sandbox selection, filesystem, and shell behavior | references/capabilities.md |
| GitHub channel ingress, native delivery payloads, Octokit tools, or webhook dedupe | references/channel-github.md |
HTTP routing, Hono app.ts, public route exposure, SDK clients, WebSockets, and CLI surfaces | references/routing-sdk-cli.md |
| Session persistence, workflow runs, durable execution, events, logs, telemetry, and error handling | references/persistence-observability.md |
| Sentry setup, Flue event reporting, Cloudflare wrappers, or Sentry data-export boundaries | references/observability-sentry.md |
Cloudflare Workers target, Durable Objects, wrangler.jsonc, Workers AI, Sandbox, cloudflare.ts, and deployment | references/cloudflare-deploy.md |
| Build failures, runtime failures, security mistakes, migration issues, or ambiguous Flue behavior | references/troubleshooting.md |
Runtime Defaults
- Use
createAgent(...)for continuing agent instances andrun({ init, payload, env })for finite workflows. - Export
routeorwebsocketonly 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 buildRun pnpm run test when behavior, validation, persistence, or workflow logic changes.
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.

