@zero2webmaster/starter-kit 0.57.0 → 0.58.0

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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # z2w-starter-kit
2
2
 
3
- **Version:** 0.57.0 | **Framework:** 2.19.0
3
+ **Version:** 0.58.0 | **Framework:** 2.19.0
4
4
 
5
5
  > Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.
6
6
 
@@ -154,4 +154,4 @@ Inquiries: kerry@zero2webmaster.com.
154
154
  ---
155
155
 
156
156
  *Scaffolded 2026-05-28 via the [[instantiate-z2w-project]] Claude Code skill v1; reconciled against the consolidated skill v1.1.0 (brief-first + Agent Coordination block) on 2026-05-29.*
157
- *Version: 0.57.0 | Last Updated: 2026-11-22*
157
+ *Version: 0.58.0 | Last Updated: 2026-11-24*
@@ -1,6 +1,6 @@
1
1
  import type { ProjectType, ScaffoldInputs } from "./index.js";
2
2
  import { type SubstitutionOptions } from "./substitute.js";
3
- export type StandardKey = "skill-vault" | "portable-stack" | "fathom" | "uptime-kuma" | "sentry" | "service-hosting" | "neon-careful" | "temp-files" | "agent-coordination" | "seo-baseline" | "email-service" | "moderation" | "card-path-bot-protection" | "payments-and-refunds" | "developer-access" | "text-size" | "language" | "test-count" | "capability-list";
3
+ export type StandardKey = "skill-vault" | "portable-stack" | "fathom" | "uptime-kuma" | "sentry" | "service-hosting" | "neon-careful" | "temp-files" | "agent-coordination" | "seo-baseline" | "human-readable-urls" | "email-service" | "moderation" | "card-path-bot-protection" | "payments-and-refunds" | "developer-access" | "text-size" | "language" | "test-count" | "capability-list";
4
4
  export type StandardDecisionState = "inserted-inline" | "skipped-not-applicable"
