Logo

GitLab

Sign in

朱子纯 / erp-workflow-plugin

  • Back to Dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Snippets
  • Commits 42
  • Compare
  • Branches 3
  • Tags 0
  • erp-workflow-plugin
29 May, 2026
6 commits
  • project-init: simplify A0 SKILL + CLAUDE / index templates ...
    88f6dc2d
    - 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
    2026-05-29 11:46:11 +0800  
    Browse Dir »
  • README: sync with config consolidation, DB guard removal, REQ-card model, A1 aut… ...
    2f5b758d
    …o-chain, docs/06+A6 removal
    zichun authored
    2026-05-29 11:41:10 +0800  
    Browse Code »
  • remove docs/06 + A6 frontend-scope-lock — prototype/ is the frontend SSoT ...
    25afa9f0
    - 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
    2026-05-29 11:41:10 +0800  
    Browse Dir »
  • scope-lock: write REQ cards directly, align to new template, auto-chain A1->A2 ...
    2a3f8d09
    - 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
    2026-05-29 11:41:10 +0800  
    Browse Dir »
  • plan: consolidate all config into config-vars.yaml (drop .env.local + DB guards) ...
    52014d4e
    - 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
    2026-05-29 11:41:10 +0800  
    Browse Dir »
  • lib: replace render.mjs with yaml-config; apply-ddl reads config-vars.yaml, drop DB guards ...
    5babb654
    - 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
    2026-05-29 11:41:10 +0800  
    Browse Dir »

