From 03cadc5bb3f4d19814d4f581ae062976fce894c0 Mon Sep 17 00:00:00 2001 From: martyy-code Date: Wed, 3 Jun 2026 17:51:20 +0200 Subject: [PATCH] fix: import and pass triage skill directly to agent The skill was placed in .claude/skills/ but the default sandbox starts empty. Import it with { type: 'skill' } and pass it to the agent's skills array so session.skill() can find it. Co-Authored-By: Claude Opus 4.7 --- .flue/workflows/triage.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.flue/workflows/triage.ts b/.flue/workflows/triage.ts index dfff234..0f96dbe 100644 --- a/.flue/workflows/triage.ts +++ b/.flue/workflows/triage.ts @@ -1,6 +1,7 @@ -import { createAgent, type FlueContext, type WorkflowRouteHandler } from '@flue/runtime'; -import { local } from '@flue/runtime/node'; +import { createAgent, local } from '@flue/runtime'; +import { type FlueContext, type WorkflowRouteHandler } from '@flue/runtime/routing'; import * as v from 'valibot'; +import triageSkill from '../../.claude/skills/triage/SKILL.md' with { type: 'skill' }; export const route: WorkflowRouteHandler = async (_c, next) => next(); @@ -8,6 +9,7 @@ const agent = createAgent(() => ({ model: 'minimax/MiniMax-M2.7', sandbox: local({ env: { GH_TOKEN: process.env.GH_TOKEN ?? '' } }), instructions: `You are a senior tech lead responsible for triaging GitHub issues.`, + skills: [triageSkill], })); export async function run({ init, payload, log }: FlueContext) {