log-writer

Create and update structured logs from templates with redaction and validation.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/fractary/claude-plugins --skill log-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: log-writer
Source: https://github.com/fractary/claude-plugins/tree/main/plugins/logs/skills/log-writer
Command: npx skills add https://github.com/fractary/claude-plugins --skill log-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, jq, python3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Universal log generator that writes logs of various types from type-specific templates and schemas, applying redaction rules.

Core Features & Use Cases

  • Load type context (template, schema, standards, retention)
  • Render with data, apply redaction
  • Atomic write with validation
  • Update retention index and provide ready-to-use logs

Quick Start

Create a session log with a title and data payload.

Frequently Asked Questions about log-writer

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

FAQPage Schema
How do I create structured logs from templates with validation?

log-writer automates structured log creation by loading type-specific templates and schemas, rendering data into logs, applying redaction rules, and validating output before atomic writes. It handles frontmatter validation, permissions, and error handling for type mismatches or validation failures.

Can I use templates to generate logs of different types with schema enforcement?

Yes. log-writer loads type-specific context at runtime—including template, schema, retention standards, and validation rules—then renders logs with data and redaction applied per type. Each log type enforces its own structure and compliance rules.

What happens if log validation fails or a log type isn't found?

log-writer provides robust error handling for type-not-found and validation failures. It supports optional dry-run and validation modes so you can test before writing, and reports errors clearly to prevent invalid logs from being written.

How does log-writer handle sensitive data in logs?

log-writer applies redaction rules from type-specific standards before writing. Redaction is applied during template rendering based on the log type's defined standards, ensuring sensitive information is stripped or masked before logs are persisted.

Can I update retention metadata and index logs after writing?

Yes. log-writer updates the retention index alongside atomic writes, maintaining consistent metadata and making logs ready for immediate use. Retention context is loaded per type and applied during the write cycle.

What dependencies and tools does log-writer require?

log-writer requires bash, jq, and python3. These provide the scripting foundation, JSON manipulation for schema and data handling, and Python runtime for template rendering and validation logic.