@remixhq/claude-plugin 0.1.12 → 0.1.15

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remixhq/claude-plugin",
3
- "version": "0.1.12",
3
+ "version": "0.1.15",
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.8",
35
- "@remixhq/mcp": "^0.1.8"
34
+ "@remixhq/core": "^0.1.10",
35
+ "@remixhq/mcp": "^0.1.10"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^25.4.0",
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: access-troubleshooting
3
+ description: Use when debugging Remix access, missing visibility, membership confusion, cwd-derived scope issues, or why a user can read an app but not its project or organization.
4
+ ---
5
+
6
+ # Access Troubleshooting
7
+
8
+ Use this skill when the question is why access works, fails, or only partially works in Remix.
9
+
10
+ This skill is about access diagnosis, not the full collaboration workflow.
11
+
12
+ Mental model:
13
+
14
+ - App visibility is not the same thing as project or organization visibility.
15
+ - A readable app can still have an unreadable project or organization.
16
+ - Partial success with warnings is often the correct outcome for app-scoped diagnostics.
17
+
18
+ Recommended sequence:
19
+
20
+ 1. Start with `remix_access_debug`.
21
+ 2. In a bound repo, prefer `scope=app` first unless the user explicitly asked about project or organization access.
22
+ 3. Use `access.appContext` and `access.effectiveAppAccess` to explain:
23
+ - how the app is visible,
24
+ - whether access is direct app membership or inherited project membership,
25
+ - whether project or organization context is intentionally unreadable.
26
+ 4. Only use project or organization scope when the question is explicitly about those scopes, or when an explicit id is provided.
27
+ 5. Use invite and member tools only after the scope is clear and the access path has been explained.
28
+
29
+ Important rules:
30
+
31
+ - Do not assume app visibility implies project visibility.
32
+ - Do not treat unreadable project or organization context from an app-readable repo as a broken state by default.
33
+ - Do not start access debugging from a bound repo with project or organization tools first.
34
+ - If `scope=app` succeeds with warnings, use those warnings as part of the explanation rather than escalating immediately.
35
+ - If explicit project or organization scope fails, report that as a real boundary for that scope, not as an app-level failure.
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: app-ops-triage
3
+ description: Use when inspecting Remix app health, recent activity, queue state, sandbox status, or operational context before deciding whether deeper debugging is needed.
4
+ ---
5
+
6
+ # App Ops Triage
7
+
8
+ Use this skill when the user is asking what is happening with a Remix app right now.
9
+
10
+ This skill is for operational inspection order, not access diagnosis or collaboration mutation.
11
+
12
+ Recommended sequence:
13
+
14
+ 1. Start with `remix_context_get_app_overview`.
15
+ 2. Use `remix_ops_list_timeline` for recent bounded activity and event discovery.
16
+ 3. Use `remix_ops_list_agent_runs` when you need to discover recent run ids for the app.
17
+ 4. Use `remix_ops_get_edit_queue` to inspect pending or empty edit work.
18
+ 5. Use `remix_ops_get_sandbox_status` to inspect sandbox existence, resumability, and latest migration status.
19
+ 6. Only use:
20
+ - `remix_ops_get_agent_run`
21
+ - `remix_ops_list_agent_run_events`
22
+ after a concrete `runId` has already been discovered from overview, timeline, `remix_ops_list_agent_runs`, or another returned object.
23
+
24
+ Important rules:
25
+
26
+ - Start broad, then drill down.
27
+ - Do not start with agent-run detail tools unless a run id is already known or has just been discovered through `remix_ops_list_agent_runs`.
28
+ - Treat empty queues, absent runs, or no recent events as meaningful states rather than tool failure.
29
+ - If overview and timeline do not surface a run id, use `remix_ops_list_agent_runs` before concluding that run-level inspection is unavailable.
30
+ - If no run id can be discovered from the available ops tools, treat that as a current MCP-surface limitation and say so plainly instead of implying the app is broken.
31
+ - Prefer explaining the operational picture first, then expanding into one subsystem only if the evidence points there.
32
+ - When cwd is available in a bound repo, use the bound app as the default target unless the user explicitly provides another id.
@@ -7,6 +7,8 @@ description: Use when the user asks why something changed, what happened before,
7
7
 
8
8
  In a Remix-bound repo, treat Remix memory as the first stop for historical reasoning.
9
9
 
10
+ This skill is specifically about historical lookup order, not the full collaboration workflow.
11
+
10
12
  Use this skill when the user is asking about:
11
13
 
