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.
npx skills add jongpie/NebulaLogger --skill nebula-logger-best-practicesgit clone --depth 1 https://github.com/jongpie/NebulaLoggerWrote 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.
[](https://agentmods.dev/skills/jongpie/nebulalogger/nebula-logger-best-practices)<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.
<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>- NVIDIA SkillSpector warn
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
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.
| Model | Per session | Once 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 |
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.
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.
- Reserve
ERROR,WARN, andINFOfor information that is operationally significant. - Use
DEBUG,FINE,FINER, andFINESTfor high-volume diagnostic detail. Combined withLoggerSettings__c.LoggingLevel__c, these can be left in code without adding runtime overhead in production and switched on only when deeper diagnostics are needed. - Tune
LoggerSettings__cdata by environment.- Configure
LoggingLevel__ctoERROR,WARN, orINFOin production orgs to reduce logging noise (or change toDEBUG,FINE,FINER, orFINESTwhen trying to debug) - Configure scheduled purging and retention windows (
DefaultLogPurgeAction__c,DefaultNumberOfDaysToRetainLogs__c)
- Configure
- Use static method
Logger.setScenario(), and instance methodsLogEntryEventBuilder.addTag()andLogEntryEventBuilder.addTags()for business-process grouping.- Define a controlled naming convention for scenarios & tags that make sense to your team
- Use instance methods on
LogEntryEventBuilderto 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(...)
- 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 untilsaveLog()runs. If a transaction ends without callingsaveLog(), everything that was buffered is lost - sosaveLog()still has to be called before the transaction commits.- Every
saveLog()call is a real platform operation with real cost. With the defaultEVENT_BUSsave method, each call tosaveLog()callsSystem.EventBus.publish(List<LogEntryEvent__e>)once, which consumes one slot againstSystem.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:QUEUEABLEconsumes an async job slot (System.Limits.getLimitQueueableJobs()),RESTconsumes a callout, andSYNCHRONOUS_DMLconsumes 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 afinallyblock 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 throughgetLimitPublishImmediateDML()(100 per transaction) fast, and eats into the org's daily platform event allocation for no operational benefit. If you find yourself typingLogger.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 callsaveLog()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 afinallyblock for transactional code paths so it still runs when an exception escapes the try. Pair it withLogger.setSaveMethod(...)at the top of the method if the defaultEVENT_BUSisn't right for that path (see the save-method notes above).
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.
- 10d ago First seen · 79 lines · 52 tokens per session scan A a354a89facf7
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.
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.
sf-knowledge-salesforce-app-limits-cheatsheet
Apply Salesforce knowledge and best practices for Salesforce Developer Limits and Allocations Quick Reference.
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.
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.
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.
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.