agentleFS
jajupmochijajupmochi/agent-harness/skills/general/preview-template/SKILL.md

preview-template

Skill1 starsChanged 5 months agoMITView on GitHub

Start the local dev server / preview environment for this project. Customize per project type. Use when iterating on UI or before visual verification.

  • Installs packages

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start the local dev server for this project.

    line 8
  2. Very specific:

    Run in the background (run_in_background: true), not foreground — return control immediately.

    line 52
  3. Distinctive:

    Don't kill an existing server unless the user asks — multiple dev servers can coexist on different ports.

    line 54
  4. Very specific:

    If port is already in use, increment and report (e.g., 8001 instead of 8000).

    line 55

≈ “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

/preview

Start the local dev server for this project.

Customize this skill per project — pick the relevant template below and delete the rest.

Static site (HTML / CSS / JS, no build)

python3 -m http.server 8000
# Then open http://localhost:8000/<entry-page>.html

Note: file:// access often breaks fetch() calls (CORS-loaded JSON returns errors). Always use the server.

Vite (Vue / React / Svelte)

npm run dev
# Default: http://localhost:5173/

Next.js

npm run dev
# Default: http://localhost:3000/

MkDocs (docs site)

uv pip install mkdocs mkdocs-material   # if not yet installed
mkdocs serve
# Default: http://127.0.0.1:8000/

Storybook

npm run storybook
# Default: http://localhost:6006/

Notes for the agent

  • Run in the background (run_in_background: true), not foreground — return control immediately.
  • Report the URL the user should open.
  • Don't kill an existing server unless the user asks — multiple dev servers can coexist on different ports.
  • If port is already in use, increment and report (e.g., 8001 instead of 8000).

Customization checklist

  • Pick the relevant template (delete others)
  • Add the project's actual entry URL / port
  • Add any project-specific env vars or pre-commands (e.g., WANDB_MODE=disabled npm run dev)
  • If npm run dev is wrapped (e.g., npm run dev:full), use the wrapped command

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.