Briefing

From softspark/ai-toolkit · View interactive version

Briefing is an AI agent skill from the GitHub repository softspark/ai-toolkit. Executive daily briefing aggregating reports from all agents into decision-focused summary. Triggers: briefing, daily summary, status across system, executive update.

How to use this skill

Skill file

Briefing Command

Triggers the Chief of Staff to generate an executive summary.

Usage

/briefing [period]
# Example: /briefing today
# Example: /briefing week
/briefing --tokens [--since 7d|24h|30m]
# Reports real session token usage from Claude Code JSONL.

Protocol

  1. Collect: Gather logs from kb/learnings/, maintenance/ logs, and recent runs.
  2. Synthesize: Group by category (Ops, Strategy, Actions).
  3. Filter: Remove low-priority success logs.
  4. Present: Render the Daily Brief.

Example

## Daily Brief — 2026-04-23

### Ops
- night-watch: 3 dep updates shipped, 1 rolled back (breaking change in `x-pkg@2.0`)
- health: all green except `mailpit` (degraded, non-critical)

### Strategy
- predict: new PR #42 overlaps with in-flight refactor in `/src/auth`

### Actions needed
- Review rollback from night-watch (ETA: 5 min)
- Decide on `x-pkg` pin strategy (open question on GitHub #41)

Rules

Gotchas

Token Receipts

The --tokens flag reports real token usage parsed from Claude Code session JSONL — not estimates. Useful for:

Underlying script: scripts/session_token_stats.py.

# Aggregate current session
python3 scripts/session_token_stats.py --json

# Statusline-friendly one-line output
python3 scripts/session_token_stats.py --statusline

# Trend vs baseline
python3 scripts/session_token_stats.py --statusline --baseline ~/.softspark/ai-toolkit/baseline.json

Status line (installed by default in v3.2.0+)

ai-toolkit install wires ~/.claude/settings.json to app/hooks/ai-toolkit-statusline.sh. The hook reads native Claude Code statusLine stdin (no session JSONL parsing) and renders one line:

➜ <dir> git:(branch) ✗ ████░░░░░░ 43%  ↑6.5k ↓252k effort:xhigh <model>

Segments left to right:

Custom statusLine entries you set yourself (without the _source: ai-toolkit tag) are preserved untouched on install.

Opt-outs (no reinstall required):

Save a baseline

python3 scripts/session_token_stats.py --json | jq '.totals' > ~/.softspark/ai-toolkit/baseline.json
export AI_TOOLKIT_STATUSLINE_BASELINE=~/.softspark/ai-toolkit/baseline.json

The statusline then renders trend arrows (↑ / ↓) against that baseline.

When NOT to Use

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.