AGENT SKILL

skills-audit

Classify agent skills by usage tier (Keep / Borderline / Archive / Unknown) using Claude Code session JSONL transcripts as the signal source. Read-only — never modifies skills, sessions, or any file on disk. Use this skill when asked to audit skills, find unused skills, classify skills, check which skills get used, produce a skill usage report, or prune skills. Trigger phrases: "audit skills", "find unused skills", "classify skills", "which skills do I use", "skill usage report", "prune skills", "what skills are unused", "skills I can remove", "trim my skill list". Output is a recommendation (Keep / Borderline / Archive) — acting on it is always a manual step.

License 许可
MIT
所属仓库
psacc/omnisess
最近更新
2026-11-05
Stars
★ 1
Forks
1

01 前言 Front Matter

name
skills-audit
license
MIT
metadata
{ "version": "0.13.0" }
description
Classify agent skills by usage tier (Keep / Borderline / Archive / Unknown) using Claude Code session JSONL transcripts as the signal source. Read-only — never modifies skills, sessions, or any file on disk. Use this skill when asked to audit skills, find unused skills, classify skills, check which skills get used, produce a skill usage report, or prune skills. Trigger phrases: "audit skills", "find unused skills", "classify skills", "which skills do I use", "skill usage report", "prune skills", "what skills are unused", "skills I can remove", "trim my skill list". Output is a recommendation (Keep / Borderline / Archive) — acting on it is always a manual step.
allowed-tools
Bash
argument-hint
[--root <path>...] [--window 30d|90d|180d] [--allowlist <path>] [--format markdown|json] [-o <file>]

02 资源文件 58

03 SKILL.md 正文

omnisess skills audit

Classify agent skills by usage tier by joining the discovered skill inventory against invocation counts scraped from Claude Code session JSONL transcripts.

Usage

/omnisess:skills-audit [--root <path>...] [--window 30d|90d|180d] [--allowlist <path>] [--format markdown|json] [-o <file>]

Instructions

Step 1: Binary guard

if ! command -v omnisess &>/dev/null; then
  echo "omnisess not found. Install it with:"
  echo "  go install github.com/psacc/omnisess@latest"
  exit 1
fi

Step 2: Build the command

Assemble the omnisess skills audit invocation from the arguments provided:

  • --root <path> (repeatable) — project root(s) to walk for SKILL.md files. If none are supplied and the user mentioned a directory, use that. If still none, omit the flag — globals-only mode (all of ~/.claude/skills/, ~/.agents/skills/, ~/.claude/plugins/**/skills/).
  • --no-globals — add only if the user explicitly wants to skip global locations.
  • --allowlist <path> — add only if the user supplied an allowlist file.
  • --window <value> — one of 30d, 90d, 180d. Default 90d if not stated.
  • --format <value> — markdown (default, human-readable) or json (machine).
  • -o <file> — output file; omit to write to stdout.

Step 3: Run the audit

omnisess skills audit [assembled flags]

If the command exits non-zero, print the error and stop.

Step 4: Present results

  • If --format markdown (or default): render the output directly — it is already structured markdown with tier sections.
  • If --format json: summarise the tier counts from the JSON and offer to render specific sections the user asks for.

After presenting, add a one-line reminder:

Archive is a recommendation. Review paths before removing any skill.

Arguments

Flag Default Description
--root <path> (none) Project root to walk (repeatable). Omit to use globals only.
--no-globals off Skip ~/.claude/skills, ~/.agents/skills, ~/.claude/plugins/**/skills/
--allowlist <path> (none) Plain-text file: one skill name per line, # for comments
--window 30d|90d|180d 90d Telemetry look-back window
--format markdown|json markdown Output format
-o <file> stdout Write output to file instead of stdout

Tier rules (summary)

Tier Criteria
Keep ≥ 3 invocations in window, or skill is in the allowlist
Borderline 1–2 invocations in window
Archive 0 invocations and not allowlisted
Unknown Skill from a non-Claude source (Codex, Cursor); telemetry not parsed in v0

Examples

# Scan one project root, 90-day window (default)
omnisess skills audit --root ~/prj/myapp