28 May, 2026
19 commits
  • fix: harden workflow gates and db safety
    32a0adb2
    zichun authored
    2026-05-28 16:53:29 +0800  
    Browse Dir »
  • templates: fix stale docs/06 § 四 / § 4.x refs in styles-tokens CSS ...
    57025b00
    docs-06-static-template.md actually defines § 二 Design Tokens with
    subsections 2.1 / 2.2 / 2.3. The CSS template comments still cited the
    pre-renumber § 四 / § 4.1 / § 4.2, so downstream-generated tokens.css
    files pointed readers to non-existent sections of docs/06.
    zichun authored
    2026-05-28 16:15:57 +0800  
    Browse Dir »
  • coding.mjs: drop stale-tag freshness self-check (defensive code for already-fixed ordering bug) ...
    7ce9262d
    The TAG_REPORT_FRESHNESS_SCHEMA + checkTagReportFreshPromptM + the
    post-`tag.exists` freshness branch in runMilestone existed to detect
    "tag points at a commit whose § ⑫ is still {{milestone_tag}}". Per the
    original comments, this only catches historical leftovers from the
    pre-fix tag → § ⑫ ordering; the same fix reversed the order so the
    runtime guard is no longer load-bearing. ~25 lines of branchy
    defensive code that the source-level fix already prevents.
    
    If a pre-fix repo has stale milestone tags, delete them with
    `git tag -d milestone/<id>` and re-run coding-start.
    zichun authored
    2026-05-28 16:14:39 +0800  
    Browse Dir »
  • templates: dedupe standard-column convention, drop coding.mjs prose from docs-02… ...
    4a3b7270
    …, single-source error-codes
    zichun authored
    2026-05-28 16:10:30 +0800  
    Browse Dir »
  • templates(test-db): drop ALLOW_REMOTE/ALLOW_PROD_NAME hatches and slim env-local warnings
    5adbe9db
    zichun authored
    2026-05-28 16:08:26 +0800  
    Browse Dir »
  • skill(coding-start): drop opening restatement and duplicated router/path caveats
    c3a7467c
    zichun authored
    2026-05-28 16:07:03 +0800  
    Browse Dir »
  • skill(plan A3-A5): hoist 'tick docs/08 after step' boilerplate to a single global note
    87ba268f
    zichun authored
    2026-05-28 16:06:04 +0800  
    Browse Dir »
  • skill(project-init/skeleton-gen/db-design-gen): drop idempotency restatements an… ...
    5d67162b
    …d parenthetical 参考 blocks
    zichun authored
    2026-05-28 16:02:13 +0800  
    Browse Dir »
  • lib: drop duplicated headers, JSDoc restatements, CLI-entry comments; reuse advanceLiteral helper
    6eef75b0
    zichun authored
    2026-05-28 15:59:38 +0800  
    Browse Dir »
  • skill(plan A3-A6): trim banners, drop redundant verification loops, defer plan-start narration
    d61c07b1
    zichun authored
    2026-05-28 15:55:50 +0800  
    Browse Dir »
  • skill(plan-start): collapse body restatements; defer git-state checks to coding-start
    f7306acf
    zichun authored
    2026-05-28 15:51:42 +0800  
    Browse Dir »
  • skill(scope-lock): collapse A/B/C ritual into shared procedure + trim duplicated guidance
    326c9769
    zichun authored
    2026-05-28 15:50:07 +0800  
    Browse Dir »
  • coding.mjs: trim duplicated rationale comments and dedupe identical schemas/prompt blocks
    105a2e5c
    zichun authored
    2026-05-28 15:46:55 +0800  
    Browse Dir »
  • docs(README): drop duplicated diagrams, deleted-feature footnotes, and implementation rationale
    bc2388c0
    zichun authored
    2026-05-28 15:38:13 +0800  
    Browse Code »
  • agents: shrink code-reviewer to frontend checklist; let coding.mjs prompts carry per-call rules
    be09a0b7
    zichun authored
    2026-05-28 15:35:34 +0800  
    Browse Dir »
  • templates: move per-section LLM guidance from template comments into the consuming SKILL.md
    82b3eaa9
    zichun authored
    2026-05-28 15:34:38 +0800  
    Browse Dir »
  • docs(CLAUDE-template): drop generic principles section and orchestrator re-documentation
    c43e7989
    zichun authored
    2026-05-28 15:32:59 +0800  
    Browse Dir »
  • refactor: group skills by phase — skills/plan/ + skills/coding/ ...
    b7e4fa58
    Visual clarity: the file tree now matches the README's phase model.
    - skills/plan/   — 8 skills (plan-start entry + A0~A6)
    - skills/coding/ — 1 skill (coding-start thin entry)
    
    Slugs unchanged. /erp-workflow:<name> still resolves identically because
    each SKILL.md declares its own `name:` frontmatter (verified for all 9).
    
    Plugin loader treats the default `./skills/` scan as flat, so the nested
    layout is opted into via an explicit path array in plugin.json — the only
    mechanism Claude Code provides for nested skill discovery.
    
    Changes:
    - mv skills/{plan-start,project-init,scope-lock,skeleton-gen,
           db-design-gen,db-init,downstream-gen,frontend-scope-lock}
         → skills/plan/<same>/
    - mv skills/coding-start → skills/coding/coding-start/
    - .claude-plugin/plugin.json: skills[] now lists all 9 explicit paths
    - README.md: directory tree + Skill 清单 heading updated to reflect grouping
    
    No code touches any skill path (only README did, and only in the tree
    diagram). lib tests still pass (62/62).
    zichun authored
    2026-05-28 13:51:55 +0800  
    Browse Code »
  • fix: dual-reviewer audit (Claude+Codex) — workflows/lib/skills fixes ...
    d875806a
    Independent Claude + Codex review of the working-tree diff surfaced
    23 issues; all applied in-place across three domains.
    
    workflows/coding.mjs (9):
    - spec/plan/verify/review prompts now git-commit their artifacts
      (closes milestone-dirty-worktree halt risk)
    - CHECKBOX_STATE_SCHEMA requires `state` + defensive guard in reviewWithFixLoop
    - writeDocs08FieldPromptM scopes edits to module via line anchor
    - assertSafeId guards Router output (module/REQ/FE ids)
    - featureLoop captures reviewWithFixLoop's return value
    - dateFromArtifactPath rejects impossible dates (9999-99-99 etc.)
    - terminal HALT review-unresolved message disambiguated
    - updated comment on top-level `return` (ESM vs node --check)
    
    lib/validate-ddl.mjs + tests (10):
    - extractType preserves unsigned/signed modifiers
    - KEY/INDEX fallthrough no longer creates spurious 'KEY' columns
    - FOREIGN KEY REFERENCES accepts schema-qualified `db.table`
    - index keys normalized to name:kind:cols (UNIQUE-aware)
    - FK keys include ON DELETE action (defaults to RESTRICT)
    - CREATE TEMPORARY TABLE parsed
    - parseForeignKeyBullet/parseIndexBullet reject prose bullets
    - +10 regression tests (62 total, all pass)
    - merge-gitignore.mjs docstring synced to implementation
    
    skills/ (4):
    - docs-06 template header: § 一~二 → § 一~三
    - downstream-gen §A steps renumbered 1-7 (was 1,3,4,5,6,7,8)
    - docs-08 initial template adds tokens.css checkbox
    - coding-start drops "已在后台启动" wording (Workflow is synchronous)
    zichun authored
    2026-05-28 13:37:22 +0800  
    Browse Code »

