AGENT SKILL

session-logger

Append a timestamped note to this session's activity log. Use to record decisions, key findings, or milestones during long sessions so the log outlasts context compaction.

License 许可
GPL-3.0
最近更新
2026-07-22
Stars
★ 0
Forks
0

01 前言 Front Matter

name
session-logger
description
Append a timestamped note to this session's activity log. Use to record decisions, key findings, or milestones during long sessions so the log outlasts context compaction.
argument-hint
[ "note to log" ]
disallowed-tools
AskUserQuestion

03 SKILL.md 正文

Append to the session log and confirm:

mkdir -p .claude/state/sessions
LOGFILE=".claude/state/sessions/${CLAUDE_SESSION_ID}.log"
echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] $ARGUMENTS" >> "$LOGFILE"
echo "--- Last 5 entries in $LOGFILE ---"
tail -5 "$LOGFILE"

Confirm the note was logged and echo back the last 5 entries shown above.

04 同仓库更多 Skills