env-capability-discovery
Environment Capability Discovery
Internal shared skill. A workflow runs on heterogeneous platforms (Claude Code, OpenCode, Cursor, …) with different installed skills/agents. This skill defines how to discover and invoke optional enhancements instead of relying only on the workflow's own built-in flow.
Reference semantics: weak reference by default — referencing workflows normally do NOT list this skill in frontmatter
dependencies; when it is unavailable, they skip discovery silently and run their original flow — no error, no abort. A workflow MAY explicitly declare it as a strong dependency (assolve-workflowdoes); that workflow's prerequisite check then guarantees availability, and a missing skill aborts the workflow at startup.
When to scan
Once, at workflow startup (before the first working stage). Record the result for the rest of the session (the referencing workflow defines where — conversation context or a state file); never rescan.
How to scan
Use the current platform's skill-discovery capability to list available skills/agents/plugins:
- Check the available-items listing in the system prompt, or use the platform's skill-listing tool.
- Graceful degradation: if no discovery method exists, skip enhancement discovery and run the original flow.