Manage the public daemon profile — a digital representation of what you're working on. DaemonAggregator reads LifeOS sources (TELOS, KNOWLEDGE, PROJECTS, MEMORY
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-daemon-1ea4a7c97bd7 ,按照其中的说明把「Daemon」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Before executing, check for user customizations at:
~/.claude/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Daemon/
If this directory exists, load and apply any SecurityOverrides.md or PREFERENCES.md found there. These override default security classification. If the directory does not exist, proceed with skill defaults.
curl -s -X POST http://localhost:31337/notify \
-H "Content-Type: application/json" \
-d '{"message": "Running the WORKFLOWNAME workflow in the Daemon skill to ACTION"}' \
> /dev/null 2>&1 &
Manages your public daemon profile — a living page of what you're working on, thinking about, reading, and building. It pulls data from your LifeOS system, runs it through a deterministic security filter so only publicly safe content survives, and deploys a static site. Workflows cover update, read, preview, and deploy.
You want a public presence that stays current without hand-editing a profile page every week, and without ever leaking private data. Your real context lives in LifeOS — goals, projects, ideas, identity — mixed with things that must never go public: contacts, finances, health, names, paths, credentials. Manually copying the safe parts is slow and one slip publishes something you can't take back. This skill aggregates the safe sources, blocks the sensitive ones at the code level, and gives you a preview-then-approve gate before anything ships.
The DaemonAggregator reads LifeOS sources and merges them into daemon-data.json; a deterministic SecurityFilter (pattern matching, not an LLM) strips names, paths, credentials, and internal refs; the deploy step builds a fully static site. Sensitive files are never opened by the aggregator at all.
| Workflow | Trigger | File |
|---|---|---|
| UpdateDaemon | "update daemon", "refresh daemon" | Workflows/UpdateDaemon.md |
| ReadDaemon | "read daemon", "check daemon", "daemon status" | Workflows/ReadDaemon.md |
| PreviewDaemon | "preview daemon", "daemon diff" | Workflows/PreviewDaemon.md |
| DeployDaemon | "deploy daemon", "push daemon", "ship daemon" | Workflows/DeployDaemon.md |
Two-repo pattern: public framework + private content.
LifeOS SOURCES (private, read-only)
TELOS/ (missions, goals, books, movies, wisdom)
KNOWLEDGE/Ideas/ (title + thesis only)
PROJECTS.md (public projects only)
MEMORY/WORK/ (abstracted to topic themes)
PRINCIPAL_IDENTITY.md (public bio data)
│
├──[DaemonAggregator.ts]──→ Reads sources, merges with existing data
│
├──[SecurityFilter.ts]──→ Deterministic code-level allowlist filter
│ Strips names, paths, credentials, internal refs
│ NOT an LLM filter — enforced by pattern matching
│
└──→ daemon-data.json → ~/Projects/daemon-dm/ (PRIVATE repo)
│
├──[Tools/DeployGate.ts]──→ Deterministic pre-deploy gate (blocks on
│ expired/ungated ephemera, street-address/ZIP/
│ coordinate/home-area strings, unapproved
│ real-time phrasing, credentials, private feed URLs)
│
└──[deploy.sh]──→ Copies JSON into framework → VitePress build → Cloudflare WORKER
│
~/Projects/daemon/ (PUBLIC repo — forkable framework)
│
src/worker.ts (generic):
• /daemon-data.json — served through the edge with expired
ephemera STRIPPED at request time (status/now/offerings/
requesting items with past `expires`; non-default location
falls back to location_default)
• /feed.json — live-activity items aggregated every 30 min
(cron + lazy refresh) from PUBLIC sources only, configured
in daemon-data.json `feeds` (rss | beehiiv | github | x);
cached in KV FEED_KV
• secrets (CF worker secrets, never in code): X_BEARER_TOKEN,
BEEHIIV_API_KEY
STRUCTURALLY EXCLUDED (never read):
CONTACTS.md, FINANCES/, HEALTH/, TRAUMAS.md,
KNOWLEDGE/People/, KNOWLEDGE/Companies/,
skills/Daemon/
├── SKILL.md (this file)
├── Tools/
│ ├── DaemonAggregator.ts (reads LifeOS sources → daemon-data.json)
│ └── SecurityFilter.ts (deterministic content sanitizer)
├── Workflows/
│ ├── UpdateDaemon.md (aggregate → preview → approve → deploy)
│ ├── ReadDaemon.md (read current daemon-data.json)
│ ├── PreviewDaemon.md (show diff without deploying)
│ └── DeployDaemon.md (bash deploy.sh from daemon-dm)
└── Docs/
└── SecurityClassification.md (public/private data categories)
| Purpose | Path |
|---|---|
| Private data repo | ~/Projects/daemon-dm/ |
| daemon-data.json | ~/Projects/daemon-dm/daemon-data.json |
| Deploy script | ~/Projects/daemon-dm/deploy.sh |
| Public framework repo | ~/Projects/daemon/ |
| Security classification | ${LIFEOS_SKILL_DIR}/Docs/SecurityClassification.md |
| Security overrides | ${LIFEOS_USER_DIR}/CUSTOMIZATIONS/SKILLS/Daemon/SecurityOverrides.md |
| Endpoint | Purpose |
|---|---|
daemon.example.com | Public website (Cloudflare Pages, fully static) |
The DaemonAggregator reads from these LifeOS sources. Every source is read only if present (existsSync-guarded) — installs using the unified single-file TELOS.md layout won't have the per-file TELOS sources below, and the aggregator skips them cleanly (--sources shows per-source OK/MISSING status):
| Source | What's Extracted | Section |
|---|---|---|
| TELOS/MISSION.md | M1, M2 (public missions) | [MISSION] |
| TELOS/GOALS.md | Public project goals | [TELOS] |
| TELOS/BOOKS.md | Book titles | [FAVORITE_BOOKS] |
| TELOS/MOVIES.md | Movie titles | [FAVORITE_MOVIES] |
| TELOS/WISDOM.md | Top 5 quotes | [WISDOM] |
| KNOWLEDGE/Ideas/_index.md | 10 recent Ideas (title + thesis) | [RECENT_IDEAS] |
| PROJECTS.md | Public repos and sites | Projects integration |
| MEMORY/WORK/ | Topic themes (last 14 days) | [CURRENTLY_WORKING_ON] |
| PRINCIPAL_IDENTITY.md | Public bio, role, focus | [ABOUT] |
| Existing daemon.md | Preserved sections (predictions, routine, podcasts, preferences) | Various |
This skill is designed to be generic:
daemon-data.jsondeploy.sh to build and deploy to your own Cloudflare PagesExample 1: Full update cycle
User: "update daemon"
→ Aggregates LifeOS data sources
→ Applies security filter (deterministic)
→ Shows preview diff to user
→ User approves
→ Writes daemon-data.json to daemon-dm → deploys static site
Example 2: Check what's current
User: "check daemon"
→ Reads daemon-data.json from daemon-dm
→ Shows section-by-section status
Example 3: Preview before committing
User: "preview daemon"
→ Runs aggregator in preview mode
→ Shows diff against current daemon-data.json
→ No writes, no deploys
~/Projects/daemon/) and private content (~/Projects/daemon-dm/). The framework is forkable. The content is yours.expires. status, now (via now_meta), time-bound offerings/requesting items, and any non-default location all carry ISO expires fields. Three enforcement layers: DeployGate (blocks), the worker (strips at serve time), the dashboard (hides client-side). Refreshing a stale status = edit daemon-data.json with a new expires and run deploy.sh.realtime_approved: true on that item — reserved for events where the principal WANTS to be findable. No automatic GPS/calendar pipeline; location changes only on explicit command.feeds.type: "beehiiv" + BEEHIIV_API_KEY worker secret), not the /feed URL.run_worker_first); the rest is static assets. Data changes still require deploy.sh; feed content refreshes itself.After completing any workflow, append a single JSONL entry:
echo '{"ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","skill":"Daemon","workflow":"WORKFLOW_USED","input":"8_WORD_SUMMARY","status":"ok|error","duration_s":SECONDS}' >> ~/.claude/LIFEOS/MEMORY/SKILLS/execution.jsonl