• - resolveDbConfig only ever received the 5 DB_* keys dbEnvFromConfig emits;
      the MYSQL_*/DB_PASS/DB_NAME fallbacks had no producer (dead speculative
      generality, a dotenv-era leftover). Remove them.
    - collapse the config → DB_* env-shape → connection two-hop: resolveDbConfig
      now reads config.database.{host,port,user,password,schema} directly, and
      dbEnvFromConfig is removed.
    - CLI contract (node apply-ddl.mjs <configPath> <ddlPath>), the only caller
      via db-init, is unchanged.
    - rewrite tests to the parsed-config shape; drop the alias-only tests. 53 pass.
    zichun authored
     
    Browse Dir »
  • - step B: remove the inline `node -e` mysql SELECT-1 probe (3rd copy of the
      YAML parser + a connection test C.1 setup-test-db.mjs already performs);
      keep only the cheap 5-field non-empty/placeholder credential check, fold
      the Glob existence check into Read, drop now-unused Glob from allowed-tools
    - checkboxes: A.3 → `DDL ↔ docs/03 5 维一致(validate-ddl.mjs)`; drop the
      misleading "apply 后 5 维一致" item in D (apply does not change V1, nothing
      re-validates); rename the creds checkbox to "5 项非空校验通过"
    - sync the A4 block in docs-08-initial-template.md (5 → 4 sub-items)
    - update frontmatter description to match the new flow
    zichun authored
     
    Browse Dir »
  • …0 convention machinery
    
    - schema 约定(iIncrement 主键 / sId 业务ID / sBrandsId+sSubsidiaryId 多租户 / tCreateDate / 匈牙利前缀)从「A0 询问 + 可配置 {{}} 占位 + docs/04 § 四」改为**固定写死**在 docs-03-header-template + docs-03-table-template
    - remove A0 step(约定固定,无需向用户确认);B 内联引用固定标准列(去掉指向尚未生成的 docs/03 的前向引用);C.1/C.2 去掉 {{PK_CONVENTION}}/{{TENANT_COLS}}/{{COL_PREFIX_RULE}} 填充/展开
    - docs/04 § 四 不再被任何环节创建或引用(schema 约定单一来源 = docs/03)
    zichun authored
     
    Browse Dir »
  • - delete docs-07-env-template.md (§一 依赖↔docs/04 §零; §二 端口↔config-vars.yaml; §四 命令↔docs/04 §零 build/lint/unit/e2e; §三 规则折入 config-vars.yaml 头)
    - skeleton-gen: B.1 (gen docs/07) removed → B = just append docs/04 §一+; add 'A2 不再单独出 docs/06/07/09 — 各内容归属' note; frontmatter/checkbox/E.1-scan/参考 drop docs/07
    - config-vars.yaml header: + 2 guardrails (配置值不散落; base_package 锁定后复用)
    - plan-start drop 'docs/07 仅承载规则' note; docs-08 checkbox; README A2 row + template table
    zichun authored
     
    Browse Dir »
  • - docs-04 template: remove § 2.5 样式与主题 (tokens live in src/styles/tokens.css) + § 3.5 配置与安全 (config in config-vars.yaml, rules in docs/07→now config-vars header)
    - styles-tokens-template.css: fix 3 stale docs/06 refs missed in the earlier docs/06 removal (greps had excluded *.css) → self-contained '色值单一来源 / SSoT'
    - coding.mjs: frontend ref §一 前端架构 → §二 前端规范 (§一 is 后端); backend drop frontend §2.1 → §1.2 分层; 样式/色值 → tokens.css; remove docs/07 from value-lookup order
    zichun authored
     
    Browse Code »
  • - delete docs-09-structure-template.md (its § 二/§ 三 dir layout duplicated docs/04 § 1.2/2.1; § 四 docs-tree was a self-referential maintenance trap; § 五 overlapped docs/04)
    - skeleton-gen B.1 now generates only docs/07; B.2 captures backend/frontend dir layout into docs/04 § 1.2/2.1; frontmatter/checkbox/参考 drop docs/09
    - coding.mjs (6 refs): file placement -> docs/04 § 1.2/2.1; frontend root -> frontend/ convention; cross-module path->module -> docs/08 § 二 路径: field
    - CLAUDE-template rule #2 -> docs/04 § 1.2/2.1; docs-08 checkbox + README A2/template-table drop docs/09
    zichun authored
     
    Browse Dir »
  • - delete lib/merge-gitignore.mjs + merge-gitignore.test.mjs: over-engineered for a once-run greenfield step (base .gitignore usually absent; duplicate ignore patterns are harmless)
    - D now uses C.1-style Read+Write: Write template if no .gitignore, else append missing lines (consistent with render.mjs removal + scope-lock direct-write)
    - removes the 'pre-Write empty .gitignore' fragility (Write self-creates); skeleton-gen drops Bash(node *) from allowed-tools
    zichun authored
     
    Browse Dir »
  • zichun authored
     
    Browse Dir »
  • 尾部 6/6 reset-test-db 与下次运行的 1/x setup-test-db 重复(都 DROP+CREATE),对正确性零贡献;删除后闸门为 detect→setup→build→lint→test→e2e,重编号 1/5..5/5。
    zichun authored
     
    Browse Dir »
  • - C.1: stop generating sql/migrations/.gitkeep (A4 db-init's Write V1 creates the dir); README A2 drops 'create empty migrations dir'
    - precedence rule: on color conflict, tokens.css wins over prototype (prototype = structure/layout/interaction; tokens.css = color) — encoded in skeleton-gen note, coding.mjs frontend stage, code-reviewer § Design Tokens
    zichun authored
     
    Browse Dir »
  • - skeleton-gen B.1: remove stale line claiming 根包名/命名空间 placeholder is filled at docs/09 top (docs/09 has no such placeholder; base_package lives in config-vars.yaml since A1)
    - docs-05-header: 端口 占位 -> pointer to config-vars.yaml backend.http_port (was a duplicate 【人工填写】 of the same port)
    zichun authored
     
    Browse Dir »
  • - README (A0 row + prerequisites): dep check now auto-installs missing tools (was: print guide + halt, no auto-install), matching project-init SKILL
    - project-init SKILL: fix typo 失败失败 -> 失败
    - CLAUDE template rule #5: inline cross-module 留痕 requirement (soft-rule S2 table was removed)
    zichun authored
     
    Browse Dir »
  • - A0 SKILL: drop inline cross-platform dep-check script + OS install guides; dep check now auto-installs missing tools (was detect-only); trim 用 Edit/用 Bash 等工具名提示
    - CLAUDE template: remove B 阶段流程 / 占位符约定 / 🚩 中断机制 / 🟡 软规则(S1,S2) / 硬规则#6 / 禁止项#2 等小节
    - docs-01 index: drop trailing 填写说明
    zichun authored
     
    Browse Dir »
  • …o-chain, docs/06+A6 removal
    zichun authored
     
    Browse Code »
  • - delete frontend-scope-lock skill + docs/06 templates (static + module-pagelist)
    - A5 downstream-gen gains prototype/ gate + FE-list derivation -> docs/08 § 三
    - plan-start: drop A6 dispatch row, gate 5->4 items; coding-start A0~A6 -> A0~A5
    - Design Tokens single source = src/styles/tokens.css (code-reviewer, coding.mjs)
    - plugin.json skills 9->8; docs-09 tree drops 06-UI; docs-08 drops A6 section
    zichun authored
     
    Browse Dir »
  • - D-step: CC writes _module.md/REQ-*.md directly (no render.mjs/vars.json)
    - req-card template restructured: input/output example tables copied verbatim, CC fills 6 {{}} scalars; E.1 validates {{}} residual only
    - E.2: write all config (incl. secret placeholders) into config-vars.yaml
    - E.4: no human-review stop — auto Skill(skeleton-gen) into A2
    zichun authored
     
    Browse Dir »
  • - config-vars.yaml now holds全部 config incl. secrets (database/admin_init.password/secrets), committed
    - delete env-local-template; setup-test-db reads config-vars.yaml; gitignore no longer ignores .env.local
    - docs-07 single-store rule; db-init/db-design-gen read config-vars.yaml database: section
    - drop test_db_allowed_hosts whitelist + schema-looks-like-test guard (trust config-vars.yaml)
    zichun authored
     
    Browse Dir »
  • - remove render.mjs/render.test.mjs (scope-lock now writes REQ cards directly)
    - add yaml-config.mjs: minimal 2-level YAML reader (+ tests)
    - apply-ddl: parse config-vars.yaml database: section instead of .env.local dotenv; drop assertSafeDbTarget host-whitelist + schema guards (config-vars.yaml is trusted)
    - merge-gitignore/validate-ddl: self-contained pathToFileURL comment (no longer 'see render.mjs')
    zichun authored
     
    Browse Dir »


  • - 新增 scope-lock/templates/config-vars-template.yaml:非敏感项目级配置
      (包名/端口/前端包名/初始账号)+ secrets_ref 键名引用 .env.local;
      A1 E.2 锁定。docs/07 改为只记规则/约定不记具体值。
    - 连带更新 skeleton-gen / plan-start 闸门 2 / frontend-scope-lock /
      CLAUDE-template / README / docs-06·07 模板对齐新的配置分层与 docs/06 小节编号。
    - lib 修复(含回归测试):
      - apply-ddl: 抽出 resolveDbConfig,DB_SCHEMA 为契约 schema 键,缺库名 fail-closed (M1)
      - render: 用 Object.hasOwn 拒绝原型链继承键,guard process.argv[1]
      - validate-ddl: 解析 ### 索引/### 外键 bullet (C2)、剥 SQL 注释防幽灵表 (L4)、PRIMARY 归一化
    - coding.mjs: Router 把全部前端 FE 聚合为单一末尾 frontend-phase 模块;
      新增 branchSetupPrompt 功能分支生命周期 (C1);diff 区间改三点 diff;fix 后复跑 verify。
    zichun authored
     
    Browse Code »
  • - Delete all 7 banners/flow*.txt and remove the banner step from each
      Plan skill (plan-start renumbered: gate=第1步, 放行/拦截=第2步 A/B).
    - Drop now-unused Bash(cat *) from scope-lock/db-design-gen/downstream-gen/
      plan-start allowed-tools.
    - downstream-gen: replace `cp` (not Windows-safe) with Read+Write, drop Bash(cp *).
    - project-init: fix stale dispatcher name session-start -> plan-start.
    - README: remove the Banners 清单 section.
    zichun authored
     
    Browse Code »
  • The autonomous build changed it to `export default` to satisfy `node --check`,
    but Workflow scripts run in an async wrapper where top-level `return` is the
    result contract (alongside `export const meta`). `export default` would be a
    dead module export and the per-module result summary would be lost.
    zichun authored
     
    Browse Code »