---
name: audit-coding-agent-command-logs-for-efficiency
description: "Reviews coding agent session logs to detect repetitive commands, oversized context, and failed prompt loops, then produces concrete coaching tips and token metrics. Use when a developer wants to audit agent efficiency and refine prompting habits."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Notes, Chat."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/audit-coding-agent-command-logs-for-efficiency/"
  kind: skill
  hermes:
    tags: ["developer-tools", "token-optimization", "prompt-engineering"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Audit coding agent command logs for efficiency

Review agent session transcripts to identify token waste and improve prompting habits

## When to use

Inspect terminal interaction logs from automated coding sessions to detect repetitive queries, oversized context inclusions, and unproductive prompt loops. The bot parses interaction traces into actionable optimization advice, helping developers refine their instructions and conserve tokens.

## Inputs

- `session_logs`: Interaction traces or session history logs from automated coding agent sessions to audit.

## Steps

1. When you ask: Submit agent session logs (A developer submits agent session logs or interaction traces in chat.)
2. Analyze prompt patterns and context
3. Display coaching tips and metrics

## Instructions

When provided with interaction traces or session history logs, evaluate the developer's prompt structure, tool calls, and token usage patterns. Identify redundant commands, excessive context windows, and failed iterative attempts. Generate a structured coaching report detailing concrete ways to tighten task scopes. Always ask for user approval before sharing or exporting recommendations to shared channels.

## Approvals

- Sharing or exporting recommendations to shared channels requires user approval.

## Output

Structured coaching report with token metrics, identified waste patterns, and concrete prompting tips. (format: markdown)

## Harness notes

- Claude Code: Save this file as ~/.claude/skills/audit-coding-agent-command-logs-for-efficiency/SKILL.md (or .claude/skills/audit-coding-agent-command-logs-for-efficiency/SKILL.md in the repo). Claude Code loads it when the task matches; run /audit-coding-agent-command-logs-for-efficiency to start it directly.

## Source

Summarized in our own words from [Show HN: How well do you use Claude Code?](https://news.ycombinator.com/item?id=49042653) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/audit-coding-agent-command-logs-for-efficiency/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
