skills/devel/test-and-log/SKILL.md
Test a target (script, demo, pipeline, CLI command, integration) without modifying any source code, then write a structured log of the process, outcomes, anomalies, and issues. Use when the user says "test X and log", "run X and document findings", or "try X without changing code". Default log location is context/logs/TIMESTAMP-task-name/TIMESTAMP.md.
npx skillsauth add igamenovoer/magic-context test-and-logInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run a test target, capture every step's outcome, and write a structured log. Never modify source code.
This skill must be invoked explicitly by name (e.g., $test-and-log). It will not trigger automatically from context.
Example prompts:
$test-and-log scripts/demo/cao-interactive-full-pipeline-demo$test-and-log — run the cao-claude-session demo and log any issues to context/logs$test-and-log pixi run test-runtime, log results to tmp/test-logs$test-and-log the gemini-headless-session demo without touching any codeCollect before starting:
| Parameter | Default | Notes |
|---|---|---|
| Subject | (required) | What to test — command, script, demo path, etc. |
| Log dir | context/logs/ | Root directory for log output |
| Task name | Derived from subject | Kebab-case slug for directory name |
Derive <ts> from the moment the run starts: YYYYMMDD-HHMMSS (UTC).
Full log path: <log-dir>/<ts>-<task-name>/<ts>.md
Before running anything, verify all stated prerequisites of the subject. Record each check result in the log's Environment section. If a prerequisite is missing, record it and decide (with the user if interactive) whether to abort or proceed with a caveat.
Execute each step of the subject in sequence. For each step:
After all steps complete, review the captured outputs for:
For each issue, record: what happened, where in the run it occurred, relevant output excerpt, and interpretation if known.
Create the log file at the derived path. Fill in the template from references/log-template.md. Key rules:
[…])This skill is strictly read-and-run. If a failure or anomaly is discovered, document it in the log and stop. Do not attempt to fix, patch, or work around issues in source files.
data-ai
Create readable Mermaid diagrams inside Markdown files. Use for flowcharts and sequence diagrams that must render cleanly in common Markdown renderers (e.g., GitHub) without horizontal scrolling. Covers fenced mermaid blocks, init/theme styling, label wrapping with <br/>, and sequenceDiagram layout rules (short IDs, wrapped labels, don’t break identifiers).
development
Manual invocation only; use only when the user explicitly requests `make-program-tutorial` by exact name, OR when the user asks to use a skill to create an SDK/API/library tutorial. Create a clear, reproducible, step-by-step tutorial for a specific API/SDK/library (or a set of functions/classes), with runnable examples, expected outputs, and basic troubleshooting.
testing
Use when the user wants to create a self-hosted, offline-installable Conda channel (mirror) containing a specific subset of packages using Pixi.
tools
Guides the agent to setup a new or existing Pixi environment for compiling C++ and CUDA code. It ensures the correct compilers, toolkits, and CMake configurations are in place for a robust user-space build.