@solaqua/ghosts 0.4.1 → 0.4.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.
@@ -1,35 +1,50 @@
1
1
  ---
2
2
  name: ghosts:slop-shaking
3
- description: Use when the user asks to remove slop, mentions $slop-shaking, or asks whether anything in a change is unnecessary.
3
+ description: Use when the user asks to remove slop, mentions $slop-shaking, or asks whether code, documents, presentations, HTML, or UI contain unnecessary content, structure, or complexity.
4
4
  ---
5
5
 
6
- Review the code, PR, or diff specified by the user; otherwise use the change being discussed. Inspect its callers and tests.
6
+ Review the artifact or change specified by the user; otherwise use the work being discussed. Identify its audience, purpose, and intended behavior or message. For code, inspect callers and tests. For documents and presentations, inspect the surrounding narrative and rendered layout when available. For HTML and UI, inspect the rendered surface and relevant user flows when available; state when visual or interaction checks are unavailable.
7
7
 
8
- Give one general subagent the change context and this prompt:
8
+ Judge each element by whether it helps the user understand, decide, or act. Remove or combine elements that add no useful contribution or duplicate another element. Reduce the user's total reading, reasoning, and interaction burden; fewer elements alone are not the goal. Preserve necessary behavior, information, navigation, accessibility, and meaningful risk coverage. Do not hide necessary information or controls if doing so makes tasks harder.
9
+
10
+ Give one general subagent the artifact, relevant context, and this prompt. Use only the checks relevant to the artifact:
9
11
 
10
12
  ```text
11
- Review the change read-only:
13
+ Review the artifact or change read-only:
12
14
 
13
- AI-generated changes can overcomplicate simple problems; look for a simpler solution and question whether the added code or tests are needed at all.
15
+ AI-generated work can overcomplicate simple problems and overfill documents and interfaces. Look for omissions, combinations, or simpler designs that reduce the intended audience's burden while preserving the artifact's purpose. Do not force every artifact through every checklist or invent findings to justify a cleanup.
14
16
 
17
+ For code:
15
18
  - Any low-value, duplicate, implementation-shaped, or one-off tests—including those that only recheck documented dependency guarantees—that can be removed or combined without losing meaningful behavior, edge-case, or risk coverage? Any tests for hypothetical concurrency or timing risks without a credible execution path or meaningful failure impact?
16
19
  - Any unnecessary variables or intermediate state that can be omitted, inlined, or reused without obscuring intent?
17
20
  - Any unnecessary interfaces or abstractions? Would omission, existing code reuse, standard features, or a different design solve the same problem more simply from the caller's perspective? Any internal state, lifecycle, ordering, or retry details that callers must coordinate but the module could hide?
18
21
 
22
+ For documents and presentations:
23
+ - Any headings, subheadings, sections, introductions, conclusions, summaries, or footers that repeat information or add structure without helping readers navigate or understand?
24
+ - Any exhaustive details, boilerplate, or explanations that do not support the audience's purpose? Can they be removed, combined, or moved to a reference or appendix without making the main material harder to use?
25
+ - Any slides or visual elements that duplicate a message, compete with the main point, or fragment a coherent explanation? Preserve necessary evidence, citations, and useful context.
26
+
27
+ For HTML and UI:
28
+ - Any cards, containers, borders, badges, labels, helper text, buttons, or repeated instructions that add visual or cognitive burden without helping the user complete a task?
29
+ - Any unnecessary options, implementation details, or intermediate states exposed to users? Can sensible defaults, existing controls, or progressive disclosure simplify the flow without adding excessive clicks or hiding important choices?
30
+ - Does each proposed removal preserve discoverability, navigation, accessibility, feedback, and recovery from errors? Judge the whole flow, not just how sparse one screen looks.
31
+
19
32
  Report findings with locations, evidence, and the smallest useful cleanup. Say when no useful cleanup is found.
20
33
  ```
21
34
 
22
- After the subagent responds, judge each suggestion: does it remove real slop, or add complexity for little benefit? Apply supported cleanups, preserve intended behavior, and run relevant checks. If asked for review only, report without editing. Recheck affected changes; briefly explain what was removed or combined and why, including reasons for rejected suggestions. Leave the change unchanged when no useful cleanup remains.
35
+ After the subagent responds, judge each suggestion: does it reduce the user's burden, or merely remove useful context or shift complexity elsewhere? Apply supported cleanups within the requested scope and run relevant checks. For code, verify affected behavior; for documents and presentations, check meaning and layout; for HTML and UI, check affected flows and rendered states when available. If asked for review only, report without editing. Leave the artifact unchanged when no useful cleanup remains.
36
+
37
+ Report in the user's language. For a small cleanup, briefly explain what was removed or combined, why, and how it was checked. Mention rejected suggestions only when their tradeoff helps explain the outcome. If there are no findings, say so.
23
38
 
24
- Report in the user's language using the format below. Keep every candidate, including rejected suggestions as `SKIP` with a reason. Use `PROPOSED` for review-only findings and `BLOCKED` for unresolved cleanups. If there are no findings, say so.
39
+ For multiple findings that benefit from comparison, or when the user requests a structured report, use the format below. Use `PROPOSED` for review-only findings, `BLOCKED` for unresolved cleanups, and `SKIP` for rejected suggestions worth explaining. Locations can be file lines, document sections, slide numbers, or UI screens and elements; use commit-pinned permalinks for GitHub targets.
25
40
 
26
41
  ```markdown
27
42
  ## Findings
28
43
 
29
44
  ### <APPLIED|PROPOSED|BLOCKED|SKIP> - <title>
30
45
 
31
- - Location: <file and line; commit-pinned permalink for GitHub targets>
32
- - Kind: test|variable|interface
46
+ - Location: <file and line, section, slide, or UI element>
47
+ - Kind: <test|variable|interface|content|structure|visual|interaction>
33
48
  - Evidence / rule: <concrete evidence and the cleanup criterion>
34
49
  - Change / reason: <what changed or is proposed, or why it was blocked or skipped>
35
50
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solaqua/ghosts",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Reusable agent skills and reviewers.",
5
5
  "license": "MIT",
6
6
  "repository": {