Add AI Agent Skills support using the skills.sh convention#1004
Add AI Agent Skills support using the skills.sh convention#1004benjaminloerincz wants to merge 4 commits into
Conversation
| Logger.error('Failed to update accounts', ex); | ||
| Logger.saveLog(); | ||
| throw ex; |
There was a problem hiding this comment.
this is functionally out of date: Logger.exception(msg, ex); is the one-liner equivalent
There was a problem hiding this comment.
Thanks James! I removed this in my last commit.
|
|
||
| 1. Always call `Logger.saveLog()`. | ||
| 2. Place `Logger.saveLog()` in `finally` blocks for transactional code paths. | ||
| 3. Use the lowest effective logging level (`ERROR` for failures, `INFO` for business milestones, fine-grained levels for diagnostics). |
There was a problem hiding this comment.
The parenthetical addendum is at odds with the spirit of this point (also, "business milestones" ? How perfectly vague!).
Perhaps a better way to put point 3:
Logging affects performance, but fine-grained log levels like FINEST and FINER can be used (in conjunction with Logger Settings) to skip logging statements in code-intensive path except when debugging.
Prefer higher-level logging (ERROR, WARN, and INFO) for only the most salient info.
There was a problem hiding this comment.
Thanks for the input. I like this direction and will update the text accordingly:
Use logging levels strategically. Fine-grained levels such as FINE, FINER, and FINEST can be combined with Logger Settings to avoid unnecessary logging overhead in performance-sensitive code paths and enable deeper diagnostics only when needed. Reserve higher-level logging (ERROR, WARN, and INFO) for information that is operationally significant.
There was a problem hiding this comment.
Thanks. @jongpie and I will take a look and see whether any further changes are necessary
|
|
||
| - https://github.com/jongpie/NebulaLogger/releases | ||
|
|
||
| At the time of writing, the project README lists these install links and package IDs. These links might be outdated in the future, so always check the README for the latest. |
There was a problem hiding this comment.
this sentence is contradictory
There was a problem hiding this comment.
Thanks. Removing this sentence in the next commit.
…age, and best practices
Summary
This PR introduces AI Agent Skills for Nebula Logger using the
skills.shconvention and a structure similar to the approach used byforcedotcom/sf-skills.The goal is to help AI coding assistants such as GitHub Copilot, Claude Code, Cursor, Windsurf, Gemini CLI, Cline, and other compatible agents understand how to correctly install, configure, and use Nebula Logger.
With this change, developers can install Nebula Logger-specific guidance directly into their AI-assisted development workflow via:
The implementation is intentionally documentation-only and does not introduce any runtime, packaging, metadata, or API changes.
Motivation
Nebula Logger has become one of the most widely used logging and observability frameworks in the Salesforce ecosystem.
As AI-assisted development becomes increasingly common, developers frequently ask coding agents questions such as:
Without project-specific guidance, AI assistants often generate generic Salesforce logging approaches rather than Nebula Logger best practices.
This PR aims to provide Nebula Logger-specific knowledge directly to AI agents using the emerging
skills.shecosystem.What This PR Adds
New
skills/DirectorySkill: Installation & Configuration
nebula-logger-installCovers:
Skill: Apex, LWC, Aura, Flow & OmniStudio Usage
nebula-logger-apex-loggingCovers:
Skill: Governance & Best Practices
nebula-logger-best-practicesCovers:
skills.sh Configuration
Adds a
skills.sh.jsonconfiguration file to organize skills into:README Enhancement
Adds a small "AI Agent Skills" section documenting how developers can install Nebula Logger skills using:
Inspiration
The initial idea for this contribution was inspired by the excellent community content around Nebula Logger.
In particular, Amit Chaudhary's (@amit-salesforce) Apex Hours article "Nebula Logger Salesforce: The Complete Setup, Usage & Best Practices Guide" did a fantastic job of bringing installation guidance, architecture concepts, practical implementation patterns, and operational best practices together in a single resource.
That article inspired the idea of making Nebula Logger knowledge available directly within AI-assisted development workflows.
The skill contents included in this PR were written specifically for this repository and are intended to complement the existing project documentation, README, and Wiki.
Many thanks to Amit for helping promote Nebula Logger across the Salesforce community.
Design Principles
This contribution was intentionally designed to be:
It does not alter:
Impact
Runtime Impact
None.
Package Impact
None.
Metadata Impact
None.
Breaking Changes
None.
Future Opportunities
Potential future skills could include:
These ideas were intentionally left out of the initial contribution to keep the PR small, focused, and easy to review.
Feedback Welcome
I'd love to get feedback on whether maintaining AI Agent Skills within the Nebula Logger repository is something that would be valuable to the project long term.
The implementation is intentionally lightweight and can be adjusted to match the preferred documentation strategy of the project.
Thank you for taking the time to review this contribution!