@complexthings/superpowers-agent 8.3.0 → 8.4.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.
@@ -221,10 +221,10 @@ Description:
221
221
  `);let Y=!X.includes("--project")&&!X.includes("-p"),Z=null,q=null,H=null;if(Q.startsWith("@")){let B=Q;H=B,q=$.find((L,T)=>T>0&&!L.startsWith("-")&&L!==B);let V=h(!1),_=h(!0);if(V[B])Z=V[B],console.log(`Using project repository alias: ${B}`);else if(_[B])Z=_[B],console.log(`Using global repository alias: ${B}`);else{console.log(`Error: Repository alias not found: ${B}`),console.log(`
222
222
  Available aliases:`);let L={..._,...V};if(Object.keys(L).length===0)console.log(" (none)"),console.log(`
223
223
  Add a repository using:`),console.log(" superpowers-agent add-repository <git-url>");else for(let[T,x]of Object.entries(L))console.log(` ${T} -> ${x}`);return}let w=F(Z);if(q)if(w)Q=N(Z,q),console.log(`Repository path: ${Z}`),console.log(`Skill path: ${q}
224
- `);else Q=`${Z}/tree/main/${q}`,console.log(`Repository URL: ${Z}`),console.log(`Skill path: ${q}
224
+ `);else Q=Z,console.log(`Repository URL: ${Z}`),console.log(`Skill path: ${q}
225
225
  `);else if(Q=Z,w)console.log(`Repository path: ${Z}
226
226
  `);else console.log(`Repository URL: ${Z}
227
- `)}let W=t$(Q);if(!W){console.log(`Error: Invalid URL or path not found: ${Q}`);return}let K=e$(X);console.log(`Install location: ${K}
227
+ `)}let W=t$(Q);if(!W){console.log(`Error: Invalid URL or path not found: ${Q}`);return}if(q&&W.type==="git-repo"&&!W.path)W.path=q;let K=e$(X);console.log(`Install location: ${K}
228
228
  `);let E,G=!1;try{if(W.type==="git-repo"||W.type==="git-tree"){if(console.log(`Cloning repository: ${W.repoUrl}`),W.branch)console.log(`Branch: ${W.branch}`);if(E=$Q(W.repoUrl,W.branch),G=!0,W.path){if(E=N(E,W.path),!F(E))throw Error(`Path not found in repository: ${W.path}`)}console.log("")}else E=W.path;let B=Z$(E);if(!B)throw Error("No skill.json found in source directory");let V={installed:[],errors:[],source:W.original};if(B.skills&&Array.isArray(B.skills)){console.log(`Found ${B.skills.length} skill(s) to install
229
229
  `);for(let L of B.skills)b$(E,L,K,V)}else{let L=B.name||V$(E).base;b$(N$(E),V$(E).base,K,V)}let _=oQ(E,W),w=N(_,"agents.json");if(F(w)){let L=_;if(G){let T;try{T=JSON.parse(C$(w,"utf8"))}catch{}let x=T?.repository||W.original,f=rQ(_,x);if(f)L=f}o$(L,{isUpdate:!1})}if(G&&E)try{let L=E.split("/.agents/tmp/")[0]+"/.agents/tmp/"+E.split("/.agents/tmp/")[1].split("/")[0];j(`rm -rf "${L}"`,{stdio:"pipe"})}catch{}if(console.log(`
230
230
  **Successfully installed skills:**`),console.log(`- Source: ${V.source}`),V.installed.length>0)for(let L of V.installed)console.log(` - Installed: ${L.name} at ${L.path}`),console.log(` ${L.title}`);if(V.errors.length>0){console.log(`
@@ -258,10 +258,10 @@ Description:
258
258
  `);let Y=!X.includes("--project")&&!X.includes("-p"),Z=null,q=null,H=null;if(Q.startsWith("@")){let B=Q;H=B,q=$.find((L,T)=>T>0&&!L.startsWith("-")&&L!==B);let V=h(!1),_=h(!0);if(V[B])Z=V[B],console.log(`Using project repository alias: ${B}`);else if(_[B])Z=_[B],console.log(`Using global repository alias: ${B}`);else{console.log(`Error: Repository alias not found: ${B}`),console.log(`
