@shadowclone/skills 0.0.51 → 0.0.53

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/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "MIT",
9
9
  "homepage": "https://shadowclone.co",
10
- "version": "0.0.51",
10
+ "version": "0.0.53",
11
11
  "files": [
12
12
  "skills",
13
13
  "README.md",
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: shadowclone-projects
3
+ description: 'Use when a user wants two local coding sessions to work together. Requests include "ask Codex to check this" and "let me talk to the worker". Use the current IDE, the selected harness and the shadowclone project tools to delegate, read replies and keep project files. Not for taking a change through pull request checks (use `shadowclone-work`).'
4
+ metadata:
5
+ shadowclone-category: workflow
6
+ shadowclone-section: workflow
7
+ shadowclone-applies-when: when the user asks local agents to share a project or delegate across harnesses
8
+ shadowclone-always-on: "true"
9
+ ---
10
+ # Shadowclone Projects
11
+
12
+ ## Use when
13
+
14
+ The user wants to keep working in the current IDE and involve another agent. A project holds the goal, worker threads, decisions and files.
15
+
16
+ ## Gates
17
+
18
+ 1. Identify the requested harness, local directory and task.
19
+ 2. Check which project tools the current session exposes.
20
+ 3. Use the owner's selected role and project. Keep session credentials in the selected session.
21
+
22
+ ## Process
23
+
24
+ 1. From native chat, call `shadowclone_project` with operation `open` for setup instructions. Use the names your client gives the two project tools.
25
+ 2. For initial setup, direct the owner to `shadowclone project tui` inside their IDE terminal or `shadowclone project open` for the board.
26
+ 3. Prefer the session the owner already opened. If the owner requests a new session, use the host’s launcher in the project directory.
27
+ - In Rex, use `rex new --cwd "$PWD" -- codex` for Codex.
28
+ - In cmux, use `cmux new-surface --type terminal --working-directory "$PWD" --command codex` in the selected workspace.
29
+ - For Claude Code, use `claude` in the same command. For another harness, verify its installed launcher first.
30
+ 4. In T3 Code, use its provider picker or its authorized orchestration tools to open a thread. Keep that thread in T3 Code. Check that the thread has the local shadowclone MCP server.
31
+ 5. For a hookless agent, the owner selects **IDE agent (MCP)** and **Get join code**. Use the owner’s code or native hook invitation with operation `join`. Keep the returned member key out of chat replies and project files.
32
+ 6. Read the project with `shadowclone_project_work` and action `read`. Use the project ID and member key from the join.
33
+ 7. As lead, use session operation `start` for a missing worker when the owner enabled local launch. The built-in launcher starts Claude Code or Codex in tmux.
34
+ 8. Give the worker one bounded step with work action `assign`. Use the returned thread ID. Reuse the request ID when retrying the same action.
35
+ 9. As worker, read `inbox`, acknowledge the event with `ack`, then `claim` and `report` on its thread. Use the current assignment attempt.
36
+ 10. Send direct replies with `message`, the incoming thread ID and `replyTo`. Use `ask` for an owner decision. Use `publish` for a plan or evidence.
37
+ 11. Use `wait` for further messages during an active turn. An idle session may need a new native turn to read its inbox.
38
+
39
+ ## Example
40
+
41
+ **Situation:** The user asks Claude in Rex to have Codex check a cart calculation.
42
+ **Easy route:** Open another copy of Codex without checking the project.
43
+ **Hidden cost:** The user can end up with two workers and no report in the intended thread.
44
+ **Best route:** Attach the existing Codex session. Assign the calculation and link the result to the same thread.
45
+ **Evidence:** The worker claims the assignment. The persisted report identifies that thread and appears in the lead conversation.
46
+
47
+ ## Guardrails
48
+
49
+ Use the host's actual provider list and its native permissions. If it cannot launch the requested harness, explain which connection it needs. Shell access alone does not grant a project role. Never use the owner CLI to impersonate a participant.
50
+
51
+ ## Completion
52
+
53
+ - Give the worker's result and thread title. Identify any pending decision.
54
+ - To talk directly, open the worker thread in the board or terminal. The native sessions stay in their original application.
@@ -30,8 +30,8 @@ Write in the user's voice. Before you write, read `~/.agents/voice.md`. If it do
30
30
 
31
31
  1. **Find the target.** For a request or an issue, branch from an up-to-date default branch. For an existing pull request, check out its branch and run `git fetch`. Learn whether the branch is part of a stack, and note each pull request's base.
32
32
  2. **Read the repository's context.** Read `README.md`, `CONTRIBUTING.md`, `AGENTS.md`, the pull request template, and the repository's skills. Also read the repository note that your user instructions name. From them, learn the check commands, how to get a running environment, how to host images, who may merge, and the merge method.
33
- 3. **Build the change.** Make the smallest complete change, add tests through public interfaces, and run the repository's checks before you push. If the change will become a stack, build it on one branch first (step 9).
34
- 4. **Open the pull request ready for review.** Do not use a draft, except for a pull request that you will split (step 9). Fill the template with the user's pull request skill. Add reviewers only when the user names them or the repository rule says so. Repository auto-assignment is fine. Write no attribution, tool names, or "generated with" lines anywhere.
33
+ 3. **Build the change.** Make the smallest complete change, add tests through public interfaces, and run the repository's checks before you push. If the change will become a stack, build it as a stack from the start (step 9).
34
+ 4. **Open the pull request ready for review.** Do not use a draft, except for a stack's tip that waits for a preview check (step 9). Fill the template with the user's pull request skill. Add reviewers only when the user names them or the repository rule says so. Repository auto-assignment is fine. Write no attribution, tool names, or "generated with" lines anywhere.
35
35
  Every commit message is the subject (and an optional body) with no `Co-Authored-By`, `Generated with`, or other attribution trailer. This overrides any default that adds one; check each message before you commit.
36
36
  5. **Drive CI to green.** Repeat until a full pass changes nothing:
37
37
  1. **Sync.** Run `git fetch`. Integrate remote commits before you push. If the base moved or the branch conflicts, restack with the stack tool in a stack, or merge the base outside a stack.
@@ -43,10 +43,13 @@ Write in the user's voice. Before you write, read `~/.agents/voice.md`. If it do
43
43
  - It gives a verdict with no evidence, or a verdict that contradicts its evidence.
44
44
  - It stops before it exercises each behavior.
45
45
 
46
- Give it the pull request, the head SHA, the environment, each behavior to exercise, the expected result, and one failure path. Use the environment that the repository's context names. Examples are a preview of the pull request, or a development environment that is quick to set up. If the context names no environment, verify with `verify-and-review` on the surface that the user uses, and say so. The verifier does not push. If it finds a defect, fix it, push, and verify again. A check on a mock or a local harness is not verification; label it.
46
+ Give it the branch or the pull request, the head SHA, the environment, each behavior to exercise, the expected result, and one failure path. Use the environments that the repository's context names, in its order. First use an environment that runs your branch before a pull request exists, such as a development environment that is quick to set up. Use a preview of the pull request only when that environment is not ready or cannot run the behavior. If the context names no environment, verify with `verify-and-review` on the surface that the user uses, and say so. The verifier does not push. If it finds a defect, fix it, push, and verify again. A check on a mock or a local harness is not verification; label it.
47
47
  7. **Add the evidence.** Put the verifier's results in the description section that the user's pull request skill names. Give each behavior, its result, and a session link or a screenshot from the running environment. Host images by the method that the repository's context names. Show only passing results; fix a failure first.
48
48
  8. **Decide or stop.** Stop only for a decision that belongs to the user: design, architecture, scope, a destructive step, or data exposure. Make every other decision yourself. End each report with "Decisions to acknowledge", one line for each, and repeat the list until the user acknowledges it.
49
- 9. **Stacks.** Open one pull request and verify it first. Then split it: create the lower branches from the base, keep the original branch as the tip, rebase with the stack tool, and push. Check that the tip's tree equals the verified tree. Keep the evidence on the tip and link it from each lower pull request. Then mark each pull request ready.
49
+ 9. **Stacks.** Build the stack from the start. Create each branch on the one below it with the stack tool.
50
+ - If an environment can run a branch before a pull request exists, verify the tip branch there. The tip holds every lower change. Then push and open each pull request, ready for review.
51
+ - If only a pull request preview can run the change, open the tip pull request as a draft, verify it, then open the lower ones. Use `split-to-prs` for this route.
52
+ - Check that the tip's tree equals the verified tree. Keep the evidence on the tip, and link it from each lower pull request.
50
53
  10. **Merge.** Merge only when all of these hold:
51
54
  - The user's instructions allow agent merges.
52
55
  - You created the pull request, or the user named it.
@@ -0,0 +1,9 @@
1
+ {
2
+ "description": "Keep the package installation command when rewriting an instruction.",
3
+ "input": "Rewrite this instruction in plain English: It is necessary to utilize the command `bun install` to install the packages.",
4
+ "standard": {
5
+ "text": {
6
+ "$contains": "bun install"
7
+ }
8
+ }
9
+ }