12
14
  - why something changed
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: identity-and-scope-routing
3
+ description: Use when the user asks who they are in Remix, what scope a bound repo maps to, which organization, project, or app is relevant, or when cwd-derived scope must be interpreted safely.
4
+ ---
5
+
6
+ # Identity And Scope Routing
7
+
8
+ Use this skill when identity, cwd context, or directory routing is the main question.
9
+
10
+ This skill is about scope interpretation, not collaboration mutation.
11
+
12
+ Recommended sequence:
13
+
14
+ 1. When cwd matters, start with `remix_identity_whoami`.
15
+ 2. If the question is about the bound repo, ground on the bound app first with:
16
+ - `remix_identity_whoami`
17
+ - `remix_directory_get_app`
18
+ - `remix_context_get_app_overview` when operational context helps
19
+ 3. Use project or organization reads only when:
20
+ - the user explicitly asked for those scopes,
21
+ - an explicit id was provided,
22
+ - or app-grounded context shows those broader scopes are readable and relevant.
23
+ 4. When the user asks about a scope outside the current repo context, prefer explicit ids over cwd inference.
24
+ 5. When listing apps, prefer scoped or ownership-aware discovery before broad readable discovery:
25
+ - prefer `organizationId` or `projectId` when the relevant tenant scope is known,
26
+ - otherwise use `ownership` and `accessScope="explicit_member"` when the user means “apps I can actually work on.”
27
+
28
+ Important rules:
29
+
30
+ - In a bound repo, treat the app as the default anchor for scope reasoning.
31
+ - Do not assume the bound app's project or organization is readable just because the app is readable.
32
+ - Treat warnings on cwd-derived results as meaningful partial context, not as failure.
33
+ - If cwd inference cannot safely resolve a broader scope, prefer the app-level answer and explain the boundary.
34
+ - Use explicit ids when switching from "what is this repo?" to "tell me about that other org/project/app".
35
+ - Do not default to broad unscoped app listing when the task is work-oriented; reserve `accessScope="all_readable"` for explicit public or broad readable discovery.
@@ -23,9 +23,12 @@ Recommended sequence:
23
23
 
24
24
  1. If the current repo may already be bound, use `remix_collab_status` first.
25
25
  2. If the task is about the current local repo and it is unbound, prefer `remix_collab_init`.
26
- 3. If the task starts from an existing app id and the user wants a new fork, prefer `remix_collab_remix`.
27
- 4. If the task starts from an existing app id and the user wants the same app id locally, prefer `remix_collab_checkout`.
28
- 5. After init, remix, or checkout, use `remix_collab_status` in the resulting repo to inspect readiness.
26
+ 3. If the user needs help choosing an app id, prefer scoped discovery first:
27
+ - use `remix_directory_list_apps` with an explicit `organizationId` or `projectId` when the relevant scope is known,
28
+ - otherwise prefer `ownership` and `accessScope="explicit_member"` so discovery stays work-oriented instead of pulling in public readable apps by default.
29
+ 4. If the task starts from an existing app id and the user wants a new fork, prefer `remix_collab_remix`.
30
+ 5. If the task starts from an existing app id and the user wants the same app id locally, prefer `remix_collab_checkout`.
31
+ 6. After init, remix, or checkout, use `remix_collab_status` in the resulting repo to inspect readiness.
29
32
 
30
33
  Important note:
31
34
 
@@ -34,6 +37,8 @@ Important note:
34
37
  - `remix_collab_remix` creates a new bound checkout in a newly created directory under the provided or current working directory.
35
38
  - `remix_collab_checkout` creates a new bound checkout for the exact existing app id without creating a new fork.
36
39
  - Do not treat remix as binding the current repository in place.
40
+ - When app discovery is only about \"what can I actually work on?\", prefer membership-oriented listing (`accessScope=\"explicit_member\"`) over broad readable discovery.
41
+ - Use broad readable discovery only when the user explicitly wants public catalog-style exploration.
37
42
  - If the user wants to start from an existing Remix app lineage with a new fork, use `remix_collab_remix`.
38
43
  - If the user wants to continue work on the same existing app id, use `remix_collab_checkout`.
39
- - After init, remix, or checkout, the bound repo is eligible for automatic end-of-response turn recording in this plugin setup.
44
+ - After init, remix, or checkout, run `remix_collab_status` in the resulting repo and then follow the normal bound-repo workflow there.
@@ -32,4 +32,4 @@ Important rules:
32
32
  - Do not treat raw `git merge` as the way Remix merge requests are approved or applied.
33
33
  - If approval would mutate the local target repo, explain that before applying it.
34
34
  - If the repo context is unclear, stay in remote-only review mode until the target repo is confirmed.