259
259
  Available aliases:`);let L={..._,...V};if(Object.keys(L).length===0)console.log(" (none)"),console.log(`
260
260
  Add a repository using:`),console.log(" superpowers-agent add-repository <git-url>");else for(let[T,x]of Object.entries(L))console.log(` ${T} -> ${x}`);return}let w=F(Z);if(q)if(w)Q=N(Z,q),console.log(`Repository path: ${Z}`),console.log(`Skill path: ${q}
261
- `);else Q=`${Z}/tree/main/${q}`,console.log(`Repository URL: ${Z}`),console.log(`Skill path: ${q}
261
+ `);else Q=Z,console.log(`Repository URL: ${Z}`),console.log(`Skill path: ${q}
262
262
  `);else if(Q=Z,w)console.log(`Repository path: ${Z}
263
263
  `);else console.log(`Repository URL: ${Z}
264
- `)}let W=t$(Q);if(!W){console.log(`Error: Invalid URL or path not found: ${Q}`);return}let K=e$(X);console.log(`Install location: ${K}
264
+ `)}let W=t$(Q);if(!W){console.log(`Error: Invalid URL or path not found: ${Q}`);return}if(q&&W.type==="git-repo"&&!W.path)W.path=q;let K=e$(X);console.log(`Install location: ${K}
265
265
  `);let E,G=!1;try{if(W.type==="git-repo"||W.type==="git-tree"){if(console.log(`Cloning repository: ${W.repoUrl}`),W.branch)console.log(`Branch: ${W.branch}`);if(E=$Q(W.repoUrl,W.branch),G=!0,W.path){if(E=N(E,W.path),!F(E))throw Error(`Path not found in repository: ${W.path}`)}console.log("")}else E=W.path;let B=Z$(E);if(!B)throw Error("No skill.json found in source directory");let V={installed:[],errors:[],source:W.original};if(B.skills&&Array.isArray(B.skills)){console.log(`Found ${B.skills.length} skill(s) to update
266
266
  `);for(let L of B.skills)b$(E,L,K,V)}else{let L=B.name||V$(E).base;b$(N$(E),V$(E).base,K,V)}let _=oQ(E,W),w=N(_,"agents.json");if(F(w)){let L=_;if(G){let T;try{T=JSON.parse(C$(w,"utf8"))}catch{}let x=T?.repository||W.original,f=rQ(_,x);if(f)L=f}o$(L,{isUpdate:!0})}if(G&&E)try{let L=E.split("/.agents/tmp/")[0]+"/.agents/tmp/"+E.split("/.agents/tmp/")[1].split("/")[0];j(`rm -rf "${L}"`,{stdio:"pipe"})}catch{}if(console.log(`
267
267
  **Successfully updated skills:**`),console.log(`- Source: ${V.source}`),V.installed.length>0)for(let L of V.installed)console.log(` - Updated: ${L.name} at ${L.path}`),console.log(` ${L.title}`);if(V.errors.length>0){console.log(`
package/README.md CHANGED
@@ -6,6 +6,10 @@ A comprehensive skills library of proven techniques, patterns, and workflows for
6
6
 
7
7
  ## What's New
8
8
 
9
+ **v8.4.0 (April 6, 2026):**
10
+
11
+ - **`superpowers-agent rm` command** — new CLI command for removing installed skills and agents from your system
12
+
9
13
  **v8.2.0 (March 16, 2026):**
10
14
 
11
15
  - **npm registry update checking** — `update` and `check-updates` now query the npm registry instead of the Git repo. Run `npm install -g @complexthings/superpowers-agent` to update.
@@ -472,6 +476,7 @@ superpowers-agent get-helpers <skill> <term> # Find helper files in skill
472
476
  ```bash
473
477
  superpowers-agent add <url-or-path> # Install skill(s) from Git or local
474
478
  superpowers-agent add @alias path/to/skill # Install from repository alias
479
+ superpowers-agent rm <skill-name> # Remove an installed skill or agent
475
480
  ```
476
481
 
477
482
  **Repository Management:**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@complexthings/superpowers-agent",
3
- "version": "8.3.0",
3
+ "version": "8.4.0",
4
4
  "description": "Superpowers agent CLI — skills system for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {