@xynogen/pix-skills 0.10.1 → 0.10.2

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.
Files changed (44) hide show
  1. package/README.md +28 -22
  2. package/package.json +1 -1
  3. package/skills/ask-user.md +34 -43
  4. package/skills/audit.md +27 -30
  5. package/skills/bootstrap.md +19 -43
  6. package/skills/brainstorm.md +10 -51
  7. package/skills/cicd.md +17 -30
  8. package/skills/clone.md +19 -18
  9. package/skills/command-runner.md +7 -15
  10. package/skills/commit.md +22 -68
  11. package/skills/composio-mcp.md +24 -34
  12. package/skills/debug.md +18 -53
  13. package/skills/diff.md +8 -19
  14. package/skills/environment.md +21 -43
  15. package/skills/explain.md +27 -28
  16. package/skills/finish.md +24 -57
  17. package/skills/format.md +1 -1
  18. package/skills/handoff.md +24 -99
  19. package/skills/harden.md +18 -22
  20. package/skills/human/SKILL.md +177 -0
  21. package/skills/{human.md → human/references/patterns.md} +58 -252
  22. package/skills/human/references/profiles.md +86 -0
  23. package/skills/lint.md +1 -1
  24. package/skills/lsp.md +7 -11
  25. package/skills/readme.md +19 -25
  26. package/skills/review.md +30 -40
  27. package/skills/runner/SKILL.md +130 -0
  28. package/skills/runner/references/justfile.md +47 -0
  29. package/skills/runner/references/makefile.md +33 -0
  30. package/skills/runner/references/mise.md +88 -0
  31. package/skills/runner/references/npm-scripts.md +27 -0
  32. package/skills/runner/references/run-sh.md +46 -0
  33. package/skills/runner/references/taskfile.md +50 -0
  34. package/skills/search.md +22 -32
  35. package/skills/subagent.md +37 -353
  36. package/skills/suggest.md +10 -38
  37. package/skills/task.md +17 -37
  38. package/skills/tdd.md +1 -1
  39. package/skills/test.md +13 -46
  40. package/skills/tldr.md +12 -22
  41. package/skills/toon-json.md +11 -35
  42. package/skills/ui.md +8 -19
  43. package/skills/verify.md +14 -44
  44. package/skills/runner.md +0 -419
package/skills/commit.md CHANGED
@@ -3,80 +3,34 @@ name: commit
3
3
  description: Split, write, and maintain Conventional-Commit-style commits. Use only on explicit request — "commit this", "make a commit", "split these changes", "amend/squash the history".
4
4
  disable-model-invocation: true
5
5
  ---
6
- # Conventional Commit Management Directive
6
+ # Commit
7
7
 
8
- ## The Iron Law
8
+ Invocation is permission: commit without asking again. Never commit secrets, binaries, debug logs, unrelated edits, or trailer metadata.
9
9
 
10
- ```
11
- INVOCATION IS PERMISSION. User invoked this skill → commit without asking again.
12
- Still forbidden: secrets, binaries, unrelated changes, trailer metadata.
13
- ```
14
-
15
- ## Below are what agent MUST do
16
-
17
- ### Phase 1: Inspect
18
-
19
- The blocks below are pre-populated with live repository state at skill-load
20
- time via `\!`cmd`` directives — read them before composing the commit.
21
-
22
- #### Branch + short status
10
+ ## State (live at load time)
23
11
 
24
12
  !`git status -sb`
25
13
 
26
- #### Staged changes (index vs HEAD)
27
-
28
14
  !`git diff --cached`
29
15
 
30
- #### Unstaged changes (working tree vs index)
31
-
32
16
  !`git diff`
33
17
 
