Skill discovery in the task tool failed to find project-level skills in
OpenCode Desktop because:
1. resolveSkillContent() never passed directory to the skill resolution
functions, causing them to fall back to process.cwd() which differs
from the project directory in Desktop mode.
2. getAllSkills() cache key only included browserProvider, not directory.
A first call with the wrong directory would cache stale results that
all subsequent calls (even with correct directory) would return.
3. The error message used discoverSkills() (discovered only) instead of
getAllSkills() (discovered + builtins), hiding builtin skills from
the Available list.
Changes:
- skill-resolver.ts: accept and pass directory; use getAllSkills for error msg
- tools.ts: pass options.directory to resolveSkillContent
- skill-discovery.ts: include directory in cache key; rename cache variable
- skill/types.ts + tools.ts: add directory to SkillLoadOptions for consistency