usage-logging SKILL.md skillA
usage-logging from athola/claude-night-market is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add athola/claude-night-market/usage-logging@git:20261028.b4bc097Pins git:20261028.b4bc097 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- athola/claude-night-market
- Path
plugins/leyline/skills/usage-logging/SKILL.md- Versions recorded
- 8
- Latest version
- git:20261028.b4bc097, committed Oct 28, 2026
- First version recorded
- May 8, 2026
- Size
- 3,665 bytes
- Repository stars
- 348
- License
- MIT
Implements structured usage logging and audit trails for cost and session tracking. Use when adding audit trails, usage analytics, or cost tracking to a skill.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Usage Logging
## Overview
Records individual call costs and usage events. For aggregate budget
enforcement, use quota-management.
Session-aware logging infrastructure for tracking operations across plugins.
Provides structured JSONL logging with automatic session management for
audit trails and analytics.
## When To Use
- Need audit trails for operations
- Tracking costs across sessions
- Building usage analytics
- Debugging with operation history
## When NOT To Use
- Simple operations without logging needs
## Core Concepts
### Session Management
Sessions group related operations:
- Auto-created on first operation
- Timeout after 1 hour of inactivity
- Unique session IDs for tracking
### Log Entry Structure
```json
{
"timestamp": "2025-12-05T10:30:00Z",
"session_id": "session_1733394600",
"service": "my-service",
"operation": "analyze_files",
"tokens": 5000,
"success": true,
"duration_seconds": 2.5,
"metadata": {}
}
```
**Verification:** Run the command with `--help` flag to verify availability.
## Quick Start
### Initialize Logger
```python
from leyline.usage_logger import UsageEvent, UsageLogger
logger = UsageLogger(service="my-service")
```
…Read the whole file at its exact version.
How to install
mdr add athola/claude-night-market/usage-logging@sha256:3e8bbc7c90dbb7e2The line at the top of this page pins the label git:20261028.b4bc097, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_hrsbgaj6rg2on7xx)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 8 versions of this file, between May 8, 2026 and Oct 28, 2026, about one every 25 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261028.b4bc097 latest | 2026-10-28 | b4bc097 | 3,665 B | A | view · diff |
| git:20261028.7246d08 | 2026-10-28 | 7246d08 | 3,577 B | A | view · diff |
| git:20261014.b4a775b | 2026-10-14 | b4a775b | 3,594 B | A | view · diff |
| git:20260902.4a35d69 | 2026-09-02 | 4a35d69 | 3,582 B | A | view · diff |
| git:20260813.0bee82e | 2026-08-13 | 0bee82e | 4,075 B | A | view · diff |
| git:20260624.10b4b79 | 2026-06-24 | 10b4b79 | 4,074 B | A | view · diff |
| git:20260521.6f5c7d9 | 2026-05-21 | 6f5c7d9 | 3,969 B | A | view · diff |
| git:20260508.c09f147 | 2026-05-08 | c09f147 | 4,045 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3665 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
athola/claude-night-market · 348 stars · license MIT · pushed 2026-11-05 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_hrsbgaj6rg2on7xx GET https://markdownregistry.com/api/v1/resolve?ref=athola/claude-night-market/usage-logging GET https://markdownregistry.com/api/v1/blob/3e8bbc7c90dbb7e2eb26ccb403291a50113b46016b8ace8754068fbf98982333
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.