Install any skill in seconds. Free to start, no credit card required.
Get Started Free →jeremylongshore/logging-api-requests
Monitor and log API requests with correlation IDs, performance metrics, and security audit trails.
Passed 15 of 21 test cases with the skill, and 9 of 21 without it.
and 4 more in the full report
6 fixed10 passed either way7 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
Our compliance officer asks for the log retention period for security audit logs compared to standard application logs. What retention windows in days should be configured for each?
| Checked | Without skill | With skill |
|---|---|---|
| Sets application log retention duration to 30 days. | Missed | Passed |
| Sets audit log retention duration to 90 days. | Missed | Passed |
The instructions your model reads when the skill loads.
Implement structured API request logging with correlation IDs, performance timing, security audit trails, and PII redaction. Capture request/response metadata in JSON format suitable for aggregation in ELK Stack, Loki, or CloudWatch Logs, enabling debugging, performance analysis, and compliance auditing across distributed services.
X-Request-ID header)X-Request-ID) for each request if not provided by the caller, and propagate it to all downstream service calls and log entries within the request scope.info for successful requests, warn for 4xx client errors, error for 5xx server errors with stack traces, and debug for request/response bodies (development only).audit: true for separate indexing.See ${CLAUDE_SKILL_DIR}/references/implementation.md for the full implementation guide.
${CLAUDE_SKILL_DIR}/src/middleware/request-logger.js - Structured request/response logging middleware${CLAUDE_SKILL_DIR}/src/middleware/correlation-id.js - Correlation ID generation and propagation${CLAUDE_SKILL_DIR}/src/utils/pii-redactor.js - Field-level PII redaction with configurable patterns${CLAUDE_SKILL_DIR}/src/utils/audit-logger.js - Security audit event logger for sensitive operations${CLAUDE_SKILL_DIR}/src/config/logging.js - Log level, format, and output destination configuration${CLAUDE_SKILL_DIR}/tests/logging/ - Logging middleware tests including PII redaction verification| Error | Cause | Solution |
test cases passed, vs 9 / 21 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.