onslaught-engineering
janusUse for Onslaught Gaming code projects — starting, resuming, auditing, or deploying. Covers the 7 gates, the 14 commands, the deploy matrix, the audit checklist, and the security discipline that Onslaught code must meet before reaching production.
Onslaught Engineering
IWhen To Use
- Any Onslaught Gaming code project.
- Starting a new Onslaught project (
/start). - Resuming (
/continue), auditing (/audit), or deploying. - Generating or updating PROJECT_CONTEXT.md for an Onslaught project.
- Any of the 14 commands fires.
IIWhen Not To Use
- Content work — use
$janus-content-mode. - Judge work — use
$janus-judge-mode. - Non-Onslaught code projects.
- Quick one-off questions — Tier 1 does not need this.
IIICore Rule
Design → Lock → Execute. Never skip the middle.
Never write code before the plan is locked. Never skip Gate 5. Two strikes then ask.
IVThe 7 Gates
Close each gate with confidence: HIGH | MEDIUM | LOW. LOW must be revisited before deploy.
- Mission — purpose, user, primary action, success criteria.
- Contracts — stack ranked and chosen, I/O defined, APIs confirmed 200, accounts active.
- Knowledge — data sources identified, freshness defined, volume assets gitignored and recorded.
- Reliability — failure paths, timeouts, retries.
- Security — never skip. See checklist below.
- Observability — logging, tests, debug path.
- Product — user understanding, error states, trust.
Gate 5 — Security Checklist
- No secrets in source. Wrangler secrets / env vars / platform secrets only.
grep -r "webhook|secret|token|password|http" .— every hit reviewed.- All IDs hex-checked for hidden chars (zero-width, smart quotes, invisible unicode).
- User input sanitized before use.
- Prompt-injection defense if AI is involved.
- GitHub repo private.
npm auditclean.- No
eval(),exec(),subprocess,os.system,shell=Truein source. *.batand*.shin.gitignorebefore any push that touches them.- PAT expiry documented in PROJECT_CONTEXT.md, ≤ 90 days.
Any miss: BLOCKED. Override requires typed justification from the operator.
VTier Matrix (Onslaught)
| Tier | Type | Required Gates | |---|---|---| | 1 | Quick task (button fix, copy update, logo swap) | 1, 5 | | 2 | Lite build (landing page, Discord bot, event page, form) | 1, 2, 5 | | 3 | Full build (production app, multi-layer system, agent) | All 7 |
Gate 5 cannot be skipped at any tier.
VIPhase Structure
- Phase 0 — Handshake:
git status, read PROJECT_CONTEXT and WORKLOG, verify state matches docs. - Phase 1 — Foundation: folder, stack,
git init. - Phase 2 — Core build.
- Phase 3 — Features.
- Phase 4 — Security audit (Gate 5 formally closed).
- Phase 5 — Deploy.
- Phase 6 — QA →
/checkpoint→ phase CLOSED.
Conflict rule: if PROJECT_CONTEXT says a file exists or has certain content, verify before acting. Mismatch → stop, report, wait.
VIIThe 14 Commands
| Command | Action |
|---|---|
| /start [name] | Activate project mode, begin Gate 1. |
| /continue [name] | Resume project; read PROJECT_CONTEXT and WORKLOG first. |
| /audit [name] | Review project, produce ranked action items. |
| /generate | Produce PROJECT_CONTEXT.md once required gates are locked. |
| /checkpoint | Save state, update WORKLOG. |
| /options [category] | 3 ranked tool options with a winner. |
| /search [topic] | Live web search for current best-of. |
| /define [term] | Plain-English definition. |
| /image | Image-to-app extraction checklist. |
| /setup | One-time machine setup. |
| /recover | Diagnose failure, return PATCH / ROLLBACK / DIAGNOSE. |
| /phase [n] | Declare which phase this thread handles. |
| /debrief [name] | Post-session review, propose updates to janus. |
| /help | Show this list. |
VIIIDeploy Matrix
| Platform | Auto-deploy from GitHub? | Deploy command |
|---|---|---|
| Cloudflare Pages (GitHub-connected) | Yes on push to main | git push origin main |
| Cloudflare Pages (static upload) | No | npx wrangler pages deploy ./folder --project-name [name] |
| Cloudflare Workers | No — GitHub is backup only | wrangler deploy |
| Netlify | Yes if connected | git push or npx netlify-cli deploy |
| Railway | Yes on push | git push origin main |
Never connect a Workers project to Pages auto-deploy. Different products.
IXAudit Checklist (15 points)
- PROJECT_CONTEXT.md present and filled.
- WORKLOG.md current.
- All security gates formally closed.
- Hardcoded secrets in source? (
grep -r "webhook|secret|token|password|http" .) - Hidden characters in config IDs.
- External dependencies verified live (200 on fetch).
- GitHub repo private.
- Canonical file conflicts.
- Second context files (MEMORY.md, HANDOFF.md, ad-hoc) — kill them.
- Platform migrations reflected in PROJECT_CONTEXT.md.
- Volume-only assets gitignored and recorded in Key Credentials.
- Platform account IDs recorded in Key Credentials.
- PAT expiry date documented.
*.bat/*.shgitignored.- Preferred stack registry consulted before stack selection.
Output: ranked Critical → Medium → Low action list.
XGitignore Minimums
*.bat
*.sh
*.zip
*.txt
.env
.env.*
_Session Notes/
.DS_Store
Thumbs.db
desktop.ini
node_modules/
.wrangler/