@djordje-stojanovic/sigmaskills 0.2.0 → 0.3.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,32 @@ All notable changes to [Sigmaskills](https://github.com/Djordje-Stojanovic/Sigma
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.3.0] — 2026-09-08
8
+
9
+ ### Added
10
+
11
+ - SigmaRefactor (`sigmarefactor`) scans and reconciles the five largest maintained files, reads them fully, discusses behavior-preserving refactoring choices with the user, and verifies approved changes.
12
+
13
+ ### Fixed
14
+
15
+ - The interactive installer stops repeating unchanged static pages and pauses standard input during cleanup, so confirmed installs return to the shell reliably.
16
+ - The installer opens directly to skill selection, keeps destination pages within eight rows, and offers line-based commands in plain terminals. Help preserves cancellation, and short terminals keep focus and controls visible.
17
+ - Package tests compare complete trees and bytes for all five skills, including customized reinstall protection and updates.
18
+
19
+
20
+ ## [0.2.1] — 2026-08-27
21
+
22
+ ### Changed
23
+
24
+ - The Agent Host registry now includes Posit Assistant from the pinned `vercel-labs/skills` revision `dd3ca3c85581`.
25
+
26
+ ### Fixed
27
+
28
+ - The destination picker paints one compact row per path, windows a live TTY list, groups search hits that share a path, and leaves the alternate screen before cancel or error copy so Windows does not stack or swallow that text.
29
+ - Registry Sync no longer fails when a leftover `registry/sync-*` branch still exists: it replaces that generated branch, or reuses a matching open pull request, and still refuses human branches.
30
+ - Release packing reads `npm pack --json` after prepack logs, so publication can rebuild the tarball digest.
31
+
32
+
7
33
  ## [0.2.0] — 2026-08-20
8
34
 
9
35
  ### Fixed
@@ -72,6 +98,7 @@ Ship high-rigor, installable agent skills (not apps): full-repo audits, performa
72
98
  | 2026-08-11 | `5dab832` | Add CHANGELOG and mark v0.1.0 as the first Sigmaskills release |
73
99
  | 2026-08-11 | `124a666` | Polish v0.1.0 docs for multi-host install and use |
74
100
 
75
- [Unreleased]: https://github.com/Djordje-Stojanovic/Sigmaskills/compare/v0.2.0...HEAD
101
+ [Unreleased]: https://github.com/Djordje-Stojanovic/Sigmaskills/compare/v0.2.1...HEAD
102
+ [0.2.1]: https://github.com/Djordje-Stojanovic/Sigmaskills/releases/tag/v0.2.1
76
103
  [0.2.0]: https://github.com/Djordje-Stojanovic/Sigmaskills/releases/tag/v0.2.0
77
104
  [0.1.0]: https://github.com/Djordje-Stojanovic/Sigmaskills/releases/tag/v0.1.0
