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

pitchfork-dev-servers

Skill1 starsChanged 56 days agoApache-2.0View on GitHub

Manage long-running local dev servers by precedence - the project's own AGENTS.md workflow first, framework-native background mode next, then pitchfork as the fallback. Use when starting, stopping, restarting, checking, or tailing development servers, background servers, `pitchfork.toml`, pitchfork MCP tools, or local AGENTS/mise tasks that mention pitchfork.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 3 are distinctive, and 14 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 14

    Very specific

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

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

    Use this skill when a task involves starting or managing a long-running local server and the repo provides pitchfork.toml, local tasks, MCP …

    line 10
  2. Very specific:

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

    line 16
  3. Very specific:

    Check whether the project relies on a framework-native background mode (for example Astro 7+, which self-detaches astro dev under an agent).

    line 17
  4. Very specific:

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

    line 18
  5. Very specific:

    Check whether pitchfork MCP tools are available for observation and control: pitchfork_status, pitchfork_logs, pitchfork_stop, …

    line 19
  6. Very specific:

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

    line 20
  7. Very specific:

    Follow the project's declared workflow first.

    line 24
  8. Very specific:

    Use framework-native background mode when the project relies on one.

    line 25
  9. Very specific:

    Use pitchfork as the fallback when the repo ships pitchfork.toml or pitchfork-backed tasks but declares nothing more specific.

    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 MCP pitchfork_start can start per-repo daemons from any cwd.

    line 28
  12. Distinctive:

    Use pitchfork MCP status, logs, restart, and stop tools 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:

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

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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, MCP tooling, or AGENTS guidance mentioning pitchfork.

Pitchfork is the fallback tier, not the default. Follow the project's own declared workflow first, then framework-native background mode, then pitchfork, 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 whether the project relies on a framework-native background mode (for example Astro 7+, which self-detaches astro dev under an agent). If so, that is the declared workflow, not pitchfork.
  3. Check for repo-provided pitchfork wrappers: mise tasks, pitchfork.toml, or project-specific task names such as serve:*, dev:*, background:*, or aliases documented locally.
  4. Check whether pitchfork MCP tools are available for observation and control: pitchfork_status, pitchfork_logs, pitchfork_stop, pitchfork_restart, pitchfork_start.
  5. Check whether the pitchfork CLI is installed before falling back to raw foreground server commands.

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 framework-native background mode when the project relies on one. Astro 7+ self-detaches astro dev under an agent (.astro/dev.json lock; astro dev status|logs|stop; /_astro/status); use that instead of pitchfork.
  3. Use pitchfork as the fallback when the repo ships pitchfork.toml or pitchfork-backed tasks but declares nothing more specific. Prefer serve:* tasks over foreground run:*, dev, or raw server commands.
  4. Use foreground commands only for explicit foreground debugging, one-shot checks, or when the declared workflow is unavailable.
  5. Do not assume 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 pitchfork MCP status, logs, restart, and stop tools 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 only: in repos that declare pitchfork.toml it redirects known foreground dev-server commands to serve:* or pitchfork start and notes the change. It deliberately ignores astro dev.

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. Treat serve:* as a common local convention, not a requirement.

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.

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.