wholestack 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: fix-failing-build
3
+ description: Diagnose a failing build or a NO_SHIP prove verdict, fix the root cause, and re-verify.
4
+ when-to-use: When a build errors, tests fail, the prove gate returns NO_SHIP, or the app won't run. Use whenever you need to turn red into green before continuing.
5
+ ---
6
+
7
+ # Fix a failing build (read errors → fix root cause → re-verify)
8
+
9
+ Work from evidence, not guesses. Fix the ROOT cause, not the symptom, then prove the fix.
10
+
11
+ ## 1. Collect the real failure
12
+ - Get the exact error text: prove `blockingReasons`, the build/run log, the failing test, or the compiler error.
13
+ - Quote the precise message and the file:line it points at. Do not paraphrase a guess.
14
+
15
+ ## 2. Locate
16
+ - Read the file(s) the error names. If the cause is unclear, grep for the failing symbol/string across the repo.
17
+ - For breadth (several suspect areas at once), fan out read-only sub-agents, one per hypothesis.
18
+
19
+ ## 3. Identify the root cause
20
+ - Map the message to a cause, e.g.:
21
+ - module-not-found / unresolved import → missing dep or wrong path.
22
+ - type mismatch → fix the type, never silence with `as any`.
23
+ - prove NO_SHIP → read which check failed; the `detail` tells you the invariant that broke.
24
+ - runtime crash on boot → missing env or a server/client boundary violation.
25
+ - State the root cause in one sentence before editing.
26
+
27
+ ## 4. Apply the minimal fix
28
+ - Make the smallest change that addresses the cause. Match the surrounding code's patterns and conventions.
29
+ - Avoid scope creep — fix the failure, not unrelated nits.
30
+
31
+ ## 5. Re-verify (mandatory)
32
+ - Re-run whatever was red: build, run, the failing test, AND the prove gate.
33
+ - A fix is only done when the previously-red signal is now green. If still red, return to step 1 with the new error.
34
+
35
+ ## Done criteria
36
+ - The original failing signal now passes.
37
+ - If this was a NO_SHIP, the prove verdict is now SHIP.
38
+ Report the root cause and the now-green verification.
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: review-before-ship
3
+ description: A focused pre-ship review pass — correctness, security, and fake-success checks — before deploying.
4
+ when-to-use: When the user asks for a review, a sanity check, or "is this ready to ship?" before deploy — or as the gate step inside ship-a-saas when extra scrutiny is wanted.
5
+ ---
6
+
7
+ # Review before ship (correctness → security → fake-success)
8
+
9
+ A quick, evidence-based pass to catch what an automated gate can miss. Report findings by severity; do not rubber-stamp.
10
+
11
+ ## 1. Scope the diff
12
+ - Identify what actually changed (the files touched this session, or the generated app's entities/routes).
13
+ - Skip unchanged code — review the delta.
14
+
15
+ ## 2. Correctness
16
+ - Do the new/changed functions do what their name says? Check the obvious edge cases (empty input, error path).
17
+ - Look for swallowed errors: empty catch blocks, try/catch that ignores, handlers that return 200 for everything.
18
+
19
+ ## 3. Security
20
+ - Any endpoint touching sensitive data must enforce auth/ownership — flag unprotected ones.
21
+ - No secrets in client code; server-only keys stay server-side.
22
+ - DB access is parameterized (no string-interpolated queries).
23
+
24
+ ## 4. Fake-success
25
+ - Functions that always return success regardless of input.
26
+ - Loading states with no error state.
27
+ - A "pass" that doesn't bind the real artifact (a proof that can't actually fail is no proof).
28
+
29
+ ## 5. Run the gate
30
+ - Run the prove gate and read the verdict alongside your manual findings.
31
+
32
+ ## Done criteria
33
+ - Findings listed by severity (critical / high / medium / low) with file:line and a concrete fix each.
34
+ - A clear go / no-go recommendation, reconciled with the prove verdict.
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: ship-a-saas
3
+ description: End-to-end procedure to take an app idea to a deployed, proven SaaS.
4
+ when-to-use: When the user wants to build AND ship a full SaaS — "ship this", "build and deploy", "get it live", or any request that spans generate → prove → deploy → launch.
5
+ ---
6
+
7
+ # Ship a SaaS (build → prove → deploy → launch-kit)
8
+
9
+ Follow these steps in order. After each step, report what happened before moving on. Do not skip the prove gate — a NO_SHIP verdict blocks deploy.
10
+
11
+ ## 1. Clarify the build
12
+ - Restate the app in one sentence (what it does, who it's for).
13
+ - If the idea is too vague to generate (no core entities/actions), ask ONE focused question, then proceed.
14
+
15
+ ## 2. Generate
16
+ - Use the build tool to generate the full-stack app from the idea.
17
+ - Capture the resulting `buildId` — every later step keys off the linked build.
18
+ - If generation fails, switch to the `fix-failing-build` skill, then return here.
19
+
20
+ ## 3. Prove (ShipGate — the gate)
21
+ - Run the prove gate on the generated repo.
22
+ - Read the `verdict`:
23
+ - `SHIP` → continue to deploy.
24
+ - `NO_SHIP` → STOP. List the `blockingReasons` plainly. Fix the underlying issue (often via `fix-failing-build`), regenerate or edit, then re-prove. Never deploy a NO_SHIP build.
25
+
26
+ ## 4. Deploy
27
+ - Only after a SHIP verdict, deploy the build (the linked `buildId`).
28
+ - Report the live URL and the deploy status. If a database was provisioned, say so.
29
+
30
+ ## 5. Launch kit
31
+ - Pull the launch kit for the build (brand, pricing, copy, social, email, pitch, analytics, checklist).
32
+ - Summarize what's ready and what the founder still needs to fill in.
33
+ - Offer the next concrete action (custom domain, payments, waitlist, first campaign).
34
+
35
+ ## Done criteria
36
+ - A SHIP verdict was recorded.
37
+ - A live URL was returned.
38
+ - The launch kit was surfaced.
39
+ Report all three back to the user.