← 教程列表
news

Best Practices

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

1. **Always cleanup**: Use trap to cleanup temp directories 2. **Parse transcripts**: Don't grep user-facing output - parse the `.jsonl` session file 3. **Grant permissions**: Use `--permission-mode bypassPermissions` and `--add-dir` 4. **Run from plugin dir**: Skills only load when running from the superpowers directory 5. **Show token usage**: Always include token analysis for cost visibility 6. **Test real behavior**: Verify actual files created, tests passing, commits made

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