log-session

log-session is a skill for Claude Code from gtrabanco/agentic-workflow. It costs 165 tokens per session (3,084 once invoked), scanned A, original, MIT.

A session note-taking skill that appends a structured summary to docs/LOGS.md. It records the work, changed files, decisions, and next step.

In plain words
What is it for?
Run it before clearing the agent's context, closing the coding session, or reaching a natural stopping point.
Why use it?
Git history shows code changes but usually not the reasoning or unfinished work behind them. This leaves enough context for a later session or another developer to continue.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code.

Part of the agentic-workflow plugin — 33 skills shipped together

Good fit Run it before clearing the agent's context, closing the coding session, or reaching a natural stopping point.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gtrabanco/agentic-workflow/log-session
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 gtrabanco/agentic-workflow --skill log-session
Clone the repo
git clone --depth 1 https://github.com/gtrabanco/agentic-workflow

Made for: Claude Code.

Or install agentic-workflow, the plugin that ships this one along with the rest of its 33 skills.

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 log-session

README.md
[![agentmods](https://agentmods.dev/badge/skills/gtrabanco/agentic-workflow/log-session/github.svg)](https://agentmods.dev/skills/gtrabanco/agentic-workflow/log-session)
Your own site
<a href="https://agentmods.dev/skills/gtrabanco/agentic-workflow/log-session"><img src="https://agentmods.dev/badge/skills/gtrabanco/agentic-workflow/log-session/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 log-session

Your own site · 80×15
<a href="https://agentmods.dev/skills/gtrabanco/agentic-workflow/log-session"><img src="https://agentmods.dev/badge/skills/gtrabanco/agentic-workflow/log-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 165 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,084 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Data Exfiltration · line 19
    Code or instructions that leak agent conversation context to external services, potentially exposing sensitive user interactions.
    Fix: Remove any code that sends prompts, responses, or session data externally. Preserve user privacy; never exfiltrate conversation content.
  • high Memory Poisoning · line 44
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
  • medium MCP Rug Pull · line 13
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00165 $0.03084
Opus 5.5 $0.00066 $0.01234
Sonnet 5.5 $0.00033 $0.00617
Haiku 4.5 $0.00016 $0.00308

Measured 2d ago against content hash 7f55305a4c7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

log-session 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 2d 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.

skills/log-session/SKILL.md · 241 lines

How it starts

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

Log Session

Capture the why and the what-next of a working session — the context that git history alone never records. A commit says what changed; a session log says what you were trying to do, what you decided, and where to resume.

Deliberately cheap (use the cheapest available model, with reasoning/thinking off where the provider allows it — a quota-free tier when the plan offers one, so this skill pays in bytes, not quota): structured summarization, not judgment. It must never reach for an expensive model.

Turn contract

Load and verify the canonical Turn contract (11 boxes) before ending every turn; the entry write itself is the skill-specific commit box — the fragment carrier (issue #405) and the two-doors flow (#429) own where the entry lands, not an inline contract. Skill-specific additions (the docs-language and → Next: boxes are canonical-owned and not restated here):

✓ The entry was WRITTEN with accurate git facts: appended to docs/LOGS.md, or — when the fragment carrier `.agentic-workflow/journal/` exists (issue #405) — written as a new fragment there (the aggregator owns the journal; a direct append is refused)
✓ `runner session-close close` RAN and exited 0 (or 2, with the leftover paths named) — the entry is committed, not left riding along
✓ A stale entry, when one existed, was CORRECTED through `journal write --supersedes <fragment>` — never edited and never deleted; an entry already in `docs/LOGS.md` is a new append, because the journal is append-only

Missing reference → STOP. About to end the turn with any box unchecked? The turn is NOT done — complete the missing box first (weak models drop end-of-document duties; this list is first on purpose).

Two doors, one behaviour (#429)

With @gtrabanco/pi-agentic-workflow loaded, /log-session is a command: the handler records the invocation (.pi/.session-<id>.log-session), runs the writer below and names the entry's exact target before this file reaches you; a settled turn with no entry there is reported. The record is code's fact, the prose is yours. Without the extension, or via /skill:log-session, every step below is yours.

Read the full file on GitHub · 241 lines

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. 2d ago Changed 7f55305a4c7d
  2. 8d ago Changed · +2 lines · +32 tokens per session b6be8ff94f75
  3. 9d ago Changed 4002413fccb6
  4. 10d ago Changed 3f22db465302
  5. 11d ago Changed · +11 lines a9bde6f155ce
  6. 13d ago Changed 06fb7f4c3a45
  7. 23d ago Changed · +1 lines 3f011a017cc2
  8. 24d ago Changed · +5 lines 66815b87b589
  9. 26d ago Changed · +4 lines d445b2d9bae8
  10. 27d ago First seen · 218 lines · 133 tokens per session scan A f33c75717f63

Subscribe to this mod's changes

log-session is a skill published in the GitHub repository gtrabanco/agentic-workflow (25 stars, last pushed today), licensed MIT. It adds 165 tokens to every session and 3,084 once invoked, about $0.0007 per session on Opus 5.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

log-session compared with skills from other repositories

log-session next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
log-sessiongtrabanco/agentic-workflowSkill25todayMITA165Claude Code
coordinate-reasoningpjt222/agent-almanacSkill46yesterdayMITA90Claude Code
bootstrap-agent-identitypjt222/agent-almanacSkill46yesterdayMITA105Claude Code
context-engineeringn-n-code/n-n-code-skillsSkill41mo agoMITA89Claude Code, Codex
think-like-mekakha13/think-like-meSkill137mo agononeA88Claude Code, Codex
memory-integrationtroykelly/claude-skillsSkill1210mo agononeA28Claude Code
offensive-k8s-attacksSnailSploit/Claude-RedSkill12k17d agoMITA232Claude Code, Codex