@axis-bootstrap/cli 0.1.0 → 0.1.2

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/package.json CHANGED
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@axis-bootstrap/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "AXIS — Harness-first scaffolding & SPDD pipeline CLI for AI-augmented projects",
5
5
  "type": "module",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/jhonymiler/AXIS-Framework.git",
9
+ "directory": "cli"
10
+ },
11
+ "homepage": "https://github.com/jhonymiler/AXIS-Framework#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/jhonymiler/AXIS-Framework/issues"
14
+ },
6
15
  "publishConfig": {
7
16
  "access": "public"
8
17
  },
@@ -39,4 +48,4 @@
39
48
  "@clack/prompts": "^0.7.0",
40
49
  "picocolors": "^1.0.1"
41
50
  }
42
- }
51
+ }
@@ -18,6 +18,7 @@ target-project/
18
18
  │ ├── rules/ (3-7 rules — if applicable)
19
19
  │ │ ├── code-style.md
20
20
  │ │ ├── architecture-patterns.md
21
+ │ │ ├── workflow.md (PM tool + commit/branch/PR standards — if Phase 1 Block 4 produced answers)
21
22
  │ │ └── ...
22
23
  │ └── docs/
23
24
  │ ├── architecture.md (if software)
@@ -58,8 +59,9 @@ Order (consultation frequency, not logical importance):
58
59
  4. Architecture in table (components + responsibility)
59
60
  5. Design principles (3-7 bullets with rationale)
60
61
  6. Code conventions (summary — details in rules)
61
- 7. Available skills (table with when to use)
62
- 8. Links to docs and references
62
+ 7. Workflow & Tools (PM tool, branch/commit/PR standards — details in `rules/workflow.md`)
63
+ 8. Available skills (table with when to use)
64
+ 9. Links to docs and references
63
65
 
64
66
  **Size:** 100-180 lines. Below 100 is superficial; above 200 loses focus.
65
67
 
@@ -118,3 +118,46 @@ Apply principles from [UNIVERSAL-MAP.md](UNIVERSAL-MAP.md) and adapt. Ultimately
118
118
  14. What level of validation is acceptable? (vibe-check, human review, automated gates, all)
119
119
  15. Is there a history of problems the framework should prevent? (e.g., "we lose context whenever the dev changes", "AI responses diverge between IDEs")
120
120
  ```
121
+
122
+ ---
123
+
124
+ ## Block 4 — Collaboration & Governance
125
+
126
+ Apply whenever the project uses version control or any task tracker (most projects). Skip individual questions that visibly don't apply (e.g., solo project with no PR flow).
127
+
128
+ ```text
129
+ 16. Task / project management tool? (Jira, Linear, GitHub Projects, Trello, Asana, ClickUp, Notion, none)
130
+ - If applicable: board / project ID and ticket prefix (e.g., PROJ-123, ENG-456)
131
+ - Workflow states used (To Do → In Progress → Review → Done) or custom?
132
+ - Where to find the board (URL or MCP reference)?
133
+
134
+ 17. Commit message standard?
135
+ - Convention: Conventional Commits (feat:, fix:, chore:, ...), Gitmoji, free-form, other
136
+ - Ticket ID required in subject or trailer? Format example?
137
+ - Sign-off (DCO), GPG signing, or Co-authored-by trailers required?
138
+
139
+ 18. Branch model & naming?
140
+ - Main branch name (main / master / trunk)
141
+ - Naming pattern (feature/, fix/, hotfix/, chore/, release/, <user>/<slug>)
142
+ - Strategy: trunk-based, GitHub Flow, Git Flow, release branches
143
+ - Direct push to main allowed, or PR-only? Branch protection rules?
144
+
145
+ 19. Pull Request rules?
146
+ - PR title format (Conventional, ticket prefix, free)
147
+ - PR template / required sections (summary, test plan, screenshots, rollback)
148
+ - Minimum approvals, CODEOWNERS, required CI checks
149
+ - Merge strategy: squash, merge commit, rebase-and-merge
150
+ - Auto-delete branch after merge? Linear history enforced?
151
+
152
+ 20. Task / story creation standards?
153
+ - Required fields (description, AC, story points, epic, labels, components)
154
+ - Definition of Ready / Definition of Done templates?
155
+ - Estimation system (story points, t-shirt sizes, hours, none)?
156
+
157
+ 21. Release & versioning?
158
+ - Versioning scheme (SemVer, CalVer, none)
159
+ - Changelog (Keep a Changelog, auto-generated from commits, none)
160
+ - Release cadence (continuous, sprint, scheduled)
161
+ ```
162
+
163
+ If the project does not use git or any tracker (rare — usually a solo content or research draft), skip this block entirely and note it in the Project Profile.
@@ -43,8 +43,9 @@ Use the template from [TEMPLATES.md → INSTRUCTIONS.md](TEMPLATES.md#instructio
43
43
  4. **Architecture** (table: component → responsibility → technology → location)
44
44
  5. **Design Principles** (3-7 bullets with short rationale)
45
45
  6. **Conventions** (summary — details in rules)
46
- 7. **Available Skills** (table: skill when to use)
47
- 8. **Links** (to detailed docs)
46
+ 7. **Workflow & Tools** (task tracker, branch model, commit/PR standards — details in `rules/workflow.md`). Skip only if Phase 1 Block 4 was fully skipped.
47
+ 8. **Available Skills** (table: skill → when to use)
48
+ 9. **Links** (to detailed docs)
48
49
 
49
50
  **Target size:** 100-180 lines. Below 100 is superficial; above 200 loses focus.
50
51
 
@@ -133,9 +134,12 @@ For software projects, create 3-7 rules in `.ai/rules/`. Use template [Rule in T
133
134
  ├── architecture-patterns.md (DI, modules, framework patterns)
134
135
  ├── database.md (ORM, migrations, queries)
135
136
  ├── testing.md (test structure, mocks)
136
- └── cli.md (commands and scripts)
137
+ ├── cli.md (commands and scripts)
138
+ └── workflow.md (PM tool, branch model, commit & PR standards — populated from Phase 1 Block 4)
137
139
  ```
