request-recorder
Recorder CLI
Purpose
Provide a Node.js (18+) CLI that uses PM2 to start/stop a lightweight HTTP service. The service stores up to N incoming payloads in-memory (FIFO), and a log command outputs the stored entries in reverse order (newest first) as JSONL.
Always stop the server when finishing a debugging session.
Commands
startruns the service under PM2 (daemonized).serveruns the HTTP server in the current process (for PM2 or local debugging).stopstops the PM2 service.logprints logs in JSONL format, newest first.--helpprints usage and exits.
Inputs
--port(default4105)--window(default100)- Env
PORT(fallback if--portnot set) - Env
PAYLOAD_WINDOW(fallback if--windownot set)
Usage
node recorder-cli.js start --port 4105node recorder-cli.js start --port 4105 --window 100node recorder-cli.js log --port 4105node recorder-cli.js stopnode recorder-cli.js --help
Tool location
- The tool lives at
.claude/skills/lbp-create-check/recorder-cli.js.
Operational notes
- If the configured port is already in use by this service, attempt to stop it before starting again.
- All HTTP methods are recorded (POST, PUT, PATCH, DELETE, etc). Only
GET /_logsis handled specially.
More from viteinfinite/skills
pm2-server-control
>-
14openspec-loop
Use when systematically implementing OpenSpec change proposals through clean, sequential delegation
10lightspec-loop
Use when systematically implementing LightSpec change proposals through clean, sequential delegation
5commit-style-enforcer
Use when creating git commits. Learns repository-specific commit style patterns from history, caches them, and enforces consistency.
5documentation-updater
Use when implementing features, refactors, or fixes that affect core functionality, configuration, infrastructure, or integrations. Ensures documentation stays accurate by updating README, operational guides, and reference docs, and verifying links/commands remain correct.
5openspec-subagent-driven-development
Use when systematically implementing OpenSpec change proposals through clean, sequential delegation
1