Session Logger

VerifiedSafe

Logs all session activity (actions, commands, decisions, errors, notes) to a timestamped file. Automatically creates a log at session start and appends throughout, with structured entries. Helpful for maintaining a detailed record of the session for later review or debugging.

Sby Skills Guide Bot
ProductivityBeginner
806/2/2026
Claude Code
#session-logging#activity-log#timestamped#auto-trigger

Recommended for

Our review

Automatically logs all session activity to a timestamped file.

Strengths

  • Automatically starts logging at session start
  • Structured format with event types (ACTION, COMMAND, DECISION, ERROR, NOTE)
  • ISO 8601 timestamps
  • Session end summary with accomplishments, decisions, unresolved items, and next steps

Limitations

  • Requires manual command to end session
  • Log files can grow large
  • Only works within Claude Code environment
When to use it

When you want a detailed, structured record of all actions and decisions made during a session.

When not to use it

If the session is very short or you have privacy concerns about logging commands.

Security analysis

Safe
Quality score90/100

The skill only appends to a local log file under the user's home directory. It does not execute shell commands, transmit data, or perform any destructive or exfiltrating actions.

No concerns found

Examples

Start logging session
Start logging
Log current session explicitly
log this session
Wrap up session
wrap up

name: session-logger description: Log all session activity to a timestamped log file. Use automatically at the start of every session, and when the user says "log this session", "start logging", or "session log".

Session Logger

Instructions

  1. At session start, create a log file at ~/.openclaw/workspace-main/logs/${SESSION_ID}.log
  2. Write a SESSION START block: timestamp, working directory, user's initial goal
  3. Throughout the session append events:
    • [ACTION] — What you're doing
    • [COMMAND] — Shell commands executed
    • [DECISION] — Key choices made
    • [ERROR] — Issues encountered
    • [NOTE] — Important context
  4. At session end (user says "done", "wrap up", "end session"), write SESSION END block: accomplished, decisions, unresolved, next steps

Log Format

================================================================================
SESSION START: ${SESSION_ID}
Timestamp: ${ISO8601}
Working Directory: ${PWD}
Initial Goal: ${USER_GOAL}
================================================================================

[ACTION] Started task analysis
[COMMAND] ls -la ~/.openclaw/
[DECISION] Using deterministic script approach
[NOTE] User prefers concise updates
...

================================================================================
SESSION END: ${SESSION_ID}
Timestamp: ${ISO8601}
Duration: ${MINUTES}m
Accomplished:
- Item 1
- Item 2

Key Decisions:
- Decision 1

Unresolved:
- Item to follow up

Next Steps:
- What to do next
================================================================================

Auto-Trigger

This skill loads automatically at session start. Call log_session_start() implicitly.

Related skills