138
140
 
141
+ **`workflow.md`** is created whenever Phase 1 Block 4 produced answers (PM tool, commit convention, branch model, PR rules, task/release standards). Even non-software projects that use git benefit from it — keep only the sections that apply. Template in [TEMPLATES.md → workflow.md](TEMPLATES.md#workflowmd-rule).
142
+
139
143
  **Frontmatter for scope:**
140
144
 
141
145
  ```yaml
@@ -29,6 +29,8 @@ This phase also runs in standalone mode when the user asks to **audit an existin
29
29
  [ ] Each SKILL.md has frontmatter with `name` and `description`
30
30
  [ ] Each `description` has 2-4 lines and mentions trigger terms
31
31
  [ ] For software projects: at least 3 rules in .ai/rules/ with `applyTo`
32
+ [ ] If Phase 1 Block 4 was answered: .ai/rules/workflow.md exists with the populated sections (PM tool, commits, branches, PRs)
33
+ [ ] INSTRUCTIONS.md has a "Workflow & Tools" section pointing to rules/workflow.md (or block 4 was explicitly skipped)
32
34
  [ ] At least 1 stub in .ai/docs/ (architecture.md, glossary.md, or equivalent)
33
35
  [ ] .ai/CONVENTIONS.md exists and contains symlink map
34
36
  [ ] .ai/docs/STATE.md exists with the 6 mandatory sections
@@ -24,6 +24,7 @@ Answer mentally or paste the answers to the agent:
24
24
  2. **Main stack/tools?** (or "non-technical" if content/research)
25
25
  3. **Which IDE(s) do you use?** (Claude Code / Cursor / Windsurf / Copilot — mark all)
26
26
  4. **Is there anything the agent should NEVER do?** (e.g., push directly to main, delete production data)
27
+ 5. **Workflow basics** (1 line each — skip what doesn't apply): task tracker (Jira/Linear/GitHub/none) + ticket prefix; commit standard (Conventional / free); branch pattern (e.g., `feature/<ticket>-<slug>`); PR rules (approvals, CI, merge strategy). For the full version, see Block 4 of [PHASE-1-DISCOVERY.md](PHASE-1-DISCOVERY.md#block-4--collaboration--governance).
27
28
 
28
29
  ---
29
30
 
@@ -50,6 +50,16 @@ Summary here; details in [.ai/rules/](rules/):
50
50
  - Error handling: <rule>
51
51
  - Tests: <rule>
52
52
 
53
+ ## Workflow & Tools
54
+
55
+ Summary here; full standards in [.ai/rules/workflow.md](rules/workflow.md):
56
+
57
+ - **Task tracker:** <e.g., Jira board ENG, tickets ENG-XXX>
58
+ - **Commits:** <e.g., Conventional Commits with ticket trailer>
59
+ - **Branches:** <e.g., feature/<ticket>-<slug>, PR-only into main>
60
+ - **PRs:** <e.g., 1 approval + green CI, squash merge>
61
+ - **Versioning:** <e.g., SemVer, changelog auto-generated>
62
+
53
63
  ## Available Skills
54
64
 
55
65
  | Skill | When to use |
@@ -137,6 +147,77 @@ paths:
137
147
 
138
148
  ---
139
149
 
150
+ ## workflow.md (rule)
151
+
152
+ Populated from Phase 1 Block 4. Keep only the sections that apply — empty sections add noise.
153
+
154
+ ```markdown
155
+ ---
156
+ applyTo: "**"
157
+ ---
158
+
159
+ # Workflow & Governance
160
+
161
+ > Source of truth for branch, commit, PR, task, and release standards. The agent must follow this without being reminded.
162
+
163
+ ## Task / Project Management
164
+
165
+ - **Tool:** <Jira | Linear | GitHub Projects | Trello | Asana | ClickUp | Notion | none>
166
+ - **Board / project:** <e.g., Jira board ENG, URL or MCP reference>
167
+ - **Ticket prefix:** <e.g., ENG-XXX, PROJ-XXX>
168
+ - **Workflow states:** <e.g., Backlog → Ready → In Progress → Review → Done>
169
+ - **Required fields when creating a task:** <description, AC, story points, epic, labels>
170
+ - **Definition of Ready / Done:** <link or inline checklist>
171
+
172
+ ## Commit Messages
173
+
174
+ - **Convention:** <Conventional Commits | Gitmoji | free-form | other>
175
+ - **Format example:**
176
+ ```
177
+ feat(api): add idempotency key validation [ENG-1234]
178
+ ```
179
+ - **Ticket ID:** <required in subject | required as trailer | optional>
180
+ - **Sign-off / GPG / Co-authored-by:** <DCO sign-off required | GPG required | Co-authored-by trailers for pairing>
181
+ - **Length:** subject ≤ 72 chars; body wrapped at 100; imperative mood.
182
+
183
+ ## Branches
184
+
185
+ - **Main branch:** <main | master | trunk>
186
+ - **Naming pattern:** `<type>/<ticket>-<slug>` — examples:
187
+ - `feature/ENG-1234-add-webhook`
188
+ - `fix/ENG-1310-null-pointer-checkout`
189
+ - `chore/upgrade-node-20`
190
+ - **Allowed prefixes:** <feature/, fix/, hotfix/, chore/, release/, docs/>
191
+ - **Strategy:** <trunk-based | GitHub Flow | Git Flow | release branches>
192
+ - **Branch protection:** <PR-only into main | required status checks | linear history | no force-push>
193
+
194
+ ## Pull Requests
195
+
196
+ - **Title format:** <Conventional, ticket prefix in title, free>
197
+ - **Template / required sections:** Summary, Changes, Test Plan, Screenshots, Rollback, Linked Issues
198
+ - **Approvals required:** <N approvals, CODEOWNERS for paths X/Y>
199
+ - **Required CI checks:** <build, unit tests, integration tests, lint, type-check>
200
+ - **Merge strategy:** <squash | merge commit | rebase-and-merge>
201
+ - **Post-merge:** <auto-delete branch | auto-deploy to staging>
202
+
203
+ ## Releases & Versioning
204
+
205
+ - **Scheme:** <SemVer (MAJOR.MINOR.PATCH) | CalVer | none>
206
+ - **Changelog:** <Keep a Changelog | auto-generated from Conventional Commits | none>
207
+ - **Cadence:** <continuous | weekly | sprint | scheduled>
208
+ - **Tagging:** <v1.2.3 | release/2026-05 | none>
209
+
210
+ ## Agent Behavior Rules
211
+
212
+ - Never push directly to `<main>` — always open a PR.
213
+ - Always include the ticket ID in the commit subject/trailer when the change traces to a ticket.
214
+ - Branch name must match the pattern above before the first commit; fix it locally before pushing.
215
+ - PR description must reference the ticket and include a test plan; do not request review without these.
216
+ - Do not merge a PR without the required approvals and green CI — even if "obviously safe".
217
+ ```
218
+
219
+ ---
220
+
140
221
  ## STATE.md
141
222
 
142
223
  ```markdown