# Multiple roots + custom window
omnisess skills audit --root ~/prj/myapp --root ~/prj/shared --window 30d

# Force-keep specific skills, output to file
omnisess skills audit --root ~/prj --allowlist ~/.config/omnisess/allowlist.txt --format json -o audit.json

When NOT to use

  • Plugin-bundled skills: skills inside a .claude-plugin/ bundle cannot be deleted individually — removing one requires editing plugin.json and re-packaging. The audit will correctly classify them, but acting on Archive suggestions for bundled skills is a separate workflow.
  • Non-Claude sources (v0): Codex and Cursor skills appear as Unknown — invocation telemetry for those tools is not parsed in v0. Do not use the Archive tier for Unknown skills.
  • Window too narrow: a 30-day window will mark quarterly or incident-response skills as Archive. Use --allowlist or widen --window for infrequently-used but intentional skills.

Notes

  • Read-only. The audit never modifies skills, sessions, the allowlist, or any other file on disk.
  • Ghost usage entries (skill names seen in JSONL but not discovered on disk) mean --root coverage is incomplete — add more --root flags.
  • Unmatched allowlist entries indicate renamed or deleted skills — clean them up.
  • Full guide: docs/skills-audit.md in the omnisess repo.

04 同仓库更多 Skills

psacc
psacc/omnisess

stats

Show tool-call counts and file-I/O activity from the transcript SQLite index. Aggregates Read/Write/Edit file paths, line counts, token usage, and error flags across a time window (default 7d) or for a single session. Use this skill when asked which tools were used most, which files saw the most activity, how many tokens were spent, or to inspect a single session's tool-call summary. Trigger phrases: "session stats", "tool stats", "what tools did I use", "tool usage", "files touched", "token usage", "stats for last week", "summarize tool calls", "session tool breakdown".

★ 1
psacc
psacc/omnisess

show

Show the full detail of a single AI coding session by its ID. Session IDs are in the format <tool>:<id> (e.g., claude:5c3f2742, cursor:a1b2c3d4). Use this skill when asked to show a specific session, inspect a session, read a session, or view the messages in a session. Trigger phrases: "show session", "open session", "inspect session", "read session", "show me claude:5c3f2742", "view session details", "what happened in session".

★ 1
psacc
psacc/omnisess

search

Full-text search across all AI coding sessions (Claude Code, Cursor, Codex, GitHub Copilot CLI). Use this skill when asked to search sessions, find a conversation about a topic, look up what was discussed in past sessions, or find sessions mentioning specific code or concepts. Trigger phrases: "search sessions", "find sessions about", "look up in sessions", "what did I discuss about", "find conversation about", "search my history".

★ 1
psacc
psacc/omnisess

recap

Produce a structured markdown briefing of AI coding sessions for a given time window. Groups sessions by project and summarizes each group with intent, outcome, and status. Use this skill when asked to recap recent coding work, summarize today's sessions, show what was worked on, or produce a daily/weekly session summary. Trigger phrases: "recap", "what did I work on", "daily summary", "session summary", "summarize my sessions", "what sessions did I have today", "coding recap". This is the sessions-only public version — no Slack, Jira, or Granola integration.

★ 1
psacc
psacc/omnisess

ps

Show live Claude Code and Codex sessions as a process tree, grouped by shared ancestor chain up to launchd. Covers Claude CLI sessions, Claude Desktop agent mode, and Codex sessions (CLI TUI + Codex.app threads). Use this skill when asked about the process tree, ancestor lineage, which terminal or tmux window a Claude or Codex session is running in, or what's currently running. Trigger phrases: "process tree", "what's running", "lineage", "ancestor chain", "which terminal is my claude in", "tmux tree", "claude process tree", "codex process tree", "session lineage". macOS-only: on other platforms the command prints "unsupported" and exits 0.

★ 1
psacc
psacc/omnisess

list

List AI coding sessions across all sources (Claude Code, Cursor, Codex, GitHub Copilot CLI). Use this skill when asked to list sessions, show recent sessions, filter sessions by tool, or get an overview of coding activity. Trigger phrases: "list sessions", "show sessions", "recent sessions", "sessions from cursor", "sessions today", "how many sessions", "show me my sessions".

★ 1