34
- - **AUTO-RUN**: The status + diff above are already loaded — review them, then proceed straight to commit. Re-run `git status` / `git diff` only after staging or `.gitignore` edits. Do NOT pause for "may I commit?" confirmation — user already asked.
35
- - **GITIGNORE**: Before staging, inspect untracked/generated files. Add obvious ignore candidates to `.gitignore` (build dirs, caches, logs, temp files, editor/OS junk, local env files). Re-run `git status`. Uncertain whether file should be ignored vs committed → ask user before changing `.gitignore` or staging it.
36
- - **GROUP**: Cluster changes by path/module and by functionality. Each cluster → one self-contained commit.
37
- - **GUARD**: Scan diff for secrets, binaries, debug logs, unrelated edits. Halt and report if found.
38
-
39
- ### Phase 2: Compose
40
-
41
- Format: `<type>(<scope>): <subject>`
42
-
43
- - **type**: `feat` · `fix` · `chore` · `refactor` (also `docs`, `test`, `perf` when apt).
44
- - **scope**: module/area touched. Clear, lowercase.
45
- - **subject**: imperative, concise, no trailing period.
46
-
47
- ```
48
- feat(auth): add token refresh on 401
49
- fix(parser): handle empty CUDA frame without panic
50
- refactor(api): extract response builder from handler
51
- ```
52
-
53
- ### Phase 3: Split & Stage
54
-
55
- - Stage per cluster: `git add <paths>` (or `-p` for partial hunks).
56
- - One commit per logical change. Never mix `feat` + unrelated `fix` in one commit.
57
- - For new hook setup, use Git's standard `.git/hooks` directory, resolved with `git rev-parse --git-path hooks` for worktree compatibility. Do not create a tracked hook folder such as `.githooks` or configure `core.hooksPath`. Preserve existing hooks; never overwrite them. If the repository already uses a custom hook setup, keep it enabled and follow repository instructions; migration requires an explicit request.
58
- - Commit with the repository's Git hooks enabled. Let hooks run their configured lint, format, typecheck, and tests; do not run the same checks separately just to commit. If hooks do not cover required checks, follow repository instructions.
59
- - If a hook fails, stop, report the failure, fix in-scope issues, review and re-stage before retrying. Never use `--no-verify` or disable hooks to force a commit.
60
-
61
- ### Phase 4: Maintain (when asked)
62
-
63
- - Squash/amend/reorder to keep history clean. Remove WIP commits.
64
- - Never rewrite pushed history without explicit confirmation (irreversible for collaborators).
65
-
66
- ### Phase 5: Offer push
67
-
68
- - After successful commit, ask whether to push now so interaction stays short.
69
- - Do **not** push automatically. `git push` is irreversible/shared-state; require explicit confirmation for that exact push.
70
- - If user says yes, push current branch and report result.
71
-
72
- ## Authorship Rule
73
-
74
- - Commits authored solely by user's git config identity.
75
- - Do NOT add `Co-Authored-By`, `Signed-off-by`, or any trailer metadata.
76
-
77
- ## Red Flags — STOP
78
-
79
- - Asking "should I commit?" after skill invoked — invocation already answered that.
80
- - Secrets, binaries, or `console.log`/`print` debug lines in diff.
81
- - One commit bundling unrelated changes.
82
- - Rewriting pushed history without confirmation.
18
+ ## Steps
19
+
20
+ 1. **Inspect** — Read the state above. Re-run git only after staging or `.gitignore` edits.
21
+ - Untracked/generated files: add clear ignore candidates (build dirs, caches, logs, temp, editor/OS junk, local env) to `.gitignore`. If unsure whether to ignore or commit, ask first.
22
+ - Secret in an untracked or ignored file (e.g. `.env`) → never stage it, ignore it, commit the rest, and name the file and key name (never the value) in your final message so the user can rotate it if it was ever exposed.
23
+ - Secret, binary, debug print, or unrelated edit in a tracked or staged diff → stop, commit nothing, and report it with `file:line`.
24
+ 2. **Group** — One commit per logical change, clustered by module and function. Never mix `feat` with an unrelated `fix`. Stage with `git add <paths>` (`-p` for partial hunks).
25
+ 3. **Compose** — `<type>(<scope>): <subject>`
26
+ - type: `feat` new capability · `fix` bug fix · `refactor` no behavior change · `perf` speed/memory · `docs` documentation · `test` tests only · `build` build system/deps · `ci` CI/CD config · `style` formatting only · `chore` tooling/misc · `revert` undo a commit.
27
+ - Breaking change: add `!` after the scope, e.g. `feat(api)!: drop v1 routes`.
28
+ - scope: lowercase module/area. Subject: imperative, no trailing period.
29
+ - Example: `fix(parser): handle empty frame without panic`
30
+ 4. **Commit with hooks on** — Let hooks run lint, format, typecheck, and tests. Do not repeat them by hand. If hooks miss required checks, follow repo instructions.
31
+ - Hook fails → stop, report, fix in-scope issues, re-stage, retry. Never use `--no-verify` or disable hooks.
32
+ - New hook setup: use `git rev-parse --git-path hooks`. No tracked hook folder, no `core.hooksPath`. Never overwrite existing hooks. Keep a repo's custom setup; migrate only on request.
33
+ 5. **Maintain** (only when asked) — Squash, amend, or reorder; drop WIP commits. Never rewrite pushed history without explicit confirmation.
34
+ 6. **Push** — After success, ask whether to push. Never push unprompted. Push the current branch only on a "yes", then report the result.
35
+
36
+ Author is the user's git identity only. No `Co-Authored-By` or `Signed-off-by`.
@@ -1,56 +1,47 @@
1
1
  ---
