noctrace: Skill for Claude Code

.claude/skills/jsonl-parser/SKILL.md

jsonl-parser is a skill for Claude Code from nyktora/noctrace. It costs 32 tokens per session (1,102 once invoked), scanned A, original, MIT.

A specification for reading Claude Code session logs stored as JSONL files, where each line is a separate JSON record. It defines the record types and fields that the parser should handle.

In plain words
What is it for?
Use it when building, changing, testing, or debugging the Claude Code JSONL parser.
Why use it?
It gives developers a shared reference for interpreting session data and reduces mistakes when log formats or test cases are changed.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

This is nyktora/noctrace's own configuration. It tells Claude Code how to work on noctrace itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything noctrace configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/jane/project.

Part of the noctrace plugin — 5 skills, 4 agents, 1 MCP server shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to nyktora/noctrace. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nyktora/noctrace/main/.claude/skills/jsonl-parser/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nyktora/noctrace

Made for: Claude Code.

Or install noctrace, the plugin that ships this one along with the rest of its 5 skills, 4 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for jsonl-parser

README.md
[![agentmods](https://agentmods.dev/badge/skills/nyktora/noctrace/jsonl-parser/github.svg)](https://agentmods.dev/skills/nyktora/noctrace/jsonl-parser)
Your own site
<a href="https://agentmods.dev/skills/nyktora/noctrace/jsonl-parser"><img src="https://agentmods.dev/badge/skills/nyktora/noctrace/jsonl-parser/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for jsonl-parser

Your own site · 80×15
<a href="https://agentmods.dev/skills/nyktora/noctrace/jsonl-parser"><img src="https://agentmods.dev/badge/skills/nyktora/noctrace/jsonl-parser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,102 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01102
Opus 5.5 $0.00013 $0.00441
Sonnet 5.5 $0.00006 $0.00220
Haiku 4.5 $0.00003 $0.00110

Measured 2mo ago against content hash 0219bc5154f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

jsonl-parser scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/jsonl-parser/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Claude Code JSONL Parser Specification

File Location

Session logs are at ~/.claude/projects/{encoded-path}/*.jsonl where path encoding replaces / with - (e.g., /Users/jane/project becomes -Users-jane-project).

Additionally, ~/.claude/projects/{encoded-path}/sessions-index.json contains session metadata (summaries, message counts, timestamps).

Record Format

Each line is a JSON object with these common fields:

interface BaseRecord {
  type: "user" | "assistant" | "system" | "result";
  sessionId: string;
  timestamp: string;       // ISO-8601
  uuid: string;
  parentUuid: string | null;
  version?: string;
  cwd?: string;
  gitBranch?: string;
}

Assistant Records

Contain Claude's responses with text and tool_use blocks:

interface AssistantRecord extends BaseRecord {
  type: "assistant";
  message: {
    role: "assistant";
    content: ContentBlock[];
    usage?: {
      input_tokens: number;
      output_tokens: number;
      cache_creation_input_tokens?: number;
      cache_read_input_tokens?: number;
    };
  };
}

type ContentBlock =
  | { type: "text"; text: string }
  | { type: "tool_use"; id: string; name: string; input: Record<string, any> }
  | { type: "thinking"; thinking: string };

User Records

Contain user messages or tool results (when isMeta: true):

interface UserRecord extends BaseRecord {
  type: "user";
  message: {
    role: "user";
    content: string | ToolResultBlock[];
  };
  isMeta?: boolean; // true = internal tool result, false = real user message
  isCompactSummary?: boolean;
}

interface ToolResultBlock {
  type: "tool_result";
  tool_use_id: string; // links back to tool_use block's id
  content: string | ContentPart[];
  is_error?: boolean;
}

System Records

Session lifecycle events:

interface SystemRecord extends BaseRecord {
  type: "system";
  subtype?: "init" | "compact_boundary";
  compactMetadata?: {
    trigger: "auto" | "manual";
    preTokens: number;
  };
}

Read the full file on GitHub · 140 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 140 lines · 32 tokens per session scan A 0219bc5154f3

Subscribe to this mod's changes

jsonl-parser is a skill published in the GitHub repository nyktora/noctrace (5 stars, last pushed 6mo ago), licensed MIT. It adds 32 tokens to every session and 1,102 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

jsonl-parser compared with skills from other repositories

jsonl-parser next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
jsonl-parsernyktora/noctraceSkill56mo agoMITA32Claude Code
observability-phoenixdavila7/claude-code-templatesSkill33ktodayMITA47Claude Code, Codex
agent-inspectrajudandigam/agent-inspectSkill1712d agoMITA52Claude Code, Codex
vigil-alerttonone-ai/tononeSkill7723d agoMITA55Claude Code
vigil-instrumenttonone-ai/tononeSkill7723d agoMITA61Claude Code
sre-expertpersonamanagmentlayer/pclSkill4412d agoApache-2.0A63Claude Code
vigil-incidenttonone-ai/tononeSkill7723d agoMITA48Claude Code