一键导入
session-mode
Set the operating mode for the current session. Use when the user says "session mode", "set mode", "refactor mode", "debug mode", or "feature mode".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set the operating mode for the current session. Use when the user says "session mode", "set mode", "refactor mode", "debug mode", or "feature mode".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Pick a bug from Linear, fix it test-first, verify, and update. Use when the user says "fix issue", "fix bug", "work on known issue", or "pick a bug".
Create a new ticket for task tracking. Use when the user says "create ticket", "new ticket", or "track this".
Diagnose an integration/E2E test log, classify failures by severity, and batch-create issues. Use when the user says "smoke test", "diagnose log", "triage test log", or provides a test log.
Pull Linear issues and generate a local snapshot for quick reference. Use when the user says "sync linear", "pull linear issues", "update from linear", or "show my issues".
Triage, prioritize, and groom Linear issues. Use when the user says "triage linear", "review inbox", "prioritize issues", "groom backlog", or "clean up issues".
Investigate a bug using structured differential diagnosis. Use when the user says "diagnose", "investigate this", "what's causing this", or "figure out why".
| name | session-mode |
| description | Set the operating mode for the current session. Use when the user says "session mode", "set mode", "refactor mode", "debug mode", or "feature mode". |
| argument-hint | <mode name> |
| user-invocable | true |
| allowed-tools | Read, Write, Glob |
| model | claude-3-5-haiku-latest |
Lock the current session into a specific operating mode with enforced constraints. This prevents drift by front-loading the rules at the start of a session.
debugrefactor/document-bug), don't fix them.featureIf $ARGUMENTS is provided, use it as the mode name. Otherwise, list available modes and ask the user to choose.
Validate the mode name against the available modes above.
Write the active session mode to docs/CURRENT_SPRINT.md under a ### Active Session Mode heading:
### Active Session Mode
- **Mode:** [mode name]
- **Set at:** [timestamp]
- **Constraints:** [key constraints from the mode definition]
- **Scope:** [files/directories in scope, if specified by user]
Report the mode activation:
Session mode: [MODE NAME]
Constraints active:
- [constraint 1]
- [constraint 2]
- [constraint 3]
I will follow these constraints for the rest of this session.
To change modes, run /session-mode again.
/review skill directly — no session mode needed