2
2
  name: composio-mcp
3
- description: Use when calling Composio MCP tools (any app it proxies). Prefer a direct MCP server if one exists; introspect object shape before mutating; ask the user with options instead of guessing IDs, names, or field paths.
3
+ description: Safe workflow for Composio MCP tools — prefer a direct MCP server, get slugs and schemas from search, read live records before writing, and ask instead of guessing IDs or field names. Use when calling any app through Composio (COMPOSIO_* tools), especially for writes.
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
7
7
  # Composio MCP: introspect before you mutate
8
8
 
9
- Field names, type names, and enum options differ per workspace and are not
10
- guessable. Read the shape before you write — a guessed name burns a round-trip
11
- or silently writes bad data.
9
+ Field names, types, and enum options differ per workspace. Read the shape before you write.
12
10
 
13
11
  ## Rules
14
12
 
15
- 0. **Prefer a direct server over the proxy.** Before reaching for Composio, list
16
- configured servers with `mcp()` (no args) and check whether the target app
17
- has its own dedicated MCP server. If it does, use it — `mcp(server:"<app>")`
18
- to discover, then call the native tool directly. One native call typically
19
- replaces the whole Composio
20
- `SEARCH_TOOLS → GET_TOOL_SCHEMAS → REMOTE_WORKBENCH → EXECUTE` chain. Composio
21
- is the fallback only for apps with no direct server.
13
+ 0. **Prefer a direct server.** List configured MCP servers (the `mcp` tool with no
14
+ arguments, or `tool_search`). If the app has its own server, use its native
15
+ tool. One native call replaces the whole Composio chain. Composio is the
16
+ fallback for apps with no direct server.
22
17
  1. **Never invent a slug or arg.** Get them from `COMPOSIO_SEARCH_TOOLS` (returns
23
18
  `input_schema` inline for most tools). Only call `COMPOSIO_GET_TOOL_SCHEMAS`
24
19
  when a result carries `schemaRef` instead of `input_schema`.
25
- 2. **Let Composio resolve IDs for you.** Put stable hints in `known_fields`
26
- (`"<key>:<value>"`, e.g. a name or slug) so search resolves missing IDs —
27
- before you go introspect them by hand.
28
- 3. **Read model ≠ write model.** The name a field reads back as is often not the
29
- name you write to; labels are not identifiers. Single-selects and custom
30
- fields are frequently backed by a separate internal identifier or
31
- auto-generated type (opaque suffixes, generated key strings, backing-type
32
- names). Get the write name from the schema, not the query result.
33
- 4. **Resolve option/relation values by reading a live record**, not by assuming
34
- its label or id.
20
+ 2. **Resolve IDs in order:** first put stable hints in `known_fields`
21
+ (`"<key>:<value>"`) so search resolves them; if that fails, read one live
22
+ record. Never assume an ID or option value from its label.
23
+ 3. **Read name ≠ write name.** Labels are not identifiers; custom fields and
24
+ selects often have a separate internal name. Take the write name from the
25
+ schema, not from a query result.
35
26
  5. **Ask, don't guess, on human choices.** If the target entity/project/state
36
27
  doesn't uniquely resolve, or the user's word maps to 2+ candidates, use
37
28
  `ask_user` with the candidates as options. One ask beats three wrong writes.
38
- 6. **Flag shared-scope side effects first.** Renaming an enum option, deleting a
39
- type, retargeting a relation hits *every* record using it. Say so; if
40
- irreversible, confirm before doing it.
41
- 7. **If a response says a tool/toolkit is restricted, STOP** and tell the user.
42
- No workarounds.
29
+ 6. **Confirm wide writes.** Before a delete, a batch write, or a change that hits
30
+ every record (renaming an option, deleting a type), show the target count
31
+ and confirm.
32
+ 7. **Restricted tool or toolkit → stop** and tell the user. No workarounds.
33
+ 8. **Connections need consent.** Ask before you start a new connection or OAuth flow.
34
+ 9. **Report** at the end: what you wrote, the record IDs, and anything unverified.
43
35
 
44
36
  ## Loop (mutations against an unfamiliar schema)
45
37
 
46
38
  ```text
47
- 0. direct? mcp() -> is there a dedicated server for this app? if yes:
48
- mcp(server:"<app>") -> use the native tool, done
39
+ 0. direct? dedicated MCP server for this app? -> use its native tool, done
49
40
  1. search COMPOSIO_SEARCH_TOOLS(queries:[{use_case, known_fields}], session:{generate_id:true})
50
41
  2. schema only if the result shows schemaRef (not input_schema)
51
42
  3. resolve read live records -> concrete ids/write-names
52
43
  4. (ambiguous?) ask_user with options
53
- 5. mutate CREATE / UPDATE with confirmed names + ids
44
+ 5. mutate CREATE / UPDATE with confirmed names + ids (confirm wide writes)
54
45
  6. verify only if the response didn't echo the field, or it's a no-op-prone
55
46
  kind (rich text, attachment, computed)
56
47
  ```
