@xynogen/pix-skills 0.8.5 → 0.8.8

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.8.5",
3
+ "version": "0.8.8",
4
4
  "description": "Pi extension — 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.2.6",
51
- "@xynogen/pix-pretty": "^1.19.0",
51
+ "@xynogen/pix-pretty": "^1.25.0",
52
52
  "@xynogen/pix-runtime": "^0.8.0"
53
53
  }
54
54
  }
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: format
3
+ description: Select and run the project's formatter through bash. Use when asked to format code, check formatting, or apply style fixes.
4
+ ---
5
+ # Project Format
6
+
7
+ Pix does not bundle formatters. Use the project toolchain.
8
+
9
+ ## Selection order
10
+
11
+ 1. Prefer the project's `format` or `fmt` script.
12
+ 2. Use the tool named by a project config file.
13
+ 3. Use the language default below only when the project has no choice.
14
+
15
+ Run the check form first. Run the write form only when the user asks to format
16
+ or already approved edits. Do not install a missing formatter without consent.
17
+
18
+ ## Defaults
19
+
20
+ | Language | Check | Write |
21
+ |---|---|---|
22
+ | JavaScript / TypeScript | `biome format <paths>` or `prettier -c <paths>` | `biome format --write <paths>` or `prettier -w <paths>` |
23
+ | Python | `ruff format --check <paths>` or `black --check <paths>` | `ruff format <paths>` or `black <paths>` |
24
+ | Go | `test -z "$(gofmt -l <paths>)"` | `gofmt -w <paths>` |
25
+ | Rust | `cargo fmt --check` | `cargo fmt` |
26
+ | Ruby | `rubocop --format-only <paths>` | `rubocop -A <paths>` |
27
+ | Java | `google-java-format --dry-run <paths>` | `google-java-format -i <paths>` |
28
+ | Kotlin | `ktlint --format` | `ktlint -F` |
29
+ | C / C++ | `clang-format --dry-run --Werror <paths>` | `clang-format -i <paths>` |
30
+ | C# | `dotnet format --verify-no-changes` | `dotnet format` |
31
+ | Swift | `swift-format lint <paths>` | `swift-format -i <paths>` |
32
+ | PHP | `php-cs-fixer fix --dry-run` | `php-cs-fixer fix` |
33
+ | Elixir | `mix format --check-formatted` | `mix format` |
34
+ | Shell | `shfmt -d <paths>` | `shfmt -w <paths>` |
35
+ | SQL | `sqlfluff format --check <paths>` | `sqlfluff fix <paths>` |
36
+ | CSS / HTML / Markdown | `prettier -c <paths>` | `prettier -w <paths>` |
37
+ | TOML | `taplo fmt --check <paths>` | `taplo fmt <paths>` |
38
+ | Terraform | `terraform fmt -check` | `terraform fmt` |
39
+
40
+ Use the local package manager: `bun run`/`bunx`, `npm run`/`npx`, `pnpm exec`,
41
+ `yarn`, `uv run`, or `poetry run`. A project script wins over this table.
package/skills/lint.md ADDED
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: lint
3
+ description: Select and run the project's linter through bash. Use when asked to lint, fix lint findings, or check code quality.
4
+ ---
5
+ # Project Lint
6
+
7
+ Pix does not bundle linters. Use the project toolchain.
8
+
9
+ ## Selection order
10
+
11
+ 1. Run `lens_diagnostics` for language-server diagnostics.
12
+ 2. Prefer the project's `lint` or `check` script.
13
+ 3. Use the tool named by a project config file.
14
+ 4. Use the language default below only when the project has no choice.
15
+
16
+ Do not install a missing linter without user consent. Prefer project-local
17
+ installation. Run changed files instead of the full tree when the tool permits.
18
+
19
+ ## Defaults
20
+
21
+ | Language | Lint command |
22
+ |---|---|
23
+ | JavaScript / TypeScript | `biome check <paths>` or `eslint <paths>` |
24
+ | Python | `ruff check <paths>` |
25
+ | Go | `go vet ./...` then `golangci-lint run` |
26
+ | Rust | `cargo clippy` |
27
+ | Ruby | `rubocop <paths>` |
28
+ | Java | `mvn checkstyle:check` or `gradle check` |
29
+ | Kotlin | `ktlint` or `detekt` |
30
+ | C / C++ | `clang-tidy` or `cppcheck <paths>` |
31
+ | C# | `dotnet format --verify-no-changes` |
32
+ | Swift | `swiftlint` |
33
+ | PHP | `phpstan analyse` |
34
+ | Elixir | `mix credo` |
35
+ | Shell | `shellcheck <paths>` |
36
+ | SQL | `sqlfluff lint <paths>` |
37
+ | YAML | `yamllint <paths>` |
38
+ | CSS | `stylelint <paths>` |
39
+ | HTML | `htmlhint <paths>` |
40
+ | Markdown | `markdownlint <paths>` |
41
+ | TOML | `taplo lint <paths>` |
42
+ | Docker | `hadolint <Dockerfile>` |
43
+ | GitHub Actions | `actionlint` |
44
+ | Terraform | `tflint` |
45
+
46
+ Use the local package manager: `bun run`/`bunx`, `npm run`/`npx`, `pnpm exec`,
47
+ `yarn`, `uv run`, or `poetry run`. A project script wins over this table.
package/skills/lsp.md ADDED
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: lsp
3
+ description: Select and configure a project language server for pix-diagnostics. Use when LSP is missing, unavailable, or needs setup for a language.
4
+ ---
5
+ # Project LSP Setup
6
+
7
+ `pix-diagnostics` is only an LSP client. The project owns the server choice and
8
+ installation. Configure it in `<project>/.pi/lsp.json`.
9
+
10
+ ## Steps
11
+
12
+ 1. Detect the language from project files and manifests.
13
+ 2. Prefer an existing server in project dependencies or on `PATH`.
14
+ 3. Ask before installing a missing server. Use a project-local install.
15
+ 4. Add only the selected language to `.pi/lsp.json`.
16
+ 5. Run `lens_diagnostics` on one source file. Its manager reads `.pi/lsp.json` directly.
17
+
18
+ Do not add all languages. Do not install a server globally. Do not use a server
19
+ because it appears first in this table; project configuration and existing tools
20
+ win.
21
+
22
+ ## Common choices
23
+
24
+ | Language | Server command | Arguments |
25
+ |---|---|---|
26
+ | TypeScript / JavaScript | `typescript-language-server` | `--stdio` |
27
+ | Python | `pyright-langserver` | `--stdio` |
28
+ | Python (basedpyright project) | `basedpyright-langserver` | `--stdio` |
29
+ | Go | `gopls` | — |
30
+ | Rust | `rust-analyzer` | — |
31
+ | C / C++ | `clangd` | — |
32
+ | Ruby | `ruby-lsp` | — |
33
+ | PHP | `intelephense` | `--stdio` |
34
+ | Lua | `lua-language-server` | — |
35
+ | Kotlin | `kotlin-lsp` | — |
36
+ | Terraform | `terraform-ls` | `serve` |
37
+ | YAML | `yaml-language-server` | `--stdio` |
38
+ | JSON | `vscode-json-language-server` | `--stdio` |
39
+ | HTML | `vscode-html-language-server` | `--stdio` |
40
+ | CSS | `vscode-css-language-server` | `--stdio` |
41
+ | TOML | `taplo` | `lsp stdio` |
42
+
43
+ Check official server documentation when a command is not in this table.
44
+
45
+ ## Config shape
46
+
47
+ ```json
48
+ {
49
+ "servers": {
50
+ "python": {
51
+ "command": "pyright-langserver",
52
+ "args": ["--stdio"],
53
+ "extensions": [".py", ".pyi"],
54
+ "languageId": "python",
55
+ "rootMarkers": ["pyproject.toml", ".git"]
56
+ }
57
+ }
58
+ }
59
+ ```
60
+
61
+ Each key is a server ID. Required fields are `command`, `extensions`, and
62
+ `languageId`. Optional fields are `args`, `filenames`, and `rootMarkers`.
63
+
64
+ Use one command. Wrapper commands such as `uv` or `bunx` can be the command,
65
+ with the server command in `args`:
66
+
67
+ ```json
68
+ {
69
+ "servers": {
70
+ "python": {
71
+ "command": "uv",
72
+ "args": ["run", "pyright-langserver", "--stdio"],
73
+ "extensions": [".py", ".pyi"],
74
+ "languageId": "python",
75
+ "rootMarkers": ["pyproject.toml", ".git"]
76
+ }
77
+ }
78
+ }
79
+ ```