oh-my-customcodex 0.4.17 → 0.5.1

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.
Files changed (34) hide show
  1. package/README.md +7 -7
  2. package/dist/cli/index.js +1 -1
  3. package/dist/index.js +1 -1
  4. package/package.json +1 -1
  5. package/templates/.claude/agents/mgr-gitnerd.md +4 -0
  6. package/templates/.claude/agents/mgr-sauron.md +5 -4
  7. package/templates/.claude/hooks/hooks.json +10 -0
  8. package/templates/.claude/hooks/scripts/destructive-git-guard.sh +53 -0
  9. package/templates/.claude/rules/MUST-safety.md +15 -0
  10. package/templates/.claude/rules/SHOULD-memory-integration.md +21 -11
  11. package/templates/.claude/skills/adversarial-review/SKILL.md +10 -0
  12. package/templates/.claude/skills/dev-review/SKILL.md +15 -5
  13. package/templates/.claude/skills/gitlab/SKILL.md +346 -0
  14. package/templates/.claude/skills/harness-export/SKILL.md +46 -0
  15. package/templates/.claude/skills/instinct-extractor/SKILL.md +54 -0
  16. package/templates/.claude/skills/manifest-install/SKILL.md +53 -0
  17. package/templates/.claude/skills/memory-management/SKILL.md +71 -12
  18. package/templates/.claude/skills/memory-recall/SKILL.md +6 -4
  19. package/templates/.claude/skills/memory-save/SKILL.md +8 -5
  20. package/templates/.claude/skills/npm-version/SKILL.md +6 -0
  21. package/templates/.claude/skills/pipeline/labels.md +55 -0
  22. package/templates/.claude/skills/sec-agentshield-wrapper/SKILL.md +49 -0
  23. package/templates/AGENTS.md.en +6 -2
  24. package/templates/AGENTS.md.ko +6 -2
  25. package/templates/CLAUDE.md +6 -2
  26. package/templates/CLAUDE.md.en +6 -2
  27. package/templates/CLAUDE.md.ko +6 -2
  28. package/templates/README.md +110 -0
  29. package/templates/guides/claude-code/14-token-efficiency.md +6 -1
  30. package/templates/guides/claude-code/15-version-compatibility.md +35 -0
  31. package/templates/guides/git-safety/README.md +44 -0
  32. package/templates/guides/index.yaml +6 -0
  33. package/templates/manifest.json +4 -4
  34. package/templates/workflows/auto-dev.yaml +93 -6
@@ -13,28 +13,77 @@ observability:
13
13
  report_before: followup
14
14
 
15
15
  steps:
16
+ - name: preflight-sync
17
+ prompt: |
18
+ Phase 0 — Sync local repository and detect stale issue context before triage.
19
+
20
+ 1. Run `git fetch --all --tags --prune`.
21
+ 2. Compute `behind=$(git rev-list --count HEAD..origin/$(git rev-parse --abbrev-ref HEAD))`.
22
+ 3. If behind > 0 and the worktree is clean, run `git pull --ff-only` and report synced commits.
23
+ 4. If behind > 0 and the worktree is dirty, halt with a manual reconcile message.
24
+ 5. Report latest tag, local HEAD, and synced/behind state.
25
+ 6. Compare open issue body `vX.Y.Z` references against local git tags and warn on references to missing tags.
26
+ 7. Create required lifecycle labels idempotently: in-progress, verify-ready, needs-review, decision-needed.
27
+ description: Sync remote state, detect stale version references, and ensure lifecycle labels
28
+
16
29
  - name: issue-analysis
30
+ depends_on: preflight-sync
17
31
  parallel:
18
32
  - name: pre-triage
19
33
  skill: professor-triage
20
- description: Run professor-triage on open issues that lack verify-done label, including release-monitor labels codex-release and oh-my-codex-release
34
+ description: Run professor-triage on open issues that lack verify-done label, including release-monitor labels codex-release and oh-my-codex-release; never terminate from an empty verify-done query alone while release-monitor issues remain
21
35
  condition: "open issues without label:verify-done exist OR open release-monitor issues with label:codex-release or label:oh-my-codex-release exist"
22
36
  - name: triage
23
37
  skill: professor-triage
24
38
  description: Analyze verify-done and release-monitor issues against current codebase and perform automated triage
25
39
 
26
- - name: plan
40
+ - name: scope-selection
27
41
  depends_on: issue-analysis
