@xynogen/pix-skills 0.10.2 → 0.10.4
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 +1 -0
- package/package.json +3 -3
- package/skills/long-task.md +48 -0
package/README.md
CHANGED
|
@@ -166,6 +166,7 @@ as `/skill:<name>` slash commands.
|
|
|
166
166
|
| `harden` | Retrofit a fail-fast static-analysis gate onto an existing project |
|
|
167
167
|
| `human` | Audit and rewrite text to remove AI writing patterns (bundle with references) |
|
|
168
168
|
| `lint` | Select and run the project's linter (LSP diagnostics first) and fix findings |
|
|
169
|
+
| `long-task` | Multi-session build state in files: `init.sh`, `features.json`, `PROGRESS.md`, one commit per feature |
|
|
169
170
|
| `lsp` | Select, install with consent, and configure a language server in `.pi/lsp.json` |
|
|
170
171
|
| `readme` | Create or update a deployment-focused README in a fixed style |
|
|
171
172
|
| `review` | Strict code review by severity, ending in a Pass / Pass with suggestions / Fail verdict |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xynogen/pix-skills",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": "Pi extension \u2014 agent skill loader (skill tool + skills bundle)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@xynogen/pix-gate": "^0.4.0",
|
|
51
|
-
"@xynogen/pix-pretty": "^1.
|
|
52
|
-
"@xynogen/pix-runtime": "^0.
|
|
51
|
+
"@xynogen/pix-pretty": "^1.32.0",
|
|
52
|
+
"@xynogen/pix-runtime": "^0.15.0"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: long-task
|
|
3
|
+
description: Runs work that spans many sessions through files in the repo — an init script, a JSON feature list, a progress log, and one commit per feature — so each new session gets its bearings from git and the files, not from memory. Use when the user starts a large build that will not fit in one session, or resumes one that already has `features.json` and `PROGRESS.md`.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
# Long task
|
|
7
|
+
|
|
8
|
+
Compaction alone does not carry a long build across sessions. Keep the state in files that the next session reads first (Anthropic, *Effective harnesses for long-running agents*).
|
|
9
|
+
|
|
10
|
+
## First session: set up
|
|
11
|
+
|
|
12
|
+
1. Agree the goal and the scope with the user. Write it at the top of `PROGRESS.md`.
|
|
13
|
+
2. Write `init.sh`: the commands that install, build, start, and test the project from a clean checkout. Run it once. Fix it until it passes.
|
|
14
|
+
3. Write `features.json`. Use JSON, not Markdown: models rewrite prose lists, but they edit JSON fields with care.
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
[
|
|
18
|
+
{
|
|
19
|
+
"id": "auth-login",
|
|
20
|
+
"description": "User logs in with email and password",
|
|
21
|
+
"steps": ["POST /login returns a session cookie", "a bad password returns 401"],
|
|
22
|
+
"passes": false
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
4. Commit: `chore: long-task scaffold`.
|
|
28
|
+
|
|
29
|
+
## Every session: get your bearings
|
|
30
|
+
|
|
31
|
+
Before you change code:
|
|
32
|
+
|
|
33
|
+
1. `pwd` and `git log --oneline -20`.
|
|
34
|
+
2. Read `PROGRESS.md` and `features.json`.
|
|
35
|
+
3. Run `init.sh`. If the build or a test that used to pass now fails, fix that first.
|
|
36
|
+
4. Pick **one** feature with `"passes": false`. Tell the user which one.
|
|
37
|
+
|
|
38
|
+
## Work one feature
|
|
39
|
+
|
|
40
|
+
1. Build only that feature. Do not start a second one.
|
|
41
|
+
2. Check it against its `steps`, the way a user would (run the app, call the endpoint, run the test).
|
|
42
|
+
3. Set `"passes": true` only after the check passes. Never delete or reword a feature to make it pass. Tell the user if a feature is wrong.
|
|
43
|
+
4. Add to `PROGRESS.md`: date, the feature, what changed, what failed and why, and the next feature.
|
|
44
|
+
5. Commit: `feat(<scope>): <feature id>`.
|
|
45
|
+
|
|
46
|
+
## End of session
|
|
47
|
+
|
|
48
|
+
Leave the tree clean and committed, `init.sh` passing, and `PROGRESS.md` naming the next step. If the session stops in the middle of a feature, write the exact stop point in `PROGRESS.md` and leave `"passes": false`.
|