agentleFS
timmo001timmo001/skills/pitchfork-dev-servers/SKILL.md

pitchfork-dev-servers

Skill2 starsChanged todayApache-2.0View on GitHub

Start, stop, check and tail local dev servers through the project's workflow, pitchfork or a framework background mode, and set up `pitchfork.toml` with stable .localhost addresses. Use for dev or background servers, pitchfork tasks, port clashes or unresolved proxy URLs.

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 5 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the project's own declared workflow first, then pitchfork, then a framework-native background mode when the repo has no pitchfork …

    line 12
  2. Very specific:

    Read local AGENTS.md first, especially a ## Background Dev Servers section.

    line 16
  3. Very specific:

    Check for repo-provided pitchfork wrappers: mise tasks, pitchfork.toml, or project-specific task names such as serve:*, dev:*, …

    line 17
  4. Very specific:

    Check whether pitchfork tools are available for observation and control: the pitchfork Code Mode namespace (list, logs, start, stop, …

    line 18
  5. Very specific:

    Check whether the pitchfork CLI is installed before falling back to raw foreground server commands.

    line 19
  6. Very specific:

    Only when the repo has no pitchfork config, check for a framework-native background mode (for example Astro 7+, which self-detaches astro …

    line 20
  7. Very specific:

    Follow the project's declared workflow first.

    line 24
  8. Very specific:

    Use pitchfork when the repo ships pitchfork.toml or pitchfork-backed tasks.

    line 25
  9. Distinctive:

    Use a framework-native background mode only in repos without pitchfork config.

    line 26
  10. Distinctive:

    Use foreground commands only for explicit foreground debugging, one-shot checks, or when the declared workflow is unavailable.

    line 27
  11. Very specific:

    Do not assume a tool's start (Code Mode or MCP pitchfork_start) can start per-repo daemons from any cwd.

    line 28
  12. Distinctive:

    Use the pitchfork tools for status, logs, restart and stop when available once a daemon exists.

    line 29
  13. Very specific:

    When wrappers stop production resource owners, avoid replacing them with broad process kills.

    line 30
  14. Distinctive:

    Read local AGENTS.md first for the repo's preferred dev-server commands.

    line 35
  15. Very specific:

    Use mise tasks when the command name is not obvious.

    line 36
  16. Very specific:

    If there is no wrapper task but pitchfork.toml exists, run pitchfork directly from the repo directory.

    line 37
  17. Very specific:

    Start every server a task needs in one call (pitchfork start api worker, or --group <name>) rather than one at a time.

    line 39
  18. Very specific:

    Treat serve:* as a common local convention, not a requirement.

    line 40

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

Pitchfork Dev Servers

Use this skill when a task involves starting or managing a long-running local server and the repo provides pitchfork.toml, local tasks, pitchfork tools, or AGENTS guidance mentioning pitchfork. When adding or changing a repo's pitchfork.toml, its serve:* tasks, or its AGENTS dev-server section, read references/hosting-standard.md first.

Follow the project's own declared workflow first, then pitchfork, then a framework-native background mode when the repo has no pitchfork config, then foreground for explicit debugging.

Preflight

  1. Read local AGENTS.md first, especially a ## Background Dev Servers section. Local repo guidance wins over this global skill.
  2. Check for repo-provided pitchfork wrappers: mise tasks, pitchfork.toml, or project-specific task names such as serve:*, dev:*, background:*, or aliases documented locally.
  3. Check whether pitchfork tools are available for observation and control: the pitchfork Code Mode namespace (list, logs, start, stop, restart), or pitchfork's MCP tools (pitchfork_status, pitchfork_logs, pitchfork_stop, pitchfork_restart, pitchfork_start).
  4. Check whether the pitchfork CLI is installed before falling back to raw foreground server commands.
  5. Only when the repo has no pitchfork config, check for a framework-native background mode (for example Astro 7+, which self-detaches astro dev under an agent).

Rules

  1. Follow the project's declared workflow first. Read local AGENTS.md, project skills, and repo tasks; local guidance wins. Do not invent a naming convention when the repo has one.
  2. Use pitchfork when the repo ships pitchfork.toml or pitchfork-backed tasks. Prefer serve:* tasks over foreground run:*, dev, or raw server commands.
  3. Use a framework-native background mode only in repos without pitchfork config. It has no stable proxy address, so suggest moving the server onto pitchfork when the address matters.
  4. Use foreground commands only for explicit foreground debugging, one-shot checks, or when the declared workflow is unavailable.
  5. Do not assume a tool's start (Code Mode or MCP pitchfork_start) can start per-repo daemons from any cwd. If start fails with no matching daemon, run the repo's local pitchfork-backed task from that repo directory.
  6. Use the pitchfork tools for status, logs, restart and stop when available once a daemon exists. Otherwise use the matching CLI commands.
  7. When wrappers stop production resource owners, avoid replacing them with broad process kills. Prefer resource-targeted commands like fuser <port>/tcp or fuser <socket>.
  8. OpenCode's pitchfork-dev-server-guard plugin enforces the pitchfork tier: in repos that declare pitchfork.toml it redirects known foreground dev-server commands, including astro dev, blume dev and mise run <name>:dev, to serve:* or pitchfork start and notes the change.

Command Discovery

  1. Read local AGENTS.md first for the repo's preferred dev-server commands.
  2. Use mise tasks when the command name is not obvious.
  3. If there is no wrapper task but pitchfork.toml exists, run pitchfork directly from the repo directory.
  4. Typical operations are pitchfork start <daemon>, pitchfork status, pitchfork logs -t <daemon>, pitchfork restart <daemon>, and pitchfork stop <daemon>.
  5. Start every server a task needs in one call (pitchfork start api worker, or --group <name>) rather than one at a time. Each returns once ready; prefer the daemon's --port, --http or --output readiness check over a fixed --delay.
  6. Treat serve:* as a common local convention, not a requirement.
  7. Find a running server's address with pitchfork proxy status rather than guessing a port. When the proxy is enabled, use the https://<daemon>.<project>.localhost address without a port. If it only works with the proxy's own port, run pitchfork proxy doctor and report the result rather than switching to the raw port.

Notes

  • Some repos use pitchfork wrappers to stop production services or resource owners before starting dev servers, then restore production when dev exits. Preserve that behaviour.
  • Pitchfork is intended to keep agents from blocking on foreground servers. Prefer background start plus logs and status checks over running a server in the agent shell.

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.

Reviews can't be read right now.

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.