Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion LifeOS/install/skills/Headshot/Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@ Generated headshots are written to `LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Headshot/g

- A Google AI Studio account. Create an API key at https://aistudio.google.com/apikey and make sure the project can use the Gemini image model (billing may be required).
- Env key `GOOGLE_API_KEY` in `~/.claude/.env`, set to that key.
- Tool dependencies: run `bun install` in `~/.claude/skills/Headshot/Tools` (installs `@google/genai`).
- Optional: ImageMagick (`magick`) for the pick-sheet montage.

## Prove it works

```bash
cd ~/.claude/skills/Headshot/Tools && bun install
bun ~/.claude/skills/Headshot/Tools/Headshot.ts check
bun ~/.claude/skills/Headshot/Tools/Headshot.ts references --sentiment neutral
```

The first prints `OK: <n> reference photo(s) in <dir>; GOOGLE_API_KEY set; ...` and exits 0. If `Config.md` is missing, lists no photos, none of the listed files exist, or the key is unset, it exits 1 and says which, pointing at this guide. The second prints a JSON list with the photo's `path` and `"exists": true`; it exits 1 when no existing photo carries that sentiment. To see a real result, ask the assistant for a headshot: it saves a PNG under `generated-headshots/` and, once the ArtDirection critique passes, delivers a copy to `~/Downloads/` through `Deliver.ts`.
The first prints `OK: <n> reference photo(s) in <dir>; GOOGLE_API_KEY set; ...` and exits 0. If `Config.md` is missing, lists no photos, none of the listed files exist, or the key is unset, it exits 1 and says which, pointing at this guide. The second prints a JSON list with the photo's `path` and `"exists": true`; it exits 1 when no existing photo carries that sentiment. To see a real result, ask the assistant for a headshot: it saves a PNG under `generated-headshots/` and, once the ArtDirection critique passes, delivers a copy to `~/Downloads/` through `Deliver.ts`.
20 changes: 20 additions & 0 deletions LifeOS/install/skills/Headshot/Tools/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "headshot-tools",
"private": true,
"type": "module",
"description": "Headshot generation CLI tools. Requires @google/genai. node_modules is gitignored.",
"scripts": {
"typecheck": "bunx tsc --noEmit"
},
"dependencies": {
"@google/genai": "^1.40.0"
},
"devDependencies": {
"@types/bun": "^1.3.6",
"typescript": "^5.9.0"
},
"trustedDependencies": [
"@google/genai",
"protobufjs"
]
}