From backend-factory
Run 'what-if' failure scenarios to see how the architecture handles failures
npx claudepluginhub randyquaye/backend-come-alive --plugin backend-factoryThis skill is limited to using the following tools:
Run a predefined failure scenario against the current architecture to visualize how the system behaves under stress.
Triggers research for existing libraries, tools, and patterns before coding new features. Searches npm, PyPI, MCP/skills, GitHub; evaluates matches and decides adopt/extend/build.
Audits cross-stack repos (C++/Android/iOS/Web), classifies files as project/third-party/artifacts, detects embedded libraries, assigns module verdicts, generates interactive HTML reports.
Reorganizes X and LinkedIn networks: review-first pruning of low-value follows, priority-based add/follow recommendations, and drafts warm outreach in user's voice.
Share bugs, ideas, or general feedback.
Run a predefined failure scenario against the current architecture to visualize how the system behaves under stress.
curl -s http://localhost:7777/api/status
If the server is not running, tell the user to run /backend-factory:start first.
Parse the scenario name from $ARGUMENTS. Valid scenarios:
| Scenario | Description |
|---|---|
db-failure | Database goes offline |
cache-down | Cache layer fails |
high-traffic | 10x traffic spike |
auth-breach | Unauthorized intrusion attempt |
cascade-failure | Critical node failure propagates downstream |
slow-dependency | External API becomes slow |
If $ARGUMENTS is empty or not recognized, list all scenarios and ask the user to pick one.
If $ARGUMENTS is stop or reset, POST the original architecture back (without scenario_mode) and exit.
ARCH_JSON=$(curl -s http://localhost:7777/api/architecture)
For complete scenario definitions and modification rules, see scenarios-reference.md.
Each scenario modifies the architecture JSON by:
metadata.status fieldserror_at and error_message to affected actions"down", routes hitting DB get error paths, routes without DB stay healthy"down", requests bypass cache to DB, DB gets "overloaded"Add scenario_mode to the architecture JSON and POST:
TMPFILE_SIM=$(mktemp /tmp/factory-sim-XXXXXX.json)
curl -s -X POST http://localhost:7777/api/architecture \
-H "Content-Type: application/json" \
-d @"$TMPFILE_SIM"
rm -f "$TMPFILE_SIM"
End with:
/backend-factory:simulate reset/backend-factory:simulate <scenario-name>