@supa-magic/spm 0.1.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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 supa-magic
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # spm
2
+
3
+ Skill Package Manager.
4
+
5
+ spm is a CLI tool for installing and managing AI skillsets in software projects.
6
+
7
+ A skillset is a preconfigured workflow that combines multiple AI skills, rules, tools, and integrations for a specific stack or architecture.
8
+
9
+ spm allows developers to quickly install and apply these workflows to their projects.
10
+
11
+ ## Installation
12
+
13
+ ```bash
14
+ npm install -g @supa-magic/spm
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```bash
20
+ spm install nextjs-fsd
21
+ ```
22
+
23
+ This installs the corresponding skillset into the project.
24
+
25
+ ## Related
26
+
27
+ Skillsets are built using skills from the [skillbox](https://github.com/supa-magic/skillbox) repository.
28
+
29
+ Part of the [Supa Magic](https://github.com/supa-magic) ecosystem.
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env node
2
+ import { Command } from "commander";
3
+ const registerDoctorCommand = (program2) => {
4
+ program2.command("doctor").description("Check project health and compatibility").action(() => {
5
+ console.log("Not implemented yet");
6
+ });
7
+ };
8
+ const registerInstallCommand = (program2) => {
9
+ program2.command("install <skillset>").alias("i").description("Install a skillset into the project").action((skillset) => {
10
+ console.log(`install ${skillset}: Not implemented yet`);
11
+ });
12
+ };
13
+ const registerListCommand = (program2) => {
14
+ program2.command("list").alias("ls").description("List installed skillsets").action(() => {
15
+ console.log("Not implemented yet");
16
+ });
17
+ };
18
+ const light = "\x1B[96m";
19
+ const shade = "\x1B[36m";
20
+ const dim = "\x1B[2m";
21
+ const reset$1 = "\x1B[0m";
22
+ const banner = (version2) => [
23
+ `${shade} ▐${light}▌ ▐▌ ${reset$1}AI Skill Package Manager`,
24
+ `${shade} ▐${light}▛██▜▌ ${reset$1}install • compose • share`,
25
+ `${shade}▝▜${light}████▛▘ ${reset$1}${dim}v${version2} ✨ supa-magic${reset$1}`,
26
+ `${shade} ▘${light} ▝`
27
+ ].join("\n");
28
+ const version = "0.1.0";
29
+ const program = new Command();
30
+ const gray = "\x1B[90m";
31
+ const reset = "\x1B[0m";
32
+ program.name("spm").description(banner(version)).version(version).configureHelp({
33
+ formatHelp: (cmd, helper) => {
34
+ const defaultHelp = Command.prototype.createHelp().formatHelp(cmd, helper);
35
+ const [description, ...rest] = defaultHelp.split("\n\n");
36
+ return [description, `${gray}${rest.join("\n\n")}${reset}`].join("\n\n");
37
+ }
38
+ });
39
+ registerInstallCommand(program);
40
+ registerListCommand(program);
41
+ registerDoctorCommand(program);
42
+ program.parse();
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@supa-magic/spm",
3
+ "version": "0.1.0",
4
+ "description": "CLI tool for managing AI skillsets",
5
+ "license": "MIT",
6
+ "contributors": [
7
+ "sultan99",
8
+ "bafxyz"
9
+ ],
10
+ "keywords": [
11
+ "ai",
12
+ "cli",
13
+ "package manager",
14
+ "skills",
15
+ "skillsets",
16
+ "spm",
17
+ "supa-magic"
18
+ ],
19
+ "type": "module",
20
+ "bin": {
21
+ "spm": "dist/bin/spm.js"
22
+ },
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "engines": {
27
+ "node": ">=20"
28
+ },
29
+ "scripts": {
30
+ "start": "clear && claude --dangerously-skip-permissions",
31
+ "build": "vite build",
32
+ "pretest": "npm run build",
33
+ "test": "vitest run",
34
+ "test:watch": "vitest"
35
+ },
36
+ "devDependencies": {
37
+ "@biomejs/biome": "2.4.6",
38
+ "@types/node": "^25.4.0",
39
+ "typescript": "5.8.3",
40
+ "vite": "^7.3.1",
41
+ "vitest": "^4.0.18"
42
+ },
43
+ "dependencies": {
44
+ "commander": "^14.0.3"
45
+ }
46
+ }