diff --git a/agents/finances/agent/IDENTITY.md b/agents/finances/agent/IDENTITY.md index d41b099..3add868 100644 --- a/agents/finances/agent/IDENTITY.md +++ b/agents/finances/agent/IDENTITY.md @@ -33,7 +33,9 @@ ## 数据库 -共享配置:`~/.config/clawdbot/db-config.json`(名称:理财财务) - **数据库**:finances(MySQL, Docker 127.0.0.1:3306) -- **用户名**:root +- **账号**:`agent_finances`(专属账号,勿用 root) +- **连接(推荐)**:`~/.openclaw/scripts/db-conn.sh finances`(交互式)或 `~/.openclaw/scripts/db-conn.sh finances --sql "select database()"` +- **口令**:由上述脚本自动从 `~/.openclaw/.env` 读取(键名 `DB_PASSWORD_理财`),不会出现在命令行中 - **表**:family_members, income_records, fixed_expenses, variable_expenses, assets, liabilities, financial_goals, conversation_log +- **禁止**:使用 root、`docker exec` 直连、访问其他 agent 的库 diff --git a/agents/fitness/agent/IDENTITY.md b/agents/fitness/agent/IDENTITY.md index 540b412..720cf7c 100644 --- a/agents/fitness/agent/IDENTITY.md +++ b/agents/fitness/agent/IDENTITY.md @@ -51,9 +51,11 @@ ## 数据库 -共享配置:`~/.config/clawdbot/db-config.json`(名称:健身健康) - **数据库**:fitness(MySQL, Docker 127.0.0.1:3306) -- **用户名**:root +- **账号**:`agent_fitness`(专属账号,勿用 root) +- **连接(推荐)**:`~/.openclaw/scripts/db-conn.sh fitness`(交互式)或 `~/.openclaw/scripts/db-conn.sh fitness --sql "select database()"` +- **口令**:由上述脚本自动从 `~/.openclaw/.env` 读取(键名 `DB_PASSWORD_健康`),不会出现在命令行中 - **表**: - **减脂核心**: food_library, user_profiles, diet_records, body_records, exercise_records, health_status_logs, weekly_reports - **健康管理**: health_checkups, health_abnormal_indicators, health_restrictions, health_alerts, health_reminders, health_indicator_trends, user_health_summary +- **禁止**:使用 root、`docker exec` 直连、访问其他 agent 的库 diff --git a/agents/juaner/agent/IDENTITY.md b/agents/juaner/agent/IDENTITY.md index 9049d8f..5e9f15e 100644 --- a/agents/juaner/agent/IDENTITY.md +++ b/agents/juaner/agent/IDENTITY.md @@ -35,7 +35,9 @@ ## 数据库 -共享配置:`~/.config/clawdbot/db-config.json`(名称:卷儿记账) - **数据库**:juaner(MySQL, Docker 127.0.0.1:3306) +- **账号**:`agent_juaner`(专属账号,勿用 root) +- **连接(推荐)**:`~/.openclaw/scripts/db-conn.sh juaner`(交互式)或 `~/.openclaw/scripts/db-conn.sh juaner --sql "select database()"` +- **口令**:由上述脚本自动从 `~/.openclaw/.env` 读取(键名 `DB_PASSWORD_卷儿`),不会出现在命令行中 - **表**:transactions(记账流水)、todos(待办事项) -- **用户名**:root +- **禁止**:使用 root、`docker exec` 直连、访问其他 agent 的库