waitsec 0.4.5 → 0.5.2
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/.cursor-plugin/plugin.json +1 -1
- package/README.md +18 -12
- package/bin/cli.mjs +15 -10
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/skills/{waitsec-core → waitsec}/SKILL.md +20 -18
- package/skills/{waitsec-core → waitsec/references}/anti-overengineering.md +27 -15
- package/skills/waitsec/references/ask-first.md +112 -0
- package/skills/waitsec/references/debug-first.md +66 -0
- package/skills/waitsec/references/small-diff.md +63 -0
- package/skills/waitsec/references/verify-first.md +79 -0
- package/skills/waitsec/references/write-info-analyzer.md +117 -0
- package/skills/waitsec-code/SKILL.md +87 -12
- package/skills/waitsec-pagemaker/SKILL.md +622 -0
- package/skills/waitsec-pagemaker/references/about-me.md +161 -0
- package/skills/waitsec-pagemaker/references/article-single.md +168 -0
- package/skills/waitsec-pagemaker/references/blog-index.md +167 -0
- package/skills/waitsec-pagemaker/references/contact-page.md +162 -0
- package/skills/waitsec-pagemaker/references/landing-page.md +220 -0
- package/skills/waitsec-quality/SKILL.md +93 -14
- package/skills/waitsec-ui/SKILL.md +74 -16
- package/skills/waitsec-core/ask-first.md +0 -67
- package/skills/waitsec-core/debug-first.md +0 -54
- package/skills/waitsec-core/small-diff.md +0 -51
- package/skills/waitsec-core/verify-first.md +0 -67
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: verify-first
|
|
3
|
-
description: Never declare a task complete without proving it works. Run tests, verify builds, and check for regressions.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Verify First: Proof Over Assumption
|
|
7
|
-
|
|
8
|
-
Never say "I'm done" or "The bug is fixed" without concrete technical proof. Always verify before declaring completion.
|
|
9
|
-
|
|
10
|
-
**Core Principle:** *An unverified change is an incomplete change.* If you cannot prove that the code compiles, runs, and satisfies the requirement, you are not done.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Anti-Patterns (The Tells)
|
|
15
|
-
|
|
16
|
-
### 1. The Premature Victory Lap
|
|
17
|
-
- **Tell:** The agent modifies code, never runs a test or build command, and immediately announces: *"I have fixed the issue and implemented all requirements!"*
|
|
18
|
-
- **Why:** The AI relies on statistical confidence instead of empirical execution. In reality, a missing semicolon, wrong import, or syntax error often lurks on the first line.
|
|
19
|
-
- **Fix:** Run the relevant test suite, build command, or reproduction script before writing your closing message.
|
|
20
|
-
|
|
21
|
-
### 2. Regression Blindness
|
|
22
|
-
- **Tell:** Fixing a bug in component A, but accidentally breaking components B and C because shared state, schema, or props were modified without running the full test suite.
|
|
23
|
-
- **Why:** The AI focuses narrowly on the prompt and ignores downstream dependencies.
|
|
24
|
-
- **Fix:** If the project has automated tests (`npm test`, `pytest`, `php artisan test`, `go test`), run them to ensure no regressions were introduced.
|
|
25
|
-
|
|
26
|
-
### 3. Phantom Verification
|
|
27
|
-
- **Tell:** The agent claims *"I tested the login endpoint and it returned status 200"* when no terminal command, curl request, or test runner was actually executed in the environment.
|
|
28
|
-
- **Why:** Generative models hallucinate successful outcomes based on expectation.
|
|
29
|
-
- **Fix:** Real verification produces real output. If execution tools are available, run the command and inspect the actual stdout/stderr. If tools are unavailable, instruct the user on the exact command to run.
|
|
30
|
-
|
|
31
|
-
### 4. Happy-Path Myopia
|
|
32
|
-
- **Tell:** Testing only the success state (e.g. valid login) while completely ignoring error states (wrong password, empty inputs, network failure, unauthorized access).
|
|
33
|
-
- **Why:** AI naturally gravitates toward the ideal flow.
|
|
34
|
-
- **Fix:** Verify both the happy path and at least one failure/edge case before declaring completion.
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
## The 4-Step Verification Sequence
|
|
39
|
-
|
|
40
|
-
Follow this sequence before declaring any task finished:
|
|
41
|
-
|
|
42
|
-
1. **Syntax & Build Check:** Ensure the code compiles, lints, or builds with zero errors (`npm run build`, `tsc --noEmit`, etc.).
|
|
43
|
-
2. **Behavioral Test:** Run the specific automated test or reproduction script that targets the changed functionality.
|
|
44
|
-
3. **Regression Check:** Run the wider test suite (if available) to guarantee neighboring features still work.
|
|
45
|
-
4. **Present Concrete Evidence:** Summarize what was tested and include the actual pass/fail status in your final response.
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## Decision Matrix: What to Verify
|
|
50
|
-
|
|
51
|
-
| Task Type | Minimum Verification Required |
|
|
52
|
-
| :--- | :--- |
|
|
53
|
-
| **Bug Fix** | Re-run the reproduction command; prove the error no longer occurs. |
|
|
54
|
-
| **New Feature** | Run unit/feature tests; test both valid input and invalid/empty input. |
|
|
55
|
-
| **Refactoring** | Run existing test suite to ensure 100% backward compatibility. |
|
|
56
|
-
| **Documentation / Copy** | Verify rendered markdown formatting, links, and code block syntax. |
|
|
57
|
-
|
|
58
|
-
---
|
|
59
|
-
|
|
60
|
-
## Checklist
|
|
61
|
-
|
|
62
|
-
Before declaring a task complete:
|
|
63
|
-
- [ ] Did I run the build, linter, or type checker to ensure no syntax/compilation errors?
|
|
64
|
-
- [ ] Did I run the relevant automated test or verification command?
|
|
65
|
-
- [ ] Did I verify that existing neighboring functionality was not broken?
|
|
66
|
-
- [ ] Did I check at least one error or edge-case state?
|
|
67
|
-
- [ ] Did I report the real verification outcome to the user instead of assuming success?
|