@@ -63,8 +54,7 @@ the loop and go direct.
63
54
  - **Session is asymmetric.** `SEARCH_TOOLS` takes nested `session:{generate_id:true}`
64
55
  (new) or `session:{id:"…"}` (continue) and returns the id. Every *other* meta
65
56
  tool takes flat `session_id:"…"`. Pass it on all of them.
66
- - **`COMPOSIO_MULTI_EXECUTE_TOOL` shape** — verify against `mcp(describe:…)` if
67
- unsure:
57
+ - **`COMPOSIO_MULTI_EXECUTE_TOOL` shape** — check the tool schema if unsure:
68
58
  - `tools: [{tool_slug, arguments, account?}]` — ≤50, logically independent only
69
59
  - `thought`, `session_id`, `current_step` — **top-level**, not per-item
70
60
  - `sync_response_to_workbench` — **required** bool
@@ -88,6 +78,6 @@ the loop and go direct.
88
78
  - **The internal name in an error is the source of truth, not the label.** On
89
79
  `type-not-found` / `field-not-found`, fetch the schema for the real name before
90
80
  retrying — don't re-guess.
91
- - **Connection is per-toolkit.** `SEARCH_TOOLS` reports it. If inactive, initiate
92
- via `COMPOSIO_MANAGE_CONNECTIONS` (+ `COMPOSIO_WAIT_FOR_CONNECTIONS`); don't
93
- fire calls that will 401.
81
+ - **Connection is per-toolkit.** `SEARCH_TOOLS` reports it. If inactive, ask the
82
+ user, then start it with `COMPOSIO_MANAGE_CONNECTIONS` and show them the link.
83
+ Don't fire calls that will 401.
package/skills/debug.md CHANGED
@@ -1,65 +1,30 @@
1
1
  ---
2
2
  name: debug
3
- description: Root-Cause Analysis and self-annealing procedure for error resolution
3
+ description: Root-cause debugging — reproduce, find the broken invariant, test one hypothesis at a time, then fix at the source with a regression test. Use when something errors, crashes, hangs, returns wrong output, or a test fails for an unknown reason, and before proposing any fix.
4
4
  disable-model-invocation: true
5
5
  ---
6
- # Debug & Anneal Directive
6
+ # Debug
7
7
 
8
- ## The Iron Law
8
+ **No fix without a root cause.** Until step 3 confirms a cause, propose no fix.
9
9
 
10
- ```
11
- NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
12
- ```
10
+ ## Steps
13
11
 
14
- Phase 1 not complete → you CANNOT propose fixes.
12
+ 1. **Collect** — Read the full error and stack trace: messages, `file:line`, codes. Reproduce the failure reliably. If you cannot, gather more data. Do not guess. Check recent changes: `git diff`, recent commits, new dependencies, config.
13
+ 2. **Locate** — List what must be true for the code to work. Find the invariant that breaks. Trace the data backward from that point to the first wrong value. In a multi-part system, log at each boundary once, then read the output. Compare with similar code that works and list every difference.
14
+ 3. **Hypothesize** — Write it down: "X is the cause because Y." Test it with the smallest change, one variable at a time. Wrong → form a new hypothesis. Never stack fixes.
15
+ 4. **Fix** — Write a failing test that reproduces the bug. Make one targeted fix at the source, not the symptom. No unrelated changes. Run the full suite (see `test`).
16
+ 5. **Record** — If a missing rule caused the bug, propose the rule for the repo instructions.
15
17
 
16
- ## First Principles Debugging
18
+ Reason from the mechanism ("this error means Y in state Z"), not from analogy ("last time this meant X").
17
19
 
18
- Before diving into symptoms, strip problem to fundamentals:
20
+ ## Escalate
19
21
 
20
- 1. **What MUST be true** for system to work correctly? List the invariants.
21
- 2. **Which invariant violated?** Bug lives where reality diverges from required truth.
22
- 3. **Why violated?** Trace from violated invariant backward — ignore surface symptoms.
23
- 4. Do NOT reason by analogy ("last time this error meant X"). Reason from mechanism ("this error means Y in state Z, which requires W to have failed").
22
+ Three failed fixes → stop. The design is likely wrong, not the hypothesis. Show the evidence to the user before you try again.
24
23
 
