feat(session-crosslink): add skill for cross-repo session attach (#26)

main
No checks reported

Commit

Alisha Kawaguchi6mo ago
  • feat(scope): add scope skill to link cross-repo agent sessions

Adds skills/scope/SKILL.md, an agent-invokable workflow for linking an agent session that ran outside the repo whose commits should record it — launched from a higher-level folder, a non-Entire repo, or one repo but editing another — to each affected Entire-enabled repo's HEAD commit.

Flow: resolve the session id (cwd, sibling repo, or runtime transcript directory), discover affected repos from files_touched and user input, preview each with entire session attach --target-repo --dry-run --json, and amend on user confirmation.

Depends on Entire CLI flags introduced in entireio/cli#1229:

  • entire session attach --target-repo <path>
  • entire session attach --dry-run [--json]

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

  • rename skill from scope to session-crosslink

More specific name — pairs visually with session-handoff / session-to-skill and clarifies the action (linking one session across multiple repos) rather than the generic notion of scope.

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com Entire-Checkpoint: c97b84e870d3

  • refactor(session-crosslink): drop dependency on unmerged CLI flags

Rewrites the skill to use the shipped CLI (0.6.2) instead of the --target-repo / --dry-run / --json flags from entireio/cli#1229.

  • Step 3 computes the preview locally by inspecting git HEAD's commit message for an existing Entire-Checkpoint trailer and the target repo's .git/entire-sessions/<id>.json for an existing session-state checkpoint link. That mirrors the action logic attach uses internally.
  • Step 5 uses cd <repo> && entire session attach <id> --agent <name> --force per repo — one invocation per target with cwd as the repo selector. No CLI flag needed.

Same five-step flow, same preview-then-confirm UX. Trades a few extra bash calls per candidate for zero CLI version coupling and no upstream PR dependency.

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com Entire-Checkpoint: 1f64c84a8821

  • chore(session-crosslink): bump version, genericize examples, gate Strategy A on session_id
  • bump skills package version to 0.5.0
  • replace Entire-specific repo names (cli, entire.io, entiredb, scope-skill) with foo/bar/baz/qux in SKILL.md examples
  • Strategy A now only proceeds when session_id is non-empty; addresses Cursor Bugbot finding on #26 about advancing to attach without a session id

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com Entire-Checkpoint: 88a7d0d6b430

  • chore: sync remaining plugin manifests to 0.5.0

Brings gemini-extension.json (0.4.0) and the four plugin manifests (.cursor-plugin, .claude-plugin, .claude-plugin/marketplace, .codex-plugin — all at 0.3.0) up to 0.5.0 to match package.json.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com Entire-Checkpoint: 62841651aed5


Co-authored-by: Claude Opus 4.7 noreply@anthropic.com