superpowers-sage:acorn-logging

superpowers-sage:acorn-logging is a skill for Claude Code from hekivo/superpowers-sage. It costs 88 tokens per session (1,063 once invoked), scanned A, original, MIT.

Logging guidance for Acorn, a Laravel-based framework used inside WordPress themes. It covers recording messages and errors in files or other destinations, with different levels and optional context.

In plain words
What is it for?
Use it to add structured messages, record exceptions, configure daily or custom log files, adjust logging by environment, and send logs to monitoring services.
Why use it?
It helps developers understand failures and track what an application is doing without relying only on screen output. It also explains how Acorn logs relate to WordPress's own debug log.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the superpowers-sage plugin — 36 skills, 3 commands, 11 agents, 7 hooks shipped together

Good fit Use it to add structured messages, record exceptions, configure daily or custom log files, adjust logging by environment, and send logs to monitoring services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hekivo/superpowers-sage/acorn-logging
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 hekivo/superpowers-sage --skill acorn-logging
Clone the repo
git clone --depth 1 https://github.com/hekivo/superpowers-sage

Made for: Claude Code.

Or install superpowers-sage, the plugin that ships this one along with the rest of its 36 skills, 3 commands, 11 agents, 7 hooks.

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 superpowers-sage:acorn-logging

README.md
[![agentmods](https://agentmods.dev/badge/skills/hekivo/superpowers-sage/acorn-logging/github.svg)](https://agentmods.dev/skills/hekivo/superpowers-sage/acorn-logging)
Your own site
<a href="https://agentmods.dev/skills/hekivo/superpowers-sage/acorn-logging"><img src="https://agentmods.dev/badge/skills/hekivo/superpowers-sage/acorn-logging/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 superpowers-sage:acorn-logging

Your own site · 80×15
<a href="https://agentmods.dev/skills/hekivo/superpowers-sage/acorn-logging"><img src="https://agentmods.dev/badge/skills/hekivo/superpowers-sage/acorn-logging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,063 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.
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.00088 $0.01063
Opus 5 $0.00044 $0.00531
Sonnet 5 $0.00018 $0.00213
Haiku 4.5 $0.00009 $0.00106

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

Security

Grade A, and why

superpowers-sage:acorn-logging 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 12d 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.

plugins/superpowers-sage/skills/acorn-logging/SKILL.md · 98 lines

How it starts

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

Error Handling & Logging with Acorn

Acorn uses Laravel's logging system inside WordPress. Logs are configured per-theme in config/logging.php and coexist with WordPress's native debug.log.

When to use

  • Structured logging with log levels (emergency, alert, critical, error, warning, notice, info, debug)
  • Multiple log channels (daily rotating, single file, syslog, Sentry, custom)
  • Exception reporting with context and stack traces
  • Environment-aware logging (more verbose in dev, error-only in production)
  • Integration with external monitoring (Sentry, Papertrail, Loggly)

When NOT to use

  • Simple error_log() calls for local debugging — still valid for quick traces
  • WordPress-specific debug output (WP_DEBUG_LOG = true) — native WordPress debug log is complementary, not redundant
  • Performance-critical paths where per-call overhead of the logger matters — prefer conditional WP_DEBUG gating

Prerequisites

  • Acorn installed and bootstrapped
  • config/logging.php published (step shown below)
  • storage/logs/ writable by the web server user

Using the Logger

use Illuminate\Support\Facades\Log;

// Basic usage
Log::info('Order placed successfully');
Log::warning('API rate limit approaching');
Log::error('Payment gateway timeout');

// Always pass context as an array — never interpolate strings
Log::error('Payment failed', [
    'order_id' => $orderId,
    'gateway' => $gateway,
    'amount' => $amount,
]);

// Write to a specific channel
Log::channel('errorlog')->critical('Database connection lost');

// Write to multiple channels simultaneously
Log::stack(['daily', 'errorlog'])->error('Critical failure', ['trace' => $e->getMessage()]);

Log Levels

From most to least severe — use the appropriate level:

Level Use for
emergency System is unusable
alert Immediate action required
critical Critical conditions (component failure)
error Runtime errors that need attention
warning Unusual conditions, not errors
notice Normal but significant events
info General operational messages
debug Detailed debug info (dev only)

Read the full file on GitHub · 98 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 98 lines · 88 tokens per session scan A fa14d5818c35

Subscribe to this mod's changes

superpowers-sage:acorn-logging is a skill published in the GitHub repository hekivo/superpowers-sage (13 stars, last pushed 3mo ago), licensed MIT. It adds 88 tokens to every session and 1,063 once invoked, about $0.0004 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

printing-press-amend

Amend a published CLI from one of two input sources: (1) dogfood mode mines the active Claude Code session transcript for friction (missing flags, hand- rolled API payloads, silent-null returns); (2) direct-input mode accepts user-supplied asks (rename a command, add commands or feeds, fix a named bug, optionally…

mvanhorn/cli-printing-press · 222 tokens

convex-performance-audit

Audits Convex performance for reads, subscriptions, write contention, and function limits. Use for slow features, insights findings, OCC conflicts, or read amplification.

openclaw/clawhub · 38 tokens

ssl-proxy-troubleshoot

Systematic workflow for troubleshooting SSL/proxy connectivity issues with government websites.

HKUDS/OpenSpace · 20 tokens

diagnose-backend-bug

Diagnose a bounded backend or multi-service failure from GitHub Issues, Jira, Aone, user-provided exports, logs, traces, responses, stack traces, or job records. Use when a service, API, RPC, worker, queue, CLI, or scheduled job bug needs correlation through the project's existing observability route before repair; do…

QoderAI/better-harness · 87 tokens

platform-apex-anonymous-run

Use this skill to run anonymous Apex against the connected Salesforce org — from a .apex file or a pasted snippet — capturing the debug log, surfacing compile and runtime errors, and summarizing results. Trigger on phrases like "run this anonymous apex", "execute this script against my org", "run this snippet of…

forcedotcom/sf-skills · 159 tokens

axiom-networking

Use when implementing or debugging ANY network connection, API call, or socket. Covers URLSession, Network.framework, NetworkConnection, connection diagnostics.

CharlesWiltgen/Axiom · 33 tokens