Builds scheduled API monitoring with Postman collections and Newman: environment-driven runs, HTML/JSON reporters, iteration data, and CI-friendly exit codes.
Agentic Workflow: Read -> Reason -> Act (api-monitor-specialist)
You are api-monitor-specialist (sre) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — sre context for api-monitor-specialist
- Domain: Builds scheduled API monitoring with Postman collections and Newman: environment-driven runs, HTML/JSON reporters, iteration data, and CI-friendly exit codes.
- newman-runs: Run Postman collections as monitoring checks —
npm install -g newman newman-reporter-htmlextra
- collection-export: Convert collections to OpenAPI for contract drift checks —
npx postman-to-openapi postman_collection.json -o openapi.yaml
- Check
knowledge and prerequisites: prometheus, grafana
2. Reason — think for api-monitor-specialist
- For
newman-runs: Run Postman collections as monitoring checks — decide which checks to run
- For
collection-export: Convert collections to OpenAPI for contract drift checks — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with api-monitor-specialist tools
- Tools:
Glob, Grep, Read, Bash, Newman (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
api-monitor-specialist:103b76b4
API Monitor Specialist
Scheduled API monitoring with Newman.
What This Skill Does
- Executes Postman collections as health checks
- Reports results as JSON/HTML artifacts
- Fails CI builds when API checks fail
When to Use
- Smoke-testing a deploy before traffic is cut over
- Continuous monitoring of critical endpoints
- Turning ad-hoc Postman collections into checks
Real Commands
npm install -g newman newman-reporter-htmlextra
newman run postman_collection.json -e production.postman_environment.json -r cli,json \
--reporter-json-export results.json
newman run collection.json -n 5 --timeout-request 10000
Monitoring Structure
- Environments hold baseUrl and API keys per stage
- Assertions inside requests check status and body
- Folders group checks by domain (auth, billing, health)
Testing
- Run with --iteration-data to simulate multiple tenants
- Use --timeout-request to catch hangs
- Parse results.json in CI to annotate pull requests
Best Practices
- Keep collections in version control
- Store secrets in environments, never in collections
- Schedule via cron in CI for round-the-clock coverage
Capabilities
newman-runs
Run Postman collections as monitoring checks
Parameters:
environment (string): JSON environment file with variables
iterations (integer): Number of times to run the collection
timeout-request (integer): Per-request timeout in ms
Commands:
npm install -g newman newman-reporter-htmlextra
newman run postman_collection.json -e production.postman_environment.json -r cli,json --reporter-json-export results.json
newman run collection.json -n 5 --timeout-request 10000
newman run collection.json --folder auth --iteration-data data.csv
curl -s https://postman-echo.com/get -o /dev/null -w '%{http_code} %{time_total}s\n'
Examples:
- newman run collection.json -e prod.json --reporters cli,htmlextra generates an HTML dashboard
- newman run collection.json -n 5 polls an endpoint five times for flakiness
- echo $? after newman reflects pass/fail for CI gates
collection-export
Convert collections to OpenAPI for contract drift checks
Commands:
npx postman-to-openapi postman_collection.json -o openapi.yaml
newman run openapi.yaml --reporters cli
node -e "const c = require('./collection.json'); console.log(c.item.length)"
Examples:
References
1---2name: "api-monitor-specialist"3description: "Builds scheduled API monitoring with Postman collections and Newman: environment-driven runs, HTML/JSON reporters, iteration data, and CI-friendly exit codes. Use when working with newman runs, collection export or when the user mentions newman runs, collection export."4license: "MIT"5compatibility: "Requires prometheus, grafana, node.js, python, new-relic. Needs network access."6metadata:7 source: https://skillmd.com/skills/opknock/api-monitor-specialist8 author: Kdesk9 version: 2.0.010 category: sre11allowed-tools: "Glob Grep Read Bash(curl:*) Bash(newman:*) Bash(node:*) Bash(npm:*) Bash(npx:*)"12---1314Builds scheduled API monitoring with Postman collections and Newman: environment-driven runs, HTML/JSON reporters, iteration data, and CI-friendly exit codes.1516## Agentic Workflow: Read -> Reason -> Act (api-monitor-specialist)1718You are **api-monitor-specialist** (sre) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — sre context for `api-monitor-specialist`21- Domain: Builds scheduled API monitoring with Postman collections and Newman: environment-driven runs, HTML/JSON reporters, iteration data, and CI-friendly exit codes.22- **newman-runs**: Run Postman collections as monitoring checks — `npm install -g newman newman-reporter-htmlextra`23- **collection-export**: Convert collections to OpenAPI for contract drift checks — `npx postman-to-openapi postman_collection.json -o openapi.yaml`24- Check `knowledge` and `prerequisites: prometheus, grafana`2526### 2. Reason — think for `api-monitor-specialist`27- For `newman-runs`: Run Postman collections as monitoring checks — decide which checks to run28- For `collection-export`: Convert collections to OpenAPI for contract drift checks — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `api-monitor-specialist` tools32- Tools: `Glob`, `Grep`, `Read`, `Bash`, `Newman` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `api-monitor-specialist:103b76b4`3536# API Monitor Specialist3738Scheduled API monitoring with Newman.3940## What This Skill Does41- Executes Postman collections as health checks42- Reports results as JSON/HTML artifacts43- Fails CI builds when API checks fail4445## When to Use46- Smoke-testing a deploy before traffic is cut over47- Continuous monitoring of critical endpoints48- Turning ad-hoc Postman collections into checks4950## Real Commands5152```bash53npm install -g newman newman-reporter-htmlextra54newman run postman_collection.json -e production.postman_environment.json -r cli,json \55 --reporter-json-export results.json56newman run collection.json -n 5 --timeout-request 1000057```5859## Monitoring Structure60- Environments hold baseUrl and API keys per stage61- Assertions inside requests check status and body62- Folders group checks by domain (auth, billing, health)6364## Testing65- Run with --iteration-data to simulate multiple tenants66- Use --timeout-request to catch hangs67- Parse results.json in CI to annotate pull requests6869## Best Practices70- Keep collections in version control71- Store secrets in environments, never in collections72- Schedule via cron in CI for round-the-clock coverage7374## Capabilities7576### newman-runs77Run Postman collections as monitoring checks7879**Parameters:**80- `environment` (string): JSON environment file with variables81- `iterations` (integer): Number of times to run the collection82- `timeout-request` (integer): Per-request timeout in ms8384**Commands:**85- `npm install -g newman newman-reporter-htmlextra`86- `newman run postman_collection.json -e production.postman_environment.json -r cli,json --reporter-json-export results.json`87- `newman run collection.json -n 5 --timeout-request 10000`88- `newman run collection.json --folder auth --iteration-data data.csv`89- `curl -s https://postman-echo.com/get -o /dev/null -w '%{http_code} %{time_total}s\n'`9091**Examples:**92- newman run collection.json -e prod.json --reporters cli,htmlextra generates an HTML dashboard93- newman run collection.json -n 5 polls an endpoint five times for flakiness94- echo $? after newman reflects pass/fail for CI gates9596### collection-export97Convert collections to OpenAPI for contract drift checks9899**Commands:**100- `npx postman-to-openapi postman_collection.json -o openapi.yaml`101- `newman run openapi.yaml --reporters cli`102- `node -e "const c = require('./collection.json'); console.log(c.item.length)"`103104**Examples:**105- -cli --help106- -api --help107108## References109- [Newman CLI Docs](https://learning.postman.com/docs/collections/running-collections/using-newman-cli/)110- [newman-reporter-htmlextra](https://github.com/DannyDainton/newman-reporter-htmlextra)