logger-messages

Generate active-voice logger messages for Simple History event logs.

316|74|Updated Apr 15, 2013
One-click install
npx skills add https://github.com/bonny/WordPress-Simple-History --skill logger-messages
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logger-messages
Source: https://github.com/bonny/WordPress-Simple-History/tree/main/.claude/skills/logger-messages
Command: npx skills add https://github.com/bonny/WordPress-Simple-History --skill logger-messages

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides you to craft user-friendly, active-voice messages for Simple History events, ensuring clarity, conciseness, and useful context in logs.

Core Features & Use Cases

  • Active voice focus: Messages describe who did what, in the present or recent past.
  • Context-rich: Encourages placeholders and contextual data to accompany messages.
  • Consistency and clarity: Provides guidelines to keep log entries readable for end users.

Quick Start

  • In a logger class, replace passive messages like "Plugin was activated" with "Activated plugin"
  • Use placeholders for dynamic values, e.g., "{plugin_name}", "{version}"
  • Ensure every message key is unique across all loggers and that messages are concise and actionable

Frequently Asked Questions about logger-messages

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write clear, active-voice log messages for event logging?

Active-voice log messages describe who performed an action using present or recent past tense. Replace passive phrasing like "Plugin was activated" with direct action: "Activated plugin". Use placeholders for dynamic values such as "{plugin_name}" to provide context, keeping messages concise and user-focused for readability in activity logs.

What makes a good logger message in Simple History?

Effective logger messages combine active voice, contextual placeholders, and unique globally-scoped message keys. Each message should be concise, describe the action clearly, and include relevant variables that help users understand what happened. Consistency across all loggers in the loggers/ directory ensures readable, actionable event logs.

How do I add placeholder variables to logger messages?

Use curly braces to insert dynamic values: "{plugin_name}", "{version}", or other context variables relevant to the event. Placeholders replace static text with actual data from the event, making messages specific and informative rather than generic. Always ensure placeholders map to available event context.

Why should logger messages avoid passive voice?

Passive voice obscures who performed an action and distances the reader from accountability. Active voice—"User updated settings" instead of "Settings were updated"—makes logs clearer, more scannable, and more useful for understanding what happened in your activity history at a glance.

How do I ensure message keys are unique across multiple loggers?

Message keys must be globally unique across all loggers in the loggers/ directory to prevent conflicts and maintain clear identification of events. Adopt a naming convention scoped to each logger class or module, review existing keys before adding new ones, and document your key structure.

When should I update existing logger messages?

Update logger messages when they use passive voice, lack sufficient context via placeholders, are unclear or verbose, or fail to follow active-voice conventions. Refactor messages during code review or when adding new events to maintain consistency and improve log readability for end users.