Skip to content

convert skill tool to Tool.defineEffect#21936

Merged
kitlangton merged 2 commits intodevfrom
kit/tool-effect-skill
Apr 10, 2026
Merged

convert skill tool to Tool.defineEffect#21936
kitlangton merged 2 commits intodevfrom
kit/tool-effect-skill

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • Convert SkillTool from Tool.define to Tool.defineEffect pattern
  • Wrap async calls (Skill.available, Skill.get, Skill.all, ctx.ask, Ripgrep.files) in Effect.promise
  • Add Effect.orDie before Effect.runPromise in the execute pipeline
  • Resolve SkillTool Effect in registry before passing to Tool.init
  • Update test to resolve Effect before calling .init()

Test plan

  • bun run typecheck passes (no new errors)
  • bun run test test/tool/skill.test.ts — all 3 tests pass

@kitlangton kitlangton force-pushed the kit/tool-effect-skill branch 3 times, most recently from edc2eb4 to cc09fe6 Compare April 10, 2026 23:40
@kitlangton kitlangton marked this pull request as ready for review April 10, 2026 23:42
@kitlangton kitlangton force-pushed the kit/tool-effect-skill branch from cc09fe6 to 940b568 Compare April 10, 2026 23:43
@kitlangton kitlangton force-pushed the kit/tool-effect-skill branch from 940b568 to 2fadede Compare April 10, 2026 23:47
@kitlangton kitlangton merged commit 5d6fe01 into dev Apr 10, 2026
8 of 9 checks passed
@kitlangton kitlangton deleted the kit/tool-effect-skill branch April 10, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant