tx settingsSource is greedy
Agent SDK has a settingsSource: ['project'] which loads skills for your headless agent. Wonderful!
Except, it pulls from your global ~/.claude with no option to skip. Here, I have way too many skills and a fun agent personality to interact with. I don’t want this shit in my agent prompts, especially when I’m super concerned with steering and adherence. When you’re working the agent directly, I can deal with some misunderstandings, but when it’s automated, it has to be tight tight tight. I don’t need it making jokes and giving me haughty titles.
So what, you say, just don’t use that. Fine! But! Sometimes I want to use my skills! SlashCommand doesn’t work for Agent SDK, and what worked before was just passing the /skill as the first tokens. This was failing for a complex mesh with precise steps.
So, we hacked it. Just grab the skill file and inject it as a user prompt, replace $ARGUMENTS and we’re off to the races.