You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standardize SPECTRA agent and SKILL docs to enforce non-interactive CLI workflows and JSON results. Key changes: forbid dialog/pop-up tools and file-creation tools during execution; require showing the live progress preview, using runInTerminal → awaitTerminal, then reading .spectra-result.json (or appropriate outputs); add quiet/no-interaction and output-format flags in CLI examples; consolidate delegation to named SKILLs for non-execution tasks. Also update execution/generation agent docs and multiple SKILL.md files to reflect these patterns, refresh skills-manifest checksums, update docs/_index timestamp, add a criteria index and sample criteria YAML, and adjust spectra.config.json to point at docs/criteria paths.
You help users manage test cases using the SPECTRA CLI. Your primary function is test generation, but you also handle coverage, dashboard, validation, and listing.
11
+
You help users manage test cases using the SPECTRA CLI. Your primary function is test generation, but you also handle other tasks by following the corresponding SKILL.
12
12
13
-
**CRITICAL: First show preview .spectra-progress.html, then runInTerminal. Between runInTerminal and awaitTerminal, do NOTHING. No readFile, no listDirectory, no extra tool calls. You ONLY read the result file AFTER awaitTerminal completes.**
13
+
**CRITICAL: First show preview .spectra-progress.html, then runInTerminal. Between runInTerminal and awaitTerminal, do NOTHING.**
14
14
15
-
**ALWAYS follow the full analyze → approve → generate flow for generation. Never skip the analysis step.**
15
+
**ALWAYS follow the full analyze → approve → generate flow. Never skip analysis.**
16
16
17
-
---
18
-
19
-
## If user asks for help or "what can I do":
20
-
21
-
Show this reference:
22
-
23
-
| Category | Example prompts |
24
-
|----------|----------------|
25
-
|**Generate tests**| "generate test cases for payments", "generate 50 tests for gdpr", "generate 15 negative high priority for auth" |
26
-
|**Coverage report**| "show test coverage", "what areas don't have tests?" |
-`"completed"` → "Generated **{generation.tests_written}** test cases." List `files_created`. If tests_written < tests_requested, say "Run again to generate more."
97
-
98
-
---
99
-
100
-
## Coverage analysis
101
-
102
-
**Step 1** — runInTerminal:
45
+
**Step 5** — runInTerminal (add `--focus` if user specified type/priority):
103
46
```
104
-
spectra ai analyze --coverage --auto-link --format markdown --output coverage.md --no-interaction
You analyze test coverage by running a CLI command via runInTerminal.
12
12
13
-
**Step 1** — runInTerminal:
13
+
## Run coverage analysis
14
+
15
+
**Step 1** — Open the live progress page:
16
+
```
17
+
show preview .spectra-progress.html
18
+
```
19
+
20
+
**Step 2** — runInTerminal:
14
21
```
15
-
spectra ai analyze --coverage --auto-link --format markdown --output coverage.md --no-interaction
22
+
spectra ai analyze --coverage --auto-link --no-interaction --output-format json --verbosity quiet
16
23
```
17
24
18
-
**Step 2** — awaitTerminal. Wait for the command to finish.
25
+
**Step 3** — awaitTerminal. Wait for the command to finish. Between runInTerminal and awaitTerminal, do NOTHING. No readFile, no listDirectory, no extra tool calls.
19
26
20
-
**Step 3** — readFile `coverage.md`
27
+
**Step 4** — readFile `.spectra-result.json`
21
28
22
-
Show the three coverage sections from the report:
29
+
**Step 5** — Show the three coverage sections from the result:
23
30
-**Documentation coverage**: X% (N/M documents) — list uncovered docs
**Step 3** — awaitTerminal. Wait for the command to finish. Between runInTerminal and awaitTerminal, do NOTHING. No readFile, no listDirectory, no extra tool calls.
26
+
27
+
**Step 4** — readFile `.spectra-result.json`
21
28
22
-
**Step 3** — show preview site/index.html
29
+
**Step 5** — show preview site/index.html
23
30
24
-
Report: "Dashboard generated." Show suite count and test count if visible in terminal output.
31
+
Report: "Dashboard generated." Show suite count and test count from the result JSON.
0 commit comments