@hunyed15/codecgc 0.1.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.
Files changed (128) hide show
  1. package/.claude/hooks/route-edit.ps1 +86 -0
  2. package/INSTALLATION.md +550 -0
  3. package/LICENSE +21 -0
  4. package/README.md +171 -0
  5. package/bin/cgc-build.js +4 -0
  6. package/bin/cgc-doctor.js +4 -0
  7. package/bin/cgc-entry.js +4 -0
  8. package/bin/cgc-external-audit.js +4 -0
  9. package/bin/cgc-fix.js +4 -0
  10. package/bin/cgc-history.js +4 -0
  11. package/bin/cgc-install.js +4 -0
  12. package/bin/cgc-lifecycle.js +4 -0
  13. package/bin/cgc-package-audit.js +4 -0
  14. package/bin/cgc-plan.js +4 -0
  15. package/bin/cgc-release-readiness.js +4 -0
  16. package/bin/cgc-review.js +4 -0
  17. package/bin/cgc-route.js +4 -0
  18. package/bin/cgc-status.js +4 -0
  19. package/bin/cgc-test.js +4 -0
  20. package/bin/cgc.js +4 -0
  21. package/bin/codecgc.js +1284 -0
  22. package/codecgc/cgc/SKILL.md +46 -0
  23. package/codecgc/cgc-arch/SKILL.md +61 -0
  24. package/codecgc/cgc-build/SKILL.md +53 -0
  25. package/codecgc/cgc-decide/SKILL.md +55 -0
  26. package/codecgc/cgc-fix/SKILL.md +47 -0
  27. package/codecgc/cgc-learn/SKILL.md +46 -0
  28. package/codecgc/cgc-onboard/SKILL.md +52 -0
  29. package/codecgc/cgc-plan/SKILL.md +48 -0
  30. package/codecgc/cgc-refactor/SKILL.md +46 -0
  31. package/codecgc/cgc-req/SKILL.md +61 -0
  32. package/codecgc/cgc-review/SKILL.md +57 -0
  33. package/codecgc/cgc-roadmap/SKILL.md +55 -0
  34. package/codecgc/cgc-test/SKILL.md +21 -0
  35. package/codecgc/reference/api-cgc-review-libdoc.md +13 -0
  36. package/codecgc/reference/artifact-class-policy.md +81 -0
  37. package/codecgc/reference/build-flow.md +95 -0
  38. package/codecgc/reference/checklist-contract.md +103 -0
  39. package/codecgc/reference/execution-audit.md +121 -0
  40. package/codecgc/reference/execution-model.md +118 -0
  41. package/codecgc/reference/execution-routing.md +130 -0
  42. package/codecgc/reference/executor-contract.md +87 -0
  43. package/codecgc/reference/external-capability-registry.json +104 -0
  44. package/codecgc/reference/fix-flow.md +94 -0
  45. package/codecgc/reference/fixture-governance.md +60 -0
  46. package/codecgc/reference/flow-execution.md +65 -0
  47. package/codecgc/reference/lifecycle-map.md +172 -0
  48. package/codecgc/reference/lifecycle-playbook.md +104 -0
  49. package/codecgc/reference/long-lived-artifacts.md +98 -0
  50. package/codecgc/reference/operation-guide.md +242 -0
  51. package/codecgc/reference/release-maintenance-playbook.md +150 -0
  52. package/codecgc/reference/review-writeback.md +141 -0
  53. package/codecgc/reference/role-model.md +128 -0
  54. package/codecgc/reference/runtime-boundary.md +72 -0
  55. package/codecgc/reference/shared-conventions.md +93 -0
  56. package/codecgc/reference/workflow-scaffold.md +57 -0
  57. package/codexmcp/LICENSE +21 -0
  58. package/codexmcp/README.md +294 -0
  59. package/codexmcp/pyproject.toml +37 -0
  60. package/codexmcp/src/codexmcp/__init__.py +4 -0
  61. package/codexmcp/src/codexmcp/cli.py +12 -0
  62. package/codexmcp/src/codexmcp/server.py +529 -0
  63. package/geminimcp/README.md +258 -0
  64. package/geminimcp/pyproject.toml +15 -0
  65. package/geminimcp/src/geminimcp/__init__.py +4 -0
  66. package/geminimcp/src/geminimcp/cli.py +12 -0
  67. package/geminimcp/src/geminimcp/server.py +465 -0
  68. package/model-routing.yaml +30 -0
  69. package/package.json +90 -0
  70. package/requirements.txt +1 -0
  71. package/scripts/README-codecgc-cli.md +89 -0
  72. package/scripts/audit_codecgc_external_capabilities.py +276 -0
  73. package/scripts/audit_codecgc_historical_audits.py +242 -0
  74. package/scripts/audit_codecgc_lifecycle.py +241 -0
  75. package/scripts/audit_codecgc_package_runtime.py +445 -0
  76. package/scripts/audit_codecgc_release_readiness.py +202 -0
  77. package/scripts/audit_codecgc_review_policy.py +82 -0
  78. package/scripts/audit_codecgc_workflow_history.py +317 -0
  79. package/scripts/build_codecgc_task.py +487 -0
  80. package/scripts/codecgc_artifact_roots.py +40 -0
  81. package/scripts/codecgc_cli.py +843 -0
  82. package/scripts/codecgc_command_surface.py +28 -0
  83. package/scripts/codecgc_console_io.py +45 -0
  84. package/scripts/codecgc_executor_registry.py +54 -0
  85. package/scripts/codecgc_file_evidence.py +349 -0
  86. package/scripts/codecgc_flow_control.py +233 -0
  87. package/scripts/codecgc_governance_dedupe.py +161 -0
  88. package/scripts/codecgc_plan_decision.py +103 -0
  89. package/scripts/codecgc_review_control.py +588 -0
  90. package/scripts/codecgc_roadmap_templates.py +149 -0
  91. package/scripts/codecgc_routing_paths.py +16 -0
  92. package/scripts/codecgc_routing_template.py +135 -0
  93. package/scripts/codecgc_runtime_paths.py +22 -0
  94. package/scripts/codecgc_session_recovery.py +44 -0
  95. package/scripts/codecgc_step_control.py +154 -0
  96. package/scripts/codecgc_workflow_runtime.py +63 -0
  97. package/scripts/codecgc_workflow_templates.py +437 -0
  98. package/scripts/entry_codecgc_workflow.py +3419 -0
  99. package/scripts/exercise_mcp_tools.py +109 -0
  100. package/scripts/expand_codecgc_roadmap.py +664 -0
  101. package/scripts/init_codecgc_roadmap.py +134 -0
  102. package/scripts/init_codecgc_workflow.py +207 -0
  103. package/scripts/install_codecgc.py +938 -0
  104. package/scripts/migrate_demo_workflows_to_fixtures.py +128 -0
  105. package/scripts/normalize_codecgc_audits.py +114 -0
  106. package/scripts/normalize_codecgc_governance_docs.py +79 -0
  107. package/scripts/normalize_codecgc_workflow_docs.py +269 -0
  108. package/scripts/plan_codecgc_workflow.py +970 -0
  109. package/scripts/refresh_codecgc_review_policy.py +223 -0
  110. package/scripts/review_codecgc_workflow.py +88 -0
  111. package/scripts/route_codecgc_workflow.py +671 -0
  112. package/scripts/run_codecgc_build.py +104 -0
  113. package/scripts/run_codecgc_fix.py +104 -0
  114. package/scripts/run_codecgc_flow_step.py +165 -0
  115. package/scripts/run_codecgc_task.py +410 -0
  116. package/scripts/run_codecgc_test.py +105 -0
  117. package/scripts/sync_codecgc_mcp_config.py +41 -0
  118. package/scripts/write_codecgc_architecture.py +78 -0
  119. package/scripts/write_codecgc_decision.py +83 -0
  120. package/scripts/write_codecgc_explore.py +118 -0
  121. package/scripts/write_codecgc_guide.py +141 -0
  122. package/scripts/write_codecgc_learning.py +87 -0
  123. package/scripts/write_codecgc_libdoc.py +140 -0
  124. package/scripts/write_codecgc_refactor.py +78 -0
  125. package/scripts/write_codecgc_requirement.py +78 -0
  126. package/scripts/write_codecgc_review.py +291 -0
  127. package/scripts/write_codecgc_roadmap.py +122 -0
  128. package/scripts/write_codecgc_trick.py +123 -0
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: cgc
3
+ description: Root entry for CodeCGC. Use when the user wants to understand the CodeCGC workflow, does not know which cgc-* command to use, or gives an open-ended request that needs routing to installation, planning, feature delivery, issue fixing, or review.
4
+ ---
5
+
6
+ # cgc
7
+
8
+ `cgc` is the product entry for CodeCGC.
9
+ It routes the request and does not execute workflow work itself.
10
+
11
+ ## Read First
12
+
13
+ Before answering:
14
+
15
+ 1. check whether the project already has `codecgc/`
16
+ 2. read `codecgc/reference/shared-conventions.md`
17
+ 3. read `codecgc/reference/workflow-scaffold.md`
18
+ 4. scan `codecgc/features/`, `codecgc/issues/`, `codecgc/roadmap/`, `codecgc/requirements/`, and `codecgc/architecture/`
19
+ 5. read `codecgc/reference/operation-guide.md`
20
+
21
+ ## Route Table
22
+
23
+ - installing or repairing CodeCGC in a repo: `cgc-install` and `cgc-onboard`
24
+ - shaping or clarifying a request: `cgc-plan`
25
+ - starting or continuing feature delivery: `cgc-build`
26
+ - starting or continuing issue fixing: `cgc-fix`
27
+ - acceptance, audit, write-back, final review: `cgc-review`
28
+ - updating durable architecture docs: `cgc-arch`
29
+ - updating stable requirement docs: `cgc-req`
30
+ - expanding roadmap-scale planning: `cgc-roadmap`
31
+ - recording durable decisions: `cgc-decide`
32
+ - recording reusable lessons or pitfalls: `cgc-learn`
33
+ - behavior-preserving structural improvement: `cgc-refactor`
34
+
35
+ ## Output Rule
36
+
37
+ Return only:
38
+
39
+ - the recommended next `cgc-*` command
40
+ - one short reason
41
+ - one short note on what happens next
42
+
43
+ Do not write specs, code, or acceptance content here.
44
+
45
+ When a concrete feature or issue artifact already exists, prefer routing based
46
+ on the current artifact state instead of free-form judgment.
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: cgc-arch
3
+ description: Maintain long-lived current-state architecture assets for CodeCGC or an installed project. Use when accepted work changed system structure, runtime topology, integration boundaries, or durable technical constraints and those changes must be written back into codecgc/architecture/.
4
+ ---
5
+
6
+ # cgc-arch
7
+
8
+ This skill maintains `codecgc/architecture/` as the current-state system map.
9
+
10
+ ## Goal
11
+
12
+ Produce one of these outcomes:
13
+
14
+ - update an existing architecture document
15
+ - create one missing architecture document
16
+ - confirm that no architecture write-back is needed
17
+
18
+ ## Read First
19
+
20
+ Read:
21
+
22
+ - `codecgc/architecture/README.md`
23
+ - `codecgc/reference/shared-conventions.md`
24
+ - `codecgc/reference/workflow-scaffold.md`
25
+
26
+ Then inspect:
27
+
28
+ - accepted feature or issue artifacts related to the change
29
+ - relevant files under `scripts/`, `bin/`, `.claude/`, `codexmcp/`, `geminimcp/`
30
+ - existing docs under `codecgc/architecture/`
31
+
32
+ ## What Belongs Here
33
+
34
+ Write here only when the repository or installed project now has a durable new state:
35
+
36
+ - module boundaries
37
+ - runtime topology
38
+ - integration maps
39
+ - technical constraints already adopted
40
+
41
+ Do not write:
42
+
43
+ - speculative redesign
44
+ - one-off implementation notes
45
+ - executor audit output
46
+ - temporary task checklist detail
47
+
48
+ ## Core Rule
49
+
50
+ Architecture docs record accepted reality, not future intent.
51
+
52
+ If the change is still under discussion, keep it out of `codecgc/architecture/`.
53
+
54
+ ## Output Rule
55
+
56
+ When updating architecture, return:
57
+
58
+ - which architecture doc was updated or created
59
+ - one short summary of the durable system change
60
+ - whether requirements or roadmap should also be updated
61
+
@@ -0,0 +1,53 @@
1
+ ---
2
+ name: cgc-build
3
+ description: Entry for feature delivery in CodeCGC. Use when the user wants to add or continue a feature and the work must move from planning into design, executable step packaging, delegated implementation, and review under forced multi-model routing.
4
+ ---
5
+
6
+ # cgc-build
7
+
8
+ This skill owns feature delivery for CodeCGC.
9
+
10
+ ## Goal
11
+
12
+ Move a feature through:
13
+
14
+ 1. design readiness
15
+ 2. step isolation
16
+ 3. forced delegated execution
17
+ 4. review handoff
18
+
19
+ ## Read First
20
+
21
+ Read:
22
+
23
+ - `codecgc/reference/shared-conventions.md`
24
+ - `codecgc/reference/execution-model.md`
25
+ - `codecgc/reference/checklist-contract.md`
26
+ - `codecgc/reference/build-flow.md`
27
+ - `codecgc/reference/execution-audit.md`
28
+ - `codecgc/reference/flow-execution.md`
29
+ - `codecgc/reference/operation-guide.md`
30
+
31
+ Inspect the relevant feature directory under `codecgc/features/`.
32
+
33
+ ## Hard Rules
34
+
35
+ - code-writing steps must not be executed directly by Claude
36
+ - every executable code step must have a valid `codecgc` block
37
+ - mixed frontend/backend/shared scope must be split before execution
38
+ - the workflow wrapper must call `scripts/run_codecgc_flow_step.py`
39
+
40
+ ## Current Product Boundary
41
+
42
+ This skill must use design and checklist artifacts under `codecgc/features/`
43
+ and interpret them through CodeCGC rules.
44
+
45
+ ## Exit Rule
46
+
47
+ The output of this skill is one of:
48
+
49
+ - a delegated execution result ready for `cgc-review`
50
+ - a request to return to planning or design
51
+ - a refusal because the step is not executable yet
52
+
53
+ When execution succeeds, keep the audit path with the result package.
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: cgc-decide
3
+ description: Record durable technical or product decisions after they have been accepted. Use when a choice about architecture, workflow policy, command surface, model routing, or long-lived convention must be written back into codecgc/compound/ or a related durable asset.
4
+ ---
5
+
6
+ # cgc-decide
7
+
8
+ This skill records durable accepted decisions for future humans and models.
9
+
10
+ ## Goal
11
+
12
+ Produce one of these outcomes:
13
+
14
+ - append or create a durable decision artifact
15
+ - update an existing durable decision section
16
+ - confirm that the choice is not final yet and should not be archived
17
+
18
+ ## Read First
19
+
20
+ Read:
21
+
22
+ - `codecgc/compound/README.md`
23
+ - `codecgc/reference/shared-conventions.md`
24
+ - accepted design, review, or architecture artifacts that contain the final choice
25
+
26
+ ## What Counts As A Decision
27
+
28
+ Good candidates:
29
+
30
+ - command-surface policy
31
+ - routing or ownership convention
32
+ - architecture constraint
33
+ - product-level workflow choice
34
+ - long-lived migration rule
35
+
36
+ Bad candidates:
37
+
38
+ - tentative brainstorming
39
+ - unreviewed implementation preference
40
+ - one-step local workaround
41
+
42
+ ## Core Rule
43
+
44
+ Only archive decisions that are already accepted.
45
+
46
+ If the team is still debating, do not write a durable decision note.
47
+
48
+ ## Output Rule
49
+
50
+ When recording a decision, return:
51
+
52
+ - where it was recorded
53
+ - the decision itself in one line
54
+ - what future behavior it constrains
55
+
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: cgc-fix
3
+ description: Entry for issue fixing in CodeCGC. Use when the user wants to diagnose, continue, or apply a scoped bug fix and the code change must be delegated through the forced frontend or backend executor instead of direct Claude editing.
4
+ ---
5
+
6
+ # cgc-fix
7
+
8
+ This skill owns issue repair for CodeCGC.
9
+
10
+ ## Goal
11
+
12
+ Move a bug fix through:
13
+
14
+ 1. scope confirmation
15
+ 2. one-executor packaging
16
+ 3. forced delegated execution
17
+ 4. fix-note and review handoff
18
+
19
+ ## Read First
20
+
21
+ Read:
22
+
23
+ - `codecgc/reference/shared-conventions.md`
24
+ - `codecgc/reference/execution-model.md`
25
+ - `codecgc/reference/checklist-contract.md`
26
+ - `codecgc/reference/fix-flow.md`
27
+ - `codecgc/reference/execution-audit.md`
28
+ - `codecgc/reference/flow-execution.md`
29
+ - `codecgc/reference/operation-guide.md`
30
+
31
+ Inspect the relevant issue directory under `codecgc/issues/`.
32
+
33
+ ## Hard Rules
34
+
35
+ - do not directly edit routed business code with Claude
36
+ - do not expand a fix into mixed-scope implementation
37
+ - if the fix touches shared or mixed scope, split it first
38
+ - execute code changes through `scripts/run_codecgc_flow_step.py`
39
+
40
+ ## Exit Rule
41
+
42
+ This skill ends with:
43
+
44
+ - a delegated fix result ready for `cgc-review`
45
+ - or a return to planning because the fix scope is still mixed or underspecified
46
+
47
+ When execution succeeds, keep the audit path with the fix result.
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: cgc-learn
3
+ description: Capture reusable lessons, pitfalls, and repeatable practices discovered during delivery. Use when an accepted feature, issue, review, or failure mode exposed a durable learning that should be remembered across future work.
4
+ ---
5
+
6
+ # cgc-learn
7
+
8
+ This skill captures durable lessons for future delivery loops.
9
+
10
+ ## Goal
11
+
12
+ Produce one of these outcomes:
13
+
14
+ - add a reusable learning artifact
15
+ - append a pitfall or practice to an existing artifact
16
+ - confirm that the observation is too local or temporary to record
17
+
18
+ ## Read First
19
+
20
+ Read:
21
+
22
+ - `codecgc/compound/README.md`
23
+ - the accepted workflow artifacts or failed execution evidence that produced the lesson
24
+
25
+ ## Good Learning Candidates
26
+
27
+ - repeated failure mode
28
+ - routing mistake worth preventing
29
+ - review pitfall
30
+ - install or runtime trap
31
+ - practice that should become a default habit
32
+
33
+ ## Core Rule
34
+
35
+ Learnings should be reusable.
36
+
37
+ Do not record raw narrative of one task unless it changes how future work should be done.
38
+
39
+ ## Output Rule
40
+
41
+ When recording a learning, return:
42
+
43
+ - where it was recorded
44
+ - whether it is a pitfall or a preferred practice
45
+ - one short instruction for future work
46
+
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: cgc-onboard
3
+ description: Initialize or rebuild the CodeCGC workflow layer in a project. Use when a repository needs the new CodeCGC structure, references, and product-level workflow rules instead of older command surfaces.
4
+ ---
5
+
6
+ # cgc-onboard
7
+
8
+ This skill initializes or repairs the CodeCGC project integration layer.
9
+
10
+ ## Goal
11
+
12
+ Create a project that has:
13
+
14
+ - `codecgc/` workflow references
15
+ - the active `cgc-*` command surface
16
+ - routing-aware execution rules
17
+ - active artifact storage under `codecgc/`
18
+
19
+ ## Read First
20
+
21
+ Read:
22
+
23
+ - `codecgc/reference/shared-conventions.md`
24
+ - `codecgc/reference/execution-model.md`
25
+ - `codecgc/reference/workflow-scaffold.md`
26
+
27
+ Also inspect:
28
+
29
+ - `.mcp.json`
30
+ - `.claude/settings.json`
31
+ - `.claude/hooks/route-edit.ps1`
32
+ - `model-routing.yaml`
33
+
34
+ ## Rules
35
+
36
+ - Do not preserve old `cs-*` command compatibility
37
+ - Do not keep active artifact writes under legacy directories
38
+ - Do not keep legacy branding in the active workflow layer
39
+
40
+ ## Expected Result
41
+
42
+ After onboarding, the repo should be ready to use:
43
+
44
+ - `cgc`
45
+ - `cgc-install`
46
+ - `cgc-status`
47
+ - `cgc-doctor`
48
+ - `cgc-plan`
49
+ - `cgc-build`
50
+ - `cgc-fix`
51
+ - `cgc-review`
52
+ - `cgc-route`
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: cgc-plan
3
+ description: Clarify, shape, and split work before execution in CodeCGC. Use when a request is still fuzzy, too large, mixed across frontend and backend, or not yet ready to become a one-executor coding step.
4
+ ---
5
+
6
+ # cgc-plan
7
+
8
+ This skill replaces the old split between vague brainstorming and feature entry.
9
+
10
+ ## Goal
11
+
12
+ Produce one of these outcomes:
13
+
14
+ - ready for `cgc-build`
15
+ - ready for `cgc-fix`
16
+ - needs roadmap-level decomposition
17
+ - needs more user clarification
18
+
19
+ ## Read First
20
+
21
+ Read:
22
+
23
+ - `codecgc/reference/shared-conventions.md`
24
+ - `codecgc/reference/execution-model.md`
25
+ - `codecgc/reference/checklist-contract.md`
26
+ - `codecgc/reference/workflow-scaffold.md`
27
+ - `codecgc/reference/operation-guide.md`
28
+
29
+ Inspect relevant existing artifacts if they exist.
30
+
31
+ ## Core Rule
32
+
33
+ Do not let mixed execution scope leak into implementation.
34
+
35
+ If a request mixes frontend, backend, or shared change, split it before it can
36
+ be executed by CodeCGC.
37
+
38
+ ## Exit Rule
39
+
40
+ A request may leave this skill only when it is clear:
41
+
42
+ - what problem is being solved
43
+ - whether it is build or fix work
44
+ - whether it is feature-sized or roadmap-sized
45
+ - whether the next executable step has one-model ownership
46
+
47
+ When the artifact directory does not exist yet, create the minimal scaffold
48
+ before handing work to `cgc-build` or `cgc-fix`.
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: cgc-refactor
3
+ description: Run a controlled behavior-preserving refactor flow under CodeCGC rules. Use when the request is about structure, readability, maintainability, or performance without changing product behavior, and the work still needs planning, routing, execution, and review discipline.
4
+ ---
5
+
6
+ # cgc-refactor
7
+
8
+ This skill owns controlled refactor work for CodeCGC.
9
+
10
+ ## Goal
11
+
12
+ Move a refactor through:
13
+
14
+ 1. scope confirmation
15
+ 2. behavior-preserving plan
16
+ 3. routed execution
17
+ 4. review and write-back
18
+
19
+ ## Read First
20
+
21
+ Read:
22
+
23
+ - `codecgc/reference/shared-conventions.md`
24
+ - `codecgc/reference/execution-model.md`
25
+ - `codecgc/reference/operation-guide.md`
26
+
27
+ Then inspect:
28
+
29
+ - relevant source files
30
+ - current feature or issue artifacts if the refactor is adjacent to accepted work
31
+
32
+ ## Hard Rules
33
+
34
+ - refactor must not hide a new feature
35
+ - refactor must not hide a bug fix requirement
36
+ - mixed frontend/backend scope must be split before execution
37
+ - code-writing still follows the same routed ownership model
38
+
39
+ ## Exit Rule
40
+
41
+ This skill ends with one of:
42
+
43
+ - a routed refactor step ready for execution
44
+ - a return to `cgc-plan` because the request is actually feature or issue work
45
+ - a refusal because behavior-preserving scope is not credible yet
46
+
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: cgc-req
3
+ description: Write back stable current-state product requirements into codecgc/requirements/. Use when accepted feature or issue work changed the durable product surface, command contract, business rule, or scope boundary and that reality should be recorded as a long-lived requirement artifact.
4
+ ---
5
+
6
+ # cgc-req
7
+
8
+ This skill maintains `codecgc/requirements/` as the current-state requirement layer.
9
+
10
+ ## Goal
11
+
12
+ Produce one of these outcomes:
13
+
14
+ - update an existing requirement doc
15
+ - create one missing requirement doc
16
+ - confirm that no requirement write-back is needed
17
+
18
+ ## Read First
19
+
20
+ Read:
21
+
22
+ - `codecgc/requirements/README.md`
23
+ - `codecgc/reference/shared-conventions.md`
24
+ - `codecgc/reference/workflow-scaffold.md`
25
+
26
+ Then inspect:
27
+
28
+ - accepted feature or issue artifacts
29
+ - user-facing command or capability changes
30
+ - existing requirement docs under `codecgc/requirements/`
31
+
32
+ ## What Belongs Here
33
+
34
+ Write here only when the capability is now part of stable current behavior:
35
+
36
+ - current user-visible capabilities
37
+ - business rules already in force
38
+ - stable scope boundaries for established modules
39
+ - accepted command-surface behavior
40
+
41
+ Do not write:
42
+
43
+ - brainstorming
44
+ - temporary bug analysis
45
+ - one-off implementation notes
46
+ - future roadmap intent
47
+
48
+ ## Core Rule
49
+
50
+ Requirements docs explain what the product now does and where its stable boundaries are.
51
+
52
+ They do not explain how one temporary feature step was implemented.
53
+
54
+ ## Output Rule
55
+
56
+ When updating requirements, return:
57
+
58
+ - which requirement doc was updated or created
59
+ - the stable capability or rule that changed
60
+ - whether architecture should also be updated
61
+
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: cgc-review
3
+ description: Final review, acceptance, audit, and write-back for CodeCGC. Use when delegated execution has completed and Claude needs to verify results, summarize risk, update workflow artifacts, and decide whether the work is truly complete.
4
+ ---
5
+
6
+ # cgc-review
7
+
8
+ This skill owns the final control point of CodeCGC.
9
+
10
+ ## Goal
11
+
12
+ Verify that delegated execution is complete and safe to close.
13
+
14
+ ## Read First
15
+
16
+ Read:
17
+
18
+ - `codecgc/reference/shared-conventions.md`
19
+ - `codecgc/reference/execution-model.md`
20
+ - `codecgc/reference/execution-audit.md`
21
+ - `codecgc/reference/review-writeback.md`
22
+ - `codecgc/reference/operation-guide.md`
23
+
24
+ Then inspect:
25
+
26
+ - delegated execution result
27
+ - execution audit artifact
28
+ - changed paths
29
+ - relevant feature or issue artifact directory
30
+
31
+ ## Responsibilities
32
+
33
+ - compare result against step acceptance criteria
34
+ - verify executor ownership was respected
35
+ - identify remaining risk
36
+ - prepare summary for artifact write-back
37
+ - write the review result back into acceptance or fix-note artifacts
38
+
39
+ ## Hard Rule
40
+
41
+ Acceptance is not only "code exists".
42
+
43
+ It must also confirm:
44
+
45
+ - the correct executor handled the step
46
+ - the path scope was respected
47
+ - the step actually satisfied its local acceptance target
48
+ - follow-up work is clearly separated
49
+
50
+ ## Output
51
+
52
+ Return a concise review result with:
53
+
54
+ - accepted or not accepted
55
+ - scope and ownership check
56
+ - remaining risks
57
+ - required next step if not done
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: cgc-roadmap
3
+ description: Create or expand roadmap-scale planning when a request is too large for one feature or issue flow. Use when work must be decomposed into phases, child tracks, or multiple follow-up workflows under codecgc/roadmap/.
4
+ ---
5
+
6
+ # cgc-roadmap
7
+
8
+ This skill owns roadmap-scale decomposition for CodeCGC.
9
+
10
+ ## Goal
11
+
12
+ Produce one of these outcomes:
13
+
14
+ - initialize a new roadmap pack
15
+ - expand an existing roadmap with clearer phases or child tracks
16
+ - confirm that the request is feature-sized and should return to `cgc-plan`
17
+
18
+ ## Read First
19
+
20
+ Read:
21
+
22
+ - `codecgc/roadmap/README.md`
23
+ - `codecgc/reference/shared-conventions.md`
24
+ - `codecgc/reference/workflow-scaffold.md`
25
+ - `codecgc/reference/operation-guide.md`
26
+
27
+ Then inspect:
28
+
29
+ - current request
30
+ - related feature or issue artifacts
31
+ - existing roadmap docs under `codecgc/roadmap/`
32
+
33
+ ## Core Rule
34
+
35
+ Roadmap is for work that is too large, too mixed, or too long-lived for one executable workflow.
36
+
37
+ Do not create roadmap just because the task feels important.
38
+
39
+ ## Required Outcomes
40
+
41
+ A valid roadmap result should make these points clear:
42
+
43
+ - what the parent problem is
44
+ - why one feature or issue flow is not enough
45
+ - what phases or tracks exist
46
+ - what child workflows should be created next
47
+
48
+ ## Output Rule
49
+
50
+ When roadmap is the right answer, return:
51
+
52
+ - roadmap slug or path
53
+ - parent problem summary
54
+ - next child workflow or next planning step
55
+
@@ -0,0 +1,21 @@
1
+ # CodeCGC `cgc-test`
2
+
3
+ `cgc-test` 用于执行已经进入主工作流的测试步骤。
4
+
5
+ 它不是独立于 `feature / issue` 之外的新体系,而是:
6
+
7
+ - 读取当前 workflow 中的测试 step
8
+ - 按前端测试 / 后端测试继续走 Gemini / Codex
9
+ - 复用现有 `execution audit -> review` 闭环
10
+
11
+ 默认入口:
12
+
13
+ ```bash
14
+ cgc-test --flow <feature|issue> --slug <slug>
15
+ ```
16
+
17
+ 如果已经知道准确 step,也可以:
18
+
19
+ ```bash
20
+ cgc-test --flow <feature|issue> --slug <slug> --step-number <n>
21
+ ```
@@ -0,0 +1,13 @@
1
+ # 补一份 API 文档,说明 cgc-review 的输出结构
2
+
3
+ - 表面类型: public-api
4
+ - 摘要: 补一份 API 文档,说明 cgc-review 的输出结构
5
+ - 来源: cgc-entry 治理分诊
6
+
7
+ ## 1. 入口
8
+
9
+ 待补充。
10
+
11
+ ## 2. 公开契约
12
+
13
+ 待补充。