25
- ## Below are what agent MUST do
24
+ ## Back to step 1 if you think
26
25
 
27
- ### Phase 1: Root Cause Investigation
28
-
29
- - **READ**: Read error messages and stack traces completely. Note line numbers, file paths, error codes.
30
- - **REPRODUCE**: Reproduce error consistently. Not reproducible → gather more data, do NOT guess.
31
- - **CHANGES**: Check recent changes (git diff, recent commits, new deps, config changes).
32
- - **EVIDENCE**: Multi-component systems → add diagnostic logging at each boundary BEFORE proposing fixes. Run once to gather evidence, THEN analyze.
33
- - **TRACE**: Trace data flow backward through call stack to find original trigger. Fix at source, not symptom.
34
-
35
- ### Phase 2: Pattern Analysis
36
-
37
- - **EXAMPLES**: Find working examples of similar code in codebase.
38
- - **COMPARE**: Compare working vs broken. List every difference, however small.
39
- - **DEPENDENCIES**: Understand what config, environment, or assumptions code relies on.
40
-
41
- ### Phase 3: Hypothesis and Testing
42
-
43
- - **HYPOTHESIZE**: State clearly: "I think X is root cause because Y." Write it down.
44
- - **TEST MINIMALLY**: Make SMALLEST possible change to test hypothesis. One variable at a time.
45
- - **VERIFY**: Worked? Yes → Phase 4. No → form NEW hypothesis. Do NOT stack fixes.
46
-
47
- ### Phase 4: Implementation
48
-
49
- - **TEST FIRST**: Create failing test reproducing bug BEFORE writing fix.
50
- - **FIX**: Implement single, targeted fix addressing root cause. No "while I'm here" changes.
51
- - **VERIFY**: Confirm test passes and no regressions via `/test`.
52
- - **ANNEAL**: Error due to missing rules → update appropriate Directive.
53
-
54
- ## Escalation Rule
55
-
56
- - 3+ fixes failed → **STOP**. Question the architecture. Discuss with user before more fixes. This is wrong architecture, not wrong hypothesis.
57
-
58
- ## Red Flags — STOP and Return to Phase 1
59
-
60
- - "Quick fix for now, investigate later"
61
- - "Just try changing X and see if it works"
62
- - "It's probably X, let me fix that"
63
- - "I don't fully understand but this might work"
64
- - "One more fix attempt" (when already tried 2+)
65
- - Each fix reveals new problem in different place
26
+ - "Quick fix now, investigate later."
27
+ - "Just try X and see."
28
+ - "It's probably X."
29
+ - "I don't fully understand, but this might work."
30
+ - Each fix shows a new problem somewhere else.
package/skills/diff.md CHANGED
@@ -1,36 +1,25 @@
1
1
  ---
2
2
  name: diff
3
- description: Review the current git changes using pre-populated status, staged, and unstaged diffs.
3
+ description: Reviews the current uncommitted git changes from live status, staged, and unstaged diffs — summarizes intent and flags bugs, security issues, and out-of-scope edits. Use when asked to "review my changes", "check the diff", or "what did I change" before a commit.
4
4
  disable-model-invocation: true
5
5
  ---
6
+ # Diff Review
6
7
 
7
- # Diff Review Skill
8
-
9
- ## Pre-Populated Git Context
10
-
11
- The blocks below are filled with live repository state at skill-load time via
12
- `\!`cmd`` directives — read them before responding.
13
-
14
- ### Branch + short status
8
+ ## State (live at load time)
15
9
 
16
10
  !`git status -sb`
17
11
 
18
- ### Staged changes (index vs HEAD)
19
-
20
12
  !`git diff --cached --stat`
21
13
 
22
14
  !`git diff --cached`
23
15
 
24
- ### Unstaged changes (working tree vs index)
25
-
26
16
  !`git diff --stat`
27
17
 
28
18
  !`git diff`
29
19
 
30
- ## Instructions
20
+ ## Steps
31
21
 
32
- 1. Summarize what changed: files touched, and the intent of each change.
33
- 2. Flag bugs, logic errors, security issues, and missing error handling.
34
- 3. Call out anything out of scope for the apparent goal of the change.
35
- 4. If nothing is staged and the working tree is clean, say so — there is
36
- nothing to review.
22
+ 1. Nothing staged and the tree is clean → say "nothing to review" and stop.
23
+ 2. Summarize: each file touched and the intent of its change.
24
+ 3. Flag bugs, logic errors, security issues, and missing error handling. Give `file:line` for each.
25
+ 4. Flag changes that do not fit the apparent goal.
@@ -1,28 +1,25 @@
1
1
  ---
2
2
  name: environment
