# Function resolveWithFallbacks

Skills module exports (Voyager-style skill library) - Issue #528 Split from agents.ts for file size compliance (Issue #285)

- resolveWithFallbacks(
  graph: ISkillDependencyGraph,
  skillIds: readonly string[],
  available: ReadonlySet<string>,
  ): Result<readonly string[], DependencyError>

  Resolves skill dependencies with fallbacks for missing optional dependencies.

  #### Parameters

  - graph: ISkillDependencyGraph

    The dependency graph

  - skillIds: readonly string[]

    Skills to resolve

  - available: ReadonlySet<string>

    Set of available skill IDs

  #### Returns Result<readonly string[], DependencyError>

  Result with resolved skill IDs or error

  - Defined in packages/nexus-agents/src/agents/skills/skill-dependency-graph-helpers.ts:193