@remixhq/claude-plugin 0.1.17 → 0.1.18
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/.claude-plugin/plugin.json +1 -1
- package/agents/remix-collab.md +9 -4
- package/dist/hook-post-collab.cjs +18 -62
- package/dist/hook-post-collab.cjs.map +1 -1
- package/dist/hook-pre-git.cjs +19 -13
- package/dist/hook-pre-git.cjs.map +1 -1
- package/dist/hook-stop-collab.cjs +1343 -1674
- package/dist/hook-stop-collab.cjs.map +1 -1
- package/dist/hook-user-prompt.cjs +33174 -153
- package/dist/hook-user-prompt.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.cjs +2682 -1498
- package/dist/mcp-server.cjs.map +1 -1
- package/package.json +3 -3
- package/skills/identity-and-scope-routing/SKILL.md +1 -0
- package/skills/review-merge-request/SKILL.md +5 -3
- package/skills/safe-collab-workflow/SKILL.md +8 -5
- package/skills/submit-change-step/SKILL.md +15 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remixhq/claude-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Claude Code plugin for Remix collaboration workflows",
|
|
5
5
|
"homepage": "https://github.com/RemixDotOne/remix-claude-plugin",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"prepack": "npm run build"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@remixhq/core": "^0.1.
|
|
35
|
-
"@remixhq/mcp": "^0.1.
|
|
34
|
+
"@remixhq/core": "^0.1.13",
|
|
35
|
+
"@remixhq/mcp": "^0.1.13"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^25.4.0",
|
|
@@ -28,6 +28,7 @@ Recommended sequence:
|
|
|
28
28
|
Important rules:
|
|
29
29
|
|
|
30
30
|
- In a bound repo, treat the app as the default anchor for scope reasoning.
|
|
31
|
+
- When the user asks for an app dashboard URL and the `appId` is known, answer with `https://dashboard.remix.one/apps/<appId>`.
|
|
31
32
|
- Do not assume the bound app's project or organization is readable just because the app is readable.
|
|
32
33
|
- Treat warnings on cwd-derived results as meaningful partial context, not as failure.
|
|
33
34
|
- If cwd inference cannot safely resolve a broader scope, prefer the app-level answer and explain the boundary.
|
|
@@ -19,17 +19,19 @@ Recommended sequence:
|
|
|
19
19
|
- `app_outgoing` for requests opened from this app
|
|
20
20
|
- `app_related_visible` for all open visible requests where this app is source or target
|
|
21
21
|
2. Use `remix_collab_view_merge_request` to inspect the request.
|
|
22
|
-
3.
|
|
23
|
-
4.
|
|
22
|
+
3. If the current repo reports `await_finalize`, use `remix_collab_drain_finalize_queue`, then re-check `remix_collab_status` before request-merge or target-mutating approval flows.
|
|
23
|
+
4. Request bounded diff output first. Only request a larger diff if needed to answer the review task accurately.
|
|
24
|
+
5. If approval is requested:
|
|
24
25
|
- use `remix_collab_approve_remote` when local target repo sync is not needed
|
|
25
26
|
- use `remix_collab_approve_and_sync_target` only when you are in the correct target repo context and the user wants local sync too
|
|
26
|
-
|
|
27
|
+
6. Use `remix_collab_reject` when the correct outcome is rejection.
|
|
27
28
|
|
|
28
29
|
Important rules:
|
|
29
30
|
|
|
30
31
|
- In a bound repo, use Remix review tools as the default path for MR handling.
|
|
31
32
|
- Choose an explicit queue instead of treating merge requests as one broad inbox.
|
|
32
33
|
- Do not treat raw `git merge` as the way Remix merge requests are approved or applied.
|
|
34
|
+
- Do not assume a successful `remix_collab_finalize_turn` already created a remote change step; drain and re-check when status reports `await_finalize`.
|
|
33
35
|
- If approval would mutate the local target repo, explain that before applying it.
|
|
34
36
|
- If the repo context is unclear, stay in remote-only review mode until the target repo is confirmed.
|
|
35
37
|
- Before the final response, use `remix_collab_finalize_turn` to record the completed review turn.
|
|
@@ -14,6 +14,7 @@ Canonical rules:
|
|
|
14
14
|
- Historical intent questions go to Remix memory before raw git history.
|
|
15
15
|
- Raw git mutation is not the normal collaboration path in a bound repo.
|
|
16
16
|
- Before the final response, you must record exactly one completed turn with `remix_collab_finalize_turn`.
|
|
17
|
+
- `remix_collab_finalize_turn` is queued only. It captures the local boundary first; a remote change step does not exist yet until the finalize queue drains.
|
|
17
18
|
- The recording call must include the exact user prompt and your final assistant response.
|
|
18
19
|
- Do not finish the response before recording the completed turn.
|
|
19
20
|
- Prefer preview tools before apply tools whenever both exist.
|
|
@@ -28,14 +29,15 @@ Follow this order:
|
|
|
28
29
|
3. Prefer preview tools before apply tools:
|
|
29
30
|
- `remix_collab_sync_preview` before `remix_collab_sync_apply`
|
|
30
31
|
- `remix_collab_reconcile_preview` before `remix_collab_reconcile_apply`
|
|
31
|
-
4.
|
|
32
|
-
5.
|
|
32
|
+
4. If status reports `await_finalize`, use `remix_collab_drain_finalize_queue`, then re-check `remix_collab_status` before merge-related or recovery flows.
|
|
33
|
+
5. Prefer Remix merge request tools over raw git merge flows for collaboration review work.
|
|
34
|
+
6. When you need historical context, hidden intent, failed attempts, merge/reconcile lineage, or pre-change risk context, check Remix memory before falling back to broader repo exploration:
|
|
33
35
|
- `remix_collab_memory_summary`
|
|
34
36
|
- `remix_collab_memory_search`
|
|
35
37
|
- `remix_collab_memory_timeline`
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
7. Only call `remix_collab_memory_change_step_diff` after you already have a specific `changeStepId`.
|
|
39
|
+
8. Use raw git history only after Remix memory has narrowed the relevant change, or when the user explicitly asks for exact commit, blame, ancestry, or patch-level detail.
|
|
40
|
+
9. Before the final response, call `remix_collab_finalize_turn`.
|
|
39
41
|
|
|
40
42
|
After switching branches:
|
|
41
43
|
|
|
@@ -51,6 +53,7 @@ Important rules:
|
|
|
51
53
|
- In a bound repo, do not use raw git `commit`, `push`, `pull`, `merge`, `rebase`, or `reset` for ordinary Remix collaboration work.
|
|
52
54
|
- In a bound repo, do not start why/history/failed-attempt questions with raw git `log`, `show`, `blame`, or `diff`; start with Remix memory reads instead.
|
|
53
55
|
- In a bound repo, do not finish the response before recording the completed turn yourself.
|
|
56
|
+
- Do not treat a successful `remix_collab_finalize_turn` call as proof that the turn is already available for merge-request or remote-history workflows. Drain and re-check when status reports `await_finalize`.
|
|
54
57
|
- After the final recording call, avoid further repo mutations unless you intend to record another final turn.
|
|
55
58
|
- Use raw git reads only when the task is clearly about exact repository facts or a separate GitHub-only branch workflow rather than Remix state.
|
|
56
59
|
- When viewing merge requests, request bounded diff output first and only ask for more detail if needed.
|
|
@@ -1,32 +1,31 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
3
|
-
description: Use when code edits are complete in a Remix-bound repo and the
|
|
2
|
+
name: finalize-turn-workflow
|
|
3
|
+
description: Use when code edits or review work are complete in a Remix-bound repo and the turn should be recorded with `remix_collab_finalize_turn`.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# Finalize A Remix Turn
|
|
7
7
|
|
|
8
|
-
Use this skill after edits are complete and the task should be captured as the final recorded turn in a Remix-bound repo.
|
|
8
|
+
Use this skill after edits or review work are complete and the task should be captured as the final recorded turn in a Remix-bound repo.
|
|
9
9
|
|
|
10
|
-
This skill is specifically about
|
|
10
|
+
This skill is specifically about the queued-finalize model behind `remix_collab_finalize_turn`.
|
|
11
11
|
|
|
12
12
|
Workflow:
|
|
13
13
|
|
|
14
14
|
1. Run `remix_collab_status` first to confirm the repo is bound and inspect current warnings.
|
|
15
|
-
2.
|
|
16
|
-
3.
|
|
17
|
-
4.
|
|
15
|
+
2. If status recommends `await_finalize`, do not record again and do not request a merge yet. Use `remix_collab_drain_finalize_queue`, then re-check `remix_collab_status`.
|
|
16
|
+
3. When the repo is ready, use `remix_collab_finalize_turn` before the final response, with the exact user prompt and your final assistant response.
|
|
17
|
+
4. Treat `remix_collab_finalize_turn` as capturing the local workspace boundary and queueing remote processing, not as immediate proof that a remote change step already exists.
|
|
18
18
|
|
|
19
19
|
Important behavior:
|
|
20
20
|
|
|
21
21
|
- `remix_collab_finalize_turn` is the authoritative recording path for completed work instead of raw git commit or push.
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
- Surface these side effects clearly to the user when they matter.
|
|
22
|
+
- `remix_collab_finalize_turn` is queued only. A remote change step does not exist yet until the finalize queue drains successfully.
|
|
23
|
+
- A successful finalize call means local capture and queueing succeeded. It does not mean merge-request or remote-history workflows can assume the turn is already materialized remotely.
|
|
24
|
+
- If `remix_collab_status` reports `await_finalize`, use `remix_collab_drain_finalize_queue` and re-check status before merge-related or recovery flows.
|
|
26
25
|
- If the user wants to understand current repo state before recording, re-run `remix_collab_status`.
|
|
27
26
|
- Do not make further repo mutations after the final recording call unless you intend to record another completed turn.
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
- If the
|
|
27
|
+
- Do not retry finalize immediately just because a remote record is not visible yet; queue drain is the next step, not a second finalize.
|
|
28
|
+
- If finalize or drain returns `recommendedNextActions` or an `error.hint`, treat those as authoritative and lead with `remix_collab_status` before broader recovery work.
|
|
29
|
+
- If the tool surfaces a preserved local recovery artifact, mention it explicitly and keep it available while you repair repo state.
|
|
31
30
|
|
|
32
|
-
Use
|
|
31
|
+
Use the live worktree as the source of truth for finalized work. If the repo is not ready, fix the preflight state first rather than trying to bypass it.
|