@xynogen/pix-skills 0.10.9 → 0.10.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-skills",
3
- "version": "0.10.9",
3
+ "version": "0.10.10",
4
4
  "description": "Pi extension — agent skill loader (skill tool + skills bundle)",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -47,8 +47,8 @@
47
47
  "@earendil-works/pi-tui": "*"
48
48
  },
49
49
  "dependencies": {
50
- "@xynogen/pix-gate": "^0.4.0",
51
- "@xynogen/pix-pretty": "^1.38.0",
52
- "@xynogen/pix-runtime": "^0.18.0"
50
+ "@xynogen/pix-gate": "^0.4.9",
51
+ "@xynogen/pix-pretty": "^2.0.0",
52
+ "@xynogen/pix-runtime": "^0.19.0"
53
53
  }
54
54
  }
package/skills/task.md CHANGED
@@ -1,36 +1,22 @@
1
1
  ---
2
2
  name: task
3
- description: Executes a multi-step change in small verified steps — resolves vague references, maps impact, runs one step at a time, and stops on blockers. Use when the user gives an order with several steps, a terse follow-up like "do it" or "fix that", or a change that touches several files, tests, or configs.
3
+ description: Carries a multi-step change through to a verified result using conversation context and proportionate planning. Use for multi-file work or short follow-ups such as "do it" or "fix that".
4
4
  disable-model-invocation: true
5
5
  ---
6
6
  # Task
7
7
 
8
- ## Before you start
8
+ ## Approach
9
9
 
10
- 1. **Resolve the request** from recent context. "Fix that" or "do it" refers to the last proposed plan or finding. If two readings remain and the wrong one is costly, ask.
11
- 2. **Map the impact**: affected files, tests, docs, configs, and consumers. Flag breaking changes.
12
- 3. **Check the state**: paths, versions, permissions, and a clean starting point.
10
+ Use the whole conversation to resolve the goal and target. Inspect relevant code and any reference project before asking the user to fill gaps. Make routine implementation decisions yourself; ask only about unresolved choices that materially affect scope, cost, or safety.
13
11
 
14
12
  ## Execute
15
13
 
16
- Order: back up (only before destructive changes) → code → config → validation.
17
-
18
- Write each step as:
19
-
20
- ```
21
- Step N: [action]
22
- - Files: [exact paths]
23
- - Command: [exact command]
24
- - Expected: [what success looks like]
25
- ```
26
-
27
- - Do one step, check its result, then start the next.
28
- - For long plans, report after every batch of about 3 steps. Continue unless the user must decide something.
14
+ Plan only as much as the change needs. Group related edits and checks; do not narrate every tool call or wait for approval between routine steps. Preserve unrelated work and respect permission boundaries.
29
15
 
30
16
  ## Blocked
31
17
 
32
- A missing dependency, a failing test, or an unclear instruction → stop. Do not guess or work around it. Report the command, the output, and the `file:line`, then ask.
18
+ Diagnose failures and use available alternatives within the authorized scope. Stop for missing permission, a consequential user decision, or a blocker you cannot resolve safely. Report the specific cause and what is needed; do not retry blindly.
33
19
 
34
20
  ## Finish
35
21
 
36
- Apply the `verify` skill checks. Report each step, its evidence, and anything still open.
22
+ Check the result against the user's goal with relevant tests and a diff review, following repo requirements. Report the outcome, evidence, and anything still unverified. Do not treat successful edits or tool calls as proof that the task is complete.
package/src/index.ts CHANGED
@@ -19,14 +19,14 @@ import { Text } from "@earendil-works/pi-tui";
19
19
  import { type FadeTheme, fadeTextRow } from "@xynogen/pix-pretty/text";
20
20
  import {
21
21
  dotJoin,
22
- formatCollapsedToolRow,
23
- formatToolCallTitle,
24
22
  frameToolResult,
25
23
  getErrorMessage,
26
24
  getTextContent,
27
25
  hideCollapsedToolCall,
28
26
  humanSize,
29
27
  moreLines,
28
+ renderRow,
29
+ renderTitle,
30
30
  } from "@xynogen/pix-pretty/utils";
31
31
  import { type CollapseState, tickCollapse } from "@xynogen/pix-runtime/collapse";
32
32
  import { ioTimeoutMs } from "@xynogen/pix-runtime/io";
@@ -705,7 +705,7 @@ function registerSkillLoader(pi: ExtensionAPI): void {
705
705
  return component;
706
706
  const label = formatSkillCallLabel(args as SkillCallArgs);
707
707
  component.setText(
708
- `${formatToolCallTitle(theme, "read_skills", renderCtx)} ${theme.fg("dim", label)}`,
708
+ `${renderTitle(theme, "read_skills", renderCtx)} ${theme.fg("dim", label)}`,
709
709
  );
710
710
  return component;
711
711
  },
@@ -726,13 +726,7 @@ function registerSkillLoader(pi: ExtensionAPI): void {
726
726
  )
727
727
  ) {
728
728
  component.setText(
729
- formatCollapsedToolRow(
730
- theme,
731
- "read_skills",
732
- text?.split("\n")[0] ?? "failed",
733
- "",
734
- "error",
735
- ),
729
+ renderRow(theme, "read_skills", text?.split("\n")[0] ?? "failed", "", "error"),
736
730
  );
737
731
  return component;
738
732
  }
@@ -742,7 +736,7 @@ function registerSkillLoader(pi: ExtensionAPI): void {
742
736
  // Collapsed row mirrors the call label: `<action> <target> · <meta>` so
743
737
  // the summary reads the same way the call did (no action/target reorder).
744
738
  const { target, meta } = collapsedSkillRow(details);
745
- component.setText(formatCollapsedToolRow(theme, "read_skills", target, meta));
739
+ component.setText(renderRow(theme, "read_skills", target, meta));
746
740
  return component;
747
741
  }
748
742
  if (details.mode === "search" && details.results) {