toga-ai 1.0.5 → 1.0.8
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 +1 -1
- package/skills/capture/SKILL.md +52 -22
- package/skills/kickoff/SKILL.md +77 -20
package/package.json
CHANGED
package/skills/capture/SKILL.md
CHANGED
|
@@ -100,38 +100,68 @@ report success on an inconsistent knowledge base.
|
|
|
100
100
|
|
|
101
101
|
## Step 7 — Auto-push to share with teammates
|
|
102
102
|
|
|
103
|
-
After validate + index succeed,
|
|
104
|
-
**
|
|
103
|
+
After validate + index succeed, run through these checks in order before pushing.
|
|
104
|
+
**Never skip straight to the push — the repo must be verified first.**
|
|
105
105
|
|
|
106
|
+
### Pre-push checklist (run each check, stop at the first failure and fix it)
|
|
107
|
+
|
|
108
|
+
**Check 1 — Is TEAM_REPO a git repository?**
|
|
109
|
+
```bash
|
|
110
|
+
git -C "<TEAM_REPO>" rev-parse --is-inside-work-tree
|
|
111
|
+
```
|
|
112
|
+
If this fails: the team repo is an npm bundle extract, not a git clone. Run:
|
|
106
113
|
```bash
|
|
107
|
-
|
|
108
|
-
|
|
114
|
+
git clone https://github.com/agilantsolutions/claude "<TEAM_REPO>"
|
|
115
|
+
```
|
|
116
|
+
Then re-run validate + index inside the freshly cloned repo before continuing.
|
|
109
117
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
git -C "<TEAM_REPO>"
|
|
118
|
+
**Check 2 — Is origin set to the right remote?**
|
|
119
|
+
```bash
|
|
120
|
+
git -C "<TEAM_REPO>" remote get-url origin
|
|
121
|
+
```
|
|
122
|
+
Expected: `https://github.com/agilantsolutions/claude` (or the SSH equivalent).
|
|
123
|
+
If wrong or missing: `git -C "<TEAM_REPO>" remote set-url origin https://github.com/agilantsolutions/claude`
|
|
124
|
+
|
|
125
|
+
**Check 3 — Are the knowledge docs in TEAM_REPO, not just the project?**
|
|
126
|
+
|
|
127
|
+
The docs you wrote in Steps 5–6 must exist inside `<TEAM_REPO>/knowledge/`, not only
|
|
128
|
+
in `<project>/.claude/knowledge/`. If you wrote them to the project's `.claude/knowledge/`
|
|
129
|
+
but not to `<TEAM_REPO>/knowledge/`, copy them now:
|
|
130
|
+
```bash
|
|
131
|
+
# Example — adjust paths to match what was written
|
|
132
|
+
cp "<project>/.claude/knowledge/<path-to-doc>" "<TEAM_REPO>/knowledge/<path-to-doc>"
|
|
133
|
+
```
|
|
134
|
+
Then re-run `node "<TEAM_REPO>/knowledge.js" validate` to confirm they're valid there too.
|
|
113
135
|
|
|
114
|
-
|
|
115
|
-
|
|
136
|
+
**Check 4 — Are there actually staged changes to push?**
|
|
137
|
+
```bash
|
|
138
|
+
git -C "<TEAM_REPO>" status --short knowledge/
|
|
116
139
|
```
|
|
140
|
+
If nothing shows: the docs were never written to TEAM_REPO. Go back to Check 3.
|
|
117
141
|
|
|
118
|
-
|
|
119
|
-
written this capture (e.g. `"knowledge: add clickup-deploy feature doc for worker2"`).
|
|
142
|
+
---
|
|
120
143
|
|
|
121
|
-
|
|
122
|
-
|
|
144
|
+
### Push (only after all 4 checks pass)
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
# Stage only knowledge/ — never stage anything else
|
|
148
|
+
git -C "<TEAM_REPO>" add knowledge/
|
|
149
|
+
git -C "<TEAM_REPO>" diff --cached --quiet || \
|
|
150
|
+
git -C "<TEAM_REPO>" commit -m "knowledge: <brief description of what was captured>"
|
|
123
151
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
152
|
+
# Push to the active development branch
|
|
153
|
+
git -C "<TEAM_REPO>" push origin HEAD:feature/ai-harness-improvements
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**If push succeeds:** report
|
|
157
|
+
> "✓ Knowledge pushed to `feature/ai-harness-improvements` — CI will publish a new npm version. Teammates get it on their next `npx toga-ai`."
|
|
128
158
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
`
|
|
159
|
+
**If push fails** — show the developer the exact git error output, then report:
|
|
160
|
+
> "⚠ Push failed: `<error>`. Fix credentials or run manually:
|
|
161
|
+
> `git -C <TEAM_REPO> push origin HEAD:feature/ai-harness-improvements`"
|
|
132
162
|
|
|
133
|
-
|
|
134
|
-
`knowledge
|
|
163
|
+
Never stage anything outside `knowledge/`. If `git diff --cached` shows files outside
|
|
164
|
+
`knowledge/`, abort and warn before committing.
|
|
135
165
|
|
|
136
166
|
## Step 8 — Report
|
|
137
167
|
|
package/skills/kickoff/SKILL.md
CHANGED
|
@@ -150,32 +150,89 @@ If they have already run `/session-resume` and are now running `/kickoff`, proce
|
|
|
150
150
|
normally — the session context they loaded will complement the framework knowledge
|
|
151
151
|
loaded here.
|
|
152
152
|
|
|
153
|
-
## Step 5 —
|
|
153
|
+
## Step 5 — Propose a multi-agent workflow plan
|
|
154
154
|
|
|
155
|
-
After loading
|
|
155
|
+
After loading context, analyze what the developer said they're building and **propose a
|
|
156
|
+
concrete agent plan before writing a single line of code**. This gives them visibility
|
|
157
|
+
into how the work will be done and a chance to adjust scope.
|
|
156
158
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
- ECC security-reviewer fires automatically on security-sensitive code
|
|
159
|
+
The developer does not know what "sub-agents" or "loops" are — do not use that jargon.
|
|
160
|
+
Frame everything in plain terms: "Here's my plan."
|
|
160
161
|
|
|
161
|
-
|
|
162
|
-
- `/code-review` triggers ecc:planner with your loaded TOGA architecture context
|
|
163
|
-
- The php-reviewer agent runs automatically after every PHP file edit
|
|
162
|
+
### Plan template
|
|
164
163
|
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
```
|
|
165
|
+
Here's how I'll approach this:
|
|
166
|
+
|
|
167
|
+
1. [First step — e.g. "Map the existing code and create a phased plan"]
|
|
168
|
+
2. [Build step — e.g. "Write the worker class and controller method"]
|
|
169
|
+
3. [Verify step — e.g. "Run specialist reviewers on the PHP and SQL before showing you the result"]
|
|
170
|
+
|
|
171
|
+
To do this well, I'll use specialist reviewers that run automatically as I write —
|
|
172
|
+
they catch framework violations and security issues without you needing to ask.
|
|
167
173
|
|
|
168
|
-
**
|
|
169
|
-
-
|
|
170
|
-
-
|
|
174
|
+
**I'll need access to:**
|
|
175
|
+
- Read: [list relevant repo paths]
|
|
176
|
+
- Write/edit: [list the specific files or folders I plan to create or modify]
|
|
177
|
+
- Shell: [any commands I'll run, e.g. "php -l to lint files"]
|
|
171
178
|
|
|
172
|
-
|
|
173
|
-
|
|
179
|
+
Claude Code will ask you to approve each action as I go. If you'd rather I just
|
|
180
|
+
proceed without interrupting you, say "go ahead" and I'll work through it and
|
|
181
|
+
show you the finished result.
|
|
174
182
|
|
|
175
|
-
|
|
183
|
+
Ready to proceed?
|
|
176
184
|
```
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
185
|
+
|
|
186
|
+
**Always wait for a yes before starting.** If the developer says "go ahead", "just do it",
|
|
187
|
+
or "you have full access" — proceed without further permission prompts, but still flag any
|
|
188
|
+
write outside the expected scope.
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
### Agent selection (how to build the plan internally)
|
|
193
|
+
|
|
194
|
+
Spawn specialists via the `Agent` tool. Grant only the tools the agent needs.
|
|
195
|
+
|
|
196
|
+
| Work type | Agent to spawn | Tools to grant |
|
|
197
|
+
|-----------|---------------|----------------|
|
|
198
|
+
| New feature design | `ecc:planner` with TOGA context prefix | Read, Grep, Glob |
|
|
199
|
+
| Write/edit PHP | `ecc:php-reviewer` after each file written | Read, Grep, Glob |
|
|
200
|
+
| SQL / DB queries | `ecc:database-reviewer` with TOGA DB context | Read, Grep, Glob |
|
|
201
|
+
| PHP errors / build broken | `ecc:build-error-resolver` with TOGA error patterns | Read, Write, Edit, Bash, Grep, Glob |
|
|
202
|
+
| Security audit | `ecc:security-reviewer` | Read, Grep, Glob |
|
|
203
|
+
| Document a feature | `knowledge-writer` TOGA agent | Read, Write, Bash, Grep, Glob |
|
|
204
|
+
| Large refactor | `ecc:code-reviewer` then `ecc:planner` | Read, Grep, Glob |
|
|
205
|
+
|
|
206
|
+
Always inject the TOGA context prefix when spawning any ECC agent. The prompts in
|
|
207
|
+
`.claude/agents/toga/php-reviewer.md` and `planner.md` show the exact prefix format.
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
### When to use an iterative loop
|
|
212
|
+
|
|
213
|
+
Run an agent, review findings, fix, repeat — when:
|
|
214
|
+
- Build errors are present (keep looping until output is clean)
|
|
215
|
+
- The developer says "make sure this is right" or "check everything"
|
|
216
|
+
- You're creating more than 3 PHP files in one task
|
|
217
|
+
|
|
218
|
+
Tell the developer when you enter a loop:
|
|
181
219
|
```
|
|
220
|
+
I'll write the code, then run it through the PHP reviewer. If issues are found
|
|
221
|
+
I'll fix them automatically before showing you the final result. This may take
|
|
222
|
+
a few passes — I'll let you know when it's clean.
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
### End-of-kickoff output
|
|
228
|
+
|
|
229
|
+
```
|
|
230
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
231
|
+
Context: <repo> · Framework <fw> · Client: <client>
|
|
232
|
+
Specialists on standby: php-reviewer, database-reviewer, security-reviewer, planner
|
|
233
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
234
|
+
What are you building today?
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
After the developer describes the task, present the plan (template above) and wait
|
|
238
|
+
for confirmation. Then begin immediately — do not ask "shall I start?" a second time.
|