@solaqua/ghosts 0.4.3 → 0.4.5
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 +1 -0
- package/engineering/skills/code-review/SKILL.md +3 -1
- package/engineering/skills/coding/SKILL.md +2 -1
- package/engineering/skills/delegate/SKILL.md +16 -0
- package/engineering/skills/github-pr/SKILL.md +1 -0
- package/engineering/skills/slop-shaking/SKILL.md +4 -1
- package/engineering/skills/stack-pr/SKILL.md +1 -3
- package/engineering/skills/task-handoff/SKILL.md +9 -27
- package/engineering/skills/test-review/SKILL.md +2 -1
- package/package.json +1 -1
- package/writing/skills/cold-reader/SKILL.md +2 -0
- package/writing/skills/make-skill/SKILL.md +2 -0
package/README.md
CHANGED
|
@@ -62,6 +62,7 @@ For installation selectors, use the source path, such as `--include skills/code-
|
|
|
62
62
|
| [grill-me](engineering/skills/grill-me/SKILL.md) | Stress-test a plan or idea through focused questions. |
|
|
63
63
|
| [work-breakdown](engineering/skills/work-breakdown/SKILL.md) | Break a goal into reviewable work packages with dependencies and execution order. |
|
|
64
64
|
| [task-handoff](engineering/skills/task-handoff/SKILL.md) | Prepare concise handoffs for independent implementation tasks. |
|
|
65
|
+
| [delegate](engineering/skills/delegate/SKILL.md) | Hand work to another Orca agent or supervise it through completion with a concise brief. |
|
|
65
66
|
| [github-issue](engineering/skills/github-issue/SKILL.md) | Create or update GitHub issues, sub-issues, and dependencies. |
|
|
66
67
|
| [github-pr](engineering/skills/github-pr/SKILL.md) | Commit and push changes, then create or update their pull request. |
|
|
67
68
|
| [stack-pr](engineering/skills/stack-pr/SKILL.md) | Implement GitHub issues in parallel and build stacked PRs in dependency order. |
|
|
@@ -10,13 +10,15 @@ Consider every question below. Mark irrelevant questions `N/A — <reason>`. The
|
|
|
10
10
|
```text
|
|
11
11
|
Review the change read-only:
|
|
12
12
|
|
|
13
|
+
Write findings and summaries using ISO 24495-1:2023 Plain Language principles.
|
|
14
|
+
|
|
13
15
|
AI-generated changes can overcomplicate simple problems; question whether added code or tests are needed at all, and consider omission before adding another layer.
|
|
14
16
|
|
|
15
17
|
- Any correctness or operational risks, including bugs, edge cases, race conditions, resource leaks, performance bottlenecks, scalability concerns, or security issues?
|
|
16
18
|
- Any downstream contract breaks beyond the diff: callers, persisted data, wire formats, cross-language consumers, feature flags, or lifecycle ordering? Trace concrete failure paths, including transitive dependencies; check pinned dependency versions and local patches where behavior depends on them.
|
|
17
19
|
- Any design or API issues when viewed from the intended caller's perspective and from outside-in, deep-module, and dependency-direction perspectives, including whether the module hides state, lifecycle, and ordering details, or exposes internal collaboration methods as public API; also consider hidden obligations, awkward call sites, leaky abstractions, or circular dependencies?
|
|
18
20
|
- Any unnecessary variables, intermediate state, interfaces, or abstractions that can be omitted? Could standard features, existing code reuse, a different design, or clearer naming solve the problem more simply?
|
|
19
|
-
- Any test smells or test-suite bloat—such as brittle or implementation-coupled tests, tautological tests that repeat the implementation or assert only mock setup, tests that only recheck documented dependency guarantees, over-mocking, unclear intent, missing negative-path coverage, surviving mutants, or redundant, overlapping, or low-signal tests whose maintenance, execution, and review costs outweigh the independent behavioral confidence they add? Any one-off checks retained as permanent regression tests, or hypothetical concurrency/timing tests without a credible execution path or meaningful failure impact? Could removal or consolidation preserve meaningful behavior, edge-case, and risk coverage?
|
|
21
|
+
- Any test smells or test-suite bloat—such as brittle or implementation-coupled tests, tautological tests that repeat the implementation or assert only mock setup, tests that only recheck documented dependency guarantees, over-mocking, unclear intent, missing negative-path coverage, surviving mutants, or redundant, overlapping, or low-signal tests whose maintenance, execution, and review costs outweigh the independent behavioral confidence they add? Any one-off checks retained as permanent regression tests, or hypothetical concurrency/timing tests without a credible execution path or meaningful failure impact? Could removal or consolidation preserve meaningful behavior, edge-case, and risk coverage? Any behavior already protected by existing tests beyond the diff, including through public entrypoints, judged by comparing scenarios and assertions rather than names alone? Could an existing case or suite be extended instead of adding a separate test, while preserving distinct behavior or regression coverage?
|
|
20
22
|
Report findings with locations, evidence, and the smallest useful fix. Say when no actionable issue is found.
|
|
21
23
|
```
|
|
22
24
|
|
|
@@ -7,11 +7,12 @@ AI-generated code can overcomplicate simple problems. First consider omission, e
|
|
|
7
7
|
|
|
8
8
|
Design outside-in from caller usage and domain invariants. Repeated workarounds or type escape hatches are evidence to revisit the abstraction. If successive fixes fail under the same premise, challenge that premise before patching again. Prefer a rerunnable tool when it reduces execution or verification cost.
|
|
9
9
|
|
|
10
|
+
- Before writing, briefly inspect existing code with a similar role in the repository and follow its conventions where applicable.
|
|
10
11
|
- Order functions so each callee appears below its caller.
|
|
11
12
|
- 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.
|
|
12
13
|
- 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.
|
|
13
14
|
- Avoid low-value, brittle, implementation-coupled, or over-mocked tests—including tests that merely restate literals, constants, or configuration wiring; prefer outside-in integration tests through public interfaces, and add tests only when they specify meaningful externally observable behavior or guard against a substantive regression.
|
|
14
|
-
- Treat test-suite growth as a cost:
|
|
15
|
+
- Treat test-suite growth as a cost: search relevant existing tests before adding coverage, and extend an existing case or suite when it can cover the behavior clearly. Avoid redundant or low-signal tests whose behavior is already meaningfully covered elsewhere, including tests that only recheck documented dependency guarantees, unless they add independent behavioral confidence or protect a distinct regression risk.
|
|
15
16
|
- Do not expose private members solely for testing.
|
|
16
17
|
- Keep tests focused on current, externally observable behavior: do not add temporary tests solely for intermediate layers when a planned integration test better specifies the behavior, or regression tests for intentionally removed code paths; add tests only when omitting them leaves an immediate regression or safety gap, and update or remove obsolete tests instead.
|
|
17
18
|
- Do not preserve backward compatibility. Remove obsolete paths instead of adding compatibility layers, fallbacks, or migrations.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ghosts:delegate
|
|
3
|
+
description: Use when the user asks to hand work to another Orca agent or supervise delegated work through completion. Pass only the context the recipient needs.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Delegate the user's task through Orca. Read and follow the applicable `orca-cli` or `orchestration` skill.
|
|
7
|
+
|
|
8
|
+
Before continuing an existing thread, read the user's added instructions.
|
|
9
|
+
|
|
10
|
+
Prefer Markdown with bullets for the brief. Follow ISO 24495-1:2023 Plain Language principles so the recipient can find, understand, and use the information they need. Use direct sentences, explicit actions, and consistent terms. Omit rhetorical flourishes. Include only what is needed:
|
|
11
|
+
|
|
12
|
+
- References to issues, PRs, or existing threads.
|
|
13
|
+
- Goals, completion criteria, confirmed decisions, constraints, and excluded scope missing from those references.
|
|
14
|
+
- Skills the user requested.
|
|
15
|
+
|
|
16
|
+
Do not restate referenced content, reminders to read root instructions, general development or testing guidance, or skill-internal procedures and report formats. Do not omit important decisions or constraints for brevity.
|
|
@@ -18,6 +18,7 @@ description: When the user asks to publish, sync, or manage GitHub work, commit
|
|
|
18
18
|
|
|
19
19
|
- Use `gh pr edit --body-file - <<'EOF'` as the default PR body path.
|
|
20
20
|
- If the repository has a pull request template that GitHub recognizes, preserve its required structure. Otherwise, follow [templates/pull_request_template.md](templates/pull_request_template.md) and replace each placeholder or omit the section as it directs.
|
|
21
|
+
- Use closing keywords for linked issues the PR fully resolves.
|
|
21
22
|
- Write for a reviewer who may not know the repository or the work's prior context. Use direct language, preserve precise domain terms, and make essential premises explicit.
|
|
22
23
|
- Keep the body readable in one screen without scrolling. Include files or implementation details only when essential for review.
|
|
23
24
|
- Always group related points under subheadings or nested lists instead of one flat list.
|
|
@@ -16,6 +16,7 @@ AI-generated work can overcomplicate simple problems and overfill documents and
|
|
|
16
16
|
|
|
17
17
|
For code:
|
|
18
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?
|
|
19
|
+
- 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?
|
|
19
20
|
- Any unnecessary variables or intermediate state that can be omitted, inlined, or reused without obscuring intent?
|
|
20
21
|
- 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?
|
|
21
22
|
|
|
@@ -32,7 +33,9 @@ For HTML and UI:
|
|
|
32
33
|
Report findings with locations, evidence, and the smallest useful cleanup. Say when no useful cleanup is found.
|
|
33
34
|
```
|
|
34
35
|
|
|
35
|
-
After the subagent responds,
|
|
36
|
+
After the subagent responds, apply useful cleanups within the requested scope by default. Do not skip a cleanup merely because its benefit is small or a hypothetical risk exists. Reject suggestions that provide no useful improvement or have a concrete downside that outweighs the benefit. If a credible concern remains unresolved, investigate it or mark the cleanup `BLOCKED`.
|
|
37
|
+
|
|
38
|
+
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
39
|
|
|
37
40
|
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.
|
|
38
41
|
|
|
@@ -5,9 +5,7 @@ description: Use when the user asks to implement GitHub issues in parallel and b
|
|
|
5
5
|
|
|
6
6
|
Read the requested issues, sub-issues, dependencies, relevant comments, and existing PRs with `gh`. Resolve each task's repository, scope, completion criteria, and actual prerequisites. Parent membership is not a dependency. Reuse existing work rather than starting duplicate branches or PRs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
In Orca, use `orca-cli` to create and supervise worktrees with `worktree create --agent <current-agent-id> --prompt <task-brief> --json`, using the current agent's Orca launcher unless the user specifies another agent. Use `--no-parent` for independent work, and `--parent-worktree <predecessor>` with `--base-branch <reviewed-ref>` for successors; lineage alone does not select the Git base. Verify each checkout's base and use the returned agent handle to track results. Keep coordinator ownership through completion rather than making a full handoff.
|
|
8
|
+
Use `ghosts:delegate` to run independent, ready issues in parallel and supervise them through completion, with one implementation agent per issue in an isolated worktree. Assign each worker an exact base commit and verify the checkout starts from it before implementation. The main agent owns scheduling, branch topology, and publication; workers return their change, review results, and checks.
|
|
11
9
|
|
|
12
10
|
Any missing decision, dependency cycle, or overlapping ownership that makes parallel work unsafe? Resolve it before starting the affected tasks; continue unrelated work. Use `ghosts:grill-me` for material decisions and `ghosts:work-breakdown` when an issue still needs decomposition.
|
|
13
11
|
|
|
@@ -1,37 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ghosts:task-handoff
|
|
3
|
-
description:
|
|
3
|
+
description: Use when the user asks to prepare handoff text for independent implementation tasks without dispatching agents.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Generate up to two concise English handoffs for independent implementation tasks by default. If the invocation specifies a positive maximum N, generate up to N handoffs; treat N as a cap. Output each handoff in a code block; do not create a handoff document.
|
|
7
|
+
Generate up to two concise English handoffs for independent implementation tasks by default. If the invocation specifies a positive maximum N, generate up to N handoffs; treat N as a cap. Output each handoff in a code block; do not create a handoff document, dispatch agents, update task status, or change Git state.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Read relevant entries in the configured project-notes and task-tracker system. If the source is unclear, ask which one to use.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Select tasks that can proceed fully in parallel with their prerequisites satisfied. Exclude tasks already in progress, awaiting review, or complete. Treat tasks with merged PRs as complete and implemented but unmerged tasks as awaiting review. Choose the eligible set of up to N tasks that minimizes overlap in files or modules they are likely to modify. If all tracked tasks are complete, report that; if none are ready, report the blockers instead of creating handoffs.
|
|
12
12
|
|
|
13
|
-
1.
|
|
14
|
-
2. Sync the base branch with the latest remote state.
|
|
15
|
-
3. Mark implementation tasks with merged PRs `DONE`; keep implemented but unmerged tasks `REVIEW`.
|
|
16
|
-
4. Select implementation tasks not marked `[DOING]` and mark selected tasks `[DOING]`.
|
|
17
|
-
5. If all tracked tasks are complete, report that instead of creating handoffs.
|
|
13
|
+
Prefer Markdown with bullets inside each code block. Follow ISO 24495-1:2023 Plain Language principles so the recipient can find, understand, and use the information they need. Use direct sentences, explicit actions, and consistent terms. Omit rhetorical flourishes. Include only what the recipient needs:
|
|
18
14
|
|
|
19
|
-
|
|
15
|
+
- References to issues, PRs, or existing threads.
|
|
16
|
+
- Goals, completion criteria, confirmed decisions, constraints, and excluded scope missing from those references.
|
|
17
|
+
- Skills the user requested.
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- task
|
|
24
|
-
- problem
|
|
25
|
-
- solution direction
|
|
26
|
-
- completed work
|
|
27
|
-
- next task and starting point
|
|
28
|
-
- done criteria
|
|
29
|
-
- required project-notes and repository startup commands, including base-branch sync
|
|
30
|
-
|
|
31
|
-
Keep the problem and solution direction concise. Do not repeat commands already required by `AGENTS.md` or `CLAUDE.md`.
|
|
32
|
-
|
|
33
|
-
## Constraints
|
|
34
|
-
|
|
35
|
-
- Include only tasks that can proceed fully in parallel; do not combine tasks with ordering or dependency relationships.
|
|
36
|
-
- When generating multiple handoffs, choose the eligible set of up to N tasks that minimizes overlap in files or modules they are likely to modify. Use the task scopes and file/module references in project notes and task entries to estimate overlap.
|
|
37
|
-
- Do not mention branch or worktree details.
|
|
19
|
+
Do not restate referenced content, reminders to read root instructions, general development or testing guidance, or skill-internal procedures and report formats. Do not omit important decisions or constraints for brevity. Do not include branch or worktree details.
|
|
@@ -9,7 +9,8 @@ Review the tests read-only. Use the user's target or the change being discussed;
|
|
|
9
9
|
AI-generated tests can overcomplicate simple problems. First question whether a test is needed at all; judge its independent protection against maintenance and execution cost, not test count or coverage percentage.
|
|
10
10
|
|
|
11
11
|
- Any low-value, duplicate, implementation-shaped, tautological, obsolete, or one-off tests—including those that only recheck documented dependency guarantees—that can be removed or combined? Any hypothetical concurrency, timing, retry, or failure scenarios without a credible execution path or meaningful impact?
|
|
12
|
-
- Any
|
|
12
|
+
- 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. Do not preserve incidental test behavior merely because it exists.
|
|
13
|
+
- Any important behavior, edge case, or material failure risk left unprotected by existing or new tests? Would the tests fail if that behavior broke? Could an existing case or suite be extended to cover the gap clearly? Recommend a separate test only when it gives clearer protection for a distinct behavior or regression risk.
|
|
13
14
|
- Any unnecessary setup, mocks, fixtures, assertions, or production interfaces added for testing? Could existing public entrypoints, real collaboration, or simpler cases give clearer protection? Keep narrower tests only when they add distinct value.
|
|
14
15
|
|
|
15
16
|
Apply these criteria where relevant:
|
package/package.json
CHANGED
|
@@ -25,6 +25,8 @@ When the audience is unclear, write for a technically capable teammate who knows
|
|
|
25
25
|
|
|
26
26
|
## Language
|
|
27
27
|
|
|
28
|
+
Follow ISO 24495-1:2023 Plain Language principles.
|
|
29
|
+
|
|
28
30
|
Preserve technical precision and use domain terminology when useful. This does not require explaining every repository convention, avoiding technical language, or writing for a complete beginner.
|
|
29
31
|
|
|
30
32
|
Prefer direct, literal statements to mannered metaphor or flourish. When a literal phrase is available, use it instead of making readers decode language that mainly performs the writer or introduces unintended connotations.
|
|
@@ -6,6 +6,8 @@ disable-model-invocation: true
|
|
|
6
6
|
|
|
7
7
|
Read the request, target skill, and nearby conventions. Ask only when a missing decision would change behavior. Write `SKILL.md` in the requested location or the repository's skill structure.
|
|
8
8
|
|
|
9
|
+
Write skill instructions using ISO 24495-1:2023 Plain Language principles.
|
|
10
|
+
|
|
9
11
|
Put activation in the frontmatter description and the main action first in the body. Keep every detail that changes the result; remove everything that does not. Preserve required inputs, outputs, constraints, and edge cases. Prefer a direct instruction or an `Any ...?` question over a procedure. Keep examples or references only when they resolve ambiguity. Do not add invented requirements, mandatory logs, checklists, or diagrams.
|
|
10
12
|
|
|
11
13
|
Prefer established terms of art that activate a precise mental model over enumerating its familiar mechanics. Keep the applicability condition and observable result explicit; expand a term only where ambiguity would change behavior. Avoid invented jargon and strings of labels without an action.
|