Skip to content
Back to skills

Check

ASecurity

Run the full validation gate for the Screeps Rust bot (fmt, clippy native and wasm, native tests, doc-sync, purity, release wasm build, size, TypeScript typecheck, bundle) and report each result honestly. Use after any code change and before closing a module or phase.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentstypescriptrustgobashawsgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 23, 2026

npx -y skills add jabbott-iii/rustedscreep --skill check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jabbott-iii-check/badge)](https://www.skillsdirectory.com/skills/jabbott-iii-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: check
description: Run the full validation gate for the Screeps Rust bot (fmt, clippy native and wasm, native tests, doc-sync, purity, release wasm build, size, TypeScript typecheck, bundle) and report each result honestly. Use after any code change and before closing a module or phase.
allowed-tools: Bash(cargo fmt *), Bash(cargo clippy *), Bash(cargo test *), Bash(cargo build *), Bash(cargo tree *), Bash(npm run build *), Bash(npm run check *), Bash(npm run size *), Bash(npx tsc *), Bash(git status *), Bash(git diff *), Bash(ls *), Bash(wc *)
---

# /check

Run these in order. Do not stop at the first failure, because the user wants the full picture. If a command doesn't exist yet
(before the P1 scaffolding of the build pipeline and loader), report it as `n/a (not created yet)`, never as a pass.

| # | Check | Command |
|---|---|---|
| 1 | Format | `cargo fmt --all -- --check` |
| 2 | Clippy, native | `cargo clippy -p rustedscreep-core -p rustedscreep-consts --all-targets -- -D warnings` |
| 3 | Clippy, wasm | `cargo clippy -p rustedscreep-wasm --target wasm32-unknown-unknown -- -D warnings`, then the same with `--all-features`, so the feature-gated `trap-test`, `act-test`, and `profiler` code is linted too (wasm is WebAssembly, the format the bot compiles to) |
| 4 | Native tests (includes the TUNING doc-sync test and the consts tests) | `cargo test -p rustedscreep-core -p rustedscreep-consts` |
| 5 | Purity: no JS crates in pure crates | `cargo tree -p rustedscreep-core -e normal --prefix depth` must not contain `wasm-bindgen`, `js-sys`, or `web-sys` outside the `rustedscreep-consts` subtree, which architecture decision record ADR-005 allows to pull in `screeps-game-api` (guard-purity.mjs covers the facade's own boundary). |
| 6 | Tool tests | `npm run test` |
| 7 | Release build + bundle + smoke | `npm run build`; it ends by running `dist/main.js` in a Screeps-like sandbox for a few ticks, or game turns (`js/tools/smoke.mjs`) |
| 8 | TypeScript | `npx tsc --noEmit -p js` (after the build, which generates the glue, wasm-bindgen's JS bindings, that it type-checks against) |
| 9 | Sizes | `npm run size` prints the build ID, the `.wasm` and `main.js` sizes in `dist/`, each wasm text part's size (ADR-028 splits the wasm's base64 across several modules, so none exceeds the cap below), the upload estimate against the V76 budget (a staff post gives 2 MB for all modules, binary ones counted as base64; the check holds `JSON.stringify(modules)` to 2 MiB, 2097152 characters, until the MMO's limit is measured), and the largest module file against the 905709-byte cap of V257 (the largest module the GitHub link, the account's sync from this repository, has delivered intact; a module above it fails the row). Report those plus the delta against the last values in STATUS.md, computed by hand. |
| 10 | Trap recovery (sandbox) | run by `npm run check` (`js/tools/trap-sim.mjs`): builds two trap-test variants and runs 10 forced traps (WebAssembly runtime aborts) through each ADR-003 recovery mode (halt, or re-instantiate from the cached module), then one trap after a `Memory` that did not parse at boot was reset to `{}`, which must halt (ADR-019) |
| 11 | Act layer (sandbox) | run by `npm run check` (`js/tools/act-sim.mjs`): builds the act-test variant and checks every intent call (a game method that orders an action), its arguments, the return classification, and `rustedscreep.act()` against the scripted producer |
| 12 | Profiler (sandbox) | run by `npm run check` (`js/tools/profiler-sim.mjs`): builds the profiler variant and runs it through six 1000-loop windows, checking the cold loop (a global's first loop), the stats segment's (a persistent RawMemory string's) writes and layout under the driver's save rules, four guarded write failures, and `rustedscreep.profiler()` |
| 13 | Persistence (sandbox) | run by `npm run check` (`js/tools/persist-sim.mjs`): the plain build's self-test round trips, corrupt segments, console overrides of the active set, the save cap, and `rustedscreep.persist()` |
| 14 | Runtime config (sandbox) | run by `npm run check` (`js/tools/config-sim.mjs`): the plain build's overrides across four globals (successive JS global contexts, as after global resets): refusals, clamps, the stored record, the log level, the naive structure toggle, a corrupt record, the console clear, and the naive guard's two stops (ADR-022: the bot ends a naive window, its caches off for a baseline, at a configured length or bucket level) |
| 15 | Constants self-check (sandbox) | run by `npm run check` (`js/tools/consts-sim.mjs`): the plain build against the engine fixture: the read path, drift, the line cap, no constants, a low bucket (the game's store of unused CPU) |
| 16 | Movement (sandbox) | run by `npm run check` (`js/tools/move-sim.mjs`): the plain build in a room whose wall gaps hold walkable and blocking ramparts (defensive structures), a wall, and a construction site: terrain read once, scans at the interval, a console move order walked with engine-valid moves only and through the walkable gaps only, the order ending, a second one canceled |
| 17 | Routes (sandbox) | run by `npm run check` (`js/tools/route-sim.mjs`): the plain build in four rooms with a PathFinder (the game's path search) model: a console order from another room walked across two room edges on one search, the novice room (in a walled start area for new players) blocked by the room callback, the bot's grid as the CostMatrix, a search that throws caught and cached |
| 18 | Spawn path (sandbox) | run by `npm run check` (`js/tools/spawn-sim.mjs`): the plain build in a room with two spawns (the structures that build creeps, the player's units): no call without a request or energy, the lower id first, the body as one part array and the encoded name, a refused call holding its spawn while the other takes the request, no clock read while no request can be served, a cleared request after OK, a dropped order's request standing again, the console's replies and the spawner summaries, each spawned creep's `Memory.creeps` entry deleted (ADR-018), a `Memory` that does not parse reset to `{}` with one notification (ADR-019) |
| 19 | Opening (sandbox) | run by `npm run check` (`js/tools/opening-sim.mjs`): the plain build from zero creeps in an RCL1 (room controller level 1) room with one spawn and one source, the harness playing the engine (spawning, harvest, transfer, upgrade, build, pickup, withdraw, moves and fatigue, the source's regeneration, the level-up, site creation): the first spawnCreep on the first loop with one worker pattern and the encoded name, worker calls only on the right targets and all OK, no `Memory.creeps` entry left, a recovery start and end and nothing else in the log, level 2, the extension sites of ADR-020 (interim extension placement from RCL2, before the base planner) on legal tiles and the first one built, a pile (dropped resources) and a tombstone (a dead creep's remains) emptied, `rustedscreep.opening()` matching the harness's counts |
| 20 | Links (sandbox) | run by `npm run check` (`js/tools/link-sim.mjs`): the plain build in an RCL5 room with a source link (links are structures that send energy to each other) next to a forced mining tile and a controller link, a miner with one CARRY (a body part that holds resources) and an empty worker, the harness playing the engine (V216 to V220: transferEnergy's game-side checks at the tick's start, the link processor's clamp, loss, and cooldown, creep intents in creepActions order): the snapshot's link reads (cooldown only while a link holds energy), the miner's transfer exactly when its store would overflow, the source link's sends exactly when the network allows with the right target and an explicit amount (none during the cooldown), the worker's withdraws, `rustedscreep.opening()`'s link fragments matching the harness's counts, no fault or refusal line |
| 21 | Planner (sandbox) | run by `npm run check` (`js/tools/planner-sim.mjs`): the plain build in E7N57 as it stands at RCL4: the plan in the Optional tier (the CPU tier that runs only above bucket thresholds), road sites only while storage and towers are off, then with `planner.storage` and `planner.towers` on the destroy of the ADR-020 extension on each one's tile and its site, the CPU per planner step; then two more globals: the record of ADR-027 (each room's persisted plan anchor and role tiles) loaded and used, a corrupted one refused (P4.3, the planner's site placement; ADR-026: destroy only off-plan blockers, place only what the bot uses) |
| 22 | Split wasm (sandbox) | run by `npm run check` (`js/tools/split-sim.mjs`): the plain build with its base64 cut into three parts (ADR-028): the boot from them (`in 3 parts`, a matching CRC-32) with a stale fourth part beside them never required; each part delivered empty, as 5217308's module was (V257), a load incident naming the part (part 0 with the live failure's text), nothing compiled and the backoff after three; part 1 missing, parts 2 and 0 cut short and part 0 padded in its last group each an incident naming the part |
| 23 | Remote mining (sandbox) | run by `npm run check` (`js/tools/remote-sim.mjs`): the plain build with an owned RCL5 home and a neutral neighbor (a remote room, one the bot mines without owning it, ADR-029) where a scout, a reserver and a remote hauler of the home stand: the snapshot's remote-room reads on every loop (the controller's `reservation`, `FIND_HOSTILE_STRUCTURES`, the room objects), the roads only on ticks divisible by `remote.road_read_ticks`, the bot's username once a global; `rustedscreep.remote()` before and after the room is mined; the scout's one `suicide` once the room's ways are searched; the reserver's `reserveController` calls next to the controller only while `ticksToEnd` plus its CLAIM parts stays within `CONTROLLER_RESERVE_MAX` (V264), again within a few ticks of a global reset; one container site next to each source, never repeated while it stands; P6.3's threat path after the reset: an unarmed hostile changes nothing, an armed one (two `getActiveBodyparts` calls a hostile a loop, only in the mined room) starts one warn line naming its owner (read on that loop only), the reserver and hauler walk home and wait within 5 of the spawn with no work, and once `remote.evacuate_ticks` after the last sight has passed one info line and the reserver reserves again |
| 24 | Controller signer (sandbox) | run by `npm run check` (`js/tools/sign-sim.mjs`): the plain build with an owned RCL3 home (the controller signer of ADR-030 waits for `sign.min_level` 3) and its three neighbors within `sign.max_distance` 1, set through a config record before the first global: one unsigned, one with the server's sign (V275), one of another room status (V168). Segment 95 (the signer's record) requested only once the config overrides have loaded, written at most once per `sign.save_ticks`, and loaded again after a global reset; exactly one signer spawned (one MOVE part, 50 energy); `signController` with the exact text once on each signable controller, from range 1 (V274, V275), and never on the server's sign or in the closed room; the `sign` and tower reads only in the room the signer stands in; no PathFinder search into the closed room and no terrain read; the signer's `suicide` once nothing is left in reach; `rustedscreep.sign()` before and after; no spawn in the second global |
| 25 | Threat assessment (sandbox) | run by `npm run check` (`js/tools/defense-sim.mjs`): the plain build in the smoke test's world, with the owned room's hostile creeps scripted (P7.1, threat assessment): `defense.threat_end_ticks` and `defense.threat_log_ticks` set from the console; each hostile's `hits` read once a loop in the owned room, its `body` with `type` and `boost` once a part (V289) on its first loop there, kept through a visible neutral room and read again after another player's room at the lab level (V290, V291), and a compound string the crate does not know read as no boost, with no trap; a scout opens no threat; a boosted attacker logs one start line whose figures follow the constants (the powers, `BOOSTS`, the boosted TOUGH saving, V287); a second attacker inside the log window waits for one change line; a short step out of the room keeps the threat open, and a return with the same counts logs nothing; one end line `defense.threat_end_ticks` after the last sight; `owner` read only on a start or change loop, for the dangerous hostiles, or for the towers' new target; P7.2's tower: one `attack` a loop on the focus target (the scout while alone, the boosted attacker from its first loop, kept against the second, the scout again while they are out), a "towers fire" line per new target with figures from the constants, then `heal` on a damaged own creep while the threat stays open |

`npm run check` runs all of these at once (`js/tools/check.mjs`). Still report each row separately.

## Report
A table: # | check | result (pass / FAIL / n/a) | key output (first relevant error lines, or the counts).
Then one line: "All checks passed" **only** if every row is a pass. Otherwise "N checks failed / M not run", followed by the root-cause
hypothesis for each failure. Never weaken a lint, a test, or `-D warnings` to make this pass.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.