Save evidence to /tmp structure
Archives testing methodology, evidence summaries, and artifacts to timestamped /tmp directories.
/plugin marketplace add jleechanorg/claude-commands/plugin install claude-commands@claude-commands-marketplaceWhen this command is invoked, YOU (Claude) must execute these steps immediately. This is NOT documentation β run every step below.
/savetmp command exactly as documented to store everything under /tmp/<repo>/<branch>/<work>/.Purpose: Capture testing methodology, evidence summaries, and supporting artifacts in a predictable /tmp evidence package scoped by repo β branch β work item.
Usage: /savetmp <work_name> [options]
Primary Script: .claude/commands/savetmp.py
Running /savetmp creates a directory using this structure:
/tmp/<repo_name>/<branch>/<work_name>/<timestamp>/
βββ methodology.md # Testing methodology details (if provided)
βββ evidence.md # Evidence summary
βββ notes.md # Extra context / TODOs
βββ artifacts/ # Copied files/directories passed via --artifact
βββ metadata.json # Machine-readable summary of the run
βββ README.md # Quick overview + artifact list
<repo_name> is derived from the git root (fallback: current directory name).<branch> comes from git rev-parse --abbrev-ref HEAD (fallback: detached).<work_name> is provided when invoking the command (e.g., sidebar-regression-2025-01-15).<timestamp> is in UTC (YYYYMMDDTHHMMSSZ) to keep multiple runs without collision.python .claude/commands/savetmp.py "<work_name>" \
--methodology "<short description>" \
--methodology-file <path/to/detailed-methodology.md> \
--evidence "<evidence summary>" \
--evidence-file <path/to/evidence-details.md> \
--notes "<follow-up notes>" \
--notes-file <path/to/extra-notes.txt> \
--artifact <path/to/file-or-directory> \
--artifact <path/to/another-artifact>
| Flag | Description |
|---|---|
--methodology | Inline description of the testing methodology used. |
--methodology-file | Append contents of a file (e.g., generated test plan). |
--evidence | Summary of results or notable findings. |
--evidence-file | Append detailed evidence from a file. |
--notes | Additional notes, TODOs, or observations. |
--notes-file | Append extra context from a file. |
--artifact | Copy a file or directory into artifacts/. Use multiple times for multiple artifacts. |
--*-file flags are optional; missing files are skipped with a warning.cat <<'EOF' > /tmp/methodology.txt
- Ran npm test -- --run
- Executed browser MCP scenario: conversation-management-flow-test.md
- Verified sidebar toggle in both modes manually
EOF
cat <<'EOF' > /tmp/evidence.txt
- Vitest suite: 101/101 passing
- Browser MCP artifacts saved under ./testing_llm/evidence/convo/
- No console errors observed
EOF
/tmp/run_logs/convo/, testing_llm/evidence/convo/sidebar/python .claude/commands/savetmp.py "conversation-regression-jan15" \
--methodology-file /tmp/methodology.txt \
--evidence-file /tmp/evidence.txt \
--notes "Ready for PR evidence upload" \
--artifact /tmp/run_logs/convo \
--artifact testing_llm/evidence/convo/sidebar
0 and prints β
Evidence archived.metadata.json contains the repo, branch, work name, and artifact list.README.md enumerates any saved sections (methodology/evidence/notes).artifacts/ with expected filenames./tmp/<repo>/<branch>/<work_name>/.If any step fails, capture stderr/stdout and re-run after fixing inputs.
/savetmp with the same work_name; a new timestamped subdirectory is created.--artifact (artifacts are only copied when provided).Evidence stays under /tmp; remove stale runs if needed:
rm -rf /tmp/<repo>/<branch>/<work_name>/<timestamp>
(Only delete directories you created; never touch shared evidence owned by other engineers without confirmation.)