@sisu-ai/skill-test-gen 0.2.0

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/LICENSE ADDED
@@ -0,0 +1,6 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ This package is licensed under the Apache License, Version 2.0.
6
+ See the repository root LICENSE file for the full text.
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @sisu-ai/skill-test-gen
2
+
3
+ Test generation skill for Vitest with coverage guidance.
4
+
5
+ Install
6
+
7
+ ```bash
8
+ pnpm add @sisu-ai/skill-test-gen
9
+ ```
10
+
11
+ Usage
12
+
13
+ Point the skills middleware directly at the installed package:
14
+
15
+ ```ts
16
+ skillsMiddleware({
17
+ directories: ["node_modules/@sisu-ai/skill-test-gen"],
18
+ });
19
+ ```
20
+
21
+ Or copy the skill into your project skills directory:
22
+
23
+ ```bash
24
+ mkdir -p .sisu/skills/test-gen
25
+ cp -R node_modules/@sisu-ai/skill-test-gen/* .sisu/skills/test-gen/
26
+ ```
27
+
28
+ Resources
29
+
30
+ - `resources/vitest-patterns.md`
31
+
32
+ License
33
+
34
+ Apache-2.0
package/SKILL.md ADDED
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: test-gen
3
+ description: Generate comprehensive tests using Vitest with edge cases
4
+ version: 0.1.0
5
+ author: sisu
6
+ tags: [tests, vitest, coverage]
7
+ requires: [read_file, grep]
8
+ ---
9
+
10
+ # Test Generation
11
+
12
+ Use this skill to generate tests that meet SISU's coverage standards.
13
+
14
+ ## Goals
15
+
16
+ - Cover happy path, edge cases, and invalid inputs
17
+ - Use Vitest syntax and patterns
18
+ - Keep tests deterministic and isolated
19
+
20
+ ## Steps
21
+
22
+ 1. Identify target module and public behavior
23
+ 2. Enumerate input variations
24
+ 3. Generate tests for error handling and cancellation
25
+ 4. Validate coverage thresholds (≥ 80%)
26
+
27
+ ## Resources
28
+
29
+ See `resources/vitest-patterns.md` for patterns and examples.
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@sisu-ai/skill-test-gen",
3
+ "version": "0.2.0",
4
+ "license": "Apache-2.0",
5
+ "type": "module",
6
+ "files": [
7
+ "SKILL.md",
8
+ "resources"
9
+ ],
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/finger-gun/sisu",
16
+ "directory": "packages/skills/skill-test-gen"
17
+ },
18
+ "homepage": "https://github.com/finger-gun/sisu#readme",
19
+ "bugs": {
20
+ "url": "https://github.com/finger-gun/sisu/issues"
21
+ },
22
+ "keywords": [
23
+ "sisu",
24
+ "ai",
25
+ "ai-agent",
26
+ "agentic",
27
+ "skill",
28
+ "test",
29
+ "vitest"
30
+ ]
31
+ }
@@ -0,0 +1,22 @@
1
+ # Vitest Patterns
2
+
3
+ ## Structure
4
+
5
+ ```ts
6
+ import { describe, it, expect } from "vitest";
7
+
8
+ describe("feature", () => {
9
+ it("handles happy path", () => {
10
+ /* ... */
11
+ });
12
+ it("handles invalid input", () => {
13
+ /* ... */
14
+ });
15
+ });
16
+ ```
17
+
18
+ ## Coverage Guidance
19
+
20
+ - Include edge cases and negative paths
21
+ - Use table-driven tests for permutations
22
+ - Avoid network or file I/O without mocks