@geminixiang/pi-simplify 0.0.1 → 0.0.3
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/.github/workflows/publish.yml +5 -2
- package/README.md +47 -0
- package/package.json +6 -2
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
|
|
20
20
|
- uses: actions/setup-node@v4
|
|
21
21
|
with:
|
|
22
|
-
node-version: "
|
|
22
|
+
node-version: "24"
|
|
23
23
|
registry-url: "https://registry.npmjs.org"
|
|
24
24
|
|
|
25
25
|
- name: Install dependencies
|
|
@@ -37,9 +37,12 @@ jobs:
|
|
|
37
37
|
|
|
38
38
|
- uses: actions/setup-node@v4
|
|
39
39
|
with:
|
|
40
|
-
node-version: "
|
|
40
|
+
node-version: "24"
|
|
41
41
|
registry-url: "https://registry.npmjs.org"
|
|
42
42
|
|
|
43
|
+
- name: Update npm
|
|
44
|
+
run: npm install -g npm@latest
|
|
45
|
+
|
|
43
46
|
- name: Install dependencies
|
|
44
47
|
run: npm ci
|
|
45
48
|
|
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# pi-simplify
|
|
2
|
+
|
|
3
|
+
A [pi coding agent](https://github.com/mariozechner/pi) extension that adds a `/simplify` command to review changed code for reuse, quality, and efficiency — then fix any issues found.
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Running `/simplify` launches three parallel sub-agents that each review your git diff from a different angle:
|
|
8
|
+
|
|
9
|
+
- **Code Reuse** — finds newly written code that duplicates existing utilities or helpers
|
|
10
|
+
- **Code Quality** — catches hacky patterns: redundant state, parameter sprawl, copy-paste blocks, leaky abstractions, stringly-typed code, unnecessary comments
|
|
11
|
+
- **Efficiency** — spots unnecessary work, missed concurrency, hot-path bloat, memory leaks, and overly broad operations
|
|
12
|
+
|
|
13
|
+
After all three agents finish, issues are aggregated and fixed in place. A brief summary is printed at the end.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
### 1. Install pi-subagents
|
|
18
|
+
|
|
19
|
+
`pi-simplify` relies on the Agent tool provided by the `pi-subagents` package. Install it first:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
pi install npm:pi-subagents
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### 2. Install pi-simplify
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
pi install npm:@geminixiang/pi-simplify
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
After installation, the `/simplify` command is available inside pi:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
/simplify
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
You can also pass an optional focus area to narrow the review:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
/simplify focus on performance in the database layer
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## License
|
|
46
|
+
|
|
47
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geminixiang/pi-simplify",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Simplify: code reuse, quality, and efficiency review for pi coding agent",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"pi-package"
|
|
8
8
|
],
|
|
9
|
-
"author": "",
|
|
9
|
+
"author": "geminixiang",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/geminixiang/pi-simplify"
|
|
13
|
+
},
|
|
10
14
|
"license": "MIT",
|
|
11
15
|
"pi": {
|
|
12
16
|
"extensions": [
|