Key Points
Prompting effectively
- Be specific and provide context.
- The better your prompt, the better the result you will obtain.
- Introspection improves code quality.
- Plan before you act: request a numbered plan and approve it before any files are written.
Explain and clean scripts
- Ask for explanations before you reuse or modify code, and verify them against the source.
- If you cannot explain the code to a colleague, do not trust it.
- Keep refactors small and behavior-preserving; modular, readable code is easier to verify.
- Reduce risk by keeping prompts specific and confirming outputs after changes.
Write and validate scripts
- The approval gate separates experimental prototypes from validated research.
- Rewrite time is the primary metric for measuring AI workflow value.
- Requirement constraints prevent the AI from drifting away from research specs.
- Multi-model verification uses a second AI to act as a skeptical peer reviewer.
Testing and refactoring scripts
Guiding agents from script to codebase
- Agentic workflows are safest with a spec, a plan, and PR-based review gates.
- Living Specs clarify goals, limits, and data constraints for the agent.
- Permission scoping, sandboxing, and secrets hygiene reduce risk without blocking progress.