3
- description: "Establish clean awareness of the user's working environment — OS, distro, kernel, arch, user, and CPU — before running or suggesting commands. Use whenever a request depends on the platform such as installing packages, system services, file paths, downloading arch-specific binaries, or any command whose syntax differs across systems. Load this first so actions match the actual machine instead of a guessed default."
3
+ description: Loads live facts about the user's machine — OS, distro, kernel, architecture, user, CPU count, and working directory — before running or suggesting platform-specific commands. Use whenever a request depends on the platform, such as installing packages, managing services, choosing file paths, downloading arch-specific binaries, or any command whose syntax differs between systems.
4
4
  disable-model-invocation: true
5
5
  ---
6
+ # Environment
6
7
 
7
- # Environment Skill
8
-
9
- The blocks below are populated with **live** system facts at skill-load time via
10
- `\!`cmd`` directives. Read them first — they are the ground truth about the
11
- machine you are operating on. Do not assume a default platform.
8
+ The blocks below hold live facts captured when this skill loaded. They are the ground truth. Never assume a default platform.
12
9
 
13
10
  ## OS release
14
11
 
15
12
  !`cat /etc/os-release`
16
13
 
17
- ## Kernel, arch, hostname
14
+ ## Kernel, hostname, architecture
18
15
 
19
- !`uname -srn`
16
+ !`uname -srnm`
20
17
 
21
18
  ## CPU count
22
19
 
23
20
  !`nproc`
24
21
 
25
- ## Current user
22
+ ## User
26
23
 
27
24
  !`id -un`
28
25
 
@@ -30,41 +27,22 @@ machine you are operating on. Do not assume a default platform.
30
27
 
31
28
  !`pwd`
32
29
 
33
- ---
34
-
35
- ## How to use this context
36
-
37
- **Know the environment, then act inside it.** The facts above tell you the
38
- distro family (`ID` / `ID_LIKE`), kernel, CPU architecture, user, and where you
39
- are. Let them shape every platform-sensitive decision — paths, privilege,
40
- binary selection, parallelism, and command syntax.
41
-
42
- **Reconcile the user's intent with the real machine.** If a request assumes a
43
- different platform, surface the mismatch and offer the equivalent rather than
44
- silently running the wrong thing.
45
-
46
- *Example — package managers.* `ID`/`ID_LIKE` maps to a specific manager; never
47
- assume `apt`:
48
-
49
- | `ID` / `ID_LIKE` | Manager | Refresh index | Install |
50
- |-------------------------------------|----------|--------------------|----------------------|
51
- | `debian`, `ubuntu` | `apt` | `apt update` | `apt install <pkg>` |
52
- | `fedora`, `rhel`, `centos`, `rocky` | `dnf` | `dnf check-update` | `dnf install <pkg>` |
53
- | `arch`, `manjaro` | `pacman` | `pacman -Sy` | `pacman -S <pkg>` |
54
- | `opensuse`, `suse` | `zypper` | `zypper refresh` | `zypper install` |
55
- | `alpine` | `apk` | `apk update` | `apk add <pkg>` |
56
- | macOS (kernel `Darwin`) | `brew` | `brew update` | `brew install <pkg>` |
30
+ ## Use the facts
57
31
 
58
- So if the user says `apt update` on a `fedora` box, say so and run
59
- `sudo dnf check-update` instead — once confirmed.
32
+ If the user's request assumes a different platform, name the mismatch and offer the equivalent command. Run it only after the user confirms.
60
33
 
61
- The same principle applies beyond packages:
34
+ | `ID` / `ID_LIKE` | Manager | Refresh | Install |
35
+ |---|---|---|---|
36
+ | `debian`, `ubuntu` | `apt` | `apt update` | `apt install <pkg>` |
37
+ | `fedora`, `rhel`, `centos`, `rocky` | `dnf` | `dnf check-update` | `dnf install <pkg>` |
38
+ | `arch`, `manjaro` | `pacman` | (none; never `-Sy` alone) | `pacman -Syu <pkg>` |
39
+ | `opensuse`, `suse` | `zypper` | `zypper refresh` | `zypper install <pkg>` |
40
+ | `alpine` | `apk` | `apk update` | `apk add <pkg>` |
41
+ | macOS (`Darwin`) | `brew` | `brew update` | `brew install <pkg>` |
62
42
 
