readPromptFile
readPromptFile(
filename,identityProfile,noDefaultPrompts?,defaultPromptDir?):string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/llmUtils.ts:172
Read a prompt file from the project config dir (honouring identity profiles), falling back
to a packaged default unless noDefaultPrompts is set. Downstream packages owning their own
prompt files (e.g. the assistant’s PR discovery prompt) pass defaultPromptDir pointing at
their package root; when omitted, the default is read from the core package.
Parameters
Section titled “Parameters”filename
Section titled “filename”string
identityProfile
Section titled “identityProfile”string | undefined
noDefaultPrompts?
Section titled “noDefaultPrompts?”boolean
defaultPromptDir?
Section titled “defaultPromptDir?”string
Returns
Section titled “Returns”string