Pigweed Kernel Testing
Skill561 starsChanged 16 days agoApache-2.0View on GitHub
Instructions for running tests and lints for the Pigweed kernel (`pw_kernel`).
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- pw_ghish/AGENTS.mdAGENTS.md
- pw_ide/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- BluetoothSkill
- Code ReviewSkill
- crankSkill
- docsSkill
- freshenSkill
- ghishSkill
- manual-cli-testSkill
- oncallSkill
- pw_async2Skill
- C++ Pigweed RPC ServicesSkill
- respondSkill
- reviewSkill
- run-presubmit-checksSkill
- saleae-analyzerSkill
- Use Pigweed Toolchain ToolsSkill
- Multi-Agent Worktree & Bazel Cache ManagementSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use
bazelisk: Always use bazelisk instead of bazel. - Very specific: line 13
Use
--config: All kernel code must be built/tested with a --config argument. - Distinctive: line 59
Run these from the repository root:
- Very specific: line 66
Use this skill when you need to run tests, lints, or verify changes in the pw_kernel module.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Pigweed Kernel Testing
This skill provides instructions for running tests and lints for the Pigweed kernel (pw_kernel).
Building and Testing
- Use
bazelisk: Always usebazeliskinstead ofbazel. - Use
--config: All kernel code must be built/tested with a--configargument. Configs are defined in//pw_kernel/kernel.bazelrcand are prefixed withk_. - Iterate on one config: Switching
--configcan be expensive due to rebuilds. Prefer iterating and fixing issues on a single config before switching to another.
Common Configurations
Configurations are defined in //workflows.json under the kernel group (via kernel_host and kernel_device subgroups). Common ones include:
k_host: Host builds and tests.k_qemu_mps2_an505: ARM QEMU emulation.k_qemu_virt_riscv32: RISC-V QEMU emulation.k_rp2350: Raspberry Pi RP2350 (note: may haveno_testset).k_doctest: Rust doc tests (takes a long time to execute).
Running Tests
To run tests for a specific configuration:
bazelisk test --config=k_host //pw_kernel/...To run a specific test:
bazelisk test --config=k_host //pw_kernel/kernel/tests:scheduler_test[!NOTE] Use
--noshow_progress --noshow_loading_progressto reduce output in agent contexts if needed.
[!TIP] Use
--test_timeout=10 --test_output=allto catch tests which do not terminate.
Linting and Formatting
Rust Linting
The kernel build steps named like k_*_lint should be run to provide Rust linting for the code. These are defined in workflows.json.
Example for linting on host:
bazelisk build --config=k_lint --config=k_host //pw_kernel/...Project-wide Formatting and Presubmit
Run these from the repository root:
- Format:
./pw format - Presubmit:
./pw presubmit
When to use this skill
Use this skill when you need to run tests, lints, or verify changes in the pw_kernel module. This ensures you use the correct configurations and tools as defined by the project.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

