@leing2021/super-pi 0.19.4 → 0.19.5
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/README.md +7 -1
- package/package.json +1 -1
- package/skills/02-plan/SKILL.md +5 -1
- package/skills/10-rules/SKILL.md +2 -0
package/README.md
CHANGED
|
@@ -275,7 +275,7 @@ Three CE skills auto-trigger rule loading at their entry points:
|
|
|
275
275
|
|
|
276
276
|
| Skill | Rules pre-loaded |
|
|
277
277
|
|-------|-----------------|
|
|
278
|
-
| `02-plan` | `common
|
|
278
|
+
| `02-plan` | `common/` rules + language detection + matching language rules (e.g. `rules/typescript/`) |
|
|
279
279
|
| `03-work` | Language-specific rules matching the active codebase |
|
|
280
280
|
| `04-review` | `common/code-review.md` + language rules for changed files |
|
|
281
281
|
|
|
@@ -381,6 +381,12 @@ Not a fork. Not a wrapper. Methodologies extracted and rebuilt with Pi's native
|
|
|
381
381
|
|
|
382
382
|
## Changelog
|
|
383
383
|
|
|
384
|
+
### 0.19.5 — Plan skill missing language rules fix
|
|
385
|
+
- Fixed `02-plan` not loading language-specific rules (e.g. `rules/typescript/`) during the planning phase — only `common/` rules were loaded.
|
|
386
|
+
- Updated `10-rules` SKILL.md Pre-flight to require language detection in the planning phase.
|
|
387
|
+
- Updated `02-plan` SKILL.md Core rules to a 4-step progressive loading strategy (common → language detection → language rules → web rules).
|
|
388
|
+
- Synced `README.md` and `README_CN.md` skill table to reflect the change.
|
|
389
|
+
|
|
384
390
|
### 0.19.4 — Read output filter markdown truncation fix
|
|
385
391
|
- Fixed `read-output-filter` over-truncating markdown files: raised markdown threshold from 2KB → 8KB.
|
|
386
392
|
- Improved `filterMarkdown()` to fully preserve list items (`-`, `*`, numbered) and keep first 3 lines of paragraphs (was 1).
|
package/package.json
CHANGED
package/skills/02-plan/SKILL.md
CHANGED
|
@@ -11,7 +11,11 @@ See [shared pipeline instructions](../references/pipeline-config.md) for model r
|
|
|
11
11
|
|
|
12
12
|
## Core rules
|
|
13
13
|
|
|
14
|
-
- Before planning, read the `10-rules` skill and load
|
|
14
|
+
- Before planning, read the `10-rules` skill and load:
|
|
15
|
+
1. `rules/common/development-workflow.md` and `rules/common/testing.md`
|
|
16
|
+
2. **Detect the project's primary language** (check for `tsconfig.json` → typescript, `package.json` without tsconfig → javascript, `Cargo.toml` → rust, `go.mod` → golang, `pubspec.yaml` → dart, `pom.xml`/`build.gradle` → java, `*.sln`/`*.csproj` → csharp, `Package.swift` → swift, `requirements.txt`/`pyproject.toml`/`setup.py` → python, `composer.json` → php, `Makefile.PL`/`cpanfile` → perl, `build.gradle.kts` → kotlin)
|
|
17
|
+
3. Load all files in the matching language-specific rules directory (e.g. `rules/typescript/`)
|
|
18
|
+
4. If the task involves frontend/browser concerns, also load `rules/web/` files
|
|
15
19
|
- Search `docs/brainstorms/` for a relevant requirements artifact first.
|
|
16
20
|
- Search solutions with grep-first strategy: extract keywords from the task → `bash grep -rl "tags:.*keyword" docs/solutions/ ~/.pi/agent/docs/solutions/` → read only frontmatter (first 15 lines) of matching files → score by severity + tag relevance → fully read top 3. Search both project-level (`docs/solutions/`) and global-level (`~/.pi/agent/docs/solutions/`). If no matches, report "No relevant solutions found" and proceed.
|
|
17
21
|
- Write the final plan to `docs/plans/`.
|
package/skills/10-rules/SKILL.md
CHANGED
|
@@ -23,6 +23,8 @@ Do not load the entire rules tree by default. Read only the files needed for the
|
|
|
23
23
|
Read at minimum:
|
|
24
24
|
- `rules/common/development-workflow.md`
|
|
25
25
|
- `rules/common/testing.md`
|
|
26
|
+
- **Detect the active language** from the project: check for `tsconfig.json` → typescript, `package.json` (without tsconfig) → javascript, `Cargo.toml` → rust, `go.mod` → golang, `pubspec.yaml` → dart, `pom.xml`/`build.gradle` → java, `*.sln`/`*.csproj` → csharp, `Package.swift` → swift, `requirements.txt`/`pyproject.toml`/`setup.py` → python, `composer.json` → php, `Makefile.PL`/`cpanfile` → perl, `build.gradle.kts` → kotlin. Load all files in the matching language directory (e.g. `rules/typescript/`).
|
|
27
|
+
- `rules/web/` files if the task involves frontend/browser concerns
|
|
26
28
|
|
|
27
29
|
### Before implementation (03-work)
|
|
28
30
|
|