ai-team 1.0.0 → 1.0.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 (2) hide show
  1. package/README.md +141 -48
  2. package/package.json +6 -7
package/README.md CHANGED
@@ -1,103 +1,196 @@
1
- # Agent Bootstrap CLI
1
+ # ai-team
2
2
 
3
- Bootstrap and maintain multi-agent template assets in downstream projects with a manifest-driven, safe update workflow.
3
+ Drop a full AI product team into any project in one command and keep them in sync as the templates evolve.
4
4
 
5
- ## What this CLI does
5
+ `ai-team` is a CLI that installs a curated set of AI agent definitions, skills, and workflows into your project and tracks them with a manifest so updates are always safe.
6
6
 
7
- - Installs base agent assets and IDE-specific overlays
8
- - Tracks installed files with `.agents/manifest.json`
9
- - Updates templates safely (skip local edits by default)
10
- - Validates install health and reports drift
11
- - Previews changes and migration moves before applying
7
+ ## What you get
8
+
9
+ After running `init` your project gains:
10
+
11
+ - **Specialist agents** — requirement analyst, planner, frontend dev, backend dev, code reviewer, tester, documentation writer, and orchestrator ready to use in your IDE's agent runner
12
+ - **Shared skills** — reusable prompt modules that agents load at runtime
13
+ - **Team workflows** — pre-defined delivery and handoff sequences
14
+ - **Optional MCP config** — wired-up tool servers for your IDE out of the box
15
+
16
+ Everything is tracked in `.agents/manifest.json` so the CLI knows exactly what it installed and can update safely without stomping on your customisations.
17
+
18
+ ## Installation
19
+
20
+ ```bash
21
+ npm install -g ai-team
22
+ # or
23
+ pnpm add -g ai-team
24
+ ```
12
25
 
13
26
  ## Quick start
14
27
 
15
- From this repository root:
28
+ ```bash
29
+ # Bootstrap your project (interactive)
30
+ cd my-project
31
+ ai-team init
32
+
33
+ # Or go fully non-interactive for CI / onboarding scripts
34
+ ai-team init --ide vscode --team web-product --include-mcp --yes
35
+ ```
36
+
37
+ That's it. Open your IDE and your agent team is ready to go.
38
+
39
+ ### Verify the install
16
40
 
17
41
  ```bash
18
- pnpm run cli -- init --ide vscode --team web-product --include-mcp --target /path/to/project --yes
42
+ ai-team doctor
19
43
  ```
20
44
 
21
- Then check install health:
45
+ Example output:
46
+
47
+ ```
48
+ ✔ manifest found (.agents/manifest.json v0.1.0)
49
+ ✔ 14 files installed, 0 missing
50
+ ✔ 0 drifted files
51
+ ✔ no migration candidates
52
+ ```
53
+
54
+ ## Staying up to date
55
+
56
+ When the upstream templates ship improvements, pull them into your project without touching anything you've edited:
22
57
 
23
58
  ```bash
24
- pnpm run cli -- doctor --target /path/to/project
59
+ ai-team update
25
60
  ```
26
61
 
27
- ## Command reference
62
+ The sync engine compares hashes. Files you've modified locally are **skipped and reported** — never silently overwritten.
28
63
 
29
- ### `init`
64
+ ### Preview before applying
30
65
 
31
- Install templates and create `.agents/manifest.json`.
66
+ Not sure what will change? Run a dry-run first:
32
67
 
33
68
  ```bash
34
- pnpm run cli -- init --ide vscode --team web-product --include-mcp --target /path/to/project --yes
69
+ ai-team plan
35
70
  ```
36
71
 
37
- ### `update`
72
+ Example output:
73
+
74
+ ```
75
+ ~ .github/agents/backend-dev.agent.md template changed, will update
76
+ .github/agents/tester.agent.md local drift detected, skipping (use --force to overwrite)
77
+ + .agents/skills/visual-testing/SKILL.md new file, will install
78
+ ```
38
79
 
39
- Sync installed files to bundled templates using manifest drift detection.
80
+ ### Force-overwrite a drifted file
40
81
 
41
82
  ```bash
42
- pnpm run cli -- update --target /path/to/project
83
+ ai-team update --force
43
84
  ```
44
85
 
45
- Force overwrite for copy-tracked conflicts:
86
+ ### Apply a legacy layout migration
87
+
88
+ If you're on an older install where agent files lived under `.agents/teams/`, move them to the current layout:
46
89
 
47
90
  ```bash
48
- pnpm run cli -- update --target /path/to/project --force
91
+ ai-team update --migrate
92
+ ```
93
+
94
+ ## IDE support
95
+
96
+ | Flag | Installs agents to | MCP config |
97
+ | ------------------- | --------------------------- | ------------------ |
98
+ | `--ide vscode` | `.github/agents/*.agent.md` | `.vscode/mcp.json` |
99
+ | `--ide claude-code` | `.claude/agents/*.md` | `.mcp.json` |
100
+
101
+ IDE is prompted interactively when not supplied.
102
+
103
+ ## Project layout after init
104
+
105
+ ```
106
+ my-project/
107
+ ├── .agents/
108
+ │ ├── manifest.json ← install manifest (commit this)
109
+ │ ├── skills/ ← shared skill modules
110
+ │ ├── teams/web-product/ ← team workflows and README
111
+ │ └── custom/ ← your own extensions (never touched by CLI)
112
+ │ ├── skills/
113
+ │ ├── workflows/
114
+ │ └── agents/
115
+ ├── .github/
116
+ │ └── agents/ ← agent entry files (vscode)
117
+ │ ├── frontend-dev.agent.md
118
+ │ ├── backend-dev.agent.md
119
+ │ └── ...
120
+ └── .vscode/
121
+ └── mcp.json ← MCP tool config (if --include-mcp)
49
122
  ```
