@kamleshsk/claude-qa 1.0.1

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/bin/install.js ADDED
@@ -0,0 +1,56 @@
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+
6
+ const SRC = path.join(__dirname, '..', 'templates');
7
+ const DEST = process.cwd();
8
+
9
+ function copyFile(srcRel, destRel) {
10
+ const src = path.join(SRC, srcRel);
11
+ const dest = path.join(DEST, destRel);
12
+
13
+ fs.mkdirSync(path.dirname(dest), { recursive: true });
14
+
15
+ if (fs.existsSync(dest)) {
16
+ console.log(` ā­ skip ${destRel} (already exists)`);
17
+ return;
18
+ }
19
+
20
+ fs.copyFileSync(src, dest);
21
+ console.log(` āœ… copied ${destRel}`);
22
+ }
23
+
24
+ function copyDir(srcRel, destRel) {
25
+ const srcDir = path.join(SRC, srcRel);
26
+ const entries = fs.readdirSync(srcDir);
27
+ for (const entry of entries) {
28
+ const entrySrcRel = path.join(srcRel, entry);
29
+ const entryDestRel = path.join(destRel, entry);
30
+ const fullSrc = path.join(SRC, entrySrcRel);
31
+ if (fs.statSync(fullSrc).isDirectory()) {
32
+ copyDir(entrySrcRel, entryDestRel);
33
+ } else {
34
+ copyFile(entrySrcRel, entryDestRel);
35
+ }
36
+ }
37
+ }
38
+
39
+ console.log('\nšŸš€ Installing @kamleshsk/claude-qa into:');
40
+ console.log(' ' + DEST + '\n');
41
+
42
+ // Claude commands
43
+ copyFile('commands/qa.md', '.claude/commands/qa.md');
44
+ copyFile('commands/qa-setup.md', '.claude/commands/qa-setup.md');
45
+
46
+ // Playwright skill (SKILL.md + all references)
47
+ copyFile('skills/playwright-cli/SKILL.md', '.claude/skills/playwright-cli/SKILL.md');
48
+ copyDir( 'skills/playwright-cli/references', '.claude/skills/playwright-cli/references');
49
+
50
+ // Docs
51
+ copyFile('docs/qa-setup/module-guide.md', 'docs/qa-setup/module-guide.md');
52
+
53
+ console.log('\n─────────────────────────────────────────────');
54
+ console.log(' Done! Open Claude Code in this project and');
55
+ console.log(' run /qa-setup to scaffold the QA framework.');
56
+ console.log('─────────────────────────────────────────────\n');
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@kamleshsk/claude-qa",
3
+ "version": "1.0.1",
4
+ "description": "Claude Code QA skills and commands installer — works with any project",
5
+ "bin": {
6
+ "claude-qa": "bin/install.js"
7
+ },
8
+ "files": [
9
+ "bin",
10
+ "templates"
11
+ ],
12
+ "keywords": [
13
+ "claude",
14
+ "claude-code",
15
+ "qa",
16
+ "playwright",
17
+ "testing",
18
+ "e2e"
19
+ ],
20
+ "author": "kamleshsk",
21
+ "license": "MIT"
22
+ }