NAME
briefing - Preload declared skills and diagnose briefing-aware agents
VERSION
version 0.006000
SYNOPSIS
briefing doctor # this project, both harnesses
briefing doctor --cwd ~/dev/shop --harness codex
briefing doctor --tsv # the Claude Code team, for tools
briefing hook subagent-start < payload.json # what the plugin's hooks run
briefing --version
DESCRIPTION
briefing runs the hooks of the briefing plugin for Claude Code and Codex, and checks the skills a project's agents declare before anything spawns. The plugin's hooks call it as briefing hook EVENT with the harness's JSON payload on standard input; you call briefing doctor. What briefing does, how agents declare skills and where names resolve is described in App::Briefing.
Inside Claude Code the plugin puts its own launcher on the PATH of the Bash tool as briefing. That launcher takes the same commands. It runs a prebuilt binary of this program when the plugin version pins one and it is cached. Otherwise hook marketplace-notice runs the plugin's Python notice script or does nothing; every other hook runs the plugin's Python hook; a plain doctor runs that Python hook's doctor and, without Python, this program from the plugin's source; every other command, doctor --tsv included, runs this program from the plugin's source. That source runs only when the machine's perl has its modules.
briefing reads agent files, skills and settings and never changes them. The one exception is the state file of the marketplace note (see "notice").
Exit status
0 for hook, whatever the payload and also for an unknown event word, for notice, for --help and --version, and for a doctor run in which no spawn would fail (warnings included). 1 when doctor finds a declaration that would fail, or when doctor --tsv prints a missing line. 2 for an unknown command or arguments, a bad doctor option, or a doctor --tsv path that is not a directory; these print briefing: unknown command or arguments or briefing doctor: MESSAGE on standard error, followed by the usage except for the directory error.
COMMANDS
hook
briefing hook [subagent-start|pre-tool-use|session-start]
Reads one hook payload as JSON from standard input and writes the hook's answer as JSON to standard output; the payload's cwd is the project. The event word picks the handler: subagent-start, pre-tool-use or session-start, with letter case, - and _ ignored, so SubagentStart works too. Without it the payload's hook_event_name decides. An unknown word prints briefing: unknown hook event: WORD on standard error and exits 0; more than one word is a usage error. Empty or invalid input gives no output.
subagent-startFor an agent that declares skills, its briefing as
additionalContextand the audit line assystemMessage, such asbriefing: reviewer ← code-style, review-checklist (13 kB). When the skills exceed 64 kB, or a Codex agent still uses a[briefing]table, a note follows insystemMessageand on standard error. When a declared skill is missing,additionalContextinstead tells the agent not to attempt the task and to report the failure, andbriefing: agent 'NAME' references unknown skill(s): ...goes tosystemMessageand standard error. An agent that is not found or declares nothing gets no output.pre-tool-useThe Claude Code guard, for a call of the
Agenttool: when the agent declares a skill that is missing, adenydecision with that same reason, which also goes to standard error. Otherwise no output; the call is never changed.session-startAt
startup, atresumeor without asource: asystemMessagethat names every declaration of that harness that would fail, eight at most and then how many more. Otherwise, and for a healthy project, no output.
hook marketplace-notice
briefing hook marketplace-notice
The plugin's SessionStart entry for the marketplace note; exactly the same as "notice".
doctor
briefing doctor [--cwd DIR] [--harness claude|codex|both]
Checks every agent of the project that declares skills and prints a report: per harness, one line per agent with ok, WARN (more than 64 kB of skill text) or FAIL (an unknown skill, or a Codex [briefing] table), its skills with their size, and the reason under it:
briefing doctor — /home/you/dev/shop
Claude Code
FAIL backend (.claude/agents/backend.md)
code-style, kubernetes-rest (9 kB)
→ unknown skill(s): kubernetes-rest
ok reviewer (.claude/agents/reviewer.md)
code-style, review-checklist (13 kB)
A project without declarations prints no agents declare skills.
doctor --tsv
briefing doctor --tsv [--cwd DIR]
Prints the findings about the project's Claude Code team as tab-separated lines, one per finding: what (agent, skill, settings or hook), status (ok, missing or warn), name and text. The checks are listed in App::Briefing::Team. --harness codex is an error here; a DIR that is not a directory prints
briefing doctor: 'DIR' is not a directory.
briefing doctor: pass the repository that holds the team.
notice
briefing notice
Prints the one-time note for installs from a marketplace other than Getty's, as a systemMessage, when CLAUDE_PLUGIN_ROOT lies in such a marketplace cache and ~/.claude/.briefing-marketplace-notice does not exist yet; it then creates that file, so the note appears once. Otherwise it prints nothing. It reads no input and exits 0, also when anything fails.
help
briefing --help
briefing help
briefing
Prints the usage on standard output.
--version
briefing --version
Prints briefing VERSION.
OPTIONS
The options belong to doctor. Each value can also be given as --option=VALUE.
--cwd DIR
The project to check. Default: the current directory. On Windows, change into a directory whose path has characters outside the ANSI code page instead of naming it here: command-line arguments reach the program in the ANSI code page.
--harness claude|codex|both
Which harness's agents to check. Default both. --tsv takes claude or both only.
--tsv
Print the team findings as tab-separated lines instead of the report.
--help
Print the usage and exit 0.
ENVIRONMENT
HOME
The user's home directory: ~/.claude (user skills and agents, settings, installed plugins), ~/.agents/skills, the default CODEX_HOME and the note's state file.
USERPROFILE, HOMEDRIVE, HOMEPATH
On Windows the home directory when HOME is not set: USERPROFILE, else HOMEDRIVE plus HOMEPATH.
CODEX_HOME
The Codex configuration directory. Default ~/.codex.
PWD
The project directory of a hook payload without cwd.
CLAUDE_PLUGIN_ROOT
Set by the harness for the plugin's hooks; the marketplace note reads from it which marketplace the plugin was installed from.
SEE ALSO
App::Briefing - what briefing does, and the library behind this command
App::Briefing::Team - the checks of
doctor --tsvhttps://github.com/Getty/briefing - the plugin: installation, platforms and status
SUPPORT
Issues
Please report bugs and feature requests at https://github.com/Getty/briefing/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)