35
- - Review-only turns with no repository diff should be captured by `remix_collab_record_turn`, not by `remix_collab_add`.
35
+ - Before the final response, use `remix_collab_finalize_turn` to record the completed review turn.
@@ -7,23 +7,16 @@ description: Use when working in a repo that may be bound to Remix, especially f
7
7
 
8
8
  In a Remix-bound repo, treat Remix MCP tools as the authoritative workflow layer for collaboration state and historical reasoning.
9
9
 
10
- For normal Remix collaboration:
10
+ Canonical rules:
11
11
 
12
- - use sync or reconcile tools to align local state with Remix,
13
- - use merge request tools for review and approval flows,
14
- - use memory summary/search/timeline tools when historical context is needed before broader repo inspection,
15
- - use the explicit change-step diff tool only after identifying a relevant `changeStepId`,
16
- - let the installed hook handle automatic per-turn recording.
17
-
18
- In this plugin setup, turn recording is automatic at the end of each completed assistant response in a bound repo:
19
-
20
- - changed turn => `remix_collab_add`
21
- - no-diff turn => `remix_collab_record_turn`
22
-
23
- Normal rule:
24
-
25
- - do not proactively call `remix_collab_add` or `remix_collab_record_turn` during ordinary work
26
- - use those tools manually only for explicit user intent, operational recovery, backfills, or debugging
12
+ - In a bound repo, Remix tools are the required workflow layer for collaboration work.
13
+ - Historical intent questions go to Remix memory before raw git history.
14
+ - Raw git mutation is not the normal collaboration path in a bound repo.
15
+ - Before the final response, you must record exactly one completed turn with `remix_collab_finalize_turn`.
16
+ - The recording call must include the exact user prompt and your final assistant response.
17
+ - Do not finish the response before recording the completed turn.
18
+ - Prefer preview tools before apply tools whenever both exist.
19
+ - Treat reconcile as high risk and use it only when sync is unavailable and clearly required.
27
20
 
28
21
  Raw git mutation commands must not be used for ordinary bound-repo collaboration work. Raw git reads are reserved for exact repository facts, not for normal collaboration-state or historical-reasoning flows.
29
22
 
@@ -34,21 +27,22 @@ Follow this order:
34
27
  3. Prefer preview tools before apply tools:
35
28
  - `remix_collab_sync_preview` before `remix_collab_sync_apply`
36
29
  - `remix_collab_reconcile_preview` before `remix_collab_reconcile_apply`
37
- 4. Treat reconcile as high risk and only use it when sync is unavailable and clearly required.
38
- 5. Prefer Remix merge request tools over raw git merge flows for collaboration review work.
39
- 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:
30
+ 4. Prefer Remix merge request tools over raw git merge flows for collaboration review work.
31
+ 5. 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:
40
32
  - `remix_collab_memory_summary`
41
33
  - `remix_collab_memory_search`
42
34
  - `remix_collab_memory_timeline`
35
+ 6. Only call `remix_collab_memory_change_step_diff` after you already have a specific `changeStepId`.
43
36
  7. 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.
44
- 8. Only call `remix_collab_memory_change_step_diff` after you already have a specific `changeStepId`.
37
+ 8. Before the final response, call `remix_collab_finalize_turn`.
45
38
 
46
39
  Important rules:
47
40
 
48
41
  - If the repo is unbound, use `remix_collab_init` for the current repo, `remix_collab_remix` for a new fork from an existing app lineage, or `remix_collab_checkout` to materialize an existing app as-is.
49
42
  - In a bound repo, do not use raw git `commit`, `push`, `pull`, `merge`, `rebase`, or `reset` for ordinary Remix collaboration work.
50
43
  - 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.
51
- - Do not manually fire per-turn recording calls during ordinary work. The end-of-response hook records one turn once per completed assistant response.
44
+ - In a bound repo, do not finish the response before recording the completed turn yourself.
45
+ - After the final recording call, avoid further repo mutations unless you intend to record another final turn.
52
46
  - 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.
53
47
  - When viewing merge requests, request bounded diff output first and only ask for more detail if needed.
54
48
  - For merge-request listing, choose the explicit queue that matches the intent: `remix_collab_review_queue`, `remix_collab_my_merge_requests`, or `remix_collab_list_app_merge_requests` with required `queue` set to `app_reviewable`, `app_outgoing`, or `app_related_visible`.
@@ -5,36 +5,28 @@ description: Use when code edits are complete in a Remix-bound repo and the work
5
5
 
6
6
  # Submit Remix Change Step
7
7
 
8
- Use this skill after edits are complete and the task should be captured as a Remix collaboration step.
8
+ Use this skill after edits are complete and the task should be captured as the final recorded turn in a Remix-bound repo.
9
9
 
