spwnr-worker-audit
Use for /spwnr-worker-audit. Inspect registry readiness and current Claude agent availability for general-task workflows.
Spwnr Worker Audit
Use this skill to audit whether the Spwnr registry can dynamically resolve a usable agent lineup from the local registry.
This skill is the shared source of truth for dynamic registry readiness plus install or inject guidance.
It is a health-check and recovery surface, not a prerequisite step for /spwnr-task, which performs its own registry resolution during normal execution.
Required Checks
- Check whether
.claude-plugin/workers.jsonexists. - If it exists, read
.claude-plugin/workers.jsonwithRead. If it does not exist, treat the project as using the default dynamic worker policy. - Confirm the worker policy is in dynamic mode. Missing config still means dynamic mode is active by default.
- Check project-scoped agents under
.claude/agents/. - Check user-scoped agents under
~/.claude/agents/. - Determine whether
spwnris available directly. - If
spwnris not available directly, tell the user to install the publishedspwnr-clipackage before continuing. Do not redirect them to local development commands. - Check whether
vendor/spwnr-registryexists in the current repository. - Inspect the local Spwnr registry and determine whether published packages exist at all, and whether dynamic resolution is likely usable.
Dynamic Readiness Rules
- Treat the local Spwnr registry as the runtime source of truth.
- Treat a missing
.claude-plugin/workers.jsonas the built-in default dynamic policy, not as an unconfigured or disabled state. - Do not assume vendored templates are usable until they have been synced into the local registry.
- Report already-injected project and user agents as current availability, not as the selection source of truth.
- If the vendored registry exists but the local registry looks sparse or empty, call out that
sync-registryis likely needed. - If
/spwnr-taskreported a registry gap, frame this command as the required recovery step before the task should continue. - Do not silently invent a fallback agent lineup.
Reporting Format
Use these sections:
Worker PolicyLocal RegistryInjected AgentsReadiness GapsInstall SuggestionsRecommended Next Step
Install Suggestions
When the local registry is missing usable packages, prefer these exact commands:
- sync vendored community templates into the local registry
spwnr sync-registry
- preview registry candidates for a task
spwnr resolve-workers --search "<search query>" --host claude_code --format json
When a specific agent must be present immediately in Claude Code, prefer:
- user scope
spwnr inject <name> --host claude_code --scope user
- repo scope
spwnr inject <name> --host claude_code --scope project
Rules
- Report whether dynamic selection is enabled and quote the key policy fields.
- If
.claude-plugin/workers.jsonis absent, explicitly say that dynamic selection is still enabled by default and note that the built-in defaults areregistrySource=local,selectionMethod=llm_choose,missingPolicy=auto_install_local, and lineup1-4. - Report whether the local registry has enough published packages to support a useful candidate pool.
- Report whether vendored registry content exists but still needs syncing.
- If all readiness conditions are satisfied, say that the registry audit path is healthy and remind the user that
/spwnr-taskcan resolve its lineup directly. - If
/spwnr-taskis blocked, explicitly say that the user should install or inject the missing agents first, then return to the same active revision and rerun/spwnr-task. - If a task brief is explicitly provided, you may suggest using
resolve-workersto preview likely candidates, but do not mutate state from this skill.