orkcore-logging

orkcore-logging is a skill for Claude Code, Codex from tweakoz/orkid. It costs 50 tokens per session (792 once invoked), scanned A, original, MIT.

A reference for Orkid's logging system, including log channels and output to the terminal, files, HTML, or HTTP. It also covers the Python interface.

In plain words
What is it for?
Use it to create channels, log messages and warnings, enable or disable output, and connect logging from C++ or Python code.
Why use it?
It shows how to produce and control diagnostic messages across the project's supported output systems.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tweakoz/orkid/orkcore-logging
Any agent
npx skills add tweakoz/orkid --skill orkcore-logging
Clone the repo
git clone --depth 1 https://github.com/tweakoz/orkid

Made for: Claude Code, Codex.

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 orkcore-logging

README.md
[![agentmods](https://agentmods.dev/badge/skills/tweakoz/orkid/orkcore-logging.svg)](https://agentmods.dev/skills/tweakoz/orkid/orkcore-logging)
Your own site
<a href="https://agentmods.dev/skills/tweakoz/orkid/orkcore-logging"><img src="https://agentmods.dev/badge/skills/tweakoz/orkid/orkcore-logging.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 792 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00050 $0.00792
Opus 5 $0.00025 $0.00396
Sonnet 5 $0.00010 $0.00158
Haiku 4.5 $0.00005 $0.00079

Measured 3d ago against content hash 36320aaa0cd9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

orkcore-logging 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 3d 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/orkcore-logging/SKILL.md · 101 lines

How it starts

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

Orkid Logging System Reference

When answering questions about logging in orkid, consult these files.

Key Files

Component Location
Logger Header ork.core/inc/ork/util/logger.h
Logger Impl ork.core/src/util/logger.cpp
Stdout Backend ork.core/src/util/logger_std.cpp
File Backend ork.core/src/util/logger_file.cpp
HTML Backend ork.core/src/util/logger_html.cpp
HTTP Backend ork.core/src/util/logger_http.cpp
Python Bindings ork.core/pyext/pyext_logger.cpp

Usage

from orkengine import core

# Get logger singleton
logger = core.Logger.instance()

# Get or create channel
chan = logger.getChannel("MYAPP")
chan = logger.configureChannel("MYAPP", core.fvec3(0.5, 0.8, 1.0), True)

# Log messages
chan.log("message")
chan.warn("warning")      # Goes to stderr (red)
chan.error("error")       # Goes to stderr (red)
chan.status("sub", "msg") # Status with subchannel label

# Multi-part messages
chan.log_begin("start")
chan.log_continue("middle")
chan.log_end()

# Enable/disable
chan.enabled = True

C++ Pattern

// Typical: module-level channel
static logchannel_ptr_t logchan_mymod = logger()->getChannel("MYMOD");

logchan_mymod->log("Processing %d items", count);
logchan_mymod->warn("Unexpected state");

Performance Metrics

# Push immediate value
chan.perfItem("fps", 60.0)

# Pull value via lambda (sampled at perf_interval)
chan.perfItem("frame_time", lambda: get_frame_time())

# Configure sampling rate
chan.perf_interval = 0.001  # 1000 Hz sampling
chan.status_interval = 8.0  # Status dedup interval

Backends

Backend Env Config Purpose
Stdout ORKID_LOGGER_BACKEND=STDOUT Console (default)
File ORKID_LOGGER_BACKEND=FILE Async file write
HTML ORKID_LOGGER_BACKEND=HTML Interactive HTML log
HTTP ORKID_LOGGER_BACKEND=HTTP Live streaming via ZMQ+SSE
Fork ORKID_LOGGER_BACKEND=[STDOUT,FILE] Multiple backends

Read the full file on GitHub · 101 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. 3d ago First seen · 101 lines · 50 tokens per session scan A 36320aaa0cd9

Subscribe to this mod's changes

orkcore-logging is a skill published in the GitHub repository tweakoz/orkid (35 stars, last pushed 23d ago), licensed MIT. It adds 50 tokens to every session and 792 once invoked, about $0.0003 per session on Opus 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-09-01.

Related

Other skills, from other repositories

host-pattern

Use when adding a new domain to Nuclear's plugin system, or implementing a host. Covers the host pattern (how player functionality is exposed to plugins), the host interface and API class structure, how hosts are implemented in the player, error handling conventions, and what files to create and modify. Trigger…

nukeop/nuclear · 86 tokens

creating-components

Use when creating new UI components in packages/ui. Covers component structure, tests, stories, and what to avoid.

nukeop/nuclear · 26 tokens

writing-docs

Use when writing or editing documentation in packages/docs. Covers Gitbook markdown syntax, special blocks, page structure, and the SUMMARY.md table of contents. Trigger phrases include "write docs", "add documentation", "docs page", "gitbook", "user manual".

nukeop/nuclear · 57 tokens

writing-plugins

Use when writing, scaffolding, or modifying Nuclear plugins. Covers plugin structure, manifest, entry point, provider types, available APIs, and publishing. Trigger phrases include "create a plugin", "write a plugin", "plugin scaffold", "streaming provider", "metadata provider".

nukeop/nuclear · 60 tokens

analyzing-linux-elf-malware

Analyze malicious Linux ELF binaries — botnets, cryptominers, ransomware, and rootkits targeting Linux servers, containers, and cloud infrastructure — through static analysis, dynamic tracing, and reverse engineering of x8664 and ARM samples. Use when investigating Linux malware, triaging a suspicious ELF binary…

mukul975/Anthropic-Cybersecurity-Skills · 82 tokens

analyzing-linux-kernel-rootkits

Detect kernel-level rootkits in Linux memory dumps using Volatility3 linux plugins (checksyscall, lsmod, hiddenmodules), rkhunter system scanning, and /proc vs /sys discrepancy analysis to identify hooked syscalls, hidden kernel modules, and tampered system structures.

mukul975/Anthropic-Cybersecurity-Skills · 65 tokens