/all-skills:agentwhy-session-auditfrom all-skills
Audits which private files (.env, keys, secrets) Claude Code and its subagents accessed during a session, using the agentwhy CLI. Helps detect leaked secrets and identify keys to rotate.
Ships in all-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
agentwhy (Apache 2.0, npm @agentwhy/cli) reads the session records Claude
Code keeps on disk, including each subagent's own transcript, and says which private files were reached and how. It
works by fixed rules: no AI model, no account, no network request once the package is installed. Values are replaced
before the report is built, so its output names files, never their contents. It needs Node 22 or later.
By default it treats these as private: .env*, *.env, .npmrc, secrets/, .ssh/, id_rsa*.
Run every command below from the folder Claude Code was started in, the project root. If command -v agentwhy finds
it installed, use agentwhy in place of npx -y @agentwhy/[email protected]. The first npx run downloads that pinned
version from npm; agentwhy never updates itself.
Which command to run depends on what the user asked:
check (section 1)
and answer it here.If either command answers that no sessions are stored for this directory, the user is in a different folder from the one they worked in. Ask which folder it was and run it there.
npx -y @agentwhy/[email protected] check
It covers Claude Code sessions (Codex's are on the page), writes nothing, and exits 0 whatever it found. Options:
--since 30d or --since 2026-09-01 for another range, --full for who reached each file, the task that led there
and the rule that would close the route, --share for paths relative to the project root.
It prints one line per file, the strongest finding first:
| Label | Meaning | What to tell the user |
|---|---|---|
ROTATE | a value from this file was in an agent's context | Change that key at the service that issued it. Deleting the conversation does not undo it. |
CHECK | the same, for a file named as a template | Ask whether the values in it are real or placeholders. |
UNKNOWN | a call named the file and its outcome was not recorded | Say plainly that the record does not show whether it was read. |
REACHED | a call opened the file and nothing refused the call | Say which file; run --full if the user wants the task and the command. |
IN RESULT | the file's path appeared in what a command printed (a listing, or a recursive search such as grep -r); no call named the file | Say the path appeared in a command's output. Do not say whether its contents did: check --full and the page show which command it was. A deny rule on the file name does not catch this route; init --refuse refuses a recursive search that would read one. |
"Nothing to act on" means no protected file was reached in that range, under the rules the check names in the same
line. Answer with what the lines say and no more: a file not listed was not reached under those rules, and a file
listed without ROTATE is not a sign that no value moved, only that agentwhy did not see one.
Say that the answer comes from agentwhy and name the command you ran, so the user knows what checked and can run it
again in a terminal: "agentwhy checked the 2 Claude Code sessions of this project from the last 7 days
(agentwhy check)". End by pointing to agentwhy check --full and to agentwhy's page (section 2) for the detail.
npx -y @agentwhy/[email protected] start --detach --quiet
It reads the project's sessions from the last 7 days, Claude Code's and Codex's, serves the page from 127.0.0.1 in the background, opens it in the browser and prints only where the page is. Tell the user the page is open and where. The detail is on the page, for the user to read.
A permission prompt the user declines, or auto mode blocking a package download, means the check did not run. Do not look for another way to run it, and do not answer the question. Tell the user it did not run and give them two ways:
! npx @agentwhy/[email protected] check in this chat (or ! npx @agentwhy/[email protected] start --detach for the
page), which runs it as their own command and puts its output here;"Bash(npx -y @agentwhy/[email protected] check)" or
"Bash(npx -y @agentwhy/[email protected] start --detach --quiet)" to permissions.allow in
.claude/settings.local.json, then ask again. Keep the rule exact, with no *: auto mode drops broad
package-runner rules.~/.claude/projects/ yourself, with a script or otherwise, as a substitute
for agentwhy. A hand-made pass sees which files a call named, but not a value printed by a search that named no
file, which is the route that matters most, and a record printed into the conversation can carry the very value
being checked for.npx -y @agentwhy/[email protected] check --mark rotated <path>, optionally with --note "<what was done>". Use not-secret
instead of rotated for a template whose values are placeholders. Never mark a line the user has not confirmed.
--unmark <path> undoes a mark.agentwhy init (or npx @agentwhy/[email protected] init when it is not installed) adds rules that refuse the obvious reads of
private files, and a one-line notice in the chat
when a secret gets into the conversation. By default it writes to .claude/settings.local.json, which stays out of
the repository. Suggest it; do not run it for the user. At a terminal it shows what it will write and asks first,
which is how the user should see it.
Say the limit with it: this is not a sandbox. The rules match tool calls and command text, so a script or a path built while a command runs can still get through. That is why the report is the main part.
docs/detection.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub davepoon/buildwithclaude --plugin all-skills256 skills in this plugin
/activecampaign-automationAutomate ActiveCampaign tasks via Rube MCP (Composio): manage contacts, tags, list subscriptions, automation enrollment, and tasks. Always search tools first for current schemas./ad-angle-researchPull the ads a competitor is running right now on Meta (Facebook/Instagram) and Google, then extract the hooks, offers, CTAs and landing pages worth modelling. Use when writing ad copy, planning creative tests, choosing a landing page angle, or when the user asks "what is X advertising", "what ads does X run", "find competitor ad hooks". Reads live Ad Library and Ads Transparency data through the Tracetify MCP; falls back to a manual Ad Library walkthrough when the connector is absent./Other plugins' skills for the same job