diff --git a/packages/agent-core-v2/src/features/flow/skill/flow.md b/packages/agent-core-v2/src/features/flow/skill/flow.md deleted file mode 100644 index f1d224f9b..000000000 --- a/packages/agent-core-v2/src/features/flow/skill/flow.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: flow -description: Run a multi-stage flow definition with gated stage transitions — you supervise the run, dispatch workers per stage, and pass each gate on evidence. Use when the user runs /flow. -disable-model-invocation: true ---- - -$CONTRACT - -The user's input for this activation is: `$ARGUMENTS` - -If the input names no flow id, list the files under `.kimi-code/flows/` and ask which to run. If it names no task, ask for one — a run without a stated task cannot be accepted against. diff --git a/packages/agent-core-v2/src/features/flow/skill/skill.ts b/packages/agent-core-v2/src/features/flow/skill/skill.ts index a7f6ec265..9ac94ff99 100644 --- a/packages/agent-core-v2/src/features/flow/skill/skill.ts +++ b/packages/agent-core-v2/src/features/flow/skill/skill.ts @@ -1,35 +1,5 @@ -import { registerBuiltinSkill } from '#/app/skillCatalog/builtin/registry'; -import { parseSkillText } from '#/app/skillCatalog/parser'; -import type { SkillDefinition } from '#/app/skillCatalog/types'; - -import { FLOW_FLAG_ID } from '../flow'; - import FLOW_CONTRACT from './contract.md?raw'; -import FLOW_ENTRY from './flow.md?raw'; -const PSEUDO_PATH = 'builtin://flow'; - -/** The shared supervisor contract — the body both the generic /flow entry and - * every per-flow skill (see flowsSkillSource) are assembled from. */ +/** The shared supervisor contract — the body every projected per-flow skill + * (see flowsSkillSource) is assembled from. */ export const FLOW_SUPERVISOR_CONTRACT: string = FLOW_CONTRACT.trim(); - -const parsed = parseSkillText({ - skillMdPath: '/builtin/skills/flow.md', - skillDirName: 'flow', - source: 'builtin', - text: FLOW_ENTRY.replace('$CONTRACT', FLOW_SUPERVISOR_CONTRACT), -}); - -export const FLOW_SKILL: SkillDefinition = { - ...parsed, - path: PSEUDO_PATH, - dir: PSEUDO_PATH, - experimentalFlag: FLOW_FLAG_ID, - metadata: { - ...parsed.metadata, - type: parsed.metadata.type ?? 'inline', - disableModelInvocation: true, - }, -}; - -registerBuiltinSkill(FLOW_SKILL);