fix(instructions): check optional personal file before reading

This commit is contained in:
Julian lechner committed 2026-10-08 15:02:05 +02:00
1 parent 73cb30c32b
commit 6a981bd7f2
1 file changed
+1 -1
+1 -1
View File
@@ -1,6 +1,6 @@
# Global Instructions
Read `~/.my-ai-configuration/instructions/__CLIENT__.md` first when present; it is the user's direct instruction. System and developer requirements still apply.
Optional personal instructions: first check whether `~/.my-ai-configuration/instructions/__CLIENT__.md` is a file (`Test-Path -LiteralPath ... -PathType Leaf` in PowerShell; `test -f ...` in Bash). Read it only if it exists; otherwise continue silently. Its contents are the user's direct instructions. System and developer requirements still apply.
For credentials, run the child command through `~/.my-ai-configuration/bin/with-credential.__SHELL__` with the client and credential key. Never expose credentials in commands, output, logs, or files.