spring-fleet-logging-setup

spring-fleet-logging-setup is a skill for Claude Code, Codex from talayash/spring-fleet. It costs 61 tokens per session (910 once invoked), scanned A, original, MIT.

A setup process that gives Spring Boot services a shared logging format and a known log-file location. It includes identifiers such as trace ID, span ID, session ID, and request ID so related requests can be connected.

In plain words
What is it for?
It helps configure per-service log files and add modern OpenTelemetry tracing identifiers, while retaining older session and request identifiers when needed.
Why use it?
It makes it easier to follow one request across several services instead of matching scattered console logs by time.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the spring-fleet plugin — 4 skills, 6 commands, 3 agents, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/talayash/spring-fleet/spring-fleet-logging-setup
Any agent
npx skills add talayash/spring-fleet --skill spring-fleet-logging-setup
Clone the repo
git clone --depth 1 https://github.com/talayash/spring-fleet

Made for: Claude Code, Codex.

Or install spring-fleet, the plugin that ships this one along with the rest of its 4 skills, 6 commands, 3 agents, 1 MCP server.

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 spring-fleet-logging-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/talayash/spring-fleet/spring-fleet-logging-setup.svg)](https://agentmods.dev/skills/talayash/spring-fleet/spring-fleet-logging-setup)
Your own site
<a href="https://agentmods.dev/skills/talayash/spring-fleet/spring-fleet-logging-setup"><img src="https://agentmods.dev/badge/skills/talayash/spring-fleet/spring-fleet-logging-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 910 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00061 $0.00910
Opus 5 $0.00030 $0.00455
Sonnet 5 $0.00012 $0.00182
Haiku 4.5 $0.00006 $0.00091

Measured 3d ago against content hash 71c22fc95320, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

spring-fleet-logging-setup 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 3d 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/spring-fleet-logging-setup/SKILL.md · 72 lines

How it starts

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

Fleet Logging Setup (logback convention)

Cross-service log correlation needs two things: every service writing to one known directory, and trace keys (trace_id, span_id, sessionId, …) present in each line. This skill installs a logback convention that guarantees both. It is idempotent and opt-in per service.

What trace keys to use (2026)

  • Primary: OpenTelemetry / Micrometer Observation. Add the spring-boot-starter-actuator + micrometer-tracing-bridge-otel (or, on Spring Boot 4, the dedicated spring-boot-starter-opentelemetry). The W3C traceparent header is auto-propagated across HTTP/gRPC, and the Observation API automatically populates MDC keys trace_id (32-char hex) and span_id (16-char hex). These are the modern, framework-default keys.
  • Fallback / legacy: sessionId, requestId. Keep them in the pattern for fleets that pre-date the Observation API or that propagate an application- level session id (auth, X-Request-Id) the user wants to correlate on.

When to use

  • /debug reports missing log files, or logs only go to the IDE console.
  • Logs exist but lack a trace key, so correlation falls back to timestamps.

Procedure

  1. Read the config for logDir and traceKeys.

  2. Start from the template: ${CLAUDE_PLUGIN_ROOT}/logback/logback-spring.xml. For each service you want covered, place it at <service-repo>/src/main/resources/logback-spring.xml (or merge its appender

    • pattern into the existing one), then customize three things:
    • SERVICE_NAME → the service's name from the config (used as the log file base name, so /debug can find it).
    • The %X{...} keys in FLEET_PATTERN → one per entry in traceKeys.
    • SPRING_FLEET_LOG_DIR → the config logDir, or set that env var when launching the service.
  3. Ensure the trace keys are in MDC. A pattern can only print %X{trace_id} if something put trace_id into the MDC.

    • trace_id / span_id: come for free once Micrometer Tracing or the OTel starter is on the classpath — Spring Boot wires the Observation API which populates MDC automatically. Verify by hitting any endpoint and tailing the log; the keys should already be there.
    • sessionId / requestId (legacy): usually require a filter/interceptor that reads the incoming header (or generates the id), calls MDC.put(...), and clears it in a finally. If propagation across services is missing, the same id must be forwarded as a header on outbound proxy-lib calls. (Modern fleets should rely on W3C traceparent instead and treat sessionId as a business id, not a correlation id.)

Read the full file on GitHub · 72 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. 3d ago First seen · 72 lines · 61 tokens per session scan A 71c22fc95320

Subscribe to this mod's changes

spring-fleet-logging-setup is a skill published in the GitHub repository talayash/spring-fleet (2 stars, last pushed 2mo ago), licensed MIT. It adds 61 tokens to every session and 910 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-31.

Related

Other skills, from other repositories

seo-strategy

Audits and improves organic search performance — technical health, site architecture, internal linking, structured data, and the content decisions that determine what can rank. Use this to run an SEO audit, diagnose why pages are not ranking or were deindexed, plan a site's URL and navigation structure, add structured…

cbrock84/headcount · 74 tokens

implement-factory

Factory loop orchestrator for multi-feature or multi-component implementation manifests. Use for high-complexity work with parallel-eligible workstreams and holdout-scenario evaluation.

rsmdt/the-startup · 37 tokens

chief-strategy-officer

Owns where the business plays and how it wins over a multi-year horizon — portfolio choices, corporate development, strategic partnerships, and planning under uncertainty. Use this for a decision about which markets or businesses to be in, whether to build, buy, or partner, how to allocate capital across business…

cbrock84/headcount · 93 tokens

scenario-planning

Plans under genuine uncertainty — building scenarios, identifying which assumptions are load-bearing, setting early-warning indicators, and stress-testing a plan against futures rather than forecasting one. Use this when a decision depends on something unknowable, when a plan assumes conditions that may not hold…

cbrock84/headcount · 78 tokens

ai-ml-governance

Governs models and AI systems in production — intended use, evaluation, monitoring, human oversight, documentation, and the decision to deploy or retire. Use this before deploying a model or AI feature, when defining evaluation criteria, when a model's behavior has drifted, when assessing AI risk or regulatory…

cbrock84/headcount · 83 tokens

ai-research-analyst

Produces executive-level research — market sizing, competitor mapping, trend analysis, and strategic intelligence — grounded in cited sources with the confidence in each claim made explicit. Use this to analyze a market or industry, map competitors, evaluate a market-entry or build-versus-buy decision, produce a…

cbrock84/headcount · 91 tokens