[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JF27SN5NSH9XWR1C8BGYJD":3,"skill-same:01M6JF27SN5NSH9XWR1C8BGYJD":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6JF27SN5NSH9XWR1C8BGYJD","fleet-agent-provisioning",null,"Provision a remote Hermes agent with the Appie Kit (skills, workspace, SOUL.md preservation, knowledge doc transfer, and verification). Use when setting up a new fleet member, reinstalling a corrupted agent, or bulk-updating skills across the fleet.","S3YED\u002Fappie-kit","S3YED","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62743867?v=4","01M6JBKBRRVP6KMS0VWZ27T3R6","01M6JBKBX0KG30284PW1DBYJT1",14,"MIT","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fops\u002Ffleet-agent-provisioning\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"provisioning","fleet agent provisioning","fleet","across","appie","kit","with","remote","SOUL.md","bulk","preservation","verification","soul","up","use","hermes agent","hermes","workspace","knowledge","doc","2026-11-10 10:12:30",false,"---\nname: fleet-agent-provisioning\ndescription: Provision a remote Hermes agent with the Appie Kit (skills, workspace, SOUL.md preservation, knowledge doc transfer, and verification). Use when setting up a new fleet member, reinstalling a corrupted agent, or bulk-updating skills across the fleet.\n---\n\n# Fleet Agent Provisioning — Appie Kit Install + Knowledge Transfer\n\n## When to Use\n\n- Seyed says \"set up X with the Appie Kit\" or \"give Y all the skills\"\n- A new Hermes agent needs the full skill library\n- An existing agent needs skills refreshed from the canonical Appie Kit repo\n- Post-migration skill restauration\n\n## Prerequisites\n\n- SSH key access to the target host (check fleet scan first)\n- Appie Kit repo exists on appie-1 at `\u002FUsers\u002Fappie\u002Fclawd\u002Fprojects\u002Fappie-kit\u002F`\n- Agent's Hermes skills directory is at `~\u002F.hermes\u002Fskills\u002F`\n\n## Workflow\n\n### 1. Clone Appie Kit on Target\n\n```bash\nssh -o StrictHostKeyChecking=no \u003Ctarget>.tail61f54b.ts.net 'cd ~ && git clone https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit.git'\n```\n\n### 2. Run Install Script\n\n```bash\nssh -o StrictHostKeyChecking=no \u003Ctarget>.tail61f54b.ts.net 'cd ~\u002Fappie-kit && .\u002Finstall.sh ~\u002F.hermes\u002F'\n```\n\nThe install.sh copies skills to `~\u002F.hermes\u002Fskills\u002F`, workspace templates to `~\u002F.hermes\u002F`, and creates `.env.secrets`.\n\n### 3. Verify SOUL.md Is Intact\n\nThe install script copies workspace template files (SOUL.md, USER.md, etc.). If the agent already had custom SOUL.md, **verify it was preserved**:\n\n```bash\nssh \u003Ctarget> 'head -5 ~\u002F.hermes\u002FSOUL.md'\n```\n\nIf overwritten, restore from backup or rewrite with agent's identity.\n\n### 4. Verify Skill Count\n\n```bash\nssh \u003Ctarget> 'find ~\u002F.hermes\u002Fskills -name \"SKILL.md\" | wc -l'\n```\n\nExpected: ~994+ (grows as Appie Kit expands). If significantly lower, re-run install.\n\n### 5. Transfer Knowledge Documents\n\nCreate docs locally, then SCP to agent:\n\n```bash\nscp \u002Ftmp\u002F\u003Cdoc>.md \u003Ctarget>.tail61f54b.ts.net:~\u002F\u003Cpath>\u002F\n```\n\nCreate directories on target if needed:\n```bash\nssh \u003Ctarget> 'mkdir -p ~\u002Fappie-brain\u002Fknowledge\u002Fframeworks'\n```\n\n### 6. Verify Transfer\n\n```bash\nssh \u003Ctarget> 'head -3 ~\u002F\u003Cpath>\u002F\u003Cdoc>.md && wc -l ~\u002F\u003Cpath>\u002F\u003Cdoc>.md'\n```\n\n### 7. Knowledge Infrastructure (Neo4j + Ollama + Pipeline)\n\nFor agents that need persistent memory beyond skills and docs, provision a local knowledge graph + vector search stack.\n\n```bash\n# Install Docker\nssh \u003Ctarget> 'curl -fsSL https:\u002F\u002Fget.docker.com | sh'\n\n# Start Neo4j with random password\nPASS=$(openssl rand -base64 18 | tr -dc a-zA-Z0-9 | head -c 20)\nssh \u003Ctarget> \"docker run -d --name neo4j-memory --restart unless-stopped \\\\\n  -p 7474:7474 -p 7687:7687 \\\\\n  -e 'NEO4J_AUTH=*** \\\\\n  -e NEO4J_PLUGINS='[\\\\\\\"apoc\\\\\\\"]' \\\\\n  -v ~\u002Fneo4j-data:\u002Fdata neo4j:5-community\"\n# Write $PASS to target's .env.secrets as NEO4J_PASSWORD\n\n# Install Ollama + embedding model\nssh \u003Ctarget> \"curl -fsSL https:\u002F\u002Follama.com\u002Finstall.sh | sh && ollama pull bge-m3\"\n\n# Create venv and install deps (PEP 668-safe)\nssh \u003Ctarget> \"python3 -m venv ~\u002Fknowledge-env && \\\n  ~\u002Fknowledge-env\u002Fbin\u002Fpip install numpy pymupdf neo4j ollama\"\n\n# Create pipeline directory and SCP scripts\nssh \u003Ctarget> 'mkdir -p ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002F.data'\n\n# Templates are in the fleet-agent-provisioning skill at templates\u002Fingest.py and templates\u002Fquery.py\n# Copy and upload them to the target\nscp \u003Cskill_dir>\u002Ftemplates\u002Fingest.py \u003Ctarget>:~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002F\nscp \u003Cskill_dir>\u002Ftemplates\u002Fquery.py \u003Ctarget>:~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002F\n\n# Create wrapper command (avoids secret-masking in heredoc — write via Python)\nssh \u003Ctarget> 'python3 -c \"\nimport os\nwith open(os.path.expanduser(\\\\\\\"~\u002F.hermes\u002F.env.secrets\\\\\\\")) as f:\n    for line in f:\n        if line.startswith(\\\\\\\"NEO4J_PASSWORD=***                pw = line.strip().split(\\\\\\\"=\\\\\", 1)[1]\n                break\nscript = open(\\\\\\\"\u002Fdev\u002Fstdin\\\\\\\").read().replace(\\\\\\\"ENV_PASSWORD_VAR\\\\\\\", pw)\nwith open(\\\\\\\"\u002Fusr\u002Flocal\u002Fbin\u002Fmemory-search\\\\\\\", \\\\\\\"w\\\\\\\") as f: f.write(script)\nos.chmod(\\\\\\\"\u002Fusr\u002Flocal\u002Fbin\u002Fmemory-search\\\\\\\", 0o755)\n\" \u003C\u003C '\\\"'\\\"'SCRIPT'\\\"'\\\"'\n#!\u002Fbin\u002Fbash\nsource ~\u002Fknowledge-env\u002Fbin\u002Factivate 2>\u002Fdev\u002Fnull\nexport NEO4J_PASSWORD=\"ENV_PASSWORD_VAR\"\nCMD=\"${1:-}\"; shift 2>\u002Fdev\u002Fnull || true\ncase \"$CMD\" in\n  search|query) python3 ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002Fquery.py \"$@\" ;;\n  ingest) python3 ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002Fingest.py \"$@\" ;;\n  stats|--stats) python3 ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002Fquery.py --stats ;;\n  graph|--graph) python3 ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002Fquery.py --graph ;;\n  *) python3 ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002Fquery.py \"$CMD\" \"$@\" ;;\nesac\nSCRIPT'\n\n# Seed initial knowledge\nssh \u003Ctarget> 'source ~\u002Fknowledge-env\u002Fbin\u002Factivate && \\\n  python3 ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002Fingest.py ~\u002F.hermes\u002FSOUL.md --tenant \u003Cuser>'\n\n# Restart gateway\nssh \u003Ctarget> 'systemctl restart hermes 2>\u002Fdev\u002Fnull || pkill -f hermes_cli.main.gateway'\n```\n\n### 8. Verify Knowledge Infrastructure\n\n```bash\nssh \u003Ctarget> 'docker ps --filter name=neo4j --format \"{{.Names}} {{.Status}}\"'\n# → neo4j-memory Up\n\nssh \u003Ctarget> 'ollama list'\n# → bge-m3:latest\n\nssh \u003Ctarget> 'memory-search stats'\n# → Knowledge Graph Stats: Documents: N, Chunks: M\n```\n\n## Pitfalls\n\n- **SOUL.md overwrite**: The install.sh copies workspace template files but checks for existing files. It should preserve custom SOUL.md. Always verify.\n- **SSH host key**: First-time SSH to a new host prompts for host key verification. Use `-o StrictHostKeyChecking=no` only for trusted tailnet hosts.\n- **Disk space**: Appie Kit is ~29MB for skills. Check `df -h` on target before cloning.\n- **Git clone fails**: If the target has no git credentials, HTTPS clone works for public repos. If repo is private, ensure `gh` is authenticated or use a token.\n- **Interrupted install**: If install.sh times out mid-way, running it again is safe (idempotent for skills, prompt to overwrite workspace files).\n- **Different Hermes version**: Skills are framework-agnostic (OpenClaw + Hermes compatible). No version conflicts expected.\n- **Docker not available**: If Docker isn't installed, the `get.docker.com` script works on Ubuntu\u002FDebian Hetzner VPS. Verify `docker --version` afterwards.\n- **Neo4j auth password**: The `NEO4J_AUTH` env var must be `neo4j\u002F\u003Cpassword>`. Setting it after first start requires clearing `~\u002Fneo4j-data\u002F` and recreating the container. Always set on first run.\n- **Wrapper script secrets**: The `memory-search` wrapper needs NEO4J_PASSWORD exported. Writing it via heredoc on SSH risks shell expansion. Two reliable approaches: (1) write via Python with inline read from .env.secrets, (2) have the wrapper source .env.secrets directly and parse the right line.\n- **Gateway restart kills SSH**: If Hermes gateway is the SSH session's parent process, `systemctl restart hermes` may drop the connection. After a few seconds, reconnect and verify.\n- **Content filter masks `***  When writing wrapper scripts via heredoc on SSH that read secrets (e.g. `$(grep NEO4J_PASSWORD .env)`), the shell output filter substitutes the `***  with literal asterisks, breaking the script. Solution: write the wrapper via Python ON the target machine, reading the password from `.env.secrets` and substituting inline into a template string. See section 7 for the Python-on-target pattern.\n- **PEP 668**: Ubuntu 24+ blocks `pip install --system`. Always use a venv. `python3 -m venv ~\u002Fknowledge-env` then activate before install.\n\n## Verification Checklist\n\n- [ ] Appie Kit cloned on target\n- [ ] install.sh completed without errors\n- [ ] SOUL.md preserved with agent identity\n- [ ] Skill count matches expected (~994)\n- [ ] Knowledge documents transferred and readable\n- [ ] `.env.secrets` created (user fills in keys)\n- [ ] Docker + Neo4j running (`docker ps`)\n- [ ] Ollama + bge-m3 installed (`ollama list`)\n- [ ] Knowledge pipeline scripts deployed (`memory-search stats`)\n- [ ] Initial knowledge seeded (SOUL.md, MEMORY.md, etc.)\n- [ ] Gateway restarted and responding\n- [ ] MEMORY.md updated on target with upgrade info\n- [ ] Upgrade notification sent to user (if Telegram token + chat ID available)\n\n### 9. Post-Provisioning Notification\n\nAfter provisioning, the agent needs to know what changed, and the user needs to be notified.\n\n**9a. Write agent's MEMORY.md** — so the agent reads it at its next session start:\n\n```bash\nssh \u003Ctarget> 'cat >> ~\u002F.hermes\u002FMEMORY.md \u003C\u003C '\"'\"'EOF'\"'\"'\n\n## YYYY-MM-DD: Provisioned by Appie-3\n\n### What was installed\n- Neo4j 5.26.27 (localhost:7687)\n- Ollama bge-m3 (localhost:11434)\n- Knowledge pipeline at ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002F\n- memory-search wrapper command\n- Appie Kit v4.5 (994 skills)\n\n### To do\n1. Send upgrade message to user\n2. Set up nightly cron\n3. Fill in USER.md\n4. Explore new skills\nEOF'\n```\n\n**9b. Send Telegram notification to user** (if agent has a Telegram token and user chat ID is known):\n\n```bash\nssh \u003Ctarget> \"python3 -c '\nimport json, urllib.request\nwith open(\\\"\u002Froot\u002F.hermes\u002F.env.secrets\\\") as f:\n    for line in f:\n        if \\\"TELEGRAM_BOT_TOKEN=*** in line:\n            token = line.split(\\\"=\\\", 1)[1].strip()\n            break\nmsg = \\\"Your AI agent got upgraded! 994 skills, Neo4j knowledge graph, local embeddings, DOE loop.\\\"\nurl = \\\"https:\u002F\u002Fapi.telegram.org\u002Fbot{}\u002FsendMessage\\\".format(token)\ndata = json.dumps({\\\"chat_id\\\": \u003CUSER_CHAT_ID>, \\\"text\\\": msg}).encode()\nreq = urllib.request.Request(url, data=data, headers={\\\"Content-Type\\\": \\\"application\u002Fjson\\\"})\nurllib.request.urlopen(req, timeout=10)\nprint(\\\"Sent\\\")\n'\"\n```\n\n### 10. Verification Checklist (final)===ME:fleet-agent-provisioning","# Fleet Agent Provisioning — Appie Kit Install + Knowledge Transfer\n\n## When to Use\n\n- Seyed says \"set up X with the Appie Kit\" or \"give Y all the skills\"\n- A new Hermes agent needs the full skill library\n- An existing agent needs skills refreshed from the canonical Appie Kit repo\n- Post-migration skill restauration\n\n## Prerequisites\n\n- SSH key access to the target host (check fleet scan first)\n- Appie Kit repo exists on appie-1 at `\u002FUsers\u002Fappie\u002Fclawd\u002Fprojects\u002Fappie-kit\u002F`\n- Agent's Hermes skills directory is at `~\u002F.hermes\u002Fskills\u002F`\n\n## Workflow\n\n### 1. Clone Appie Kit on Target\n\n```bash\nssh -o StrictHostKeyChecking=no \u003Ctarget>.tail61f54b.ts.net 'cd ~ && git clone https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit.git'\n```\n\n### 2. Run Install Script\n\n```bash\nssh -o StrictHostKeyChecking=no \u003Ctarget>.tail61f54b.ts.net 'cd ~\u002Fappie-kit && .\u002Finstall.sh ~\u002F.hermes\u002F'\n```\n\nThe install.sh copies skills to `~\u002F.hermes\u002Fskills\u002F`, workspace templates to `~\u002F.hermes\u002F`, and creates `.env.secrets`.\n\n### 3. Verify SOUL.md Is Intact\n\nThe install script copies workspace template files (SOUL.md, USER.md, etc.). If the agent already had custom SOUL.md, **verify it was preserved**:\n\n```bash\nssh \u003Ctarget> 'head -5 ~\u002F.hermes\u002FSOUL.md'\n```\n\nIf overwritten, restore from backup or rewrite with agent's identity.\n\n### 4. Verify Skill Count\n\n```bash\nssh \u003Ctarget> 'find ~\u002F.hermes\u002Fskills -name \"SKILL.md\" | wc -l'\n```\n\nExpected: ~994+ (grows as Appie Kit expands). If significantly lower, re-run install.\n\n### 5. Transfer Knowledge Documents\n\nCreate docs locally, then SCP to agent:\n\n```bash\nscp \u002Ftmp\u002F\u003Cdoc>.md \u003Ctarget>.tail61f54b.ts.net:~\u002F\u003Cpath>\u002F\n```\n\nCreate directories on target if needed:\n```bash\nssh \u003Ctarget> 'mkdir -p ~\u002Fappie-brain\u002Fknowledge\u002Fframeworks'\n```\n\n### 6. Verify Transfer\n\n```bash\nssh \u003Ctarget> 'head -3 ~\u002F\u003Cpath>\u002F\u003Cdoc>.md && wc -l ~\u002F\u003Cpath>\u002F\u003Cdoc>.md'\n```\n\n### 7. Knowledge Infrastructure (Neo4j + Ollama + Pipeline)\n\nFor agents that need persistent memory beyond skills and docs, provision a local knowledge graph + vector search stack.\n\n```bash\n# Install Docker\nssh \u003Ctarget> 'curl -fsSL https:\u002F\u002Fget.docker.com | sh'\n\n# Start Neo4j with random password\nPASS=$(openssl rand -base64 18 | tr -dc a-zA-Z0-9 | head -c 20)\nssh \u003Ctarget> \"docker run -d --name neo4j-memory --restart unless-stopped \\\\\n  -p 7474:7474 -p 7687:7687 \\\\\n  -e 'NEO4J_AUTH=*** \\\\\n  -e NEO4J_PLUGINS='[\\\\\\\"apoc\\\\\\\"]' \\\\\n  -v ~\u002Fneo4j-data:\u002Fdata neo4j:5-community\"\n# Write $PASS to target's .env.secrets as NEO4J_PASSWORD\n\n# Install Ollama + embedding model\nssh \u003Ctarget> \"curl -fsSL https:\u002F\u002Follama.com\u002Finstall.sh | sh && ollama pull bge-m3\"\n\n# Create venv and install deps (PEP 668-safe)\nssh \u003Ctarget> \"python3 -m venv ~\u002Fknowledge-env && \\\n  ~\u002Fknowledge-env\u002Fbin\u002Fpip install numpy pymupdf neo4j ollama\"\n\n# Create pipeline directory and SCP scripts\nssh \u003Ctarget> 'mkdir -p ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002F.data'\n\n# Templates are in the fleet-agent-provisioning skill at templates\u002Fingest.py and templates\u002Fquery.py\n# Copy and upload them to the target\nscp \u003Cskill_dir>\u002Ftemplates\u002Fingest.py \u003Ctarget>:~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002F\nscp \u003Cskill_dir>\u002Ftemplates\u002Fquery.py \u003Ctarget>:~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002F\n\n# Create wrapper command (avoids secret-masking in heredoc — write via Python)\nssh \u003Ctarget> 'python3 -c \"\nimport os\nwith open(os.path.expanduser(\\\\\\\"~\u002F.hermes\u002F.env.secrets\\\\\\\")) as f:\n    for line in f:\n        if line.startswith(\\\\\\\"NEO4J_PASSWORD=***                pw = line.strip().split(\\\\\\\"=\\\\\", 1)[1]\n                break\nscript = open(\\\\\\\"\u002Fdev\u002Fstdin\\\\\\\").read().replace(\\\\\\\"ENV_PASSWORD_VAR\\\\\\\", pw)\nwith open(\\\\\\\"\u002Fusr\u002Flocal\u002Fbin\u002Fmemory-search\\\\\\\", \\\\\\\"w\\\\\\\") as f: f.write(script)\nos.chmod(\\\\\\\"\u002Fusr\u002Flocal\u002Fbin\u002Fmemory-search\\\\\\\", 0o755)\n\" \u003C\u003C '\\\"'\\\"'SCRIPT'\\\"'\\\"'\n#!\u002Fbin\u002Fbash\nsource ~\u002Fknowledge-env\u002Fbin\u002Factivate 2>\u002Fdev\u002Fnull\nexport NEO4J_PASSWORD=\"ENV_PASSWORD_VAR\"\nCMD=\"${1:-}\"; shift 2>\u002Fdev\u002Fnull || true\ncase \"$CMD\" in\n  search|query) python3 ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002Fquery.py \"$@\" ;;\n  ingest) python3 ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002Fingest.py \"$@\" ;;\n  stats|--stats) python3 ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002Fquery.py --stats ;;\n  graph|--graph) python3 ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002Fquery.py --graph ;;\n  *) python3 ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002Fquery.py \"$CMD\" \"$@\" ;;\nesac\nSCRIPT'\n\n# Seed initial knowledge\nssh \u003Ctarget> 'source ~\u002Fknowledge-env\u002Fbin\u002Factivate && \\\n  python3 ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002Fingest.py ~\u002F.hermes\u002FSOUL.md --tenant \u003Cuser>'\n\n# Restart gateway\nssh \u003Ctarget> 'systemctl restart hermes 2>\u002Fdev\u002Fnull || pkill -f hermes_cli.main.gateway'\n```\n\n### 8. Verify Knowledge Infrastructure\n\n```bash\nssh \u003Ctarget> 'docker ps --filter name=neo4j --format \"{{.Names}} {{.Status}}\"'\n# → neo4j-memory Up\n\nssh \u003Ctarget> 'ollama list'\n# → bge-m3:latest\n\nssh \u003Ctarget> 'memory-search stats'\n# → Knowledge Graph Stats: Documents: N, Chunks: M\n```\n\n## Pitfalls\n\n- **SOUL.md overwrite**: The install.sh copies workspace template files but checks for existing files. It should preserve custom SOUL.md. Always verify.\n- **SSH host key**: First-time SSH to a new host prompts for host key verification. Use `-o StrictHostKeyChecking=no` only for trusted tailnet hosts.\n- **Disk space**: Appie Kit is ~29MB for skills. Check `df -h` on target before cloning.\n- **Git clone fails**: If the target has no git credentials, HTTPS clone works for public repos. If repo is private, ensure `gh` is authenticated or use a token.\n- **Interrupted install**: If install.sh times out mid-way, running it again is safe (idempotent for skills, prompt to overwrite workspace files).\n- **Different Hermes version**: Skills are framework-agnostic (OpenClaw + Hermes compatible). No version conflicts expected.\n- **Docker not available**: If Docker isn't installed, the `get.docker.com` script works on Ubuntu\u002FDebian Hetzner VPS. Verify `docker --version` afterwards.\n- **Neo4j auth password**: The `NEO4J_AUTH` env var must be `neo4j\u002F\u003Cpassword>`. Setting it after first start requires clearing `~\u002Fneo4j-data\u002F` and recreating the container. Always set on first run.\n- **Wrapper script secrets**: The `memory-search` wrapper needs NEO4J_PASSWORD exported. Writing it via heredoc on SSH risks shell expansion. Two reliable approaches: (1) write via Python with inline read from .env.secrets, (2) have the wrapper source .env.secrets directly and parse the right line.\n- **Gateway restart kills SSH**: If Hermes gateway is the SSH session's parent process, `systemctl restart hermes` may drop the connection. After a few seconds, reconnect and verify.\n- **Content filter masks `***  When writing wrapper scripts via heredoc on SSH that read secrets (e.g. `$(grep NEO4J_PASSWORD .env)`), the shell output filter substitutes the `***  with literal asterisks, breaking the script. Solution: write the wrapper via Python ON the target machine, reading the password from `.env.secrets` and substituting inline into a template string. See section 7 for the Python-on-target pattern.\n- **PEP 668**: Ubuntu 24+ blocks `pip install --system`. Always use a venv. `python3 -m venv ~\u002Fknowledge-env` then activate before install.\n\n## Verification Checklist\n\n- [ ] Appie Kit cloned on target\n- [ ] install.sh completed without errors\n- [ ] SOUL.md preserved with agent identity\n- [ ] Skill count matches expected (~994)\n- [ ] Knowledge documents transferred and readable\n- [ ] `.env.secrets` created (user fills in keys)\n- [ ] Docker + Neo4j running (`docker ps`)\n- [ ] Ollama + bge-m3 installed (`ollama list`)\n- [ ] Knowledge pipeline scripts deployed (`memory-search stats`)\n- [ ] Initial knowledge seeded (SOUL.md, MEMORY.md, etc.)\n- [ ] Gateway restarted and responding\n- [ ] MEMORY.md updated on target with upgrade info\n- [ ] Upgrade notification sent to user (if Telegram token + chat ID available)\n\n### 9. Post-Provisioning Notification\n\nAfter provisioning, the agent needs to know what changed, and the user needs to be notified.\n\n**9a. Write agent's MEMORY.md** — so the agent reads it at its next session start:\n\n```bash\nssh \u003Ctarget> 'cat >> ~\u002F.hermes\u002FMEMORY.md \u003C\u003C '\"'\"'EOF'\"'\"'\n\n## YYYY-MM-DD: Provisioned by Appie-3\n\n### What was installed\n- Neo4j 5.26.27 (localhost:7687)\n- Ollama bge-m3 (localhost:11434)\n- Knowledge pipeline at ~\u002Fclawd\u002Fprojects\u002Fknowledge-pipeline\u002F\n- memory-search wrapper command\n- Appie Kit v4.5 (994 skills)\n\n### To do\n1. Send upgrade message to user\n2. Set up nightly cron\n3. Fill in USER.md\n4. Explore new skills\nEOF'\n```\n\n**9b. Send Telegram notification to user** (if agent has a Telegram token and user chat ID is known):\n\n```bash\nssh \u003Ctarget> \"python3 -c '\nimport json, urllib.request\nwith open(\\\"\u002Froot\u002F.hermes\u002F.env.secrets\\\") as f:\n    for line in f:\n        if \\\"TELEGRAM_BOT_TOKEN=*** in line:\n            token = line.split(\\\"=\\\", 1)[1].strip()\n            break\nmsg = \\\"Your AI agent got upgraded! 994 skills, Neo4j knowledge graph, local embeddings, DOE loop.\\\"\nurl = \\\"https:\u002F\u002Fapi.telegram.org\u002Fbot{}\u002FsendMessage\\\".format(token)\ndata = json.dumps({\\\"chat_id\\\": \u003CUSER_CHAT_ID>, \\\"text\\\": msg}).encode()\nreq = urllib.request.Request(url, data=data, headers={\\\"Content-Type\\\": \\\"application\u002Fjson\\\"})\nurllib.request.urlopen(req, timeout=10)\nprint(\\\"Sent\\\")\n'\"\n```\n\n### 10. Verification Checklist (final)===ME:fleet-agent-provisioning",{"name":5,"description":7},"master","8ec37df6d71fb664ea19d32c079e7d3ff931a8e0","skills\u002Fops\u002Ffleet-agent-provisioning",3,"https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit","https:\u002F\u002Fweblyfe.ai","https:\u002F\u002Fgithub.com\u002FS3YED","2026-08-27 01:54:02",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add S3YED\u002Fappie-kit --skill fleet-agent-provisioning",{"tool":57,"command":58},"bunx","bunx skills add S3YED\u002Fappie-kit --skill fleet-agent-provisioning",{"tool":60,"command":61},"pnpm","pnpm dlx skills add S3YED\u002Fappie-kit --skill fleet-agent-provisioning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fops\u002Ffleet-agent-provisioning\u002FSKILL.md",true,[],[66,89,115,139,166,190],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":38},"01M6JFD4M6N4DSGC7TXEJ5R3J2","ai-music","AI music generation and audio tools: HeartMuLa lyrics-to-music generation, songwriting craft (+ Suno prompts), and audio spectrogram\u002Ffeature visualization.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fwethlete\u002Fai-music\u002FSKILL.md",[],[73,74,75,76,77,78,34,33,79,80,81,82,83,84,85,86,87,88],"music","ai music","humanizer","visualization","Tools","Audio","songwriting","suno","lyrics","prompts","heartmula","craft","generation","feature","ai music generation","music generation",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":38},"01M6JFCZE4XNFQFMNZDHKHT5V5","agentic-webdesign-design-system-ingestion","Use v0 Design Systems 2.0, Bolt Design System Agents, or Lovable to generate production UI from a client's real design system components — not generic Tailwind. Use when building a client website where brand consistency matters.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-design\u002Fagentic-webdesign-design-system-ingestion\u002FSKILL.md",[],[96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,22],"design","agentic","design system","system","ingestion","webdesign","agentic webdesign design system ingestion","components","generate","design systems","website","ui","Tailwind","bolt","lovable","v0","design-system","wed","design system components",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":38},"01M6JFCVPX3913CFAS6QQJ33ZB","agentic-webdesign-agent-elements","Use 21st.dev Agent Elements — 25 shadcn\u002Fui components purpose-built for AI agent UIs. Tool cards (Bash, Edit, Search, Plan, Subagent, MCP), chat, input, streaming. Open source, shadcn-registry install, no runtime lock-in.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-design\u002Fagentic-webdesign-agent-elements\u002FSKILL.md",[],[97,122,101,123,124,125,103,126,127,128,129,130,131,132,133,134,135,136,137,138],"elements","agentic webdesign agent elements","MCP","ai agent","registry","search","streaming","open source","open","Bash","plan","subagent","edit","install","input","lock","source",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":38},"01M6JFCQC7H65M9QJ6TRE71BS1","vercel-deployment","Deploy static sites and frontends to Vercel — handles both CLI and REST API paths, including the CLI token sanitization workaround.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fvercel-deployment\u002FSKILL.md",[],[146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165],"deployment","vercel deployment","vercel","macos","cli","linux","windows","deploy","vercel deploy","REST","api","site","deploy to vercel","token","rest api","host","sites","paths","sanitization","static site",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":38},"01M6JFCM4SMTXBM5A01BK2YQG1","software-quality-workflows","Umbrella workflow for TDD, debugging, code simplification, spikes, pre-commit review, and debugger-assisted investigation.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fsoftware-quality-workflows\u002FSKILL.md",[],[173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189],"workflows","quality","software","software quality workflows","review","tdd","workflow","commit","debugging","code","debugger","pre-commit","investigation","code simplification","user","simplification","for",{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":196,"publishedAt":38},"01M6JFCGD0M6CEATY01W7YN6DB","react-component-refactoring","Safely refactor large React components into smaller, maintainable pieces using proven patterns","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Freact-component-refactoring\u002FSKILL.md",[],[197,198,199,200,201,202,203,204,149,205,206,103,207,152,208,182,209,210,211,212],"react","component","refactoring","component refactoring","react component","react component refactoring","frontend","writing","safe","typescript","react components","modular","refactor","simplify","patterns","test-driven-development"]