agentleFS
ZmokiZmoki/zmoki-astro-starter/.claude/skills/run/SKILL.md

run

Skill4 starsChanged 5 months agoMITView on GitHub

Launch the Astro dev server and verify it is working

  • Reads credentials
  • Installs packages

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use debug, review and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 4 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    If running inside a git worktree (i.e.

    line 15
  2. Distinctive:

    Use the answer to set the corresponding env var(s) on the start command below (default: neither set).

    line 36
  3. Distinctive:

    Start the dev server in the background:

    line 44
  4. Distinctive:

    Wait for it to be ready and verify via the health endpoint:

    line 56

“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “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

Run

Astro dev server. No build step needed for local verification.

Prerequisites

No .env file is required — see src/env.d.ts.

Worktree setup

If running inside a git worktree (i.e. $PWD is not the primary repo), install dependencies first — node_modules is not shared across worktrees:

npm install

Run

Analytics and captcha default off. Before starting, ask the user:

question: "Enable analytics and/or captcha for this session?"
header: "Analytics/Captcha"
multiSelect: true
options:
  - label: "Analytics"
    description: "Sets PUBLIC_ANALYTICS_ENABLED=true — real events will be sent to PostHog"
  - label: "Captcha"
    description: "Sets PUBLIC_CAPTCHA_ENABLED=true — note Turnstile's domain check may reject localhost"

Use the answer to set the corresponding env var(s) on the start command below (default: neither set).

Derive a stable port from the working directory so multiple worktrees can run simultaneously without conflict:

PORT=$(( 4300 + $(echo "$PWD" | cksum | cut -d' ' -f1) % 100 ))

Start the dev server in the background:

# neither enabled (default):
npm run dev -- --port $PORT &> /tmp/astro-dev.log &
ZMOKI_PID=$!

# analytics and/or captcha enabled, per the answer above:
PUBLIC_ANALYTICS_ENABLED=true PUBLIC_CAPTCHA_ENABLED=true npm run dev -- --port $PORT &> /tmp/astro-dev.log &
ZMOKI_PID=$!

Wait for it to be ready and verify via the health endpoint:

for i in {1..20}; do
  curl -sf http://localhost:$PORT/-/astro/health > /dev/null && break
  sleep 1
done
curl -s http://localhost:$PORT/-/astro/health
# → ok
# → <short commit hash>

Do not open a browser or take a screenshot.

Once healthy, report to the user in plain text: Server running at http://localhost:$PORT

Logs are at /tmp/astro-dev.log. Stop with:

kill $ZMOKI_PID
# or, if the PID is lost — kills only what's on this port:
lsof -ti :$PORT | xargs kill

Key routes to check

RouteWhat it tests
http://localhost:$PORT/-/astro/healthHealth check — returns "ok" + commit hash
http://localhost:$PORT/Home — landing page
http://localhost:$PORT/blog/Blog list
http://localhost:$PORT/blog/<slug>/Individual post (PostLayout)
http://localhost:$PORT/rss.xmlRSS feed
http://localhost:$PORT/-/astro/brand/Brand / design-system reference

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.