@aicgen/aicgen 1.1.0 → 1.2.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.
package/data/version.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
- "version": "1.0.0",
3
- "lastUpdated": "2026-05-14",
2
+ "version": "1.2.0",
3
+ "lastUpdated": "2026-05-26",
4
4
  "totalGuidelines": 99,
5
+ "totalWorkflows": 6,
5
6
  "categories": {
6
7
  "Language": 39,
7
8
  "Architecture": 21,
@@ -45,7 +46,6 @@
45
46
  "levels": {
46
47
  "basic": 23,
47
48
  "standard": 83,
48
- "expert": 99,
49
49
  "full": 99
50
50
  },
51
51
  "datasources": {
@@ -8,6 +8,13 @@ aicgen injects a structured 6-command SDLC workflow into every generated assista
8
8
  /spec → /research → /plan → /build → /check → /ship
9
9
  ```
10
10
 
11
+ For Codex, aicgen generates a project-local `aicgen-sdlc` plugin and exposes
12
+ namespaced commands to avoid conflicts with built-in Codex commands:
13
+
14
+ ```
15
+ /aicgen-spec → /aicgen-research → /aicgen-plan → /aicgen-build → /aicgen-check → /aicgen-ship
16
+ ```
17
+
11
18
  | Step | Command | Output artifact |
12
19
  |------|---------|----------------|
13
20
  | 1 | [`/spec [name]`](sdlc/spec.md) | `docs/specs/{name}.md` |
@@ -26,6 +33,20 @@ aicgen injects a structured 6-command SDLC workflow into every generated assista
26
33
  - [/check](sdlc/check.md) — Verify implementation against spec and run tests
27
34
  - [/ship](sdlc/ship.md) — Pre-flight checks and PR description draft
28
35
 
36
+ ## Codex plugin commands
37
+
38
+ When Codex is selected in `aicgen configure` or `aicgen init`, aicgen generates
39
+ a project-local `aicgen-sdlc` plugin plus `.agents/plugins/marketplace.json`.
40
+ Restart Codex from the generated project root, or add the marketplace manually,
41
+ so Codex can load the plugin. Use the namespaced commands in Codex:
42
+
43
+ - `/aicgen-spec` — aicgen `/spec`
44
+ - `/aicgen-research` — aicgen `/research`
45
+ - `/aicgen-plan` — aicgen `/plan`
46
+ - `/aicgen-build` — aicgen `/build`
47
+ - `/aicgen-check` — aicgen `/check`
48
+ - `/aicgen-ship` — aicgen `/ship`
49
+
29
50
  ## Output directory
30
51
 
31
52
  All spec and plan artifacts are saved to the `docs/` directory in the user's project. This directory is created automatically if it does not exist.
@@ -48,4 +69,4 @@ docs/
48
69
 
49
70
  ## Source
50
71
 
51
- Command definitions are maintained in [`aicgen/data/workflows/sdlc.md`](https://github.com/aicgen/aicgen/blob/main/data/workflows/sdlc.md) and injected into every generated config at `aicgen init` time.
72
+ Command definitions are maintained in [`aicgen-data/workflows/sdlc.md`](https://github.com/aicgen/aicgen-data/blob/main/workflows/sdlc.md) and injected into every generated config at `aicgen init` time.
@@ -0,0 +1,133 @@
1
+ # SDLC Workflows
2
+
3
+ ## /spec [name]
4
+ Capture the full specification for a feature or task before any code is written.
5
+
6
+ **Steps:**
7
+ 1. Ask for a feature name if not provided as an argument
8
+ 2. Ask the user to describe: goal, user stories, acceptance criteria, constraints, and what is explicitly out of scope
9
+ 3. Create `docs/specs/` directory if it does not exist
10
+ 4. Save the gathered information to `docs/specs/{name}.md` using the template below
11
+ 5. Confirm the file was saved and prompt the user to run `/research`
12
+
13
+ **Output template (`docs/specs/{name}.md`):**
14
+ ```markdown
15
+ # Spec: {name}
16
+
17
+ ## Goal
18
+ {goal}
19
+
20
+ ## User Stories
21
+ {user stories}
22
+
23
+ ## Acceptance Criteria
24
+ {acceptance criteria}
25
+
26
+ ## Constraints
27
+ {constraints}
28
+
29
+ ## Out of Scope
30
+ {out of scope}
31
+ ```
32
+
33
+ ---
34
+
35
+ ## /research
36
+ Analyze the active spec with internal codebase scanning and external web research.
37
+
38
+ **Pre-condition:** An active spec must exist in `docs/specs/` — if none is found, tell the user to run `/spec` first and stop.
39
+
40
+ **Steps:**
41
+ 1. Read the most recently modified spec from `docs/specs/`
42
+ 2. **Internal scan:** Search the codebase for related code, existing patterns, similar implementations, dependencies, and potential conflicts relevant to the spec
43
+ 3. **Infrastructure prompt:** Ask the user:
44
+ > "Does this feature require infrastructure decisions?"
45
+ > - Cost-optimised / serverless (pay-per-use: Cloud Run, Cloud Functions, AWS Lambda, Fargate, etc.)
46
+ > - Fixed / dedicated (predictable load: Kubernetes, EC2, GKE, dedicated VMs, etc.)
47
+ > - No infrastructure involved
48
+ 4. **Web research:** Search for architecture patterns, best practices, reference implementations, and cost comparisons relevant to the spec. Bias results toward the chosen infrastructure model if one was selected.
49
+ 5. Surface: recommended approaches, trade-offs, cost implications, and links to reference material
50
+ 6. Suggest any improvements or clarifications to the spec based on findings
51
+ 7. Append a `## Research Findings` section to the active spec file containing: internal findings, web research summary, infrastructure recommendation (if applicable), and suggested spec improvements
52
+ 8. Prompt the user to run `/plan`
53
+
54
+ ---
55
+
56
+ ## /plan
57
+ Produce a phased, checkpoint-driven implementation plan based on the spec and research findings.
58
+
59
+ **Pre-condition:** An active spec with a `## Research Findings` section must exist — if research has not been run, warn the user and ask them to confirm they want to skip it before proceeding.
60
+
61
+ **Steps:**
62
+ 1. Read the active spec (including research findings) from `docs/specs/`
63
+ 2. Analyse the codebase to understand existing structure, patterns, and conventions
64
+ 3. Break the implementation into phases — each phase must be independently verifiable
65
+ 4. For each phase, list: files to create or modify, key decisions, and how to verify it is complete
66
+ 5. Identify risks and propose mitigations
67
+ 6. Create `docs/plans/` directory if it does not exist
68
+ 7. Save the plan to `docs/plans/{spec-name}.md`
69
+ 8. Confirm the file was saved and prompt the user to run `/build`
70
+
71
+ ---
72
+
73
+ ## /build [phase]
74
+ Execute the next (or a specified) phase of the current implementation plan.
75
+
76
+ **Pre-condition:** An active plan must exist in `docs/plans/` — if none is found, tell the user to run `/plan` first and stop.
77
+
78
+ **Steps:**
79
+ 1. Read the active plan from `docs/plans/`
80
+ 2. Determine the next incomplete phase (or the phase specified by the argument)
81
+ 3. Announce which phase is being executed and what it covers
82
+ 4. Implement the phase step by step, following existing codebase patterns and conventions
83
+ 5. After completing the phase, summarise what was changed and what was created
84
+ 6. Mark the phase as complete in the plan file
85
+ 7. Run any tests relevant to the completed phase and report results
86
+ 8. Pause and ask: "Phase {n} complete. Continue to phase {n+1}?" before proceeding
87
+
88
+ ---
89
+
90
+ ## /check
91
+ Verify the current implementation against the active spec — tests, code review, and regression check.
92
+
93
+ **Steps:**
94
+ 1. Read the active spec from `docs/specs/` and the active plan from `docs/plans/`
95
+ 2. Run the full test suite and report results
96
+ 3. Review all changed files against the spec's acceptance criteria — flag any gaps
97
+ 4. Check for regressions by reviewing changed files for unintended side effects
98
+ 5. Produce a structured report:
99
+ - ✅ Acceptance criteria met
100
+ - ❌ Acceptance criteria not met (with details)
101
+ - ⚠️ Potential regressions (with details)
102
+ - 📋 Suggested fixes
103
+ 6. If all criteria are met and no regressions are found, prompt the user to run `/ship`
104
+
105
+ ---
106
+
107
+ ## /ship
108
+ Pre-flight wrap-up — verify everything is ready, then draft a PR description.
109
+
110
+ **Steps:**
111
+ 1. Run the full test suite — stop and report if any tests fail
112
+ 2. Read the active spec and plan
113
+ 3. Verify that `docs/specs/{name}.md` and `docs/plans/{name}.md` are up to date
114
+ 4. Check for uncommitted changes and list them
115
+ 5. Draft a PR description referencing the spec and plan:
116
+ ```
117
+ ## Summary
118
+ {goal from spec}
119
+
120
+ ## Changes
121
+ {summary of phases completed}
122
+
123
+ ## Spec
124
+ docs/specs/{name}.md
125
+
126
+ ## Plan
127
+ docs/plans/{name}.md
128
+
129
+ ## Test plan
130
+ {acceptance criteria from spec as a checklist}
131
+ ```
132
+ 6. Present the PR description to the user for review
133
+ 7. Ask: "Ready to commit and push?" — if yes, stage all changes and create a commit with a conventional commit message