Inspects, validates, and summarizes Stata-MCP audit evidence under .statamcp. Reports security blocks, tool runs, snapshot integrity, and generates an interactive HTML dashboard.
Ships in stata-toolbox. 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.
Read when SKILL.md points to them; scripts run unread.
Read Stata-MCP evidence without changing the source JSONL ledgers or snapshot
objects. Resolve every script and template relative to this skill directory,
while resolving the default evidence root from the user's current working
directory as <cwd>/.statamcp.
| User need | Script | Result |
|---|---|---|
| Check security blocks or warnings | scripts/security_audit.py | Security decisions, whether execution was prevented, risk types, and linkage state |
| Summarize project usage | scripts/analyze_audit.py | Neutral counts, observed period, tool mix, outcomes, snapshots, and limitations |
| Inspect recent records or one run | scripts/inspect_audit.py | Source-preserving records joined by exact run_id |
| Check evidence integrity | scripts/validate_audit.py | Lifecycle, timestamp, security-link, and full SHA-256 snapshot checks |
| Open an interactive view | scripts/render_audit_html.py | Standalone English HTML dashboard with linked ledgers and a movable time window |
Use the user's project directory as the command working directory. Example:
python /absolute/path/to/stata-audit/scripts/validate_audit.py .statamcp
All scripts accept an optional artifact-root argument and default to
./.statamcp. The text output is suitable for a quick review; add --json
when structured downstream analysis is useful.
run_id, not filename or time proximity.event == "blocked" with executed == false as a prevented call. A
normal blocked call is security evidence, not a script failure.security_event_ids to audit/security.jsonl and report missing or
inconsistent links.--show-paths for that case.Security review:
python scripts/security_audit.py .statamcp
python scripts/security_audit.py .statamcp --json
Project usage analysis:
python scripts/analyze_audit.py .statamcp
Inspect the latest records or reconstruct one exact run:
python scripts/inspect_audit.py .statamcp --limit 20
python scripts/inspect_audit.py .statamcp --run-id <exact-run-id> --json
Validate evidence:
python scripts/validate_audit.py .statamcp
Exit code 0 means no integrity error was found. Exit code 1 means the
evidence is missing, malformed, inconsistent, or failed a snapshot hash check.
Warnings remain visible but do not alone fail validation.
Render the combined dashboard or one tool view:
python scripts/render_audit_html.py .statamcp
python scripts/render_audit_html.py .statamcp --tool stata_do
The default output directory is:
<cwd>/.statamcp/reports/html/
Combined reports use YYYYMMDD-HHMM-audit.html. A filtered report uses the
tool name, for example YYYYMMDD-HHMM-stata_do.html. The renderer locates
assets/audit_dashboard.html from its own Python-file location, so it works
regardless of the user's current directory.
The dashboard derives its global start and end from the minimum and maximum
timestamps in the selected evidence. Its two Time position handles start at
those exact boundaries and control the visible chart start and end. Ordinary
text uses Times New Roman; tool names, run IDs, ledgers, hashes, and paths use a
monospace code font. Times are displayed as YYYY-MM-DD HH-MM with the viewer's
local time-zone name and UTC offset.
After rendering, report the exact generated path and ask whether the user wants
to open it. Open it only after the user agrees. Use the platform's normal local
file opener (open on macOS, xdg-open on Linux, or start on Windows).
State conclusions as measurements from recorded tool calls. Do not claim that the audit captures unrecorded thinking, manual Stata actions, authorship, or a continuous agent session. If evidence has parse errors, unsupported schema versions, unmatched lifecycle events, missing security links, or failed hashes, surface those limitations before summarizing behavior.
assets/audit_dashboard.html (opens in a new tab)scripts/analyze_audit.py (opens in a new tab)scripts/audit_common.py (opens in a new tab)scripts/inspect_audit.py (opens in a new tab)scripts/render_audit_html.py (opens in a new tab)scripts/security_audit.py (opens in a new tab)scripts/validate_audit.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
stata-mcp, audit, security-audit, evidence-validation, dashboard
/stata-toolbox:stata-auditfrom stata-toolbox
npx claudepluginhub sepinetam/mcp-for-stata --plugin stata-toolbox4 skills in this plugin
/diagnostic-dofileUse this skill when the user needs to inspect, audit, or diagnose the safety of a Stata do-file. Typical scenarios include: uncertainty about whether a .do file is safe; receiving a complete do-file from an unofficial source (not the Stata website, not a well-known academic institution or professor's official site); asking to check a batch of do-files; or requesting a read-only security/risk/portability diagnostic report. The skill does not modify the original file; it only emits a JSON report. Note that this is not a mandatory step for every do-file; run it only when a security review is warranted.
/stata-discoverUse this skill when you need to find Stata on the user's machine or configure `stata-mcp` to use it. `stata-discover` provides the workflow for discovering Stata executables and the official way to configure `stata-mcp`. If the user's computer has multiple Stata executables available, this skill also provides the version the user most likely wants to use./stata-skillA packaged Stata Runner skill via official MCP-for-Stata server including stata_do, ado_package_install, help, read_log and get_data_info tools. Use it when (1) need to execute Stata do-file; (2) missing ado-packages; (3) find code error caused by syntax in Stata; (4) want to read smcl and text format log file with rich text output; (5) first encounter a data file and want to understand its structure and content.
2 plugins ship this exact skill · first indexed Sep 20, 2026
Other plugins' skills for the same job