5
5
  /**
6
6
  * Applicable, rendered — and then removed again, because the audience gate
package/dist/standards.js CHANGED
@@ -24,6 +24,9 @@
24
24
  // - neon-careful — if dbStrategy=neon-postgres
25
25
  // - agent-coordination — if participateInBulletin=true
26
26
  // - seo-baseline — non-WP web UI with indexable surface (nextjs, cf-pages)
27
+ // - human-readable-urls — any non-WP web UI (admin screens included): records get
28
+ // a readable handle, not a UUID, per [[human-readable-urls]] §7
29
+ // (Kerry via support-desk on the bulletin 2026-11-22)
27
30
  // - email-service — every project that may send mail (skip library + protocol-repo)
28
31
  // - moderation — if hasUserContent=true (skip wp-plugin + library + protocol-repo);
29
32
  // the two-layer UGC-moderation baseline per [[moderation-system]]
@@ -58,6 +61,7 @@ const STANDARD_ORDER = [
58
61
  "temp-files",
59
62
  "agent-coordination",
60
63
  "seo-baseline",
64
+ "human-readable-urls",
61
65
  "email-service",
62
66
  "moderation",
63
67
  "card-path-bot-protection",
@@ -79,6 +83,7 @@ const TITLES = {
79
83
  "temp-files": "Project-scoped temp files (agent discipline)",
80
84
  "agent-coordination": "Agent Coordination (cross-project bulletin)",
81
85
  "seo-baseline": "SEO baseline (non-WP web UI)",
86
+ "human-readable-urls": "Human-readable URLs (web UI)",
82
87
  "email-service": "Email service selection",
83
88
  moderation: "Moderation baseline (user-generated content)",
84
89
  "card-path-bot-protection": "Card-path bot protection (accepts credit cards)",
@@ -105,6 +110,7 @@ const SEO_BASELINE_TYPES = ["nextjs", "cf-pages"];
105
110
  // CLI libraries and protocol repos have no runtime request surface.
106
111
  const OBSERVABILITY_TYPES = ["nextjs", "cf-pages"];
107
112
  const NO_EMAIL_TYPES = ["library", "protocol-repo"];
113
+ const NO_HUMAN_URL_TYPES = ["wp-plugin", "library", "protocol-repo"];
108
114
  // The types that deploy as a long-running service on a general-purpose host,
109
115
  // i.e. the ones for which "which platform?" is still an open question at
110
116
  // instantiation. Everything else has its host decided by the type itself
@@ -252,6 +258,35 @@ function checkSeoBaseline(inputs) {
252
258
  reason: `${inputs.projectType} with hasWebUi=true — full 7-item baseline per 2026-05-30 standing org requirement`,
253
259
  };
254
260
  }
261
+ /**
262
+ * Any non-WordPress project with a web UI, INCLUDING admin-only ones: an admin
263
+ * URL is the one that gets pasted into handoffs, STATUS files and chat, which
264
+ * is why [[human-readable-urls]] §7 exists. Deliberately wider than the SEO
265
+ * baseline (which needs an indexable surface): a cf-worker or node-service
266
+ * that serves pages has records with URLs too. WordPress is exempt because
267
+ * permalinks already give posts readable slugs.
268
+ *
269
+ * Asked for by `support-desk` on Kerry's question (2026-11-22): why is the
270
+ * skill so often not followed? Because no scaffold's CLAUDE.md mentioned it,
271
+ * so an agent building its first `[id]` page had nothing pointing there.
272
+ */
273
+ function checkHumanReadableUrls(inputs) {
274
+ if (NO_HUMAN_URL_TYPES.includes(inputs.projectType)) {
275
+ return {
276
+ applies: false,
277
+ reason: inputs.projectType === "wp-plugin"
278
+ ? "wp-plugin — WordPress permalinks already give records readable slugs"
279
+ : `${inputs.projectType} has no pages a person opens`,
280
+ };
281
+ }
282
+ if (!inputs.hasWebUi) {
283
+ return { applies: false, reason: "hasWebUi=false — no pages, so no URLs a person reads" };
284
+ }
285
+ return {
286
+ applies: true,
287
+ reason: "hasWebUi=true — records get a readable handle, not a UUID, per [[human-readable-urls]] §7",
288
+ };
289
+ }
255
290
  function checkEmailService(inputs) {
256
291
  if (NO_EMAIL_TYPES.includes(inputs.projectType)) {
257
292
  return {
@@ -730,6 +765,18 @@ const SEO_BASELINE_BODY = `### SEO baseline (non-WP web UI)
730
765
  > - [ ] Core Web Vitals reasonable (no obvious CLS, oversized images, render-blocking — see [[web-perf]])
731
766
  >
732
767
  > **Scope:** applies to every Z2W non-WP web app with a public indexable surface. Does NOT apply to: WordPress sites (RankMath), API-only services with no HTML surface, CLI libraries, protocol repos, Cloudflare Workers without a public HTML response.`;
768
+ const HUMAN_READABLE_URLS_BODY = `### Human-readable URLs (web UI)
769
+
770
+ > **A URL a person will see is part of the interface, and admin URLs count most.** An admin link gets pasted into handoffs, status notes, chat and support replies more often than any public one, and two UUIDs cannot be told apart, read aloud or typed from a phone. So build every human-facing route of {{slug}} readable from its first \`[id]\` page, not as a cleanup later:
771
+ >
772
+ > 1. **Give each record a readable handle, never a raw UUID in a visible path.** Either a slug made from a field someone already wrote (a date plus a few words for anything time-ordered, such as \`2026-09-16-office-hours\`), or a short number per tenant (\`/conversations/1042\`). Unique per tenant, with a unique index in the database, not only a check in code. The second record with the same name gets \`-2\`; the first never changes.
773
+ > 2. **Frozen at creation.** The slug does not follow later edits to the title. When a save does change it, redirect the editor to the new address and say so in the confirmation.
774
+ > 3. **Old id URLs keep working forever,** and redirect to the readable one. Run the access check BEFORE that redirect, or the redirect tells a stranger the record exists.
775
+ > 4. **A readable URL can be guessed, so every route checks access on its own.** An unguessable id was never access control.
776
+ > 5. **No \`%2F\` in a link a person reads.** Do not wrap a whole path in \`encodeURIComponent\`, and before adding \`?next=\`, see whether the route can keep the destination itself.
777
+ > 6. **Every 404 has a search box and a link back to the nearest page that exists,** because people will guess.
778
+ >
779
+ > Leave an id opaque only where it must be unguessable (magic links, unsubscribe links, signed file URLs) or where the natural slug would expose personal data. Full rules: [[human-readable-urls]] §7.`;
733
780
  const EMAIL_SERVICE_BODY = `### Email service selection (any project that will send mail)
734
781
 
735
782
  > **Email service:** Kerry's portfolio has FOUR sanctioned email services covering distinct sweet spots — FluentCRM (WP marketing/CRM), Amazon SES (cheap high-volume transactional), Resend (developer-friendly transactional + NextAuth magic links + React Email), Cloudflare Email Service (Workers-native send/receive). Before wiring any email feature in this project — magic-link auth, transactional notification, marketing broadcast, anything — load [[email-service-router]] and walk the decision matrix. Do NOT introduce a fifth service (SendGrid, Mailgun, Postmark, Mailchimp, MailerSend, Brevo/Sendinblue, etc.) — the router skill explains why and routes to the right one of the four.
@@ -837,6 +884,7 @@ const BODIES = {
837
884
  "temp-files": TEMP_FILES_BODY,
838
885
  "agent-coordination": AGENT_COORDINATION_BODY,
839
886
  "seo-baseline": SEO_BASELINE_BODY,
887
+ "human-readable-urls": HUMAN_READABLE_URLS_BODY,
840
888
  "email-service": EMAIL_SERVICE_BODY,
841
889
  moderation: MODERATION_BODY,
842
890
  "card-path-bot-protection": CARD_PATH_BOT_PROTECTION_BODY,
@@ -858,6 +906,7 @@ const APPLICABILITY = {
858
906
  "temp-files": checkTempFiles,
859
907
  "agent-coordination": checkAgentCoordination,
860
908
  "seo-baseline": checkSeoBaseline,
909
+ "human-readable-urls": checkHumanReadableUrls,
861
910
  "email-service": checkEmailService,
862
911
  moderation: checkModeration,
863
912
  "card-path-bot-protection": checkCardPathBotProtection,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zero2webmaster/starter-kit",
3
- "version": "0.57.0",
3
+ "version": "0.58.0",
4
4
  "description": "Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.",
5
5
  "author": {
6
6
  "name": "Dr. Kerry Kriger",