@rune-kit/rune 2.2.4 → 2.2.6
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/compiler/adapters/openclaw.js +63 -0
- package/compiler/emitter.js +10 -0
- package/docs/EXTENSION-TEMPLATE.md +18 -0
- package/docs/SKILL-TEMPLATE.md +31 -0
- package/docs/guides/index.html +84 -21
- package/docs/index.html +227 -30
- package/docs/script.js +206 -15
- package/docs/style.css +355 -59
- package/extensions/saas/PACK.md +13 -8
- package/extensions/saas/skills/billing-integration.md +82 -3
- package/package.json +1 -1
- package/skills/audit/SKILL.md +1 -0
- package/skills/ba/SKILL.md +54 -1
- package/skills/completion-gate/SKILL.md +37 -2
- package/skills/cook/SKILL.md +151 -1
- package/skills/debug/SKILL.md +48 -1
- package/skills/deploy/SKILL.md +46 -1
- package/skills/fix/SKILL.md +28 -1
- package/skills/git/SKILL.md +55 -1
- package/skills/journal/SKILL.md +51 -3
- package/skills/plan/SKILL.md +63 -4
- package/skills/preflight/SKILL.md +50 -1
- package/skills/research/SKILL.md +36 -8
- package/skills/retro/SKILL.md +314 -0
- package/skills/sentinel/SKILL.md +108 -3
- package/skills/skill-forge/SKILL.md +85 -3
- package/skills/test/SKILL.md +45 -7
package/skills/test/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: test
|
|
|
3
3
|
description: "TDD test writer. Writes failing tests FIRST (red), then verifies they pass after implementation (green). Covers unit, integration, and e2e tests."
|
|
4
4
|
metadata:
|
|
5
5
|
author: runedev
|
|
6
|
-
version: "0.
|
|
6
|
+
version: "0.7.0"
|
|
7
7
|
layer: L2
|
|
8
8
|
model: sonnet
|
|
9
9
|
group: development
|
|
@@ -208,14 +208,14 @@ For non-trivial features (3+ test files or 20+ test cases), create a `TEST.md` i
|
|
|
208
208
|
- `test_e2e.py`: ~XX E2E tests planned (L3/L4)
|
|
209
209
|
|
|
210
210
|
## Unit Test Plan (L1)
|
|
211
|
-
| Module | Functions | Edge Cases | Est. Tests |
|
|
212
|
-
|
|
213
|
-
| `core/auth.py` | login, register, refresh | expired token, invalid creds, rate limit | 12 |
|
|
211
|
+
| Module | Functions | Edge Cases | Est. Tests | Req IDs |
|
|
212
|
+
|--------|-----------|------------|------------|---------|
|
|
213
|
+
| `core/auth.py` | login, register, refresh | expired token, invalid creds, rate limit | 12 | REQ-001, REQ-003 |
|
|
214
214
|
|
|
215
215
|
## E2E Scenarios (L3/L4)
|
|
216
|
-
| Workflow | Simulates | Operations | Verified |
|
|
217
|
-
|
|
218
|
-
| User signup | New user onboarding | register → verify → login | Token valid, profile created |
|
|
216
|
+
| Workflow | Simulates | Operations | Verified | Req IDs |
|
|
217
|
+
|----------|-----------|------------|----------|---------|
|
|
218
|
+
| User signup | New user onboarding | register → verify → login | Token valid, profile created | REQ-005 |
|
|
219
219
|
|
|
220
220
|
## Realistic Workflow Scenarios
|
|
221
221
|
- **[Name]**: [Step 1] → [Step 2] → verify [output properties]
|
|
@@ -230,6 +230,12 @@ For non-trivial features (3+ test files or 20+ test cases), create a `TEST.md` i
|
|
|
230
230
|
- Total: XX | Passed: XX | Failed: 0
|
|
231
231
|
- Execution time: X.Xs | Coverage: XX%
|
|
232
232
|
|
|
233
|
+
## Requirement Coverage
|
|
234
|
+
| Req ID | Test File(s) | Status |
|
|
235
|
+
|--------|-------------|--------|
|
|
236
|
+
| REQ-001 | `test_auth.py::test_login` | ✅ Covered |
|
|
237
|
+
| REQ-002 | — | ❌ Not covered |
|
|
238
|
+
|
|
233
239
|
## Gaps
|
|
234
240
|
- [Areas not covered and why]
|
|
235
241
|
```
|
|
@@ -261,6 +267,25 @@ For non-trivial features (3+ test files or 20+ test cases), create a `TEST.md` i
|
|
|
261
267
|
- `browser-pilot` (L3): Phase 4 — e2e and visual testing for UI flows
|
|
262
268
|
- `debug` (L2): Phase 5 — when existing test regresses unexpectedly
|
|
263
269
|
|
|
270
|
+
## Data Flow
|
|
271
|
+
|
|
272
|
+
### Feeds Into →
|
|
273
|
+
|
|
274
|
+
- `cook` (L1): test results (pass/fail/coverage) → cook's Phase 5 quality gate evidence
|
|
275
|
+
- `completion-gate` (L3): test runner stdout → evidence for "tests pass" claims
|
|
276
|
+
- `fix` (L2): failing test output → fix's target (what to make green)
|
|
277
|
+
|
|
278
|
+
### Fed By ←
|
|
279
|
+
|
|
280
|
+
- `plan` (L2): phase file test tasks → test's RED phase targets (what to test)
|
|
281
|
+
- `review` (L2): untested edge cases found during review → new test targets
|
|
282
|
+
- `fix` (L2): implemented code → test's GREEN phase verification target
|
|
283
|
+
|
|
284
|
+
### Feedback Loops ↻
|
|
285
|
+
|
|
286
|
+
- `test` ↔ `fix`: test writes failing tests (RED) → fix implements to pass → test verifies (GREEN) → if new failures emerge, loop continues
|
|
287
|
+
- `test` ↔ `debug`: test discovers regression → debug diagnoses root cause → test writes regression test to prevent recurrence
|
|
288
|
+
|
|
264
289
|
## Anti-Rationalization Table
|
|
265
290
|
|
|
266
291
|
| Excuse | Reality |
|
|
@@ -375,6 +400,18 @@ Known failure modes for this skill. Check these before declaring done.
|
|
|
375
400
|
| Modifying source files to make tests work | HIGH | Role boundary: test writes test files ONLY — source changes go to rune:fix |
|
|
376
401
|
| Test-only methods leaking into production code | MEDIUM | Anti-Pattern 2 gate: if method only called by tests → move to test utilities |
|
|
377
402
|
|
|
403
|
+
## Self-Validation
|
|
404
|
+
|
|
405
|
+
```
|
|
406
|
+
SELF-VALIDATION (run before emitting Test Report):
|
|
407
|
+
- [ ] Every test file has at least one assertion — no empty test bodies
|
|
408
|
+
- [ ] RED phase output shows actual failures (not "0 tests") — tests were real, not stubs
|
|
409
|
+
- [ ] No test modifies source code — test files only, source changes belong to fix
|
|
410
|
+
- [ ] Test names describe behavior, not implementation ("should reject expired token" not "test function X")
|
|
411
|
+
- [ ] No mocks of the thing being tested — only mock external dependencies
|
|
412
|
+
- [ ] If BA requirements exist (REQ-xxx), every requirement has at least one test — check plan's Traceability Matrix
|
|
413
|
+
```
|
|
414
|
+
|
|
378
415
|
## Done When
|
|
379
416
|
|
|
380
417
|
- Test framework detected from project config files
|
|
@@ -383,6 +420,7 @@ Known failure modes for this skill. Check these before declaring done.
|
|
|
383
420
|
- After implementation: all tests PASS (GREEN phase — actual pass output shown)
|
|
384
421
|
- Coverage ≥80% verified via verification
|
|
385
422
|
- Test Report emitted with framework, test count, RED/GREEN status, and coverage
|
|
423
|
+
- Self-Validation: all checks passed
|
|
386
424
|
|
|
387
425
|
## Cost Profile
|
|
388
426
|
|