MCPcopy Index your code
hub / github.com/TanStack/ai / projectAgentSkills

Function projectAgentSkills

packages/ai-opencode/src/adapters/projection.ts:168–177  ·  view source on GitHub ↗

* `agentSkill` references a public skill by bare name. OpenCode has no command * to fetch a skill from a bare name, so we warn and skip.

(projection: WorkspaceProjection)

Source from the content-addressed store, hash-verified

166 * to fetch a skill from a bare name, so we warn and skip.
167 */
168function projectAgentSkills(projection: WorkspaceProjection): void {
169 for (const skill of projection.skills) {
170 if (skill.kind !== 'agent-skill') continue
171 console.warn(
172 `[opencode] agentSkill "${skill.name}" cannot be projected: OpenCode has no ` +
173 'command to install a public skill by bare name. Provide it as a gitSkill ' +
174 'instead. Skipping.',
175 )
176 }
177}
178
179/**
180 * OpenCode has no plugin install command. We warn-and-skip each declared plugin

Callers 1

projectOpencodeWorkspaceFunction · 0.70

Calls 1

warnMethod · 0.65

Tested by

no test coverage detected