10
- In a Remix-bound repo, `remix_collab_add` is the authoritative Remix recording path for completed work instead of raw git commit or push.
11
- If the tool list is ambiguous, prefer the clearer alias `remix_collab_add_change_step` for manually recording a code-diff change step.
12
- It creates the next commit on the Remix side from the submitted diff, then syncs the local repo to that new commit when auto-sync succeeds.
13
-
14
- In this plugin setup, the preferred default is automatic end-of-response recording:
15
-
16
- - if the completed assistant response produced a repo diff, the hook records exactly one `remix_collab_add`
17
- - if the completed assistant response produced no repo diff, the hook records one `remix_collab_record_turn` instead
10
+ This skill is specifically about what `remix_collab_finalize_turn` needs to record the completed work correctly.
18
11
 
19
12
  Workflow:
20
13
 
21
14
  1. Run `remix_collab_status` first to confirm the repo is bound and inspect current warnings.
22
- 2. If the repo is not bound, stop and ask whether to initialize with `remix_collab_init`.
23
- 3. Do not proactively call `remix_collab_add` during ordinary work.
24
- 4. Only use `remix_collab_add` when the user explicitly asks for a manual recording step, or when doing operational recovery, backfills, or debugging.
15
+ 2. Use `remix_collab_finalize_turn` before the final response, with the exact user prompt and your final assistant response.
16
+ 3. Let `remix_collab_finalize_turn` choose the changed-turn path from the live worktree by default.
17
+ 4. Provide an explicit external diff only when the task requires recording a diff that is not present in the current worktree.
25
18
 
26
19
  Important behavior:
27
20
 
28
- - `remix_collab_add` defaults to auto-sync behavior in this Remix setup.
29
- - `remix_collab_record_turn` is for no-diff prompt/response history only and should not be used when the worktree has code changes.
30
- - During ordinary work, the hook is the normal automatic path for changed-turn recording.
31
- - In the automatic hook path, the `remix_collab_add` prompt is the exact user prompt for that completed turn.
32
- - The automatic hook may also attach the final assistant response so changed turns and no-diff turns share the same prompt/response chronology.
33
- - Do not use raw `git commit` or `git push` as collaboration-recording steps in a bound repo.
34
- - If automatic recording cannot complete safely, recover through Remix status, sync, reconcile, and manual recording flows rather than local git mutation.
21
+ - `remix_collab_finalize_turn` is the authoritative recording path for completed work instead of raw git commit or push.
35
22
  - When the diff comes from the live worktree, Remix may discard tracked changes and captured untracked paths locally as part of auto-sync.
23
+ - When the diff comes from an external source, automatic local discard+sync is skipped because the external diff may not match the current worktree.
36
24
  - The resulting git commit is created on the Remix side first and appears in the local repo after sync or auto-sync.
37
25
  - Surface these side effects clearly to the user when they matter.
38
26
  - If the user wants to understand current repo state before recording, re-run `remix_collab_status`.
27
+ - Do not make further repo mutations after the final recording call unless you intend to record another completed turn.
28
+ - If `remix_collab_finalize_turn` reports that the change step succeeded remotely but local sync failed, do not retry finalize immediately.
29
+ - In that recovery case, treat the tool's `recommendedNextActions` and `error.hint` as authoritative, starting with `remix_collab_status`, then `remix_collab_sync_preview`, then `remix_collab_sync_apply` when appropriate.
30
+ - If the error surfaces a preserved diff backup path, mention it explicitly and preserve it as the fallback recovery artifact while you repair local sync state.
39
31
 
40
32
  Use external diff input only when the task explicitly requires it. Otherwise prefer the current worktree.
@@ -7,12 +7,14 @@ description: Use when a Remix-bound repo needs to be aligned with remote app sta
7
7
 
8
8
  Use this skill when the user asks to sync, update, or recover alignment between a local repo and its Remix app state.
9
9
 
10
+ This skill is only about repository alignment. Use the general collaboration workflow skill for recording, memory-first history routing, and other bound-repo rules.
11
+
10
12
  Mental model:
11
13
 
12
14
  - `remix_collab_sync_*` is for pulling Remix-known app state into the local repo when fast-forward sync is possible.
13
15
  - `remix_collab_reconcile_*` is for cases where local history exists that Remix cannot fast-forward from.
14
16
  - `remix_collab_sync_upstream` is for bringing new upstream app changes into a remix.
15
- - `remix_collab_record_turn` is not a sync tool. It records a no-diff completed turn and does not create a commit.
17
+ - `remix_collab_finalize_turn` is not a sync tool. It records the completed turn, but it does not replace sync, reconcile, or upstream-sync workflows.
16
18
 
17
19
  Workflow:
18
20