From agent-system
Pre-modification safety checklist for any Luau file. Verifies backups, brain entries, remote safety, UI init, and loop safety before touching code.
npx claudepluginhub nanana291/agent-system --plugin agent-systemThis skill uses the workspace's default tool permissions.
Use this skill **before modifying any Luau file**. It is a checklist that must pass before code changes begin.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Automates semantic versioning and release workflow for Claude Code plugins: bumps versions in package.json, marketplace.json, plugin.json; verifies builds; creates git tags, GitHub releases, changelogs.
Use this skill before modifying any Luau file. It is a checklist that must pass before code changes begin.
Run these checks in order. Each check is PASS, WARN, or BLOCK.
Check: Is there a backup or baseline of the target file?
docs/metrics/snapshots/ or Feature Baselines/)Action on BLOCK: Run backup or capture the file checksum before proceeding.
Check: Are there relevant brain entries for this script or game?
Run: brain search <game-name> and brain search <file-basename>
Action on BLOCK: Query broader patterns (brain search remote-safety, brain search v2-migration) before proceeding.
Check: Does the file have remote calls?
Search for: FireServer, InvokeServer, FireClient, InvokeClient, FireAllClients
pcall or pcallRefAction on BLOCK: Apply the pcallRef Loop Wrapper pattern from luau-pattern-lib before any modification.
Check: Does the script reference Character, HumanoidRootPart, or Humanoid?
CharacterAdded connection exists and loops validate root partAction on BLOCK: Apply the Character Respawn Rebind pattern from luau-pattern-lib.
Check: Does the script have while true do, while task.wait(), or repeat loops?
task.wait() with a controlled interval and have exit conditionstask.wait() but interval is very low (<0.1)task.wait() or no exit conditionAction on BLOCK: Add task.wait(interval) and a kill signal pattern (see Thread Management in luau-pattern-lib).
Check: Does the script use LibSixtyTen, Obsidian, or another UI framework?
Action on BLOCK: Add library loading with fallback before any UI code.
Check: Does the script use Dashboard or ImpHub status system?
Action on BLOCK: Move Dashboard init to the top of the feature wiring section.
Check: Does the script have >15 local declaration lines?
Action on BLOCK: Apply the Local Consolidation pattern from luau-pattern-lib.
Emit a safety report:
[LUAU SAFETY CHECK] <filename>
─────────────────────────────────
Backup: PASS / WARN / BLOCK
Brain entries: PASS / WARN / BLOCK
Remote safety: PASS / WARN / BLOCK
Character life: PASS / WARN / BLOCK
Loop safety: PASS / WARN / BLOCK
UI framework: PASS / WARN / BLOCK / N/A
Dashboard init: PASS / WARN / BLOCK / N/A
Local pressure: PASS / WARN / BLOCK
Verdict: SAFE_TO_MODIFY / NEEDS_FIXES / BLOCKED
─────────────────────────────────
Blocked checks: <list or "none">
Required patterns: <list or "none">
When a BLOCK is found, apply the corresponding pattern from luau-pattern-lib:
| BLOCK Check | Pattern to Apply |
|---|---|
| Remote safety | pcallRef Loop Wrapper (#3) |
| Character lifecycle | Character Respawn Rebind (#2) |
| Loop safety | Thread Management (#7) + pcallRef (#3) |
| UI framework init | LibSixtyTen Section Adapter (#4) |
| Local pressure | Local Consolidation (#5) |