Skills for Real Engineers. Straight from my .agents directory.
agentwhy-session-audit
Agent skill fromdavepoon/buildwithclaude
Checks which private files (.env, keys, secrets) Claude Code and its subagents reached in this project, whether a value came into an agent's context, and which key to change, by running the open source agentwhy CLI over the session records Claude Code already keeps on disk. Use when the user asks whether the agent or a subagent read their .env or other secrets, which private files a session touched, whether a key leaked into the conversation, or which key to rotate. Runs locally and never prints a secret value.
How to install agentwhy-session-audit
npx skills add davepoon/buildwithclaude# or add only this skill to Claude Code: copy the folder
plugins/all-skills/skills/agentwhy-session-audit/
# into
~/.claude/skills/agentwhy-session-audit/ (all projects)
.claude/skills/agentwhy-session-audit/ (one project)
1# agentwhy session audit23[agentwhy](https://github.com/karolkozer/agentwhy) (Apache 2.0, npm `@agentwhy/cli`) reads the session records Claude4Code keeps on disk, including each subagent's own transcript, and says which private files were reached and how. It5works by fixed rules: no AI model, no account, no network request once the package is installed. Values are replaced6before the report is built, so its output names files, never their contents. It needs Node 22 or later.78By default it treats these as private: `.env*`, `*.env`, `.npmrc`, `secrets/`, `.ssh/`, `id_rsa*`.910Run every command below from the folder Claude Code was started in, the project root. If `command -v agentwhy` finds11it installed, use `agentwhy` in place of `npx -y @agentwhy/cli@0.4.1`. The first `npx` run downloads that pinned12version from npm; agentwhy never updates itself.1314Which command to run depends on what the user asked:1516- A question ("did an agent read my .env?", "which key do I change?", "did anything leak?"): run `check` (section 1)17 and answer it here.18- A request for the report ("show me the report", "open agentwhy", "what happened session by session"), or a19 question about Codex sessions: open the page (section 2).2021If either command answers that no sessions are stored for this directory, the user is in a different folder from the22one they worked in. Ask which folder it was and run it there.2324## 1. Answer a question: the short check2526```bash27npx -y @agentwhy/cli@0.4.1 check28```29…
Excerpt shown under the repository's MIT license.
More skills in buildwithclaude
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
