@solaqua/ghosts 0.4.18 → 0.4.21

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/README.md CHANGED
@@ -55,6 +55,7 @@ For installation selectors, use the source path, such as `--include skills/code-
55
55
  | [coding](engineering/skills/coding/SKILL.md) | Keep implementation simple and tests focused on meaningful behavior. |
56
56
  | [code-review](engineering/skills/code-review/SKILL.md) | Review correctness, downstream contracts, design, and complexity; verify material safety assumptions without editing the change. |
57
57
  | [test-review](engineering/skills/test-review/SKILL.md) | Find missing test protection and tests that cost more than they protect. |
58
+ | [docstring-review](engineering/skills/docstring-review/SKILL.md) | Find function summaries that obscure their domain purpose with implementation details. |
58
59
  | [deep-module](engineering/skills/deep-module/SKILL.md) | Check whether a module hides complexity behind a simple interface. |
59
60
  | [verify-journeys](engineering/skills/verify-journeys/SKILL.md) | Verify real user journeys and report observable outcomes, evidence, and coverage gaps. |
60
61
  | [benchmark-checklist](engineering/skills/benchmark-checklist/SKILL.md) | Check performance claims for equivalent work, experimental control, and repeatability. |
@@ -9,6 +9,7 @@ Design outside-in from caller usage and domain invariants. Repeated workarounds
9
9
 
10
10
  - Before writing, briefly inspect existing code with a similar role in the repository and follow its conventions where applicable.
11
11
  - Order functions so each callee appears below its caller.
12
+ - Write function and method docstring and TSDoc summaries as concise statements of purpose in domain terms. Describe what the function accomplishes without narrating internal steps or enumerating permissions, side effects, and error handling. Add contract details separately only when callers need them to use the function correctly. Prefer one sentence; expand only when necessary.
12
13
  - Write tests as behavioral specifications: each test docstring or doc comment must stand alone, describe the scenario and observable outcome, and avoid relying on surrounding context, implementation details, or comparative wording. Keep names concise and behavior-based (JS/TS `it(...)` / `test(...)` descriptions suffice), and use `Given` / `When` / `Then` sections in the body.
13
14
  - Never use `if` statements or conditional expressions in test code, including setup, helpers, and assertions. Define each case's inputs and expected outcomes before execution; use separate cases or parameterization instead of branching.
14
15
  - When complex setup, concurrency, timing, or multi-step control flow makes a test hard to follow, add concise comments at key transitions to explain the scenario and synchronization; do not narrate obvious code.
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: ghosts:docstring-review
3
+ description: Read-only review of function and method docstring or TSDoc summaries for domain purpose rather than implementation narration.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ Review function and method documentation summaries read-only. Use the user's target or the change being discussed; otherwise review the current branch's diff against its base, including uncommitted changes. Inspect the implementation and relevant callers to establish the function's purpose.
8
+
9
+ - Any function or method docstring or TSDoc summaries that narrate internal steps or enumerate permissions, side effects, and error handling instead of stating the function's purpose in domain terms?
10
+ - Recommend a concise purpose statement, usually one sentence. Use domain terms supported by the code; do not invent intent or guarantees.
11
+ - Preserve contract details callers need in separate documentation sections or paragraphs. Permissions, side effects, or failures may belong in the summary when they define the function's domain purpose; do not flag them merely for appearing there.
12
+
13
+ Report only summaries that obscure the function's purpose. Do not request missing docstrings, expand the review to unrelated documentation, or flag harmless wording preferences.
14
+
15
+ Write findings in the user's language. For each finding, include the file and line, the existing summary, why it obscures the purpose, and a proposed replacement summary. Use commit-pinned permalinks for GitHub targets. State when no actionable findings were found and disclose any material review limitations.
@@ -15,6 +15,7 @@ Review the artifact or change read-only:
15
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.
16
16
 
17
17
  For code:
18
+ - Any function or method docstring or TSDoc summaries that narrate internal steps or enumerate permissions, side effects, and error handling instead of stating the function's purpose in domain terms? Reduce these to a concise statement of what the function accomplishes, usually one sentence. Preserve contract details separately only when callers need them to use the function correctly.
18
19
  - 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?
19
20
  - Any behavior already protected by existing tests beyond the diff, including through public entrypoints? Search and compare scenarios and assertions, not names alone; cite the tests and assertions that retain protection when recommending removal or consolidation. Could an existing case or suite be extended instead of adding a separate test, while preserving distinct behavior or regression coverage?
20
21
  - Any unnecessary variables or intermediate state that can be omitted, inlined, or reused without obscuring intent?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solaqua/ghosts",
3
- "version": "0.4.18",
3
+ "version": "0.4.21",
4
4
  "description": "Reusable agent skills and reviewers.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "target": "skills",
36
36
  "name": "orca-cli",
37
37
  "source": "stablyai/orca",
38
- "ref": "17828c78f1b5e524e9b6a935cf8d434b703b195a"
38
+ "ref": "81ec82b3651703f6ab3ba1a74b729453919e69e5"
39
39
  },
40
40
  {
41
41
  "target": "skills",