ganeshkumar-1508/agentic_ai_testing/run-web-server-api-example
Claude Code and agent skill by ganeshkumar-1508/agentic_ai_testing
- community
Checking that the SKILL.md file is still in the repository.
Example file for the Run app skill showing how to document a server or API lifecycle with background launch, readiness checks, curl verification, and shutdown
Install
npx vskill@latest install ganeshkumar-1508/agentic_ai_testing/run-web-server-api-exampleSKILL.md
The same SKILL.md was published earlier as ganeshkumar-1508/agentic_ai_testing/run-web-server-api-example.
Example: Web server / API
The distinguishing concern for servers is lifecycle: an agent needs to start the server in the background, verify it's up, interact with it, then cleanly shut it down. A foreground npm start that blocks the shell is useless to an agent.
Structure to follow
A good server run skill has:
- Prerequisites & setup — same as any project.
- Run — the background-launch pattern (below), not a blocking command.
- Verify — a
curlor similar that confirms the server is actually up. - Stop — how to cleanly terminate the background process.
If the background-launch + readiness-poll + smoke-curl sequence is more than a couple of lines, put it in a smoke.sh inside the skill directory and have SKILL.md say "run the smoke script." One command, exit code tells you if the server is healthy.
Background-launch pattern
Don't write:
```bashnpm start```
That blocks. Instead, show how to launch in the background, wait for readiness, and find the PID later:
```bashnpm start &> /tmp/server.log &SERVER_PID=$!# Wait for the server to come up (adjust timeout/port as needed)for i in {1..30}; docurl -sf http://localhost:3000/health > /dev/null && breaksleep 1done```
Then the verification step:
```bashcurl http://localhost:3000/health# → {"status":"ok"}```
And stopping:
```bashkill $SERVER_PID# or, if you've lost the PID:pkill -f "node.*server.js"```
Details worth documenting
- Which port. Make it explicit and say how to override it (
PORT=4000 npm start). - What "ready" looks like. A specific log line or a health endpoint to hit.
- Required env vars. Database URL, API keys, etc. — with a template
.env
if the list is long.
- Hot reload vs production mode. If they differ meaningfully, say which
to use and when.
- Dependent services. If the server needs Redis/Postgres/etc., either
point at a docker-compose that brings them up, or include the docker run command directly.
Example snippet
Here's what a Run section for a typical Node API might look like:
## RunStart the dev server in the background:```bashnpm run dev &> /tmp/api.log &```The server listens on port 3000. Wait for it to be ready, then verify:```bashfor i in {1..20}; docurl -sf http://localhost:3000/health && breaksleep 0.5donecurl http://localhost:3000/health# → {"status":"ok","version":"1.2.3"}```Logs are at/tmp/api.log. Stop with:```bashpkill -f "tsx watch src/index.ts"```### Environment| Variable | Required | Default | Notes ||---|---|---|---||DATABASE_URL| Yes | — | Postgres connection string ||PORT| No |3000| ||LOG_LEVEL| No |info|debug/info/warn/error|
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.testai/skills/run-web-server-api-example/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ganeshkumar-1508/agentic_ai_testing/run-web-server-api-example)