This commit is contained in:
Trevin Chow 2026-01-30 08:22:44 -08:00 committed by GitHub
commit 6e519a6ca0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,6 +98,19 @@ Files not intended to be loaded into context, but rather used within the output
- **Use cases**: Templates, images, icons, boilerplate code, fonts, sample documents that get copied or modified
- **Benefits**: Separates output resources from documentation, enables Codex to use files without loading them into context
#### Secrets & Credentials
**NEVER hardcode secrets automatically.** Look up secrets dynamically based on skill type:
**Clawdbot-native skills** (no external CLI): Use config → env → error:
```bash
VALUE=$(jq -r '.skills.entries["skill-name"].apiKey // empty' ~/.clawdbot/clawdbot.json)
VALUE="${VALUE:-$SKILL_NAME_API_KEY}"
[[ -z "$VALUE" ]] && echo "Error: Set skills.entries.skill-name.apiKey in config or SKILL_NAME_API_KEY env var" && exit 1
```
**Skills wrapping external tools**: Source from `~/.config/<tool>/` (XDG convention). If the tool works standalone without Clawdbot, its credentials belong outside Clawdbot's config.
#### What to Not Include in a Skill
A skill should only contain essential files that directly support its functionality. Do NOT create extraneous documentation or auxiliary files, including: