marcos-ai-bootstrap 0.1.6 → 0.1.7

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/README.md CHANGED
@@ -1,15 +1,21 @@
1
1
  # marcos-ai-bootstrap
2
2
 
3
- AI tools for doing work. No overcomplications.
3
+ [![npm version](https://img.shields.io/npm/v/marcos-ai-bootstrap)](https://www.npmjs.com/package/marcos-ai-bootstrap)
4
+ [![license](https://img.shields.io/npm/l/marcos-ai-bootstrap)](./LICENSE)
5
+ [![CI](https://github.com/marcorpetralia/marcos-ai-bootstrap/actions/workflows/ci.yml/badge.svg)](https://github.com/marcorpetralia/marcos-ai-bootstrap/actions/workflows/ci.yml)
4
6
 
5
- Tool-agnostic agent/skill network that is built around a basic flow of plan -> implement -> deploy -> fix -> deploy etc.
7
+ Simple agent workflows designed for getting work done, as quickly and cheaply as possible whilst ensuring guardrails are followed.
6
8
 
7
- Currently supporting **Claude Code**, **Codex**, and **GitHub Copilot CLI** but easily adjustable to fit your workflow.
9
+ A tool-agnostic agent/skill network that gives Claude Code, Codex, and GitHub Copilot CLI a shared plan implement deploy → fix workflow — drop it into any repository with one command.
10
+
11
+ **Note:** marcos-ai-bootstrap is pre-1.0 and evolving. SemVer stabilizes at `1.0.0`. See ["Releasing to npm"](#releasing-to-npm) for the current version and release process.
8
12
 
9
13
  See [`HUMAN.md`](./HUMAN.md) for the day-to-day workflow once the network is set up.
10
14
 
11
15
  ## Quick start: the `marcos-ai-bootstrap` CLI
12
16
 
17
+ **Requires Node.js >= 18**
18
+
13
19
  The fastest way to bring this agent network into any repository — no AI turn required,
14
20
  works the same on Windows/Mac/Linux, and doesn't care whether the target project is
15
21
  Node, Python, Go, or anything else:
@@ -59,6 +65,10 @@ npm install -g marcos-ai-bootstrap
59
65
  marcos-ai-bootstrap --all
60
66
  ```
61
67
 
68
+ ## Demo
69
+
70
+ <!-- TODO: GIF/asciinema demo recording coming soon — drop it here -->
71
+
62
72
  ## Repository layout
63
73
 
64
74
  **Everything the CLI materialises into a target repo is shipped from `src/`; `src/` is the single source of truth.**
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "marcos-ai-bootstrap",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Materialise the AI-Bootstrap agent/skill network (Claude Code, Codex, GitHub Copilot CLI) into any repository from the command line.",
5
5
  "bin": {
6
6
  "marcos-ai-bootstrap": "src/bin/ai-bootstrap.js"
7
7
  },
8
8
  "main": "src/lib/materialize.js",
9
+ "scripts": {
10
+ "test": "node --test"
11
+ },
9
12
  "files": [
10
13
  "src/bin",
11
14
  "src/lib",
@@ -19,7 +22,7 @@
19
22
  "src/.github/skills"
20
23
  ],
21
24
  "engines": {
22
- "node": ">=16"
25
+ "node": ">=18"
23
26
  },
24
27
  "license": "MIT",
25
28
  "repository": {
@@ -34,7 +34,8 @@ Repeat until green or 5 iterations reached:
34
34
  3. **Investigate (HARD only)**: invoke `investigate-codex` with the diagnostic report and triage output; receive a root-cause analysis and fix strategy.
35
35
  4. **Fix**: invoke `code-codex` with the triage fix suggestion (EASY) or investigate fix strategy (HARD) to apply the change.
36
36
  5. **Validate**: run the narrowest relevant tests, lint, or build command before attempting a new CI run.
37
- 6. **Commit & push**: commit the fix on the current feature branch and push; never push to `main`.
37
+ 6. **Commit & push**: because the user invoked this skill to drive CI green, commit
38
+ the fix and push **on the current feature branch only**; never commit or push to `main`.
38
39
  7. **Re-trigger**: use the trigger method determined above.
39
40
  8. **Wait**: poll `gh run watch` until the new run completes.
40
41
  9. If still failing, go to step 1.
@@ -42,6 +43,8 @@ Repeat until green or 5 iterations reached:
42
43
  After 5 iterations without green, stop and report the current state and last error to the user.
43
44
 
44
45
  ## Guardrails
46
+ - This skill commits and pushes as an explicitly user-invoked action, on the
47
+ feature branch only — never autonomously and never on `main`.
45
48
  - Never push to `main`.
46
49
  - Never force-push.
47
50
  - Never use `--no-verify`.
@@ -34,7 +34,8 @@ Repeat until green or 5 iterations reached:
34
34
  3. **Investigate** (HARD only) — invoke the `investigate-claude` agent with the diagnostic report and triage output; receive a root-cause analysis and fix strategy.
35
35
  4. **Fix** — invoke the `code-claude` agent with the triage fix suggestion (EASY) or investigate fix strategy (HARD) to apply the change.
36
36
  5. **Validate** — run the narrowest relevant tests, lint, or build command before attempting a new CI run.
37
- 6. **Commit & push** — commit the fix on the current feature branch and push; never push to `main`.
37
+ 6. **Commit & push** — because the user invoked this skill to drive CI green, commit
38
+ the fix and push **on the current feature branch only**; never commit or push to `main`.
38
39
  7. **Re-trigger** — use the trigger method determined above.
39
40
  8. **Wait** — poll `gh run watch` until the new run completes.
40
41
  9. If still failing, go to step 1.
@@ -42,6 +43,8 @@ Repeat until green or 5 iterations reached:
42
43
  After 5 iterations without green, stop and report the current state and last error to the user.
43
44
 
44
45
  ## Guardrails
46
+ - This skill commits and pushes as an explicitly user-invoked action, on the
47
+ feature branch only — never autonomously and never on `main`.
45
48
  - Never push to `main`.
46
49
  - Never force-push.
47
50
  - Never use `--no-verify`.
@@ -33,7 +33,8 @@ Repeat until green or 5 iterations reached:
33
33
  2. **Triage** — invoke the `triage-copilot` agent with the diagnostic report; receive EASY or HARD classification.
34
34
  3. **Investigate** (HARD only) — invoke the `investigate-copilot` agent with the diagnostic report and triage output; receive a root-cause analysis and fix strategy.
35
35
  4. **Fix** — invoke the `code-copilot` agent with the triage fix suggestion (EASY) or investigate fix strategy (HARD) to apply the change.
36
- 5. **Commit & push** — commit the fix on the current feature branch and push; never push to `main`.
36
+ 5. **Commit & push** — because the user invoked this skill to drive CI green, commit
37
+ the fix and push **on the current feature branch only**; never commit or push to `main`.
37
38
  6. **Re-trigger** — use the trigger method determined above.
38
39
  7. **Wait** — poll `gh run watch` until the new run completes.
39
40
  8. If still failing, go to step 1.
@@ -41,6 +42,8 @@ Repeat until green or 5 iterations reached:
41
42
  After 5 iterations without green, stop and report the current state and last error to the user.
42
43
 
43
44
  ## Guardrails
45
+ - This skill commits and pushes as an explicitly user-invoked action, on the
46
+ feature branch only — never autonomously and never on `main`.
44
47
  - Never push to `main`.
45
48
  - Never force-push.
46
49
  - Never use `--no-verify`.
package/src/HUMAN.md CHANGED
@@ -19,7 +19,7 @@ skills are ready to use immediately. See the root `README.md` for all flags (`--
19
19
  Once the files are written:
20
20
 
21
21
  1. Confirm `MARCOS-AI-BOOTSTRAP.md`, `HUMAN.md`, and your tool's agent/skill files are present in the repo.
22
- 2. Switch to your most powerful model at medium effort using **`/model`** e.g. opus 4.8 @ medium effort
22
+ 2. Switch to your most capable model at medium effort using **`/model`** (e.g. an Opus-class model, as an interchangeable example — not a requirement)
23
23
  3. Run the **`/initialize`** skill once to reconcile MCP servers, plan-document location, and model IDs with your environment.
24
24
  4. **`/clear`** — Clear the context window.
25
25
  5. use **`/model`** to switch your model to your most powerful model @ low effort (to save tokens)
@@ -30,6 +30,11 @@ Infer the project's platform footprint before installing anything. Inspect, in o
30
30
 
31
31
  Map the footprint to candidate MCP servers. Common mappings (extend as the ecosystem grows):
32
32
 
33
+ > The package/endpoint values below are **illustrative and may churn** — MCP
34
+ > server names, packages, and URLs change upstream. Treat them as starting
35
+ > points and confirm the current command against the server's own docs before
36
+ > installing.
37
+
33
38
  | Signal in repo | Candidate MCP server | Package / endpoint |
34
39
  |---|---|---|
35
40
  | Azure services, Bicep, `az`, `DefaultAzureCredential` | `azure` | `npx -y @azure/mcp@latest server start` |
@@ -93,9 +98,13 @@ args = ["-y", "<package>", "..."]
93
98
 
94
99
  ## Guardrails
95
100
 
96
- - **No agent shall commit code.** Agents modify files and write changes; the user owns committing those changes to git.
97
- - Never commit to main
98
- - Never push to main
101
+ - **No agent commits or pushes autonomously.** Agents modify files and write
102
+ changes; the user owns committing and pushing. The single exception is a skill
103
+ the user has explicitly invoked to do so (e.g. `watch-ci`): such a skill may
104
+ commit and push **only on a feature branch**, and **only to perform the action
105
+ the user invoked it for**. It must never commit or push unprompted.
106
+ - **Never commit to `main`.** No exception — the carve-out above never applies to `main`.
107
+ - **Never push to `main`.** No exception — the carve-out above never applies to `main`.
99
108
  - Always work on a feature / chore / bugfix branch
100
109
  - Never merge a Pull Request
101
110
  - Never update cloud infrastructure manually — all changes must go through IAC or deployment pipelines
@@ -113,7 +122,10 @@ Canonical skills:
113
122
  **Target resolution:** Accepts nothing (current-branch PR), a PR number, or a pasted PR URL, workflow-run URL, or workflow-file URL. Parses `owner/repo` from URLs and passes `--repo` to `gh` for remote targets.
114
123
  **Trigger-aware re-runs:** Inspects the workflow's `on:` block and classifies the trigger as auto-on-push, manual-dispatch, scheduled, or other. Re-triggers by pushing (auto-on-push), by `gh workflow run` (manual-dispatch/other), or stops with an explanation when a scheduled-only workflow cannot be forced.
115
124
  **Pipeline:** `log-reader` → `triage` → (`investigate` if HARD) → `code`, then commit/push on the feature branch and loop (max 5 iterations).
116
- **Guardrails:** Never pushes to `main`, never force-pushes, never `--no-verify`. For remote-repo targets it cannot edit locally, so it watches, diagnoses, and reports the fix back to the user.
125
+ **Guardrails:** Runs only because the user invoked it; on that authority it may
126
+ commit and push its fixes **on the feature branch only**. Never pushes or commits
127
+ to `main`, never force-pushes, never `--no-verify`. For remote-repo targets it
128
+ cannot edit locally, so it watches, diagnoses, and reports the fix back to the user.
117
129
 
118
130
  ### planner
119
131
  **Purpose:** Formalise the two-stage planning flow into a single command. Runs the `planner-discovery` agent (Stage 1: clarifying questions + outline), gates on explicit user approval, then runs the `planner` agent (Stage 2: full implementation plan written to `documents/plans/<YYYYMMDD>-<topic>.md`).
@@ -150,7 +162,8 @@ Canonical skills:
150
162
 
151
163
  ## Documentation Rules
152
164
 
153
- - Update the root `README.md` on every change.
165
+ - Update the root `README.md` when a change affects how the tool is installed,
166
+ invoked, or what it produces — not for internal-only changes with no user-facing effect.
154
167
  - Update the service-level `README.md` inside the affected application on relevant changes.
155
168
  - Update documentation last — after implementation and verification are complete.
156
169
  - Never leave examples, commands, file paths, or architecture descriptions stale after a change.