agentleFS
flisk-shflisk-sh/flisk/.claude/skills/flisk-agent-ops/SKILL.md

flisk-agent-ops

Skill49 starsChanged 36 days agoMITView on GitHub

Ground rules and the CLI-to-MCP command map for a coding agent (Claude Code, Cursor, Codex) working in a Flisk project - create services with `flisk resource` instead of hand-writing Dockerfiles, Compose files or manifests, keep the agent resource contract, and drive the stack with `--json` commands or the `flisk mcp` tools (`doctor`, `up`, `status`, `logs`, `resource_restart`, `agent_list`, `agent_sessions`, `down`). Use when about to write container config by hand or when you need the MCP tool for a CLI command. For building a whole app from a request, use flisk-build.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When building, adding, or modifying services in this workspace, do not hand-write Dockerfiles, Docker Compose files, or container manifests.

    line 13
  2. Very specific:

    Start the stack: flisk up --json (or tool up)

    line 35
  3. Very specific:

    Check logs: flisk logs --tail 200 --json (or tool logs)

    line 37
  4. Very specific:

    Stop services: flisk down --json (or tool down)

    line 41

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

Flisk Agent Operations Guide

When building, adding, or modifying services in this workspace, do not hand-write Dockerfiles, Docker Compose files, or container manifests. Flisk automatically manages containerization, networking (Traefik), dependencies, and hot reload.

Core Rules for AI Coding Agents

  1. Always use Flisk to scaffold new services:
    • Scaffold an AI agent: flisk resource <name> --type agent [--durability files|postgres]
    • Scaffold an MCP tool server: flisk resource <name> --type mcp
    • Scaffold a backend API: flisk resource <name> --type backend [--framework hono|express|fastify]
    • Scaffold a worker: flisk resource <name> --type worker
    • Scaffold a frontend: flisk resource <name> --type frontend [--framework react|vue|next]
    • Wrap an existing Dockerfile or image: flisk resource <name> --type bring-your-own --dockerfile ./Dockerfile (or --image <name>)
  2. The agent Process Contract:
    • /health: Liveness only. Responds 200 when the process is alive.
    • /ready: Readiness check. Responds 200 when the checkpoint store (named volume or Postgres) is reachable.
    • /turn (POST): Accepts a JSON body {"input": "..."} with header x-session-id: <session-id>.
    • /session (GET): Returns checkpointed messages and turns for the session specified in x-session-id.
    • /sessions (GET): Lists the stored sessions, newest first.
    • Checkpoints persist across container restarts and flisk down/flisk up.
  3. Operate via MCP or CLI:
    • Preflight & diagnostics: flisk doctor --json (or tool doctor)
    • Start the stack: flisk up --json (or tool up)
    • Inspect status: flisk status --json (or tool status)
    • Check logs: flisk logs --tail 200 --json (or tool logs)
    • Restart a service: flisk restart <resource> --json (or tool resource_restart)
    • List agents: flisk resources --type agent --json (or tool agent_list)
    • List agent sessions: flisk agent sessions <resource> --json (or tool agent_sessions with resource); add --session-id <id> (tool: sessionId) to read one session's checkpoint
    • Stop services: flisk down --json (or tool down)

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.