@contextium/cli 1.0.31 → 1.0.32
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/ium/new-project.md +63 -33
package/package.json
CHANGED
|
@@ -281,51 +281,81 @@ Infer sensible phases from the project description. Title the file `project-stat
|
|
|
281
281
|
If no: set `planner_planned = false` and continue.
|
|
282
282
|
</step>
|
|
283
283
|
|
|
284
|
-
<step name="
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
-
|
|
284
|
+
<step name="quality_agent_question">
|
|
285
|
+
Before asking this question, classify the project type from the description provided in `project_description`. Choose exactly one from:
|
|
286
|
+
|
|
287
|
+
- **development** — software, apps, APIs, code, engineering, features, bug fixes
|
|
288
|
+
- **research** — investigation, analysis, literature review, market research, competitive analysis, feasibility studies
|
|
289
|
+
- **writing** — papers, reports, essays, documentation, articles, books, whitepapers
|
|
290
|
+
- **pitch/presentation** — pitch decks, slide decks, investor materials, presentations, proposals
|
|
291
|
+
- **marketing/content** — campaigns, copy, brand materials, social content, creative briefs
|
|
292
|
+
- **data/finance** — financial models, data analysis, forecasts, reports, spreadsheets
|
|
293
|
+
- **design** — UX, UI, design systems, wireframes, prototypes
|
|
294
|
+
- **other** — anything that doesn't clearly fit the above
|
|
295
|
+
|
|
296
|
+
Store this as `project_type`.
|
|
297
|
+
|
|
298
|
+
Based on `project_type`, determine whether a quality/review agent is relevant and what kind:
|
|
299
|
+
|
|
300
|
+
| Project type | Relevant? | Agent name pattern | What it does |
|
|
301
|
+
|---|---|---|---|
|
|
302
|
+
| development | Yes | "[Project Name] Regression Tester" | Writes E2E tests alongside every feature so nothing breaks silently |
|
|
303
|
+
| research | Yes | "[Project Name] Fact Checker" | Validates claims against sources, flags unsupported assertions, checks citations |
|
|
304
|
+
| writing | Yes | "[Project Name] Proofreader" | Reviews drafts for clarity, consistency, grammar, and tone before finalising |
|
|
305
|
+
| pitch/presentation | Yes | "[Project Name] Deck Reviewer" | Reviews pitch decks for clarity, narrative flow, and persuasive strength |
|
|
306
|
+
| marketing/content | Yes | "[Project Name] Copy Reviewer" | Reviews copy for brand voice, clarity, and effectiveness before publishing |
|
|
307
|
+
| data/finance | Yes | "[Project Name] Data Validator" | Checks calculations, flags assumptions, and validates data sources |
|
|
308
|
+
| design | No | — | Skip this step entirely |
|
|
309
|
+
| other | No | — | Skip this step entirely |
|
|
310
|
+
|
|
311
|
+
If `project_type` is `design` or `other`, skip this step entirely — do not ask the question.
|
|
312
|
+
|
|
313
|
+
Otherwise, ask the user the question tailored to their project type. Use natural language that fits the domain — do not use the word "regression" for non-development projects. Examples:
|
|
314
|
+
|
|
315
|
+
- development: "Would you like a regression testing agent? It will write E2E tests alongside every new feature so nothing you've built ever breaks silently."
|
|
316
|
+
- research: "Would you like a fact-checking agent? It can review your findings against sources, flag unsupported claims, and validate citations as you build out your research."
|
|
317
|
+
- writing: "Would you like a proofreader agent? It can review drafts for clarity, consistency, and tone before you finalise anything."
|
|
318
|
+
- pitch/presentation: "Would you like a deck reviewer agent? It can review your pitch for narrative flow, clarity, and persuasive strength before you present it."
|
|
319
|
+
- marketing/content: "Would you like a copy reviewer agent? It can check copy for brand voice, clarity, and effectiveness before it goes out."
|
|
320
|
+
- data/finance: "Would you like a data validator agent? It can check your calculations, flag assumptions, and verify your data sources."
|
|
321
|
+
|
|
322
|
+
Use AskUserQuestion with:
|
|
323
|
+
- "Yes, add a [agent name]"
|
|
291
324
|
- "No, skip"
|
|
292
325
|
|
|
293
326
|
If yes:
|
|
294
|
-
1. Add
|
|
295
|
-
-
|
|
296
|
-
-
|
|
297
|
-
-
|
|
298
|
-
|
|
299
|
-
2. Store as `regression_agent_planned = true`.
|
|
300
|
-
|
|
301
|
-
3. Check if Playwright is already installed by running silently:
|
|
302
|
-
```bash
|
|
303
|
-
cd apps/web && npx playwright --version 2>/dev/null | grep -q "Version" && echo "installed" || echo "not-installed"
|
|
304
|
-
```
|
|
327
|
+
1. Add the agent to the creation plan. Write a system prompt tailored to the project's specific domain — not a generic description. The prompt should describe:
|
|
328
|
+
- What the agent reviews and what quality bar it holds to
|
|
329
|
+
- What a "complete" deliverable looks like from its perspective (e.g. for development: all features have passing E2E tests; for research: all claims are cited and verified; for writing: no draft goes out without a proofread pass)
|
|
330
|
+
- Any project-specific context inferred from the description (tone, audience, tech stack, subject matter)
|
|
331
|
+
2. Store as `quality_agent_planned = true`, `quality_agent_type = <type>`.
|
|
305
332
|
|
|
306
|
-
|
|
333
|
+
**For development projects only** — additionally check if Playwright is installed:
|
|
334
|
+
```bash
|
|
335
|
+
cd apps/web && npx playwright --version 2>/dev/null | grep -q "Version" && echo "installed" || echo "not-installed"
|
|
336
|
+
```
|
|
307
337
|
|
|
308
|
-
|
|
338
|
+
If not installed, ask: "Playwright is required to run E2E tests. Would you like me to install it now?"
|
|
309
339
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
340
|
+
Use AskUserQuestion:
|
|
341
|
+
- "Yes, install Playwright"
|
|
342
|
+
- "No, I'll install it later"
|
|
313
343
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
344
|
+
If yes — install silently:
|
|
345
|
+
```bash
|
|
346
|
+
cd apps/web && npm install -D @playwright/test && npx playwright install chromium
|
|
347
|
+
```
|
|
348
|
+
Show `✓ Playwright installed` when done.
|
|
319
349
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
350
|
+
If no — store `playwright_install_pending = true` and add a note to the final summary:
|
|
351
|
+
`⚠ Playwright not installed — run the following before running E2E tests:`
|
|
352
|
+
` cd apps/web && npm install -D @playwright/test && npx playwright install chromium`
|
|
323
353
|
|
|
324
|
-
If no: set `
|
|
354
|
+
If no to the quality agent question: set `quality_agent_planned = false` and continue.
|
|
325
355
|
</step>
|
|
326
356
|
|
|
327
357
|
<step name="create_resources">
|
|
328
|
-
Only create what the user confirmed across all steps. Create in this order: tag types → tags → libraries → skills → agents (including research, planner, and
|
|
358
|
+
Only create what the user confirmed across all steps. Create in this order: tag types → tags → libraries → skills → agents (including research, planner, and quality agents if confirmed).
|
|
329
359
|
|
|
330
360
|
Do NOT create a workflow in this step.
|
|
331
361
|
|