Arguments: [target-path] [--platform spa|pwa|mobile|electron|tauri|auto] [--focus security|arch|perf]. Wherever <arguments> appears below, substitute the text the user typed after the skill name.
Platform Engineering Review
Standalone invocation of the platform-reviewer agent. Previously only reachable via /senior-review:code-review (Agent D). This command surfaces it directly for targeted cross-platform audits.
CRITICAL RULES
- Detect platform first. Scan
package.json, Cargo.toml, manifest.json, tauri.conf.json, build configs to identify the platform mix. If --platform auto is set (default), report the detected platforms before reviewing.
- Run in parallel when multiple platforms are present. A single repo may ship SPA + mobile + Tauri; load all applicable rulebooks.
- Write output to
.platform-review/REPORT.md for persistence.
- Never auto-fix. Report findings; user decides what to apply.
Procedure
1. Scope detection
Parse <arguments>:
- target path (default: current directory)
--platform: force a specific platform or let auto-detect handle it
--focus: restrict to security | arch | perf (default: all three)
Detect platforms:
- SPA: React/Vue/Svelte + no service worker
- PWA:
manifest.webmanifest + service worker registered
- Mobile: Expo / React Native, Capacitor, NativeScript, Flutter
- Electron:
electron in package.json
- Tauri:
@tauri-apps/api + src-tauri/
2. Spawn the agent
Invoke platform-engineering:platform-reviewer with the target, detected platforms, and focus flag. The agent loads the relevant references from skills/platform-engineering/references/:
- Security:
server-validation.md, auth-tokens.md, passkeys-webauthn.md, api-security.md, xss-csp.md, secrets-management.md, platform-security.md
- Architecture:
client-server-architecture.md, api-design.md, offline-first.md, infrastructure.md
- Performance:
frontend-performance.md, backend-and-platform-performance.md
For Electron / Tauri specifically, the agent also loads platform-security.md for the hardening checklist (fuses, asar integrity, capabilities, allowlists).
3. Output report
.platform-review/REPORT.md:
# Platform Review -- <target> -- <date>
## Detected platforms
- SPA | PWA | Mobile | Electron | Tauri
## Summary
- Critical issues: N
- High: N
- Medium: N
## Findings
### [CRITICAL]
- <file:line> <issue> -- <rule violated> -- <fix>
### [HIGH]
- ...
### [MEDIUM]
- ...
## Hardening checklist (Electron / Tauri if applicable)
- [ ] fuses.yml configured with hardened defaults
- [ ] asar-integrity enabled for signed releases
- [ ] Capabilities scoped per window (Tauri)
- [ ] CSP includes 'strict-dynamic' + nonces
- [ ] Auto-updater signature verification
## Auth posture
- [ ] No JWT in localStorage (SPA/PWA)
- [ ] Refresh tokens in httpOnly + Secure + SameSite=Strict cookies
- [ ] PKCE for OAuth on SPA/Mobile/Desktop
- [ ] Platform-native secure storage for mobile/desktop tokens
- [ ] WebAuthn / passkeys implemented for new auth flows (recommended for 2025+)
## Recommendations ordered by impact
1. ...
Synergies
- Deeper per-dimension code review ->
/senior-review:code-review
- Tauri-specific hardening ->
tauri-development:tauri-desktop agent
- React performance inside a platform context ->
/react-development:review-react
- Security-specific audit only ->
senior-review:security-auditor agent
1---2name: platform-review3description: Audit a codebase against the platform-engineering rulebook. TRIGGER WHEN: the user asks for a platform-level review, cross-platform security audit, Electron or Tauri hardening check, or an SPA, PWA, mobile, or desktop compliance review. DO NOT TRIGGER WHEN: reviewing generic code quality with no platform dimension (use /senior-review:code-review).4---56> Arguments: `[target-path] [--platform spa|pwa|mobile|electron|tauri|auto] [--focus security|arch|perf]`. Wherever `<arguments>` appears below, substitute the text the user typed after the skill name.78<!-- Generated by the Daodan compiler for codex. Edit the kernel, never this file. -->910# Platform Engineering Review1112Standalone invocation of the `platform-reviewer` agent. Previously only reachable via `/senior-review:code-review` (Agent D). This command surfaces it directly for targeted cross-platform audits.1314## CRITICAL RULES15161. **Detect platform first**. Scan `package.json`, `Cargo.toml`, `manifest.json`, `tauri.conf.json`, build configs to identify the platform mix. If `--platform auto` is set (default), report the detected platforms before reviewing.172. **Run in parallel when multiple platforms are present**. A single repo may ship SPA + mobile + Tauri; load all applicable rulebooks.183. **Write output to `.platform-review/REPORT.md`** for persistence.194. **Never auto-fix**. Report findings; user decides what to apply.2021## Procedure2223### 1. Scope detection2425Parse `<arguments>`:26- target path (default: current directory)27- `--platform`: force a specific platform or let auto-detect handle it28- `--focus`: restrict to `security` | `arch` | `perf` (default: all three)2930Detect platforms:31- SPA: React/Vue/Svelte + no service worker32- PWA: `manifest.webmanifest` + service worker registered33- Mobile: Expo / React Native, Capacitor, NativeScript, Flutter34- Electron: `electron` in `package.json`35- Tauri: `@tauri-apps/api` + `src-tauri/`3637### 2. Spawn the agent3839Invoke `platform-engineering:platform-reviewer` with the target, detected platforms, and focus flag. The agent loads the relevant references from `skills/platform-engineering/references/`:4041- Security: `server-validation.md`, `auth-tokens.md`, `passkeys-webauthn.md`, `api-security.md`, `xss-csp.md`, `secrets-management.md`, `platform-security.md`42- Architecture: `client-server-architecture.md`, `api-design.md`, `offline-first.md`, `infrastructure.md`43- Performance: `frontend-performance.md`, `backend-and-platform-performance.md`4445For Electron / Tauri specifically, the agent also loads platform-security.md for the hardening checklist (fuses, asar integrity, capabilities, allowlists).4647### 3. Output report4849`.platform-review/REPORT.md`:5051```markdown52# Platform Review -- <target> -- <date>5354## Detected platforms55- SPA | PWA | Mobile | Electron | Tauri5657## Summary58- Critical issues: N59- High: N60- Medium: N6162## Findings6364### [CRITICAL]65- <file:line> <issue> -- <rule violated> -- <fix>6667### [HIGH]68- ...6970### [MEDIUM]71- ...7273## Hardening checklist (Electron / Tauri if applicable)74- [ ] fuses.yml configured with hardened defaults75- [ ] asar-integrity enabled for signed releases76- [ ] Capabilities scoped per window (Tauri)77- [ ] CSP includes 'strict-dynamic' + nonces78- [ ] Auto-updater signature verification7980## Auth posture81- [ ] No JWT in localStorage (SPA/PWA)82- [ ] Refresh tokens in httpOnly + Secure + SameSite=Strict cookies83- [ ] PKCE for OAuth on SPA/Mobile/Desktop84- [ ] Platform-native secure storage for mobile/desktop tokens85- [ ] WebAuthn / passkeys implemented for new auth flows (recommended for 2025+)8687## Recommendations ordered by impact881. ...89```9091## Synergies9293- Deeper per-dimension code review -> `/senior-review:code-review`94- Tauri-specific hardening -> `tauri-development:tauri-desktop` agent95- React performance inside a platform context -> `/react-development:review-react`96- Security-specific audit only -> `senior-review:security-auditor` agent