42
+ prompt: |
43
+ Select one bounded release scope and protect against stale milestone reuse.
44
+
45
+ Milestone pre-check:
46
+ - Query all milestones, open and closed, before creating vX.Y.Z.
47
+ - If the target milestone already exists and is closed, halt and require a version bump or manual reopen.
48
+ - If it exists and is open, reuse it.
49
+ - If it does not exist, create it and assign scoped issues.
50
+
51
+ Label semantics:
52
+ - Reference `.codex/skills/pipeline/labels.md`.
53
+ - Exclude blocked_by_decision, decision-needed, needs-review, verify-done, manual-action, and in-progress issues.
54
+ - Prefer verify-ready, codex-release, oh-my-codex-release, claude-code-release, and documentation issues.
55
+ - Sort by P1, P2, P3, then dependency order; cap a release unit at 7 issues.
56
+
57
+ Output a release manifest with issue number, title, prerequisite, effort, and labels.
58
+ description: Milestone state pre-check, label filter, and bounded release scope selection
59
+
60
+ - name: compression-mode-eval
61
+ depends_on: scope-selection
62
+ prompt: |
63
+ Evaluate docs-only compression mode.
64
+
65
+ Use `compression_mode=docs-only` only when:
66
+ - scope size is 3 or fewer issues
67
+ - every scoped issue has at least one of documentation, automated, codex-release, oh-my-codex-release, claude-code-release, or enhancement-yaml-only
68
+
69
+ In docs-only mode, replace heavyweight triage/plan/deep-plan/deep-verify spawns with direct summaries plus local self-review. Otherwise use standard mode.
70
+ Output the selected compression_mode for downstream steps.
71
+ description: Evaluate docs-only compression eligibility
72
+
73
+ - name: plan
74
+ depends_on: compression-mode-eval
28
75
  skill: release-plan
29
- description: Group triaged issues into release units by priority and size
76
+ description: Group triaged issues into release units by priority and size; skipped if compression_mode=docs-only
30
77
  input: triage-results
31
78
 
32
79
  - name: deep-plan
80
+ depends_on: plan
33
81
  skill: deep-plan
34
- description: Create detailed implementation plan for each release group
82
+ description: Create detailed implementation plan for each release group; skipped if compression_mode=docs-only
35
83
  foreach: release-group
36
84
 
37
85
  - name: implement
86
+ depends_on: deep-plan
38
87
  prompt: |
39
88
  Execute implementation plan with appropriate agents.
40
89
 
@@ -46,12 +95,50 @@ steps:
46
95
  description: Execute implementation plan with appropriate agents
47
96
  foreach: planned-issue
48
97
 
98
+ - name: verify-build
99
+ depends_on: implement
100
+ prompt: |
101
+ Project-specific build + test verification.
102
+
103
+ For Node/Bun projects:
104
+ 1. Run `bun install` and halt on lockfile drift.
105
+ 2. Run `bun run lint` when available.
106
+ 3. Run `bun run typecheck` when available.
107
+ 4. Run `bun test` mandatorily; do not silently skip tests.
108
+ 5. Adopt the prior version's test result as the dynamic baseline. Current Codex baseline is 0 failures after #1328 verification.
109
+ 6. Halt if current failures exceed baseline; otherwise report pass/fail counts and delta.
110
+ 7. Run `bun run build` when available.
111
+
112
+ Halt on lint errors, typecheck errors, new test failures, build failure, or lockfile drift.
113
+ description: Auto-detected build + test verification with mandatory bun test baseline delta guard
114
+
49
115
  - name: verify
116
+ depends_on: verify-build
50
117
  skill: deep-verify
51
- description: Multi-angle release quality verification
118
+ description: Multi-angle release quality verification; self-review checklist only if compression_mode=docs-only
52
119
 
53
120
  - name: release
54
- prompt: "Create release branch and pull request"
121
+ depends_on: verify
122
+ prompt: |
123
+ Create release branch and pull request.
124
+
125
+ Required version preflight for npm package releases:
126
+ - Determine NEW_VERSION before creating a release branch, PR, or tag.
127
+ - Update `package.json` and `templates/manifest.json` to NEW_VERSION in the same commit.
128
+ - Use same-directory temporary files for generated JSON writes; do not write through `/tmp`.
129
+ - Run `bash .github/scripts/verify-version-sync.sh` after the bump and before tag or PR creation.
130
+ - Commit the bump with `chore(release): bump to v{NEW_VERSION}` before any release tag is created.
131
+
132
+ Before creating `release/v*`, check whether a local branch named exactly
133
+ `release` exists. Git stores refs as files/directories, so
134
+ `refs/heads/release` blocks `refs/heads/release/vX.Y.Z`.
135
+
136
+ Required preflight:
137
+ - `git branch --list release --format='%(refname:short)'`
138
+ - If present, prove it is merged or backed up before renaming/removing it.
139
+ - Prefer `git branch -m release releases-tracking` when preservation is
140
+ needed; do not run `git branch -D release` without explicit approval.
141
+ - Re-run the branch-list check before `git switch -c release/vX.Y.Z`.
55
142
  description: Create release branch and pull request
56
143
 
57
144
  - name: publish