package/README.md CHANGED
@@ -6,7 +6,7 @@ Portable [Agent Skills](https://agentskills.io/) that install once and run on **
6
6
 
7
7
  | | |
8
8
  |---|---|
9
- | **Release** | [**v0.2.0**](https://github.com/Djordje-Stojanovic/Sigmaskills/releases/tag/v0.2.0) |
9
+ | **Release** | [**v0.3.0**](https://github.com/Djordje-Stojanovic/Sigmaskills/releases/tag/v0.3.0) |
10
10
  | **Changelog** | [CHANGELOG.md](CHANGELOG.md) |
11
11
  | **License** | [MIT](LICENSE) |
12
12
  | **Spec** | [agentskills.io](https://agentskills.io/) |
@@ -16,6 +16,7 @@ Portable [Agent Skills](https://agentskills.io/) that install once and run on **
16
16
  Σ performance→ calibrated bottlenecks, one report PR
17
17
  Σ brief → paste-ready agent briefs, chat only
18
18
  Σ write → clear STE-inspired technical English
19
+ Σ refactor → user-guided, behavior-preserving code reduction
19
20
  ```
20
21
 
21
22
  ---
@@ -50,6 +51,7 @@ Then invoke with your host’s normal skill syntax (`$sigmawrite`, `/skill:sigma
50
51
  | **SigmaPerformance** | `sigmaperformance` | Calibrated performance investigation | One report MD + report-only PR |
51
52
  | **SigmaBrief** | `sigmabrief` | Prompt factory for parallel / single agents | Chat briefs only |
52
53
  | **SigmaWrite** | `sigmawrite` | Clear STE-inspired technical English | Chat writing voice |
54
+ | **SigmaRefactor** | `sigmarefactor` | Safe, user-approved large-file refactoring | Discussion, changes, and verification |
53
55
 
54
56
  ### SigmaReview
55
57
 
@@ -69,15 +71,21 @@ Turns GitHub issues, features, upgrades, bugs, or plain work statements into sho
69
71
 
70
72
  Writing voice inspired by **ASD-STE100 Simplified Technical English** — soft steers, not hard numbered rules. High-quality, still-technical explanations a sharp outsider can follow. Hard bans on gibberish and invented words. Includes a pasteable system-prompt block inside `SKILL.md`. Not certified STE; no dictionary ship.
71
73
 
74
+ ### SigmaRefactor
75
+
76
+ Runs a reproducible `laloc` scan, reads the five largest maintained files, explains safe refactoring choices, and waits for user agreement before editing. It checks directories that `laloc` skips, preserves behavior and user changes, and reports lines removed separately from lines moved into new modules.
77
+
72
78
  ---
73
79
 
74
80
  ## Install
75
81
 
76
82
  ### Sigma Installer: Project Installation (recommended)
77
83
 
78
- Run `npx @djordje-stojanovic/sigmaskills` with no command. The Sigma Installer's Emberforge interface reads the Skill Pack catalog from `manifest.json` and the bundled Agent Host registry. Project Installation selects only the universal `.agents/skills/` destination by default, expands every Agent Host that reads it, and leaves host-specific destinations unselected until you choose them. Search remains available for every supported Agent Host, including hosts that are not detected. Exact current official copies and valid links are recorded as managed without rewriting skill bytes. Escape, EOF, Ctrl+C, or a rejected confirmation exits without writing.
84
+ Run `npx @djordje-stojanovic/sigmaskills` with no command. The Sigma Installer's Emberforge interface reads the Skill Pack catalog from `manifest.json` and the bundled Agent Host registry. Project Installation selects only the universal `.agents/skills/` destination by default, shows a compact host-path list, and leaves host-specific destinations unselected until you choose them. Search remains available for every supported Agent Host, including hosts that are not detected. Exact current official copies and valid links are recorded as managed without rewriting skill bytes. Escape, EOF, Ctrl+C, or a rejected confirmation exits without writing.
85
+
86
+ The installer opens directly to a small Sigma heading in the warm LAPI palette. Skill descriptions stay in a bounded focus area. Destination pages show at most eight rows and adapt to terminal height. Long confirmation paths wrap onto pages; use `next`/`prev` in plain mode or left/right arrows in interactive mode. Reduced motion keeps the same picker: there is no opening animation. The cursor, raw mode, input flow, and listeners are restored when the installer finishes or stops.
79
87
 
80
- The Emberforge screens keep the accepted warm LAPI palette and do not mix in Prismgrid or Monolith. Layouts reflow below 76 columns and wrap long paths. Keyboard-only controls cover focus, search, selection, confirmation, cancellation, and `?` help. `--no-color`, `--static`, `--narrow`, `--json`, `NO_COLOR`, `CI`, `REDUCED_MOTION=1`, `PREFERS_REDUCED_MOTION=reduce`, redirected output, and non-TTY sessions disable animation and decorative color. Truecolor, 256-color, 16-color, and ASCII fallbacks stay readable and still show safety copy. The cursor and raw mode restore after success, failure, interrupt, EOF, and exceptions.
88
+ With `--static`, `--no-color`, `NO_COLOR`, `CI`, redirected output, or a non-TTY session, enter one command per line. Type a row number to toggle it, `/claude` to search destinations, `/` to clear search, `next` or `prev` to change page, and press Enter to continue. Use `a` to select all skills, `g` for the global warning, `?` for help, or `esc` to cancel. Confirm installation with `y` followed by Enter. Only `.agents/skills` is selected by default; detected hosts stay unselected.
81
89
 
82
90
  Use `--no-color`, `--static`, or `--narrow` when the terminal needs those modes. Use `--project <path>` to select another project root.
83
91
 
@@ -109,7 +117,7 @@ Non-interactive mutation requires both `--global` and `--yes`. `--dry-run` shows
109
117
 
110
118
  ### Sigma Installer: Agent Host registry automation
111
119
 
112
- The `registry-sync.yml` workflow fetches one pinned `vercel-labs/skills` revision as data and runs converter code only from the exact default-branch SHA in `EXPECTED_HEAD`. Generated changes are limited to `registry/agent-hosts.json`, `registry/source.json`, and `test/fixtures/vercel-skills/src/agents.ts`. New hosts must pass safe-root, traversal, collision, overlap, control-character, and platform checks. Only a generated pull request from that trusted workflow, with an exact allowlisted diff, the validated head SHA, current protected `main`, and all required checks may auto-merge. Validated additions and description-only edits can then publish a patch Release through the same idempotent trusted publication primitive as owner Releases. Path, ID, alias, detection, platform, membership, removal, unknown fields, and validation failures stay blocked for owner review. Version calculation serializes concurrent runs and reconciles npm and GitHub before the patch. The generated branch is deleted only after verified merge and matching npm/GitHub completion. Automation cannot change skills, CLI behavior, unrelated issues or pull requests, human branches, or major/minor Releases, and it never overwrites an existing npm version. Configure an npm trusted publisher for `registry-sync.yml` in addition to `release.yml`.
120
+ The `registry-sync.yml` workflow fetches one pinned `vercel-labs/skills` revision as data and runs converter code only from the exact default-branch SHA in `EXPECTED_HEAD`. Generated changes are limited to `registry/agent-hosts.json`, `registry/source.json`, and `test/fixtures/vercel-skills/src/agents.ts`. New hosts must pass safe-root, traversal, collision, overlap, control-character, and platform checks. Only a generated pull request from that trusted workflow, with an exact allowlisted diff, the validated head SHA, current protected `main`, and all required checks may auto-merge. Validated additions and description-only edits can then publish a patch Release through the same idempotent trusted publication primitive as owner Releases. Path, ID, alias, detection, platform, membership, removal, unknown fields, and validation failures stay blocked for owner review. Version calculation serializes concurrent runs and reconciles npm and GitHub before the patch. The generated branch is deleted only after verified merge and matching npm/GitHub completion. If that generated branch is leftover from an earlier run, Generate replaces it; if a matching generated pull request is already open, Generate reuses it instead of failing the push. Automation cannot change skills, CLI behavior, unrelated issues or pull requests, human branches, or major/minor Releases, and it never overwrites an existing npm version. Configure an npm trusted publisher for `registry-sync.yml` in addition to `release.yml`.
113
121
 
114
122
  ### Sigma Installer: release
115
123
 
@@ -128,6 +136,7 @@ npx skills add Djordje-Stojanovic/Sigmaskills --skill sigmareview -g
128
136
  npx skills add Djordje-Stojanovic/Sigmaskills --skill sigmaperformance -g
129
137
  npx skills add Djordje-Stojanovic/Sigmaskills --skill sigmabrief -g
130
138
  npx skills add Djordje-Stojanovic/Sigmaskills --skill sigmawrite -g
139
+ npx skills add Djordje-Stojanovic/Sigmaskills --skill sigmarefactor -g
131
140
 
132
141
  # Pin to specific hosts
133
142
  npx skills add Djordje-Stojanovic/Sigmaskills --skill sigmawrite -g -a cursor -a claude-code -a codex -a opencode -a pi
@@ -149,6 +158,7 @@ $skill-installer install sigmareview from https://github.com/Djordje-Stojanovic/
149
158
  $skill-installer install sigmaperformance from https://github.com/Djordje-Stojanovic/Sigmaskills
150
159
  $skill-installer install sigmabrief from https://github.com/Djordje-Stojanovic/Sigmaskills
151
160
  $skill-installer install sigmawrite from https://github.com/Djordje-Stojanovic/Sigmaskills
161
+ $skill-installer install sigmarefactor from https://github.com/Djordje-Stojanovic/Sigmaskills
152
162
  ```
153
163
 
154
164
  ### Manual / universal copy
@@ -164,6 +174,7 @@ cp -R Sigmaskills/sigmareview ~/.agents/skills/sigmareview
164
174
  cp -R Sigmaskills/sigmaperformance ~/.agents/skills/sigmaperformance
165
175
  cp -R Sigmaskills/sigmabrief ~/.agents/skills/sigmabrief
166
176
  cp -R Sigmaskills/sigmawrite ~/.agents/skills/sigmawrite
177
+ cp -R Sigmaskills/sigmarefactor ~/.agents/skills/sigmarefactor
167
178
  ```
168
179
 
169
180
  **Windows (PowerShell)**
@@ -175,6 +186,7 @@ Copy-Item -Recurse Sigmaskills\sigmareview "$HOME\.agents\skills\sigmareview"
175
186
  Copy-Item -Recurse Sigmaskills\sigmaperformance "$HOME\.agents\skills\sigmaperformance"
176
187
  Copy-Item -Recurse Sigmaskills\sigmabrief "$HOME\.agents\skills\sigmabrief"
177
188
  Copy-Item -Recurse Sigmaskills\sigmawrite "$HOME\.agents\skills\sigmawrite"
189
+ Copy-Item -Recurse Sigmaskills\sigmarefactor "$HOME\.agents\skills\sigmarefactor"
178
190
  ```
179
191
 
180
192
  Point other hosts at the same folders (or copy again) as needed:
@@ -188,7 +200,7 @@ Point other hosts at the same folders (or copy again) as needed:
188
200
  | OpenCode | `~/.config/opencode/skills/<id>/` |
189
201
  | Codex | `~/.codex/skills/<id>/` |
190
202
 
191
- Release zip: download [**Sigmaskills-v0.2.0**](https://github.com/Djordje-Stojanovic/Sigmaskills/releases/tag/v0.2.0) and copy the four skill folders into the path your agent reads.
203
+ Release zip: [**Sigmaskills-v0.2.1**](https://github.com/Djordje-Stojanovic/Sigmaskills/releases/tag/v0.2.1) contains the four skills released at that version. SigmaRefactor and the revised installer are available from the current repository source until a new package release is published.
192
204
 
193
205
  ### Optional: SigmaWrite as system prompt
194
206
 
@@ -212,6 +224,7 @@ $sigmaperformance https://github.com/owner/repo
212
224
  $sigmabrief https://github.com/owner/repo/issues/12
213
225
  $sigmabrief all open
214
226
  $sigmawrite
227
+ $sigmarefactor
215
228
  ```
216
229
 
217
230
  </td>
@@ -225,6 +238,7 @@ $sigmawrite
225
238
  /skill:sigmabrief https://github.com/owner/repo/issues/12
226
239
  /skill:sigmabrief all open
227
240
  /skill:sigmawrite
241
+ /skill:sigmarefactor
228
242
  ```
229
243
 
230
244
  </td>
@@ -240,6 +254,7 @@ Use the skill picker, `@` / `$` skill mention, or whatever that product document
240
254
  | `sigmaperformance` | repo URL | Starts with two short calibration batches, then runs |
241
255
  | `sigmabrief` | issue URL · `#N` · `all open` · plain work | Explicit only — not ambient |
242
256
  | `sigmawrite` | (no args) | Session writing voice until you turn it off |
257
+ | `sigmarefactor` | repository path or current repository | Scans and discusses large files before any edit |
243
258
 
244
259
  ---
245
260
 
@@ -280,6 +295,13 @@ Use the skill picker, `@` / `$` skill mention, or whatever that product document
280
295
  - Optional pasteable system-prompt block in `SKILL.md`
281
296
  - Does not override another skill’s rigid output contract
282
297
 
298
+ ### SigmaRefactor
299
+
300
+ - Five-stage scan → read → discussion → implementation → verification flow
301
+ - `laloc` reconciliation with a maintained-file inventory and explicit exclusions
302
+ - User approval before edits; behavior, tests, interfaces, and custom content stay protected
303
+ - Final line-count comparison with removed and moved lines reported separately
304
+
283
305
  ---
284
306
 
285
307
  ## Requirements
@@ -291,6 +313,7 @@ Use the skill picker, `@` / `$` skill mention, or whatever that product document
291
313
  | SigmaPerformance | Authority / safety boundary chosen in calibration |
292
314
  | SigmaBrief | `gh` read when briefing from issues/PRs · **no** push to the product repo |
293
315
  | SigmaWrite | Nothing beyond chat — optional paste into system instructions |
316
+ | SigmaRefactor | Read access to the target repository and `laloc` when available; no required external skill |
294
317
 
295
318
  Windows-native defaults where skills mention shells or worktrees (PowerShell-friendly; do not assume WSL).
296
319
 
@@ -307,7 +330,8 @@ Sigmaskills/
307
330
  ├── sigmareview/ SKILL.md · agents/ · references/
308
331
  ├── sigmaperformance/ SKILL.md · agents/ · references/
309
332
  ├── sigmabrief/ SKILL.md · agents/ · references/
310
- └── sigmawrite/ SKILL.md · agents/
333
+ ├── sigmawrite/ SKILL.md · agents/
334
+ └── sigmarefactor/ SKILL.md · agents/ · references/
311
335
  ```
312
336
 
313
337
  Each top-level folder is one installable skill. `name` in frontmatter = folder name = `--skill` id.
package/manifest.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "sigmaskills",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "description": "Portable Agent Skills monorepo and first-party Sigma Installer",
6
6
  "skills": [
7
7
  {
@@ -23,6 +23,11 @@
23
23
  "id": "sigmawrite",
24
24
  "title": "SigmaWrite",
25
25
  "needsReferences": false
26
+ },
27
+ {
28
+ "id": "sigmarefactor",
29
+ "title": "SigmaRefactor",
30
+ "needsReferences": true
26
31
  }
27
32
  ]
28
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djordje-stojanovic/sigmaskills",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Portable Agent Skills monorepo and first-party Sigma Installer",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,6 +18,7 @@
18
18
  "sigmaperformance",
19
19
  "sigmabrief",
20
20
  "sigmawrite",
21
+ "sigmarefactor",
21
22
  "README.md",
22
23
  "LICENSE",
23
24
  "CHANGELOG.md"