50
123
 
51
- Apply safe legacy migration moves:
124
+ ## Command reference
125
+
126
+ ### `init`
127
+
128
+ Install the agent team and write `.agents/manifest.json`.
52
129
 
53
130
  ```bash
54
- pnpm run cli -- update --target /path/to/project --migrate
131
+ ai-team init
132
+ ai-team init --ide vscode --team web-product --include-mcp --yes
133
+ ```
134
+
135
+ | Flag | Description |
136
+ | ------------------------------------ | ----------------------------- |
137
+ | `--ide <vscode\|claude-code>` | Target IDE / agent runner |
138
+ | `--team <web-product>` | Team profile to install |
139
+ | `--include-mcp` / `--no-include-mcp` | Install MCP config |
140
+ | `--target <path>` | Project root (default: `cwd`) |
141
+ | `--yes` | Skip prompts, use flag values |
142
+
143
+ ### `update`
144
+
145
+ Sync installed files to the latest bundled templates.
146
+
147
+ ```bash
148
+ ai-team update
149
+ ai-team update --force # overwrite locally modified files
150
+ ai-team update --migrate # apply safe legacy path moves
55
151
  ```
56
152
 
57
153
  ### `plan` / `diff`
58
154
 
59
- Dry-run preview of actions, conflicts, and migration candidates.
155
+ Dry-run: show what `update` would do without writing anything.
60
156
 
61
157
  ```bash
62
- pnpm run cli -- plan --target /path/to/project
63
- pnpm run cli -- diff --target /path/to/project
158
+ ai-team plan
159
+ ai-team diff # alias
64
160
  ```
65
161
 
66
162
  ### `doctor`
67
163
 
68
- Validate manifest health, missing files, drift, and migration preview.
164
+ Validate manifest health, check for missing or drifted files, and preview any available migrations.
69
165
 
70
166
  ```bash
71
- pnpm run cli -- doctor --target /path/to/project
167
+ ai-team doctor
168
+ ai-team doctor --json # machine-readable output for CI
72
169
  ```
73
170
 
74
- ## Flags
171
+ ## Adding your own agents and skills
75
172
 
76
- - `--ide <vscode>`
77
- - `--team <web-product>`
78
- - `--target <path>` (defaults to current directory)
79
- - `--include-mcp` / `--no-include-mcp`
80
- - `--force` (overwrite locally modified copy-tracked files)
81
- - `--migrate` (apply safe legacy moves)
82
- - `--yes` (non-interactive defaults)
83
- - `--json` (machine-readable output)
173
+ The CLI never reads or modifies anything under `.agents/custom/`. Use that directory freely:
84
174
 
85
- ## Installed layout (VSCode/Copilot)
175
+ ```
176
+ .agents/custom/
177
+ ├── skills/my-skill/SKILL.md
178
+ ├── agents/my-agent.md
179
+ └── workflows/my-workflow.md
180
+ ```
86
181
 
87
- - Shared assets: `.agents/skills/**`, `.agents/teams/web-product/**`
88
- - Agent entry files: `.github/agents/*.agent.md`
89
- - Optional MCP config: `.vscode/mcp.json`
90
- - Install manifest: `.agents/manifest.json`
182
+ Reference your custom skills from any agent definition the same way built-in skills are referenced.
91
183
 
92
- ## Template source of truth
184
+ ## CI usage
93
185
 
94
- - Agent template definitions are canonical in `src/agents/definitions/*.yaml`
95
- - Template pack metadata and resolution are canonical in `templates/bootstrap/manifest.json`
96
- - Installed files such as `.github/agents/*.agent.md`, `.vscode/mcp.json`, and `.agents/**` are generated outputs
186
+ ```bash
187
+ # Check for drift in CI without modifying anything
188
+ ai-team doctor --json --target .
97
189
 
98
- Project-owned customization paths (not parsed by CLI):
190
+ # Auto-apply safe updates in a release pipeline
191
+ ai-team update --yes --target .
192
+ ```
99
193
 
100
- - `.agents/custom/skills/`
101
194
  - `.agents/custom/workflows/`
102
195
  - `.agents/custom/agents/`
103
196
 
package/package.json CHANGED
@@ -1,23 +1,18 @@
1
1
  {
2
2
  "name": "ai-team",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "AI agent team management CLI tool",
5
5
  "type": "module",
6
6
  "main": "src/cli.js",
7
7
  "bin": {
8
8
  "ai-team": "src/cli.js"
9
9
  },
10
- "scripts": {
11
- "test": "node --test",
12
- "ai-team": "node ./src/cli.js"
13
- },
14
10
  "keywords": [],
15
11
  "author": "",
16
12
  "license": "ISC",
17
13
  "publishConfig": {
18
14
  "access": "public"
19
15
  },
20
- "packageManager": "pnpm@10.28.1",
21
16
  "dependencies": {
22
17
  "@inquirer/prompts": "^8.2.1",
23
18
  "chalk": "^5.6.2",
@@ -26,5 +21,9 @@
26
21
  },
27
22
  "devDependencies": {
28
23
  "mustache": "^4.2.0"
24
+ },
25
+ "scripts": {
26
+ "test": "node --test",
27
+ "ai-team": "node ./src/cli.js"
29
28
  }
30
- }
29
+ }