63
- - **Arch** — pick `x86_64` vs `aarch64` release artifacts to match `uname`.
64
- - **Privilege** — system changes need root; prefer the `sudo_run` tool over
65
- inlining `sudo` in a bash command.
66
- - **Parallelism** — size builds/jobs to the CPU count above (`make -j`, etc.).
67
- - **Paths** — respect the actual user and home, not a hardcoded `/home/user`.
43
+ - **Architecture** — match `x86_64` or `aarch64` (`arm64`) release artifacts to the `uname` output.
44
+ - **Privilege** — system changes need root. Use a dedicated root tool if one exists (search for it); do not inline `sudo` in a shell command.
45
+ - **Parallelism** — size build jobs to the CPU count (`make -j<N>`).
46
+ - **Paths** — use the real user and home, never a hardcoded `/home/user`.
68
47
 
69
- If a fact is missing, blank, or shows `[blocked: …]`, ask the user instead of
70
- guessing the platform.
48
+ A fact that is blank, missing, or shows `[blocked: …]` (the loader blocked that command) → ask the user. Do not guess.
package/skills/explain.md CHANGED
@@ -3,30 +3,20 @@ name: explain
3
3
  description: Technical deconstruction and logic tracing. Use when user asks "how does X work", "explain this", "walk me through", "what does this do", or needs to understand existing code/architecture before changing it.
4
4
  disable-model-invocation: true
5
5
  ---
6
- # Explain Directive
6
+ # Explain
7
7
 
8
- ## Goal
8
+ Goal: the reader understands the code from your answer alone. They do not need to trace the codebase again.
9
9
 
10
- Make code understandable from local reading. After explaining, reader grasps intent without re-tracing codebase themselves.
10
+ ## Steps
11
11
 
12
- ## Below are what agent MUST do
13
-
14
- ### Phase 1: Locate & Scope
15
-
16
- - **AUTO-RUN**: Run searches and reads needed without confirmation unless input required.
17
- - **CONTEXT**: Identify exact target — file, function, class, or concept. Quote the `file:line` under discussion.
18
- - **READ**: Read full target plus immediate callers and callees. Don't explain from name alone.
19
-
20
- ### Phase 2: Deconstruct
21
-
22
- - **STRUCTURE**: Break logic into named components (inputs → transform → outputs → side effects).
23
- - **TRACE**: Map data flow and call chain. State where data enters, what mutates it, where it exits.
24
- - **RATIONALE**: Explain the *why* behind non-obvious choices. Why unknowable → say so, don't invent intent.
25
- - **CONTRACTS**: Note types, invariants, assumptions code relies on.
26
-
27
- ### Phase 3: Report
28
-
29
- Use this structure:
12
+ 1. **Locate** — Run the needed searches and reads without asking. Find the exact target (file, function, class, or concept). Quote its `file:line`.
13
+ 2. **Read** — Read the full target and its direct callers and callees. Never explain from a name alone.
14
+ 3. **Deconstruct**
15
+ - Name the parts: inputs → transform → outputs → side effects.
16
+ - Trace the data: where it enters, what changes it, where it leaves.
17
+ - Give the reason for each non-obvious choice. If the reason is unknown, say so. Do not invent one.
18
+ - List the types, invariants, and assumptions the code needs.
19
+ 4. **Report** in this form:
30
20
 
31
21
  ```
32
22
  ## What it does
@@ -34,20 +24,29 @@ Use this structure:
34
24
 
35
25
  ## How it works
36
26
  1. [Step] — `file:line`
37
- 2. [Step] — `file:line`
38
27
 
39
28
  ## Data flow
40
29
  [input] → [transform] → [output/side-effect]
41
30
 
42
31
  ## Why this way
43
- [Design rationale, or "rationale not documented" if unknown.]
32
+ [Reason, or "reason not documented".]
44
33
 
45
34
  ## Gotchas
46
- [Non-obvious behavior, edge cases, hidden dependencies.]
35
+ [Edge cases, hidden dependencies, surprising behavior.]
47
36
  ```
48
37
 
49
- ## Red Flags — STOP
38
+ ## Writing style (STE100-inspired)
39
+
40
+ - One idea per sentence. Keep sentences short (about 20 words or fewer).
41
+ - Use active voice and present tense: "The parser reads the token", not "The token is read by the parser".
42
+ - Use simple words: "use", not "utilize"; "start", not "initiate".
43
+ - Use one term for one thing. Do not switch between synonyms for the same function or variable.
44
+ - Keep articles ("the", "a"). Do not drop them to save space.
45
+ - Use imperative for instructions. Use numbered steps for sequences.
46
+ - Keep code identifiers, error strings, and numbers exact. Style never changes them.
47
+
48
+ ## Stop if
50
49
 
51
- - Explaining from function name without reading its body.
52
- - Inventing rationale not supported by code or comments.
53
- - Describing *what* a line does when self-evident — explain *why* instead.
50
+ - You explain a function from its name without reading its body.
51
+ - You state a reason that no code or comment supports.
52
+ - You describe what a self-evident line does. Explain why instead.
package/skills/finish.md CHANGED
@@ -1,90 +1,57 @@
1
1
  ---
