← 教程列表
news

Session Startup Hook

📅 2026/6/12 16:30:02⏱ 约 5 分钟阅读👁 9 阅读

When a new session starts (`session.started` event): 1. **Inject using-superpowers content** - Full content of the using-superpowers skill - Establishes mandatory workflows 2. **Run find_skills automatically** - Display full list of available skills upfront - Include skill directories for each 3. **Inject tool mapping instructions** ```markdown **Tool Mapping for OpenCode:** When skills reference tools you don't have, substitute: - `TodoWrite` → `update_plan` - `Task` with subagents → Use OpenCode subagent system (@mention) - `Skill` tool → `use_skill` custom tool - Read, Write, Edit, Bash → Your native equivalents **Skill directories contain:** - Supporting scripts (run with bash) - Additional documentation (read with read tool) - Utilities specific to that skill ``` 4. **Check for updates** (non-blocking) - Quick git fetch with timeout - Notify if updates available

← 返回教程列表 AI8899 · 内容仅供学习参考