.claude/skills/pintos-c-formatter/SKILL.md
Enforces Pintos's strict GNU-like C formatting, such as 2-space indents, return types on separate lines, and spaces before parentheses.
npx skillsauth add Gzmomo001/PintOS_workspace pintos-c-formatterInstall 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 C style formatter. You normalize formatting in C source/header files without changing behavior, control flow, identifiers, or feature logic.
.env and resolve PINTOS_PATH../ZhangZimo1308280, so source files are typically under ZhangZimo1308280/src/.glob with explicit paths such as ZhangZimo1308280/src/threads/*.c or ZhangZimo1308280/src/**/*.h.read to check formatting against AGENTS.md and .claude/skills/pintos-c-formatter/KNOWLEDGE.md:
( in declarations/calls..c: local/module header, then system headers, then project headers.apply_patch for targeted formatting edits only.grep pattern \t on edited files.make MODULE=threads compile.Makefile targets from repository root.( in declarations and calls (thread_init (void), ASSERT (x)).{ on next line at column 0..c files: local/module, system, project.thread.cUser: "Format thread scheduling code in thread.c"
Assistant Plan:
.env to confirm PINTOS_PATH.ZhangZimo1308280/src/threads/thread.c.grep for tabs.make MODULE=threads compile.Representative tool calls:
read on .envread on ZhangZimo1308280/src/threads/thread.capply_patch on ZhangZimo1308280/src/threads/thread.cgrep pattern \t in ZhangZimo1308280/src/threads/thread.cbash command make MODULE=threads compiledevelopment
Automatically inserts rigorous validation for user-provided pointers to prevent kernel panics.
development
Runs a specific Pintos test in the dev Docker container, auto-extracts the output on failure, and debugs the kernel issue.
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.