Boris Cherny7/ Use Slash Commands for Inner Loop Workflows
Source snapshot: 2026-11-09Independent editorial note
When this pattern helps
Treat this as an extension point with an explicit trigger, inputs, permissions, and failure behavior. Start with a narrow workflow, document prerequisites, and verify the action in a disposable project before making it part of a team routine.
把它当作扩展点来设计:明确触发条件、输入、权限和失败处理。先从窄流程开始,写清前置条件,并在临时项目验证后再纳入团队日常。
Use slash commands for every "inner loop" workflow that you do many times a day. This saves you from repeated prompting, and makes it so Claude can use these workflows too. Commands are checked into git and live in .claude/commands/.
Example: /commit-push-pr — Commit, push, and open a PR.
Original source on X