26 May, 2026
9 commits
  • feat(config): 引入 config-vars.yaml 承载项目级配置 + lib 缺陷修复 ...
    2463c1e5
    - 新增 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
    2026-05-26 16:46:58 +0800  
    Browse Code »
  • refactor: drop 7 per-step banner files + remaining bash deps ...
    6013e7fb
    - 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
    2026-05-26 11:48:39 +0800  
    Browse Code »
  • fix(coding.mjs): restore top-level `return { results }` as the Workflow result ...
    97cd7504
    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
    2026-05-26 10:55:32 +0800  
    Browse Code »
  • docs: sync plugin.json/README/CLAUDE-template to 9-skill + workflow layout
    2ee4c7fd
    zichun authored
    2026-05-26 10:52:07 +0800  
    Browse Code »
  • refactor: remove 17 superseded coding/crosscut skills + hooks + old reviewers
    cb9da34e
    zichun authored
    2026-05-26 10:42:31 +0800  
    Browse Code »
  • feat(coding): coding.mjs Workflow + unified code-reviewer + thin coding-start entry
    477f1587
    zichun authored
    2026-05-26 10:40:47 +0800  
    Browse Code »
  • feat(plan): front-load gates (per-REQ form, secrets/commands, docs05+02 review, … ...
    4c3fb21b
    …frontend scope-lock) + de-bash + ERP-confirmable
    zichun authored
    2026-05-26 10:32:28 +0800  
    Browse Code »
  • refactor(skills): flatten plan/ and crosscut/plan-start into skills/ root
    22a46ff0
    zichun authored
    2026-05-26 10:21:05 +0800  
    Browse Code »
  • feat(lib): cross-platform Node helpers + .mjs target scripts (replace bash)
    9585c36f
    zichun authored
    2026-05-26 10:19:22 +0800  
    Browse Code »

25 May, 2026
3 commits
  • chore: ignore .worktrees/ for isolated lite-version development
    18c67809
    zichun authored
    2026-05-25 13:34:06 +0800  
    Browse Code »
  • chore: 添加 .gitignore(忽略 .DS_Store)
    8e95ab42
    zichun authored
    2026-05-25 12:05:45 +0800  
    Browse Code »
  • refactor: B 阶段改用本地里程碑 tag,移除 git 远程/MR ...
    981f6ace
    - mr-create → milestone-tag:本地 merge 进默认分支 + 打 milestone/<id> tag,完成后自动回调 coding-start(无人工闸门)
    - 移除 push/GitLab MR/API:删 deny-no-verify hook、derive-gitlab 脚本、pre-push 模板,env-local 去 GITLAB_*
    - 完成判定改为 docs/08「里程碑」字段 + git tag -l;README/CLAUDE-template/状态语义同步
    - 删除空 skills/internal 目录,skill 计数 27→25
    - docs-04 § 一 新增 1.1 规则(后端通用约定)占位,由 skeleton-gen E 填写
    zichun authored
    2026-05-25 11:51:23 +0800  
    Browse Code »

18 May, 2026
3 commits
  • feat(downstream-gen): 新增 derive-gitlab.ps1,Windows 用户零外部依赖 ...
    e559870b
    PS 5.1+ 系统自带,用 Invoke-WebRequest + .NET 字符串处理替代 curl/jq/sed。
    与 .sh 严格等价;SKILL.md 结束横幅按平台二选一打印调用命令。
    zichun authored
    2026-05-18 17:28:10 +0800  
    Browse Code »
  • push
    cce98737
    zichun authored
    2026-05-18 10:14:26 +0800  
    Browse Code »
  • push
    1357af3b
    zichun authored
    2026-05-18 10:14:17 +0800  
    Browse Dir »