2
2
  name: finish
3
- description: Structured branch completion — verify, decide, and clean up when implementation is done
3
+ description: Closes out a finished feature branch — runs the full test suite, offers merge, pull request, keep, or discard, and executes the choice safely. Use when implementation is done and the user asks to wrap up, merge, open a PR, or clean up the branch.
4
4
  disable-model-invocation: true
5
5
  ---
6
- # Finish Directive
6
+ # Finish
7
7
 
8
- ## Overview
8
+ ## 1. Verify
9
9
 
10
- Guide completion of dev work by verifying tests + presenting clear options for the branch.
10
+ Run the project's full test suite with the repo's own command. If it fails, show the failures and stop. Offer no options while tests are red.
11
11
 
12
- **Core principle:** Verify tests → Present options → Execute choice → Clean up.
12
+ ## 2. Ask
13
13
 
14
- ## Below are what agent MUST do
14
+ Call `ask_user` with exactly these four options:
15
15
 
16
- ### Step 1: Verify Tests
16
+ 1. **Merge locally** into `<base-branch>`
17
+ 2. **Push and open a PR**
18
+ 3. **Keep the branch** as it is
19
+ 4. **Discard** the branch and its commits
17
20
 
18
- Run full test suite BEFORE presenting any options.
21
+ ## 3. Execute
19
22
 
20
- ```bash
21
- # Use the project's test command, e.g.:
22
- pytest / npm test / go test ./... / cargo test
23
- ```
24
-
25
- - Tests **fail** → Show failures. Do NOT proceed to Step 2. Fix first.
26
- - Tests **pass** → Continue.
27
-
28
- ### Step 2: Present Options
29
-
30
- Present exactly these 4 options — no more, no less:
31
-
32
- ```
33
- Implementation complete. All tests pass. What would you like to do?
34
-
35
- 1. Merge into <base-branch> locally
36
- 2. Push and create a Pull Request
37
- 3. Keep the branch as-is (handle it later)
38
- 4. Discard this work
39
-
40
- Which option?
41
- ```
42
-
43
- ### Step 3: Execute Choice
44
-
45
- **Option 1 — Merge locally:**
23
+ **Merge locally**
46
24
 
47
25
  ```bash
48
- git checkout <base-branch>
49
- git pull
26
+ git checkout <base-branch> && git pull
50
27
  git merge <feature-branch>
51
- <run tests again on merged result>
28
+ # Re-run the full test suite on the merged result. Red → stop and report.
52
29
  git branch -d <feature-branch>
53
30
  ```
54
31
 
55
- **Option 2 — Create PR:**
32
+ **Push and open a PR**
56
33
 
57
34
  ```bash
58
35
  git push -u origin <feature-branch>
59
36
  gh pr create --title "<title>" --body "## Summary
60
- - <bullet of what changed>
37
+ - <what changed>
61
38
 
62
- ## Test Plan
39
+ ## Test plan
63
40
  - [ ] <verification steps>"
64
41
  ```
65
42
 
66
- **Option 3 — Keep as-is:**
67
- Report: "Branch `<name>` kept. No changes made."
68
-
69
- **Option 4 — Discard:**
70
- Require typed confirmation first:
71
-
72
- ```
73
- This will permanently delete branch <name> and all its commits.
74
- Type 'discard' to confirm.
75
- ```
43
+ **Keep** — Report: "Branch `<name>` kept. No changes made."
76
44
 
77
- Then:
45
+ **Discard** — Show: "This permanently deletes branch `<name>` and all its commits. Type 'discard' to confirm." Continue only on that exact word.
78
46
 
79
47
  ```bash
80
48
  git checkout <base-branch>
81
49
  git branch -D <feature-branch>
82
50
  ```
83
51
 
84
- ## Red Flags — Never
52
+ ## Never
85
53
 
86
- - Proceed with failing tests
87
- - Merge without re-running tests on merged result
88
- - Delete work without typed confirmation
89
- - Force-push without explicit user request
90
- - Add extra options beyond the 4 listed
54
+ - Offer options or merge while tests fail.
55
+ - Merge without a test run on the merged result.
56
+ - Delete work without the typed confirmation.
57
+ - Force-push without an explicit request.
package/skills/format.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
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.
3
+ description: Selects and runs the project's formatter (project script first, then config, then a language default) in check mode before write mode. Use when asked to format code, check formatting, or apply style fixes.
4
4
  disable-model-invocation: true
5
5
  ---
6
6
  # Project Format