Skip to content

chore(workflows): seed .claude/workflows/ cohort + refresh CR core modules - #191

Merged
wei18 merged 2 commits into
mainfrom
chore/claude-workflows
May 28, 2026
Merged

wei18 merged 2 commits into
mainfrom
chore/claude-workflows

Conversation

@wei18

@wei18 wei18 commented May 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds 7 project-local Workflow scripts under .claude/workflows/ that codify recurring methodology §派發契約 patterns + deterministic loops surfaced from skills / docs / meetings / GitHub issues review.
  • Refreshes methodology.md §派發契約 §8 core-module list to reflect Stage 3 (PR refactor(modules): extract GameCenterKit + PersistenceKit (Stage 3, closes #17) #176) — Persistence + GameCenterClient moved into their own kits. Workflow CORE_MODULES tables mirror the same list.

The 7 workflows

Workflow What it does
dispatch-cycle Full Developer + Code Reviewer loop (preflight gate, impl-notes stamp, sticky CR threshold, round-limit pause)
dispatch-prep Scaffold-only sibling — preflight + impl-notes + CR prediction + pasteable prompt (no agent dispatch)
pre-push-verify Cross-checks commit message claims vs actual diff before push / PR (commit bodies truncated 4KB + untrusted-input guard)
phase-todo-sweep rg TODO/FIXME/stub markers → classify (Resolved/Backlog/Intentional/NeedsLeader) → gh issue stubs via heredoc
cr-threshold-gate SSOT for CORE_MODULES + LOC_THRESHOLD + OR rule; standalone callable
admob-isolation-audit Asserts exactly 1 import GoogleMobileAds in Packages/ (covers @_exported / @testable / canImport WARN class)
asc-apply-round One round of ASCRegister apply/plan: decode ENTITY_ERROR.<CODE> + Config.swift patch proposal + round-N issue body. mode: "apply" requires confirmApply: true; credentials scrubbed from prompts/outputs

Process applied

  • Extraction via parallel skills/docs/meetings scan + GitHub issues sweep (synthesized 13 candidates, accepted 7 KEEPs)
  • Multi-specialty review pass (Correctness / Security / Architecture / Docs-DX / Ops) → applied 2 blockers + 11 recommended fixes + nit cleanup
  • Cross-cutting safety: validatePath() on user-input args that flow into bash (target / packagePath); gh issue create switched to heredoc form to defuse LLM-emitted newline/backtick

Test plan

  • Invoke Workflow({name: "cr-threshold-gate"}) on a known-clean branch → expects CR_NOT_REQUIRED
  • Invoke Workflow({name: "admob-isolation-audit"}) → expects PASS (1 hit in LiveAdMobBridge.swift)
  • Invoke Workflow({name: "pre-push-verify"}) on this branch → expects PASS
  • Visual review of header comments + meta.description / meta.whenToUse from /workflows listing

🤖 Generated with Claude Code

wei18 and others added 2 commits May 28, 2026 16:09
…dules

Adds 7 project-local Workflow scripts that codify the methodology §派發契約
items 1-9 + recurring deterministic loops surfaced from skills/docs/meetings
+ GitHub issues review:

  - dispatch-cycle   end-to-end Developer + Code Reviewer loop (delegates
                     CR threshold to cr-threshold-gate; sticky everRequiredCR
                     prevents round-2 escape-hatch; nits persisted to
                     impl-notes §未決; round-limit marks Status: PAUSED)
  - dispatch-prep    scaffold-only sibling (preflight + impl-notes stamp
                     + CR prediction + pasteable dispatch prompt)
  - pre-push-verify  cross-checks commit message claims against actual diff
                     (commit bodies truncated to 4KB; untrusted-input guard)
  - phase-todo-sweep rg TODO/FIXME/stub sweep + classify (Resolved / Backlog
                     / Intentional / NeedsLeader) + gh issue stubs via heredoc
  - cr-threshold-gate  SSOT for CORE_MODULES + LOC_THRESHOLD + OR rule
  - admob-isolation-audit  asserts exactly 1 import GoogleMobileAds in
                     Packages/ (covers @_exported / @testable / canImport
                     WARN class)
  - asc-apply-round  one round of ASCRegister apply/plan with ENTITY_ERROR
                     decode + Config.swift patch proposal + round-N issue
                     body matching #17/#19/#22/#24/#26/#31/#37/#40 format
                     (mode defaults to "plan"; "apply" requires confirmApply
                     true; credentials redacted from prompts and outputs)

methodology.md §派發契約 §8: refresh core-module list to reflect Stage 3
(PR #176) — Persistence/GameCenterClient moved out of SudokuKit into
PersistenceKit/GameCenterKit. cr-threshold-gate.js and dispatch-prep.js
mirror the same list (predictor vs measurer); methodology.md is SSOT.

Multi-specialty review applied (Correctness / Security / Architecture /
Docs-DX / Ops): credential redaction in asc-apply-round, path validation
on user-input args that flow into bash (target / packagePath), heredoc
form for gh issue create stubs.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Lychee action's default failIfEmpty=true fails when a markdown file
contains zero links — e.g. docs/methodology.md is a 36KB no-URL document.
This blocked PR #191 even though no links were broken; "0 of 0 links"
is not a failure mode.

Only real broken links should fail the job.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@wei18
wei18 merged commit 7f516ee into main May 28, 2026
5 checks passed
@wei18
wei18 deleted the chore/claude-workflows branch May 28, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant