nebula-logger-best-practices

nebula-logger-best-practices is a skill for Claude Code, Codex from jongpie/NebulaLogger. It costs 52 tokens per session (1,549 once invoked), scanned A, original, MIT.

A set of rules for using Nebula Logger, a Salesforce logging system, consistently across a team.

In plain words
What is it for?
Use it to review logging code, choose log levels, set retention and purge settings, group entries with scenarios and tags, and establish team standards.
Why use it?
It helps teams reduce noisy logs, keep useful diagnostic detail available, and manage logging safely across environments.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review logging code, choose log levels, set retention and purge settings, group entries with scenarios and tags, and establish team standards.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jongpie/nebulalogger/nebula-logger-best-practices
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 jongpie/NebulaLogger --skill nebula-logger-best-practices
Clone the repo
git clone --depth 1 https://github.com/jongpie/NebulaLogger

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 nebula-logger-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/jongpie/nebulalogger/nebula-logger-best-practices/github.svg)](https://agentmods.dev/skills/jongpie/nebulalogger/nebula-logger-best-practices)
Your own site
<a href="https://agentmods.dev/skills/jongpie/nebulalogger/nebula-logger-best-practices"><img src="https://agentmods.dev/badge/skills/jongpie/nebulalogger/nebula-logger-best-practices/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 nebula-logger-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/jongpie/nebulalogger/nebula-logger-best-practices"><img src="https://agentmods.dev/badge/skills/jongpie/nebulalogger/nebula-logger-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,549 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 62
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
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.00052 $0.01549
Opus 5 $0.00026 $0.00775
Sonnet 5 $0.00010 $0.00310
Haiku 4.5 $0.00005 $0.00155

Measured 10d ago against content hash a354a89facf7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

nebula-logger-best-practices 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 10d 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.

skills/nebula-logger-best-practices/SKILL.md · 79 lines

How it starts

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

Nebula Logger Best Practices and Governance

Team-Wide Practices

Use these defaults when reviewing pull requests or designing logging conventions.

  1. Reserve ERROR, WARN, and INFO for information that is operationally significant.
  2. Use DEBUG, FINE, FINER, and FINEST for high-volume diagnostic detail. Combined with LoggerSettings__c.LoggingLevel__c, these can be left in code without adding runtime overhead in production and switched on only when deeper diagnostics are needed.
  3. Tune LoggerSettings__c data by environment.
    • Configure LoggingLevel__c to ERROR, WARN, or INFO in production orgs to reduce logging noise (or change to DEBUG, FINE, FINER, or FINEST when trying to debug)
    • Configure scheduled purging and retention windows (DefaultLogPurgeAction__c, DefaultNumberOfDaysToRetainLogs__c)
  4. Use static method Logger.setScenario(), and instance methods LogEntryEventBuilder.addTag() and LogEntryEventBuilder.addTags() for business-process grouping.
    • Define a controlled naming convention for scenarios & tags that make sense to your team
  5. Use instance methods on LogEntryEventBuilder to further enrich data, instead of embedding extra data directly in message strings. There are several method overloads available:
    • .setExceptionDetails(...)
    • .setApprovalResult(...)
    • .setDatabaseResult(...)
    • .setRecord(...)
    • .setHttpRequestDetails(...)
    • .setHttpResponseDetails(...)
    • .setRestRequestDetails(...)
    • .setRestResponseDetails(...)
    • .setField(...)
  6. Call Logger.saveLog() deliberately - don't call it after every log entry, and never inside a tight loop. Be strategic when calling it, just like when making DML calls in Apex.
    • Logger.info(...) / .error(...) / etc. only add entries to an in-memory buffer. Nothing persists until saveLog() runs. If a transaction ends without calling saveLog(), everything that was buffered is lost - so saveLog() still has to be called before the transaction commits.
    • Every saveLog() call is a real platform operation with real cost. With the default EVENT_BUS save method, each call to saveLog() calls System.EventBus.publish(List<LogEntryEvent__e>) once, which consumes one slot against System.Limits.getLimitPublishImmediateDML() (100 per transaction) and one increment against the org's daily platform event publish allocation. The other save methods have their own limits: QUEUEABLE consumes an async job slot (System.Limits.getLimitQueueableJobs()), REST consumes a callout, and SYNCHRONOUS_DML consumes regular DML rows and statements. None of them are free.
    • Multiple saveLog() calls in a transaction are fine, and often the right choice. Reasonable places to save intermediate state include after each chunk in a batch, at the end of each iteration of a long-running loop's outer scope (never the inner scope - see below), before an async handoff (Queueable / Future / Batchable), and inside a finally block that catches an exception you're about to rethrow. Each save publishes only what's in the buffer at that moment, so the entries persist even if the rest of the transaction later blows up.
    • What's wrong is calling saveLog() after every single log entry. That turns N log calls into N platform-event publishes, burns through getLimitPublishImmediateDML() (100 per transaction) fast, and eats into the org's daily platform event allocation for no operational benefit. If you find yourself typing Logger.info(...); Logger.saveLog(); repeatedly, buffer the entries and save once after the group.
    • Never call saveLog() inside the innermost body of a loop over records. Buffer entries in the loop and call saveLog() after the loop (or at safe checkpoints - after N iterations, after a chunk of work, etc.), not after each record.
    • Place a Logger.saveLog() call in a finally block for transactional code paths so it still runs when an exception escapes the try. Pair it with Logger.setSaveMethod(...) at the top of the method if the default EVENT_BUS isn't right for that path (see the save-method notes above).

Read the full file on GitHub · 79 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. 10d ago First seen · 79 lines · 52 tokens per session scan A a354a89facf7

Subscribe to this mod's changes

nebula-logger-best-practices is a skill published in the GitHub repository jongpie/NebulaLogger (959 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 1,549 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-08-30.

Related

Other skills, from other repositories

sfcc-webdav-workflows

Practical guide for using WebDAV in Salesforce B2C Commerce Cloud for IMPEX transfers and log access. Use this when setting up WebDAV clients, debugging WebDAV permission issues, or designing automation that reads/writes files via WebDAV.

taurgis/sfcc-dev-mcp · 56 tokens

sf-knowledge-salesforce-app-limits-cheatsheet

Apply Salesforce knowledge and best practices for Salesforce Developer Limits and Allocations Quick Reference.

Avinava/sf-documentation-knowledge · 27 tokens

sfcc-performance

Performance optimization strategies for Salesforce B2C Commerce Cloud including caching, efficient data retrieval, index-friendly APIs, and job optimization. Use when asked about SFCC performance, caching strategies, or optimization.

taurgis/sfcc-dev-mcp · 43 tokens

sfcc-localserviceregistry

Guide for creating server-to-server integrations in Salesforce B2C Commerce using LocalServiceRegistry. Use this when asked to integrate external APIs, create HTTP services, implement OAuth flows, or configure service credentials.

taurgis/sfcc-dev-mcp · 48 tokens

sfcc-ocapi-hooks

Guide for implementing OCAPI hooks in Salesforce B2C Commerce. Use this when asked to create OCAPI hooks, extend API endpoints, validate API requests, or modify API responses.

taurgis/sfcc-dev-mcp · 43 tokens

sfcc-scapi-hooks

Guide for implementing SCAPI hooks in Salesforce B2C Commerce. Use this when asked to create SCAPI hooks, extend Shopper API endpoints, validate API requests, or modify API responses for headless commerce.

taurgis/sfcc-dev-mcp · 47 tokens