solace-broker-mcp: Skill for Claude Code

.claude/skills/add-logs/SKILL.md

add-logs is a skill for Claude Code from SolaceProducts/solace-broker-mcp. It costs 19 tokens per session (998 once invoked), scanned A, original, Apache-2.0.

A workflow for adding structured logging to Go programs using Go's `log/slog` package. It follows security rules in the project and can target a file or a specific function.

In plain words
What is it for?
Use it after adding a feature, when a Go file needs logging, or when migrating existing logging; it covers events such as startup, shutdown, tool calls, errors, status, and duration.
Why use it?
It removes the guesswork from deciding which events to record and helps avoid putting sensitive information into logs. It also provides a path for replacing older `log.Printf` calls.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

This is SolaceProducts/solace-broker-mcp's own configuration. It tells Claude Code how to work on solace-broker-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything solace-broker-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SolaceProducts/solace-broker-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/SolaceProducts/solace-broker-mcp/main/.claude/skills/add-logs/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/SolaceProducts/solace-broker-mcp

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 add-logs

README.md
[![agentmods](https://agentmods.dev/badge/skills/solaceproducts/solace-broker-mcp/add-logs/github.svg)](https://agentmods.dev/skills/solaceproducts/solace-broker-mcp/add-logs)
Your own site
<a href="https://agentmods.dev/skills/solaceproducts/solace-broker-mcp/add-logs"><img src="https://agentmods.dev/badge/skills/solaceproducts/solace-broker-mcp/add-logs/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 add-logs

Your own site · 80×15
<a href="https://agentmods.dev/skills/solaceproducts/solace-broker-mcp/add-logs"><img src="https://agentmods.dev/badge/skills/solaceproducts/solace-broker-mcp/add-logs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 998 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.00019 $0.00998
Opus 5 $0.00010 $0.00499
Sonnet 5 $0.00004 $0.00200
Haiku 4.5 $0.00002 $0.00100

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

Security

Grade A, and why

add-logs 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 5d 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/add-logs/SKILL.md · 118 lines

How it starts

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

Add Logs

Add structured log/slog logging to Go code that follows the project's secure logging rules. Invoked with /add-logs.

When to use

  • After implementing a new feature or function that needs logging
  • When migrating log.Printf calls to slog
  • When adding logging to an existing file that lacks it

Usage

  • /add-logs <file_path> — add logging to a specific file
  • /add-logs <file_path> <function_name> — add logging to a specific function

If invoked without arguments, ask the user which file or function to target.

Steps

Step 1: Read the rules

Read the secure logging rules at docs/secure-logging-rules.md in the project root. These rules are non-negotiable — every log line you write must comply.

Step 2: Read the target code

Read the file or function the user specified. Understand what it does, what events are significant, and what data flows through it.

Step 3: Identify loggable events

For each function, identify events that belong in the Always-Log list from the rules:

  • Server startup/shutdown
  • Tool invocations (tool name, broker alias, outcome, duration_ms)
  • Tool errors (tool name, broker alias, error_type, http_status)
  • Broker connections created (broker alias, URL)
  • Config loaded (broker_count, port)
  • Any error or failure path

Step 4: Write the log calls

For each event, write a slog call following these constraints:

Always:

  • Use slog.Info(), slog.Warn(), or slog.Error() — not log.Printf
  • Use structured fields: slog.String("key", value), slog.Int("key", value), slog.Duration("key", value)
  • Keep the message string static and descriptive (no variable data in the message)
  • Include all required fields from the Always-Log table

Never:

  • Never log anything on the Never-Log list (passwords, usernames, tokens, auth headers, raw config maps, URLs with embedded credentials)
  • Never use fmt.Sprintf in the message string with external data
  • Never log raw structs with slog.Any("key", someStruct) — log explicit fields
  • Never log raw err.Error() from external systems (SEMP, HTTP) without reviewing what it could contain
  • Never log to stdout — always stderr

Read the full file on GitHub · 118 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. 5d ago Changed 55d1519b44ca
  2. 10d ago First seen · 118 lines · 19 tokens per session scan A 80290d62462e

Subscribe to this mod's changes

add-logs is a skill published in the GitHub repository SolaceProducts/solace-broker-mcp (11 stars, last pushed today), licensed Apache-2.0. It adds 19 tokens to every session and 998 once invoked, about $0.0001 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.