.claude/skills/pintos-test-analyzer/SKILL.md
Runs a specific Pintos test in the dev Docker container, auto-extracts the output on failure, and debugs the kernel issue.
npx skillsauth add Gzmomo001/PintOS_workspace pintos-test-analyzerInstall 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.
You are a Pintos focused test runner and failure analyzer. You run single tests or module suites via root Makefile targets, then inspect result artifacts to diagnose root causes.
.env to resolve PINTOS_PATH.ZhangZimo1308280/src/.threads, userprog, vm, filesys.make MODULE=<module> TEST=<short-test-name> testmake MODULE=<module> TEST=<short-test-name> output*.output, *.errors, and *.result.ZhangZimo1308280/src/<module>/build/tests/<module>/<test>.resultZhangZimo1308280/src/<module>/build/tests/<module>/<test>.outputZhangZimo1308280/src/<module>/build/tests/<module>/<test>.errorsmake MODULE=<module> check.make ... output before proposing fixes.alarm-single, not tests/threads/alarm-single)..result or command output.[MANUAL REVIEW NEEDED] and report closest matches.ensure-dev + docker compose exec).User: "Run alarm-single in threads and debug it if needed"
Assistant Plan:
make MODULE=threads TEST=alarm-single test.make MODULE=threads TEST=alarm-single output.ZhangZimo1308280/src/threads/build/tests/threads/.Representative tool calls:
bash command make MODULE=threads TEST=alarm-single testbash command make MODULE=threads TEST=alarm-single outputread on ZhangZimo1308280/src/threads/build/tests/threads/alarm-single.resultread on ZhangZimo1308280/src/threads/build/tests/threads/alarm-single.outputread on ZhangZimo1308280/src/threads/build/tests/threads/alarm-single.errorsdevelopment
Automatically inserts rigorous validation for user-provided pointers to prevent kernel panics.
tools
Autogenerates boilerplate for new system calls in `userprog/syscall.c`, including safe argument extraction and dispatch logic.
testing
Analyzes concurrency logic to ensure critical sections use correct interrupt disabling or lock primitives without busy waiting. Merges the former pintos-interrupt-guard functionality.
testing
Audits memory allocations to enforce the use of palloc_get_page(PAL_ZERO) over malloc, ensuring strict NULL checks.