Claude Code’s Subagents feature is one of my favorites.
But if you’ve used it, you might have noticed an issue I ran into — the more specific your instructions are for a new agent, the narrower its perspective becomes. And that can sometimes lead to mistakes in the code.
Here’s how I see it:
In my workflow, I want each agent to perform a broad, meaningful action in the process.
I also want to make sure the agent executes each action optimally without me having to guide it step by step — because every extra instruction or self-check costs time and resources.
So, I created a Custom Command that builds an agent with a few key components:
Principles – The guiding rules that define how the agent operates.
SOP (Standard Operating Procedures) – The steps the agent should follow for any given task.
Examples – References the agent can use to understand how to perform correctly.
Together, these reduce the number of interactions needed with the agent — saving both time and compute resources.
👉 Free tool on GitHub: https://github.com/tomeraitz/dotclaude-templates
If you like it, give it a ⭐ on GitHub and share it!
Top comments (0)