Skip to content

Implement OpenCode explicit skill capture#14

Open
Stephen Belanger (Qard) wants to merge 4 commits into
mainfrom
explicit-skill-capture
Open

Implement OpenCode explicit skill capture#14
Stephen Belanger (Qard) wants to merge 4 commits into
mainfrom
explicit-skill-capture

Conversation

@Qard

@Qard Stephen Belanger (Qard) commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Captures explicit OpenCode skill invocations from the native /skills command and keeps the replay/event processor path in sync with the production tracing hooks.

  • Records turn-level loaded_skill_names and loaded_skills for named commands such as /skills review.
  • Treats bare /skills as an explicit invocation and backfills the selected skill name from the native skill tool call when it becomes available.
  • Marks matching native skill tool spans with skill_load_trigger: "explicit".
  • Preserves metadata.tool_name as the raw OpenCode tool name and adds metadata.tool_kind: "skill" for native skill-load spans.
  • Preserves the natural-language behavior: prompts like Use the review skill remain implicit and do not set explicit skill metadata.

Validation

  • bun run check
  • bun run typecheck
  • bun test
  • bun run build

@Qard Stephen Belanger (Qard) changed the title Document OpenCode explicit skill behavior Implement OpenCode explicit skill capture Jul 3, 2026
@Qard Stephen Belanger (Qard) marked this pull request as ready for review July 6, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant