encore-logging

encore-logging is a skill for Claude Code from encoredev/skills. It costs 44 tokens per session (1,151 once invoked), scanned A, original, Apache-2.0.

A set of instructions for adding structured logs to Encore.ts applications. Structured logs pair stable messages with named details, such as an event type or error.

In plain words
What is it for?
It is for choosing log events, levels, fields, errors, context, sensitive data handling, and log volume in TypeScript services.
Why use it?
It helps teams capture useful application context without duplicating traces or using logs for measurements better suited to metrics.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit It is for choosing log events, levels, fields, errors, context, sensitive data handling, and log volume in TypeScript services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/encoredev/skills/logging
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.

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

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/encoredev/skills/logging/github.svg)](https://agentmods.dev/skills/encoredev/skills/logging)
Your own site
<a href="https://agentmods.dev/skills/encoredev/skills/logging"><img src="https://agentmods.dev/badge/skills/encoredev/skills/logging/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 encore-logging

Your own site · 80×15
<a href="https://agentmods.dev/skills/encoredev/skills/logging"><img src="https://agentmods.dev/badge/skills/encoredev/skills/logging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,151 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00044 $0.01151
Opus 5.5 $0.00018 $0.00460
Sonnet 5.5 $0.00009 $0.00230
Haiku 4.5 $0.00004 $0.00115

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

Security

Grade A, and why

encore-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 1mo 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.

encore/logging/SKILL.md · 121 lines

How it starts

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

Encore.ts structured logging

Use encore.dev/log for application events that need structured fields or trace integration. Preserve an application's established field names and event conventions when they are consistent with this guidance.

Decide what to record

Add logs for information Encore cannot infer from infrastructure operations:

  • Business state transitions
  • Decisions and the inputs that determined them
  • Retries, fallbacks, and degraded operation
  • Failures at the boundary that decides whether to retry, recover, or abort
  • External-system interactions that require domain context
  • Security-relevant or administrative actions

Encore already traces API requests, database queries, service calls, cache operations, and Pub/Sub activity. Do not narrate that execution with logs such as request started, querying database, or request completed.

Use metrics for aggregate counts and levels. Use traces for call flow and timing. Use logs for the context needed to investigate an individual event.

Emit structured logs

Keep the message stable and put variable data in fields:

import log from "encore.dev/log";

log.info("order rejected", {
  event: "order.rejected",
  orderId,
  productId,
  reason: "insufficient_inventory",
  requestedQuantity,
  availableQuantity,
});

Avoid interpolating identifiers into the message. Stable messages can be grouped, while fields remain searchable.

For events used by dashboards, alerts, or automation, include a stable event field. Prefer <domain>.<past-tense-event>, such as payment.authorized or subscription.cancelled. Diagnostic logs do not require an event name.

Keep each field name and type consistent across events. Prefer numeric values with explicit units and enum-like values over formatted prose:

log.info("payment authorized", {
  event: "payment.authorized",
  amountMinorUnits: 14900,
  currency: "SEK",
});

Choose a level

  • error: an unexpected failure prevented an operation from completing
  • warn: the application recovered or continued in a degraded state
  • info: a meaningful, relatively low-volume business event
  • debug: diagnostic detail not required for normal operation
  • trace: high-volume internal state

Read the full file on GitHub · 121 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. 1mo ago First seen · 121 lines · 44 tokens per session scan A 9c4eb20f5fb7

Subscribe to this mod's changes

encore-logging is a skill published in the GitHub repository encoredev/skills (30 stars, last pushed 8d ago), licensed Apache-2.0. It adds 44 tokens to every session and 1,151 once invoked, about $0.0002 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-09-05.

Related

Other skills, from other repositories

error-handling

Apply error handling and recovery patterns in JavaScript/TypeScript or Node.js. Use when implementing error handling, retry logic, or when the user mentions domain errors, error recovery, error escalation.

metarhia/metaskills · 43 tokens

ecc-session-guard

Use when a Hermes session is about to edit a linter config or a TypeScript file. Warns on console.log and blocks weakening an existing formatter config. Does not install the ECC marketplace.

frankxai/awesome-hermes-agent-skills · 44 tokens

cli-wiring

Bug class: Commands implemented in packages/squad-cli/src/cli/commands/ but never routed in cli-entry.ts.

github/gh-aw · 0 tokens

kotlin-tooling-native-build-performance

Diagnoses and fixes slow Kotlin/Native compilation and linking in Kotlin Multiplatform projects that target iOS. Use when the user reports slow iOS or shared-framework builds, long linkDebug/linkRelease or XCFramework tasks, cold CI builds that re-download the Kotlin/Native toolchain, KSP or other generated code on…

Kotlin/kotlin-agent-skills · 96 tokens

mintlify-api

Interact with the Mintlify REST API to manage deployments, trigger builds, and query documentation site metadata programmatically.

mintlify/docs · 26 tokens

agent-inspect

Local evidence debugger and trajectory-test toolkit for TypeScript AI agents. Use when capturing framework-faithful traces, asserting TraceContract/TraceFacts, packaging Evidence v2, or inspecting local runs over read-only MCP (gettracefacts).

rajudandigam/agent-inspect · 52 tokens