{"id":"7b1f6d64-a4c8-4f4b-bd9d-0449ad0b838a","entityType":"agent","slug":"clawhub-smyx-sunjinhui-smyx-psychology-analysis","name":"Mental Health Analysis Tool | 心理健康分析工具","canonicalUrl":"https://www.xpersona.co/agent/clawhub-smyx-sunjinhui-smyx-psychology-analysis","canonicalPath":"/agent/clawhub-smyx-sunjinhui-smyx-psychology-analysis","generatedAt":"2026-10-10T05:06:44.058Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T16:21:03.031Z","emptyReason":null},"description":"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 Skill: Mental Health Analysis Tool | 心理健康分析工具 Owner: smyx-sunjinhui Summary: Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 Tags: latest:1.0.21 Version history: v1.0.21 | 202","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 2.3K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-psychology-analysis","sourceUrl":"https://clawhub.ai/smyx-sunjinhui/smyx-psychology-analysis","homepage":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-psychology-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/smyx-sunjinhui/smyx-psychology-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-psychology-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":67,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides struc"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T16:21:03.031Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T16:21:03.031Z","emptyReason":null},"stars":null,"forks":null,"downloads":2326,"packageName":null,"latestVersion":"1.0.21","tractionLabel":"2.3K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T16:21:03.031Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T16:21:03.031Z","lastCrawledAt":"2026-10-09T16:21:03.031Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T16:21:03.031Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.21","createdAt":"2026-10-03T21:33:26.041Z","changelog":"- Bumped minor version from 1.0.17 to 1.0.18 in SKILL.md. - Removed the file skill-card.md. - No other content or functional changes.","fileCount":31,"zipByteSize":40515},{"version":"1.0.20","createdAt":"2026-09-25T06:23:28.928Z","changelog":"- Updated version number to 1.0.20. - SKILL.md updated with minor corrections and adjustments. - skill-card.md file removed. - Slight version change in SKILL.md (from 1.0.15/1.0.17 to 1.0.20). - Adjusted documentation for clarity and maintenance.","fileCount":31,"zipByteSize":40545},{"version":"1.0.19","createdAt":"2026-09-09T05:34:29.389Z","changelog":"- Version bumped from 1.0.13 to 1.0.15 in SKILL.md. - Minor content or formatting changes in documentation. - Removed the file \"skill-card.md\".","fileCount":31,"zipByteSize":40734},{"version":"1.0.18","createdAt":"2026-08-28T06:30:28.044Z","changelog":"- Removed the file: skill-card.md. - No other code or functionality changes in this version.","fileCount":31,"zipByteSize":40832},{"version":"1.0.17","createdAt":"2026-08-20T03:43:28.353Z","changelog":"- Updated version number in SKILL.md from 1.0.12 to 1.0.13. - Removed redundant file: skill-card.md. - No changes to features or core documentation content. - Minor housekeeping to maintain file organization and keep versioning accurate.","fileCount":31,"zipByteSize":40619},{"version":"1.0.16","createdAt":"2026-08-16T06:42:33.313Z","changelog":"smyx-psychology-analysis 1.0.16 — Minor update with cleanup - Updated documentation in SKILL.md to version 1.0.12, reflecting latest feature overview. - Refined configuration in skills/smyx_common/scripts/config.yaml. - Removed the legacy documentation file skill-card.md.","fileCount":31,"zipByteSize":40668},{"version":"1.0.15","createdAt":"2026-08-04T01:04:35.244Z","changelog":"- Updated version number in SKILL.md from 1.0.9 to 1.0.10. - Removed the file skill-card.md. - No changes were made to functionality or features in the documentation.","fileCount":31,"zipByteSize":40695},{"version":"1.0.14","createdAt":"2026-07-30T01:29:40.021Z","changelog":"- Version updated from 1.0.7 to 1.0.9 in SKILL.md. - Minor documentation refinements in SKILL.md; content remains functionally unchanged. - Removed the skill-card.md file.","fileCount":31,"zipByteSize":40751}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-psychology-analysis","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-psychology-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-psychology-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-psychology-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-psychology-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-psychology-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-psychology-analysis/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T05:06:44.054Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-psychology-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-psychology-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-psychology-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-psychology-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-09T16:21:03.031Z","emptyReason":null},"readme":"Skill: Mental Health Analysis Tool | 心理健康分析工具\n\nOwner: smyx-sunjinhui\n\nSummary: Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议\n\nTags: latest:1.0.21\n\nVersion history:\n\nv1.0.21 | 2026-10-03T21:33:26.041Z | auto\n\n- Bumped minor version from 1.0.17 to 1.0.18 in SKILL.md.\n- Removed the file skill-card.md.\n- No other content or functional changes.\n\nv1.0.20 | 2026-09-25T06:23:28.928Z | auto\n\n- Updated version number to 1.0.20.\n- SKILL.md updated with minor corrections and adjustments.\n- skill-card.md file removed.\n- Slight version change in SKILL.md (from 1.0.15/1.0.17 to 1.0.20).\n- Adjusted documentation for clarity and maintenance.\n\nv1.0.19 | 2026-09-09T05:34:29.389Z | auto\n\n- Version bumped from 1.0.13 to 1.0.15 in SKILL.md.\n- Minor content or formatting changes in documentation.\n- Removed the file \"skill-card.md\".\n\nv1.0.18 | 2026-08-28T06:30:28.044Z | auto\n\n- Removed the file: skill-card.md.\n- No other code or functionality changes in this version.\n\nv1.0.17 | 2026-08-20T03:43:28.353Z | auto\n\n- Updated version number in SKILL.md from 1.0.12 to 1.0.13.\n- Removed redundant file: skill-card.md.\n- No changes to features or core documentation content.\n- Minor housekeeping to maintain file organization and keep versioning accurate.\n\nv1.0.16 | 2026-08-16T06:42:33.313Z | auto\n\nsmyx-psychology-analysis 1.0.16 — Minor update with cleanup\n\n- Updated documentation in SKILL.md to version 1.0.12, reflecting latest feature overview.\n- Refined configuration in skills/smyx_common/scripts/config.yaml.\n- Removed the legacy documentation file skill-card.md.\n\nv1.0.15 | 2026-08-04T01:04:35.244Z | auto\n\n- Updated version number in SKILL.md from 1.0.9 to 1.0.10.\n- Removed the file skill-card.md.\n- No changes were made to functionality or features in the documentation.\n\nv1.0.14 | 2026-07-30T01:29:40.021Z | auto\n\n- Version updated from 1.0.7 to 1.0.9 in SKILL.md.\n- Minor documentation refinements in SKILL.md; content remains functionally unchanged.\n- Removed the skill-card.md file.\n\nv1.0.13 | 2026-07-14T03:50:27.211Z | auto\n\nsmyx-psychology-analysis 1.0.13\n\n- Updated SKILL.md: incremented version number and made documentation/content adjustments.\n- Internal code or utility changes in skills/smyx_common/scripts/util.py.\n- Removed outdated or redundant file: skill-card.md.\n\nv1.0.12 | 2026-07-08T17:23:33.236Z | auto\n\npsychology-analysis v1.0.12\n\n- Updated core scripts: config.py, dao.py, util.py for improved internal logic and reliability.\n- Revised SKILL.md with version and document updates.\n- Removed the redundant skill-card.md file.\n- General codebase cleanup and documentation alignment for this release.\n\nv1.0.11 | 2026-06-28T16:28:26.192Z | auto\n\n- Removed the file: skill-card.md.\n- No updates or changes to core functionality or documentation content.\n\nv1.0.10 | 2026-06-25T14:43:35.033Z | auto\n\n- User identity handling is now fully automated; users are no longer prompted to input or view internal IDs (open-id).\n- All documentation and skill behavior updated to strictly hide internal identity parameters from end-users.\n- Historical report queries and all analysis processes are still performed via cloud API only; results formatting, report linking, and output requirements are unchanged.\n- Minor updates to skill documentation structure, supported input types, and usage examples for improved clarity.\n\nv1.0.9 | 2026-05-26T13:50:42.092Z | auto\n\n- Major directory and structure refactoring: introduced `skills/smyx_analysis` as the new analysis logic location; removed `skills/face_analysis`.\n- Configuration, utility, and script files migrated and updated to new modular paths.\n- Reduced maximum supported video file size to 10MB (from 100MB).\n- Minor updates to documentation for clarity and accuracy regarding usage and file requirements.\n- Historical analysis report listing behavior and table formatting unchanged; data source remains cloud-only.\n\nv1.0.8 | 2026-05-20T06:33:49.115Z | auto\n\n**Changelog for smyx-psychology-analysis v1.0.8**\n\n- Refactored and updated configuration handling: changes made to config.py, config.yaml, config-dev.yaml, and config-test.yaml.\n- Modified and possibly improved the utility script util.py.\n- No changes to the skill description/usage documentation in SKILL.md.\n- No changes to API or user-facing command examples.\n\nv1.0.7 | 2026-05-12T09:37:40.138Z | auto\n\n- Updated configuration scripts: config.yaml, config-dev.yaml, and config-test.yaml received changes.\n- Modified initialization and utility scripts in smyx_common/scripts (__init__.py and util.py).\n- Adjusted logic in config.py for configuration handling.\n- No changes to user-facing skill description or usage documentation.\n- Version incremented to 1.0.7.\n\nv1.0.6 | 2026-05-08T20:02:43.612Z | auto\n\n- Improved code and logic in core scripts: `skills/face_analysis/scripts/skill.py` and `skills/smyx_common/scripts/skill.py`\n- No changes to user-facing documentation or workflow\n- Maintains strict open-id acquisition and data access rules as before\n\nv1.0.5 | 2026-04-30T12:37:38.721Z | auto\n\n- Removed the following files from the project: LICENSE.txt, skills/face_analysis/LICENSE.txt, and skills/smyx_common/LICENSE.txt.\n- No changes to features, documentation, or code functionality in this release.\n\nv1.0.4 | 2026-04-30T10:49:55.692Z | auto\n\n- No changes detected in this version; documentation and functionality remain unchanged.\n- Version remains at 1.0.0, no updates to files or skill logic.\n\nv1.0.3 | 2026-04-30T10:32:37.819Z | auto\n\nNo changes detected in this version.  \n- Version number updated only; content and functionality remain the same.\n\nv1.0.2 | 2026-04-30T10:26:31.328Z | auto\n\nNo user-facing changes in this release.\n\n- No modifications detected in any files.\n- Functionality and documentation remain unchanged.\n\nv1.0.1 | 2026-04-30T10:25:33.485Z | auto\n\nsmyx-psychology-analysis 1.0.1\n\n- Added explicit LICENSE files for the main skill and submodules.\n- Updated configuration files: refined structure and options in skills/smyx_common/scripts.\n- Modified script logic in face_analysis and common modules to enhance configuration management.\n- Minor documentation update in SKILL.md (note: the version was added to SKILL.md in this release).\n- General codebase cleanup for clarity and maintainability.\n\nv1.0.0 | 2026-04-15T12:56:33.268Z | auto\n\n- Initial release of the psychology-analysis skill for structured mental health assessments via video analysis.\n- Supports recognition of common psychological problem tendencies (e.g., anxiety, depression, stress) using facial micro-expression/physiological signal detection.\n- Generates objective mental health analysis reports and practical improvement suggestions.\n- Enforces strict data privacy: all historical report queries must use cloud APIs; no local memory or long-term record retrieval allowed.\n- Includes automated open-id (user ID) retrieval flow, with mandatory user prompt if missing.\n- Provides clear markdown-formatted report tables with direct cloud report links for result viewing.\n\nArchive index:\n\nArchive v1.0.21: 31 files, 40515 bytes\n\nFiles: references/api_doc.md (643b), scripts/__init__.py (38b), scripts/config.py (651b), scripts/config.yaml (2b), scripts/psychology_analysis.py (8339b), scripts/skill.py (567b), skill-card.md (2199b), SKILL.md (10552b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (144b)\n\nFile v1.0.21:SKILL.md\n\n---\nname: \"psychology-analysis\"\ndescription: \"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议\"\nversion: \"1.0.18\"\nlicense: \"MIT-0\"\n---\n\n# 🧠 Mental Health Analysis Tool | 心理健康分析工具\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心理健康分析工具** |\n| 🎯 核心目标 | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `PSYCHOLOGY_ANALYSIS` |\n\nBased on advanced non-contact physiological signal detection and affective computing technologies, this feature captures\nsubtle facial blood flow chan ges (rPPG) and micro-expression characteristics (FACS) via high-precision cameras to\ndeeply\nanalyze user stress levels, anxiety tendencies, and depression tendencies. By leveraging remote photoplethysmography to\nrestore physiological indicators like Heart Rate Variability (HRV) and combining this with AI emotion recognition\nalgorithms to capture emotional fluctuations in micro-expressions, the system accurately quantifies mental health\nstatus. Ideal for corporate employee care, campus psychological screening, and home health monitoring, this feature\nprovides users with imperceptible and objective mental health assessment reports, facilitating the early detection and\nintervention of psychological issues.\n\n本功能基于多模态深度学习算法，针对个体的心理健康状态与行为模式进行全方位深度分析。系统支持通过视频流分析技术，实时捕捉并识别面部微表情、肢体语言及语音语调特征，精准筛查抑郁、焦虑、压力过大等常见心理问题倾向。在分析完成后，系统将自动生成包含风险等级、情绪趋势及行为特征的结构化心理健康分析报告，并基于认知行为疗法等专业理论，提供个性化的心理调适方案与改善建议，为用户提供科学、客观的心理健康参考依据\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过视频分析进行心理健康评估，获取结构化的心理健康分析报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 情绪状态识别 |\n| 3 | 行为模式分析 |\n| 4 | 社交互动评估 |\n| 5 | 常见心理问题倾向识别 |\n| 6 | 心理健康改善建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供需要分析的人物视频 URL 或文件需要进行心理健康分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要进行心理健康检查、心理行为分析、情绪压力评估时，提及心理健康、心理问题、抑郁焦虑评估、压力检测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史心理报告、心理健康报告清单、心理分析报告列表、显示所有心理报告，查询心理健康分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.psychology_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.psychology_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心理健康分析 | 调用 `-m scripts.psychology_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--analysis-type` | 分析类型，可选值：general/emotion/anxiety/depression/stress/other，默认 general（综合分析） | 按需填写 |\n| `--list` | 显示心理健康分析历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/psychology_analysis.py`](scripts/psychology_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **重要声明**：本分析仅供心理健康参考，不能替代专业心理医生诊断或治疗。如有明确心理困扰，请及时寻求专业帮助 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧩 常见心理问题类型 | Common Mental Health Issues\n| 维度/类型 | 说明 |\n|---|---|\n| **情绪相关** | 焦虑倾向、抑郁倾向、情绪低落、情绪亢奋 |\n| **压力相关** | 压力过大、紧张不安、放松困难 |\n| **社交相关** | 社交退缩、回避眼神交流、互动减少 |\n| **行为相关** | 活动减少、重复行为、坐姿僵硬 |\n| **认知相关** | 注意力不集中、思维迟缓 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地视频综合心理健康分析\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type general 分析网络视频焦虑倾向分析\npython -m scripts.psychology_analysis --url https://example.com/video.mp4 --analysis-type anxiety 分析本地视频抑郁状态评估\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type depression 显示历史分析报告/显示分析报告清单列表/显示历史心理报告（自动触发关键词：查看历史心理报告、历史报告、心理报告清单等）\npython -m scripts.psychology_analysis --list\n\n# 输出精简报告\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type general --detail basic\n\n# 保存结果到文件\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type stress --output result.json\n```\n\nFile v1.0.21:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-psychology-analysis\",\n  \"version\": \"1.0.21\",\n  \"publishedAt\": 1791063206041\n}\n\nFile v1.0.21:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心理健康分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动健康分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `PSYCHOLOGY_ANALYSIS` - 心理健康分析\n\nFile v1.0.21:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.21:scripts/config.yaml\n\n{}\n\nFile v1.0.21:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.21:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.21:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.21:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.21:skill-card.md\n\n## Description:\n\nAnalyzes videos for possible mental-health concerns and returns structured reports, suggestions, and links to past reports.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nIndividuals and teams use the skill to request video-based mental-health assessments, receive structured findings and suggestions, and retrieve prior reports. Results are informational and do not replace professional diagnosis or treatment.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive video or URL content is sent to a remote analysis service.\n\nMitigation: Obtain informed consent before submitting media or URLs and review the service's data-handling practices.\n\nRisk: Persistent local and cloud identities and locally stored authentication tokens can associate reports with earlier activity.\n\nMitigation: Review the skill before installation, especially in shared workspaces, and protect local credentials and report access.\n\nRisk: Historical reports could be exposed across users without reliable identity separation.\n\nMitigation: Do not use report-history retrieval unless per-user identity isolation is guaranteed.\n\n## Reference(s):\n\n- [ClawHub skill listing](https://clawhub.ai/smyx-sunjinhui/skills/smyx-psychology-analysis)\n- [API documentation](references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured analysis text or JSON; historical reports as a Markdown table]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include findings, suggestions, and report links; results are not a clinical diagnosis.]\n\n## Skill Version(s):\n\n1.0.21 (source: ClawHub release metadata; bundled skill frontmatter says 1.0.18)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.21:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.21:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.20: 31 files, 40545 bytes\n\nFiles: references/api_doc.md (643b), scripts/__init__.py (38b), scripts/config.py (651b), scripts/config.yaml (2b), scripts/psychology_analysis.py (8339b), scripts/skill.py (567b), skill-card.md (2311b), SKILL.md (10552b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (144b)\n\nFile v1.0.20:SKILL.md\n\n---\nname: \"psychology-analysis\"\ndescription: \"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 🧠 Mental Health Analysis Tool | 心理健康分析工具\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心理健康分析工具** |\n| 🎯 核心目标 | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `PSYCHOLOGY_ANALYSIS` |\n\nBased on advanced non-contact physiological signal detection and affective computing technologies, this feature captures\nsubtle facial blood flow chan ges (rPPG) and micro-expression characteristics (FACS) via high-precision cameras to\ndeeply\nanalyze user stress levels, anxiety tendencies, and depression tendencies. By leveraging remote photoplethysmography to\nrestore physiological indicators like Heart Rate Variability (HRV) and combining this with AI emotion recognition\nalgorithms to capture emotional fluctuations in micro-expressions, the system accurately quantifies mental health\nstatus. Ideal for corporate employee care, campus psychological screening, and home health monitoring, this feature\nprovides users with imperceptible and objective mental health assessment reports, facilitating the early detection and\nintervention of psychological issues.\n\n本功能基于多模态深度学习算法，针对个体的心理健康状态与行为模式进行全方位深度分析。系统支持通过视频流分析技术，实时捕捉并识别面部微表情、肢体语言及语音语调特征，精准筛查抑郁、焦虑、压力过大等常见心理问题倾向。在分析完成后，系统将自动生成包含风险等级、情绪趋势及行为特征的结构化心理健康分析报告，并基于认知行为疗法等专业理论，提供个性化的心理调适方案与改善建议，为用户提供科学、客观的心理健康参考依据\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过视频分析进行心理健康评估，获取结构化的心理健康分析报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 情绪状态识别 |\n| 3 | 行为模式分析 |\n| 4 | 社交互动评估 |\n| 5 | 常见心理问题倾向识别 |\n| 6 | 心理健康改善建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供需要分析的人物视频 URL 或文件需要进行心理健康分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要进行心理健康检查、心理行为分析、情绪压力评估时，提及心理健康、心理问题、抑郁焦虑评估、压力检测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史心理报告、心理健康报告清单、心理分析报告列表、显示所有心理报告，查询心理健康分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.psychology_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.psychology_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心理健康分析 | 调用 `-m scripts.psychology_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--analysis-type` | 分析类型，可选值：general/emotion/anxiety/depression/stress/other，默认 general（综合分析） | 按需填写 |\n| `--list` | 显示心理健康分析历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/psychology_analysis.py`](scripts/psychology_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **重要声明**：本分析仅供心理健康参考，不能替代专业心理医生诊断或治疗。如有明确心理困扰，请及时寻求专业帮助 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧩 常见心理问题类型 | Common Mental Health Issues\n| 维度/类型 | 说明 |\n|---|---|\n| **情绪相关** | 焦虑倾向、抑郁倾向、情绪低落、情绪亢奋 |\n| **压力相关** | 压力过大、紧张不安、放松困难 |\n| **社交相关** | 社交退缩、回避眼神交流、互动减少 |\n| **行为相关** | 活动减少、重复行为、坐姿僵硬 |\n| **认知相关** | 注意力不集中、思维迟缓 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地视频综合心理健康分析\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type general 分析网络视频焦虑倾向分析\npython -m scripts.psychology_analysis --url https://example.com/video.mp4 --analysis-type anxiety 分析本地视频抑郁状态评估\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type depression 显示历史分析报告/显示分析报告清单列表/显示历史心理报告（自动触发关键词：查看历史心理报告、历史报告、心理报告清单等）\npython -m scripts.psychology_analysis --list\n\n# 输出精简报告\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type general --detail basic\n\n# 保存结果到文件\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type stress --output result.json\n```\n\nFile v1.0.20:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-psychology-analysis\",\n  \"version\": \"1.0.20\",\n  \"publishedAt\": 1790317408928\n}\n\nFile v1.0.20:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心理健康分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动健康分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `PSYCHOLOGY_ANALYSIS` - 心理健康分析\n\nFile v1.0.20:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.20:scripts/config.yaml\n\n{}\n\nFile v1.0.20:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.20:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.20:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.20:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.20:skill-card.md\n\n## Description:\n\nAnalyzes video for mental-health indicators and provides structured reports and improvement suggestions.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nPeople seeking mental-health insights use the skill to analyze video for emotional and behavioral patterns, receive a structured report, and review their historical reports. Results are informational and do not replace clinical assessment or care.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive video, biometric cues, and mental-health inferences are sent to external services without a clear consent boundary.\n\nMitigation: Obtain informed consent before use and confirm where data is sent, who can access it, and how it is retained and deleted.\n\nRisk: The skill silently creates or reuses an identity and stores authentication tokens locally, linking report history to that identity.\n\nMitigation: Review account creation and token storage before installation; restrict access to credentials and historical reports.\n\nRisk: Mental-health findings may be mistaken for a clinical diagnosis.\n\nMitigation: Treat reports as informational only and seek qualified professional care for diagnosis or treatment.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/smyx-sunjinhui/skills/smyx-psychology-analysis)\n- [API documentation](references/api_doc.md)\n- [Analysis API error codes](skills/smyx_analysis/references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured text or JSON analysis report; Markdown table for historical reports]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include a report-export link or be saved to a local file.]\n\n## Skill Version(s):\n\n1.0.20 (source: server-resolved ClawHub release; artifact frontmatter says 1.0.17)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.20:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.20:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.19: 31 files, 40734 bytes\n\nFiles: references/api_doc.md (643b), scripts/__init__.py (38b), scripts/config.py (651b), scripts/config.yaml (2b), scripts/psychology_analysis.py (8339b), scripts/skill.py (567b), skill-card.md (2775b), SKILL.md (10552b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (144b)\n\nFile v1.0.19:SKILL.md\n\n---\nname: \"psychology-analysis\"\ndescription: \"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# 🧠 Mental Health Analysis Tool | 心理健康分析工具\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心理健康分析工具** |\n| 🎯 核心目标 | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `PSYCHOLOGY_ANALYSIS` |\n\nBased on advanced non-contact physiological signal detection and affective computing technologies, this feature captures\nsubtle facial blood flow chan ges (rPPG) and micro-expression characteristics (FACS) via high-precision cameras to\ndeeply\nanalyze user stress levels, anxiety tendencies, and depression tendencies. By leveraging remote photoplethysmography to\nrestore physiological indicators like Heart Rate Variability (HRV) and combining this with AI emotion recognition\nalgorithms to capture emotional fluctuations in micro-expressions, the system accurately quantifies mental health\nstatus. Ideal for corporate employee care, campus psychological screening, and home health monitoring, this feature\nprovides users with imperceptible and objective mental health assessment reports, facilitating the early detection and\nintervention of psychological issues.\n\n本功能基于多模态深度学习算法，针对个体的心理健康状态与行为模式进行全方位深度分析。系统支持通过视频流分析技术，实时捕捉并识别面部微表情、肢体语言及语音语调特征，精准筛查抑郁、焦虑、压力过大等常见心理问题倾向。在分析完成后，系统将自动生成包含风险等级、情绪趋势及行为特征的结构化心理健康分析报告，并基于认知行为疗法等专业理论，提供个性化的心理调适方案与改善建议，为用户提供科学、客观的心理健康参考依据\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过视频分析进行心理健康评估，获取结构化的心理健康分析报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 情绪状态识别 |\n| 3 | 行为模式分析 |\n| 4 | 社交互动评估 |\n| 5 | 常见心理问题倾向识别 |\n| 6 | 心理健康改善建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供需要分析的人物视频 URL 或文件需要进行心理健康分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要进行心理健康检查、心理行为分析、情绪压力评估时，提及心理健康、心理问题、抑郁焦虑评估、压力检测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史心理报告、心理健康报告清单、心理分析报告列表、显示所有心理报告，查询心理健康分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.psychology_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.psychology_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心理健康分析 | 调用 `-m scripts.psychology_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--analysis-type` | 分析类型，可选值：general/emotion/anxiety/depression/stress/other，默认 general（综合分析） | 按需填写 |\n| `--list` | 显示心理健康分析历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/psychology_analysis.py`](scripts/psychology_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **重要声明**：本分析仅供心理健康参考，不能替代专业心理医生诊断或治疗。如有明确心理困扰，请及时寻求专业帮助 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧩 常见心理问题类型 | Common Mental Health Issues\n| 维度/类型 | 说明 |\n|---|---|\n| **情绪相关** | 焦虑倾向、抑郁倾向、情绪低落、情绪亢奋 |\n| **压力相关** | 压力过大、紧张不安、放松困难 |\n| **社交相关** | 社交退缩、回避眼神交流、互动减少 |\n| **行为相关** | 活动减少、重复行为、坐姿僵硬 |\n| **认知相关** | 注意力不集中、思维迟缓 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地视频综合心理健康分析\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type general 分析网络视频焦虑倾向分析\npython -m scripts.psychology_analysis --url https://example.com/video.mp4 --analysis-type anxiety 分析本地视频抑郁状态评估\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type depression 显示历史分析报告/显示分析报告清单列表/显示历史心理报告（自动触发关键词：查看历史心理报告、历史报告、心理报告清单等）\npython -m scripts.psychology_analysis --list\n\n# 输出精简报告\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type general --detail basic\n\n# 保存结果到文件\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type stress --output result.json\n```\n\nFile v1.0.19:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-psychology-analysis\",\n  \"version\": \"1.0.19\",\n  \"publishedAt\": 1788932069389\n}\n\nFile v1.0.19:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心理健康分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动健康分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `PSYCHOLOGY_ANALYSIS` - 心理健康分析\n\nFile v1.0.19:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.19:scripts/config.yaml\n\n{}\n\nFile v1.0.19:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.19:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.19:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.19:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.19:skill-card.md\n\n## Description:\n\nAnalyzes videos for mental-health and psychological-behavior indicators and returns structured reports with risk notes, improvement suggestions, and report links.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users, developers, and care program operators use this skill to submit a person's video file or public video URL to a cloud-backed analysis service, then review structured mental-health findings, suggestions, historical reports, and report links.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Videos of people and derived mental-health reports are sent to the publisher's cloud service.\n\nMitigation: Use only with explicit subject consent, documented retention and deletion terms, and an accepted data-processing posture for personal or health-related media.\n\nRisk: Security evidence flags under-disclosed cloud handling and plaintext-transport concerns.\n\nMitigation: Require production HTTPS endpoints and review all configured service URLs before deployment.\n\nRisk: The skill may handle identity values and service tokens while retrieving reports and submitting analysis jobs.\n\nMitigation: Use safer token storage, avoid exposing internal identity values in user-facing output, and rotate credentials if logs or local files are exposed.\n\nRisk: Mental-health analysis output can be mistaken for clinical diagnosis.\n\nMitigation: Present results as reference information only and direct users with clear distress or clinical needs to qualified mental-health professionals.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-psychology-analysis)\n- [Publisher profile](https://clawhub.ai/user/smyx-sunjinhui)\n- [API interface documentation](references/api_doc.md)\n- [SMYX analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Files, Guidance]\n\n**Output Format:** [Markdown or JSON analysis reports with report links; optional saved output file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports local mp4, avi, and mov files up to 10 MB or public video URLs; detail modes include basic, standard, and json.]\n\n## Skill Version(s):\n\n1.0.19 (source: server release metadata; artifact frontmatter says 1.0.15)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.19:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.19:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.18: 31 files, 40832 bytes\n\nFiles: references/api_doc.md (643b), scripts/__init__.py (38b), scripts/config.py (651b), scripts/config.yaml (2b), scripts/psychology_analysis.py (8339b), scripts/skill.py (567b), skill-card.md (2785b), SKILL.md (10552b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (144b)\n\nFile v1.0.18:SKILL.md\n\n---\nname: \"psychology-analysis\"\ndescription: \"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# 🧠 Mental Health Analysis Tool | 心理健康分析工具\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心理健康分析工具** |\n| 🎯 核心目标 | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `PSYCHOLOGY_ANALYSIS` |\n\nBased on advanced non-contact physiological signal detection and affective computing technologies, this feature captures\nsubtle facial blood flow chan ges (rPPG) and micro-expression characteristics (FACS) via high-precision cameras to\ndeeply\nanalyze user stress levels, anxiety tendencies, and depression tendencies. By leveraging remote photoplethysmography to\nrestore physiological indicators like Heart Rate Variability (HRV) and combining this with AI emotion recognition\nalgorithms to capture emotional fluctuations in micro-expressions, the system accurately quantifies mental health\nstatus. Ideal for corporate employee care, campus psychological screening, and home health monitoring, this feature\nprovides users with imperceptible and objective mental health assessment reports, facilitating the early detection and\nintervention of psychological issues.\n\n本功能基于多模态深度学习算法，针对个体的心理健康状态与行为模式进行全方位深度分析。系统支持通过视频流分析技术，实时捕捉并识别面部微表情、肢体语言及语音语调特征，精准筛查抑郁、焦虑、压力过大等常见心理问题倾向。在分析完成后，系统将自动生成包含风险等级、情绪趋势及行为特征的结构化心理健康分析报告，并基于认知行为疗法等专业理论，提供个性化的心理调适方案与改善建议，为用户提供科学、客观的心理健康参考依据\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过视频分析进行心理健康评估，获取结构化的心理健康分析报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 情绪状态识别 |\n| 3 | 行为模式分析 |\n| 4 | 社交互动评估 |\n| 5 | 常见心理问题倾向识别 |\n| 6 | 心理健康改善建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供需要分析的人物视频 URL 或文件需要进行心理健康分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要进行心理健康检查、心理行为分析、情绪压力评估时，提及心理健康、心理问题、抑郁焦虑评估、压力检测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史心理报告、心理健康报告清单、心理分析报告列表、显示所有心理报告，查询心理健康分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.psychology_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.psychology_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心理健康分析 | 调用 `-m scripts.psychology_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--analysis-type` | 分析类型，可选值：general/emotion/anxiety/depression/stress/other，默认 general（综合分析） | 按需填写 |\n| `--list` | 显示心理健康分析历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/psychology_analysis.py`](scripts/psychology_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **重要声明**：本分析仅供心理健康参考，不能替代专业心理医生诊断或治疗。如有明确心理困扰，请及时寻求专业帮助 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧩 常见心理问题类型 | Common Mental Health Issues\n| 维度/类型 | 说明 |\n|---|---|\n| **情绪相关** | 焦虑倾向、抑郁倾向、情绪低落、情绪亢奋 |\n| **压力相关** | 压力过大、紧张不安、放松困难 |\n| **社交相关** | 社交退缩、回避眼神交流、互动减少 |\n| **行为相关** | 活动减少、重复行为、坐姿僵硬 |\n| **认知相关** | 注意力不集中、思维迟缓 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地视频综合心理健康分析\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type general 分析网络视频焦虑倾向分析\npython -m scripts.psychology_analysis --url https://example.com/video.mp4 --analysis-type anxiety 分析本地视频抑郁状态评估\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type depression 显示历史分析报告/显示分析报告清单列表/显示历史心理报告（自动触发关键词：查看历史心理报告、历史报告、心理报告清单等）\npython -m scripts.psychology_analysis --list\n\n# 输出精简报告\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type general --detail basic\n\n# 保存结果到文件\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type stress --output result.json\n```\n\nFile v1.0.18:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-psychology-analysis\",\n  \"version\": \"1.0.18\",\n  \"publishedAt\": 1787898628044\n}\n\nFile v1.0.18:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心理健康分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动健康分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `PSYCHOLOGY_ANALYSIS` - 心理健康分析\n\nFile v1.0.18:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.18:scripts/config.yaml\n\n{}\n\nFile v1.0.18:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.18:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.18:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.18:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.18:skill-card.md\n\n## Description:\n\nAnalyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and operators use this skill to analyze a provided person video or video URL for mental-health tendency signals, then receive structured reports, risk indicators, improvement suggestions, and links to historical reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive mental-health videos or video URLs may be sent to configured cloud or private-network services.\n\nMitigation: Use the skill only with consent from anyone shown, verify the configured endpoints, and confirm provider privacy and retention terms before deployment.\n\nRisk: The skill may create or reuse a local account record and persist service tokens in the workspace database.\n\nMitigation: Review local storage, credential handling, access controls, and deletion procedures before enabling the skill in shared or production environments.\n\nRisk: Mental-health analysis output may be mistaken for professional diagnosis or treatment advice.\n\nMitigation: Present outputs as reference information only and direct users with psychological distress to qualified mental-health professionals.\n\n## Reference(s):\n\n- [API Interface Documentation](references/api_doc.md)\n- [SMYX Analysis API Documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-psychology-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown reports, Markdown tables, or JSON returned from CLI/API calls]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Outputs may include structured mental-health analysis results, risk prompts, improvement suggestions, report links, and historical report lists.]\n\n## Skill Version(s):\n\n1.0.18 (source: server release metadata; artifact frontmatter: 1.0.13)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.18:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.18:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.17: 31 files, 40619 bytes\n\nFiles: references/api_doc.md (643b), scripts/__init__.py (38b), scripts/config.py (651b), scripts/config.yaml (2b), scripts/psychology_analysis.py (8339b), scripts/skill.py (567b), skill-card.md (2634b), SKILL.md (10552b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (144b)\n\nFile v1.0.17:SKILL.md\n\n---\nname: \"psychology-analysis\"\ndescription: \"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# 🧠 Mental Health Analysis Tool | 心理健康分析工具\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心理健康分析工具** |\n| 🎯 核心目标 | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `PSYCHOLOGY_ANALYSIS` |\n\nBased on advanced non-contact physiological signal detection and affective computing technologies, this feature captures\nsubtle facial blood flow chan ges (rPPG) and micro-expression characteristics (FACS) via high-precision cameras to\ndeeply\nanalyze user stress levels, anxiety tendencies, and depression tendencies. By leveraging remote photoplethysmography to\nrestore physiological indicators like Heart Rate Variability (HRV) and combining this with AI emotion recognition\nalgorithms to capture emotional fluctuations in micro-expressions, the system accurately quantifies mental health\nstatus. Ideal for corporate employee care, campus psychological screening, and home health monitoring, this feature\nprovides users with imperceptible and objective mental health assessment reports, facilitating the early detection and\nintervention of psychological issues.\n\n本功能基于多模态深度学习算法，针对个体的心理健康状态与行为模式进行全方位深度分析。系统支持通过视频流分析技术，实时捕捉并识别面部微表情、肢体语言及语音语调特征，精准筛查抑郁、焦虑、压力过大等常见心理问题倾向。在分析完成后，系统将自动生成包含风险等级、情绪趋势及行为特征的结构化心理健康分析报告，并基于认知行为疗法等专业理论，提供个性化的心理调适方案与改善建议，为用户提供科学、客观的心理健康参考依据\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过视频分析进行心理健康评估，获取结构化的心理健康分析报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 情绪状态识别 |\n| 3 | 行为模式分析 |\n| 4 | 社交互动评估 |\n| 5 | 常见心理问题倾向识别 |\n| 6 | 心理健康改善建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供需要分析的人物视频 URL 或文件需要进行心理健康分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要进行心理健康检查、心理行为分析、情绪压力评估时，提及心理健康、心理问题、抑郁焦虑评估、压力检测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史心理报告、心理健康报告清单、心理分析报告列表、显示所有心理报告，查询心理健康分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.psychology_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.psychology_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心理健康分析 | 调用 `-m scripts.psychology_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--analysis-type` | 分析类型，可选值：general/emotion/anxiety/depression/stress/other，默认 general（综合分析） | 按需填写 |\n| `--list` | 显示心理健康分析历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/psychology_analysis.py`](scripts/psychology_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **重要声明**：本分析仅供心理健康参考，不能替代专业心理医生诊断或治疗。如有明确心理困扰，请及时寻求专业帮助 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧩 常见心理问题类型 | Common Mental Health Issues\n| 维度/类型 | 说明 |\n|---|---|\n| **情绪相关** | 焦虑倾向、抑郁倾向、情绪低落、情绪亢奋 |\n| **压力相关** | 压力过大、紧张不安、放松困难 |\n| **社交相关** | 社交退缩、回避眼神交流、互动减少 |\n| **行为相关** | 活动减少、重复行为、坐姿僵硬 |\n| **认知相关** | 注意力不集中、思维迟缓 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地视频综合心理健康分析\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type general 分析网络视频焦虑倾向分析\npython -m scripts.psychology_analysis --url https://example.com/video.mp4 --analysis-type anxiety 分析本地视频抑郁状态评估\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type depression 显示历史分析报告/显示分析报告清单列表/显示历史心理报告（自动触发关键词：查看历史心理报告、历史报告、心理报告清单等）\npython -m scripts.psychology_analysis --list\n\n# 输出精简报告\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type general --detail basic\n\n# 保存结果到文件\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type stress --output result.json\n```\n\nFile v1.0.17:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-psychology-analysis\",\n  \"version\": \"1.0.17\",\n  \"publishedAt\": 1787197408353\n}\n\nFile v1.0.17:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心理健康分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动健康分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `PSYCHOLOGY_ANALYSIS` - 心理健康分析\n\nFile v1.0.17:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.17:scripts/config.yaml\n\n{}\n\nFile v1.0.17:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.17:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.17:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.17:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.17:skill-card.md\n\n## Description:\n\nAnalyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to analyze submitted videos or video URLs for psychological behavior signals, mental health tendencies, and structured improvement suggestions. It can also retrieve cloud-hosted historical mental health analysis reports for the resolved user identity.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive videos, video URLs, identity metadata, and historical report requests may be sent to an external service and associated with a persistent account.\n\nMitigation: Require explicit consent for each analysis or history lookup, avoid analyzing third-party or highly private videos without permission, and verify the service endpoint plus data retention and deletion terms before use.\n\nRisk: Cloud history lookup can expose prior mental health analysis reports linked to the resolved user identity.\n\nMitigation: Confirm the user's intent before history retrieval and return only the report history needed for the current request.\n\nRisk: Mental health analysis output could be mistaken for professional diagnosis or treatment advice.\n\nMitigation: Present results as informational mental health reference only and direct users with psychological distress to qualified professionals.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-psychology-analysis)\n- [API documentation](references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Guidance]\n\n**Output Format:** [Markdown or JSON structured report with analysis details, suggestions, history results, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include cloud report history and external report export links returned by the configured service.]\n\n## Skill Version(s):\n\n1.0.17 (source: server release metadata; artifact frontmatter reports 1.0.13)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.17:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.17:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.16: 31 files, 40668 bytes\n\nFiles: references/api_doc.md (643b), scripts/__init__.py (38b), scripts/config.py (651b), scripts/config.yaml (2b), scripts/psychology_analysis.py (8339b), scripts/skill.py (567b), skill-card.md (2662b), SKILL.md (10552b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (144b)\n\nFile v1.0.16:SKILL.md\n\n---\nname: \"psychology-analysis\"\ndescription: \"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 🧠 Mental Health Analysis Tool | 心理健康分析工具\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心理健康分析工具** |\n| 🎯 核心目标 | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `PSYCHOLOGY_ANALYSIS` |\n\nBased on advanced non-contact physiological signal detection and affective computing technologies, this feature captures\nsubtle facial blood flow chan ges (rPPG) and micro-expression characteristics (FACS) via high-precision cameras to\ndeeply\nanalyze user stress levels, anxiety tendencies, and depression tendencies. By leveraging remote photoplethysmography to\nrestore physiological indicators like Heart Rate Variability (HRV) and combining this with AI emotion recognition\nalgorithms to capture emotional fluctuations in micro-expressions, the system accurately quantifies mental health\nstatus. Ideal for corporate employee care, campus psychological screening, and home health monitoring, this feature\nprovides users with imperceptible and objective mental health assessment reports, facilitating the early detection and\nintervention of psychological issues.\n\n本功能基于多模态深度学习算法，针对个体的心理健康状态与行为模式进行全方位深度分析。系统支持通过视频流分析技术，实时捕捉并识别面部微表情、肢体语言及语音语调特征，精准筛查抑郁、焦虑、压力过大等常见心理问题倾向。在分析完成后，系统将自动生成包含风险等级、情绪趋势及行为特征的结构化心理健康分析报告，并基于认知行为疗法等专业理论，提供个性化的心理调适方案与改善建议，为用户提供科学、客观的心理健康参考依据\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过视频分析进行心理健康评估，获取结构化的心理健康分析报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 情绪状态识别 |\n| 3 | 行为模式分析 |\n| 4 | 社交互动评估 |\n| 5 | 常见心理问题倾向识别 |\n| 6 | 心理健康改善建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供需要分析的人物视频 URL 或文件需要进行心理健康分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要进行心理健康检查、心理行为分析、情绪压力评估时，提及心理健康、心理问题、抑郁焦虑评估、压力检测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史心理报告、心理健康报告清单、心理分析报告列表、显示所有心理报告，查询心理健康分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.psychology_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.psychology_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心理健康分析 | 调用 `-m scripts.psychology_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--analysis-type` | 分析类型，可选值：general/emotion/anxiety/depression/stress/other，默认 general（综合分析） | 按需填写 |\n| `--list` | 显示心理健康分析历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/psychology_analysis.py`](scripts/psychology_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **重要声明**：本分析仅供心理健康参考，不能替代专业心理医生诊断或治疗。如有明确心理困扰，请及时寻求专业帮助 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧩 常见心理问题类型 | Common Mental Health Issues\n| 维度/类型 | 说明 |\n|---|---|\n| **情绪相关** | 焦虑倾向、抑郁倾向、情绪低落、情绪亢奋 |\n| **压力相关** | 压力过大、紧张不安、放松困难 |\n| **社交相关** | 社交退缩、回避眼神交流、互动减少 |\n| **行为相关** | 活动减少、重复行为、坐姿僵硬 |\n| **认知相关** | 注意力不集中、思维迟缓 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地视频综合心理健康分析\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type general 分析网络视频焦虑倾向分析\npython -m scripts.psychology_analysis --url https://example.com/video.mp4 --analysis-type anxiety 分析本地视频抑郁状态评估\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type depression 显示历史分析报告/显示分析报告清单列表/显示历史心理报告（自动触发关键词：查看历史心理报告、历史报告、心理报告清单等）\npython -m scripts.psychology_analysis --list\n\n# 输出精简报告\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type general --detail basic\n\n# 保存结果到文件\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type stress --output result.json\n```\n\nFile v1.0.16:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-psychology-analysis\",\n  \"version\": \"1.0.16\",\n  \"publishedAt\": 1786862553313\n}\n\nFile v1.0.16:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心理健康分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动健康分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `PSYCHOLOGY_ANALYSIS` - 心理健康分析\n\nFile v1.0.16:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.16:scripts/config.yaml\n\n{}\n\nFile v1.0.16:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.16:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.16:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.16:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.16:skill-card.md\n\n## Description:\n\nAnalyzes video inputs for mental-health and psychological behavior signals, then returns structured reports with tendency indicators, suggestions, and report links.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to submit a local video or public video URL for mental-health analysis, retrieve historical report lists from the cloud service, and receive structured result summaries for non-diagnostic reference.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Videos or video URLs may be sent to a remote service, and reports may be stored and queried in the cloud.\n\nMitigation: Use only with appropriate user consent and data-handling review for sensitive health-related media.\n\nRisk: Mental-health analysis output could be mistaken for medical diagnosis or treatment advice.\n\nMitigation: Present results as non-diagnostic reference information and direct users with significant concerns to qualified professionals.\n\nRisk: Configuration may include development, private, or HTTP service endpoints that are unsuitable for deployment.\n\nMitigation: Review and correct endpoint configuration before installation or operational use.\n\nRisk: The skill may create or reuse local identity and token persistence for cloud report association.\n\nMitigation: Review local identity storage behavior and retention before enabling the skill in shared or regulated environments.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-psychology-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [API interface documentation](references/api_doc.md)\n- [smyx_analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown text, JSON analysis payloads, and shell command examples]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May save report output to a file when --output is supplied; analysis supports local mp4, avi, and mov files up to 10MB or public video URLs.]\n\n## Skill Version(s):\n\n1.0.16 (source: server release metadata; artifact SKILL.md frontmatter reports 1.0.12)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.16:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.16:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.15: 31 files, 40695 bytes\n\nFiles: references/api_doc.md (643b), scripts/__init__.py (38b), scripts/config.py (651b), scripts/config.yaml (2b), scripts/psychology_analysis.py (8339b), scripts/skill.py (567b), skill-card.md (2838b), SKILL.md (10552b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (144b)\n\nFile v1.0.15:SKILL.md\n\n---\nname: \"psychology-analysis\"\ndescription: \"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🧠 Mental Health Analysis Tool | 心理健康分析工具\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心理健康分析工具** |\n| 🎯 核心目标 | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `PSYCHOLOGY_ANALYSIS` |\n\nBased on advanced non-contact physiological signal detection and affective computing technologies, this feature captures\nsubtle facial blood flow chan ges (rPPG) and micro-expression characteristics (FACS) via high-precision cameras to\ndeeply\nanalyze user stress levels, anxiety tendencies, and depression tendencies. By leveraging remote photoplethysmography to\nrestore physiological indicators like Heart Rate Variability (HRV) and combining this with AI emotion recognition\nalgorithms to capture emotional fluctuations in micro-expressions, the system accurately quantifies mental health\nstatus. Ideal for corporate employee care, campus psychological screening, and home health monitoring, this feature\nprovides users with imperceptible and objective mental health assessment reports, facilitating the early detection and\nintervention of psychological issues.\n\n本功能基于多模态深度学习算法，针对个体的心理健康状态与行为模式进行全方位深度分析。系统支持通过视频流分析技术，实时捕捉并识别面部微表情、肢体语言及语音语调特征，精准筛查抑郁、焦虑、压力过大等常见心理问题倾向。在分析完成后，系统将自动生成包含风险等级、情绪趋势及行为特征的结构化心理健康分析报告，并基于认知行为疗法等专业理论，提供个性化的心理调适方案与改善建议，为用户提供科学、客观的心理健康参考依据\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过视频分析进行心理健康评估，获取结构化的心理健康分析报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 情绪状态识别 |\n| 3 | 行为模式分析 |\n| 4 | 社交互动评估 |\n| 5 | 常见心理问题倾向识别 |\n| 6 | 心理健康改善建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供需要分析的人物视频 URL 或文件需要进行心理健康分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要进行心理健康检查、心理行为分析、情绪压力评估时，提及心理健康、心理问题、抑郁焦虑评估、压力检测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史心理报告、心理健康报告清单、心理分析报告列表、显示所有心理报告，查询心理健康分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.psychology_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.psychology_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心理健康分析 | 调用 `-m scripts.psychology_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--analysis-type` | 分析类型，可选值：general/emotion/anxiety/depression/stress/other，默认 general（综合分析） | 按需填写 |\n| `--list` | 显示心理健康分析历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/psychology_analysis.py`](scripts/psychology_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **重要声明**：本分析仅供心理健康参考，不能替代专业心理医生诊断或治疗。如有明确心理困扰，请及时寻求专业帮助 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧩 常见心理问题类型 | Common Mental Health Issues\n| 维度/类型 | 说明 |\n|---|---|\n| **情绪相关** | 焦虑倾向、抑郁倾向、情绪低落、情绪亢奋 |\n| **压力相关** | 压力过大、紧张不安、放松困难 |\n| **社交相关** | 社交退缩、回避眼神交流、互动减少 |\n| **行为相关** | 活动减少、重复行为、坐姿僵硬 |\n| **认知相关** | 注意力不集中、思维迟缓 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地视频综合心理健康分析\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type general 分析网络视频焦虑倾向分析\npython -m scripts.psychology_analysis --url https://example.com/video.mp4 --analysis-type anxiety 分析本地视频抑郁状态评估\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type depression 显示历史分析报告/显示分析报告清单列表/显示历史心理报告（自动触发关键词：查看历史心理报告、历史报告、心理报告清单等）\npython -m scripts.psychology_analysis --list\n\n# 输出精简报告\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type general --detail basic\n\n# 保存结果到文件\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type stress --output result.json\n```\n\nFile v1.0.15:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-psychology-analysis\",\n  \"version\": \"1.0.15\",\n  \"publishedAt\": 1785805475244\n}\n\nFile v1.0.15:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心理健康分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动健康分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `PSYCHOLOGY_ANALYSIS` - 心理健康分析\n\nFile v1.0.15:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.15:scripts/config.yaml\n\n{}\n\nFile v1.0.15:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.15:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.15:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.15:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.15:skill-card.md\n\n## Description: <br>\nAnalyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and developers use this skill to submit mental-health-related video files or video URLs for cloud analysis, receive structured reports, and query prior reports. It is intended as a wellness reference and does not replace professional mental-health diagnosis or treatment. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive mental-health videos or video URLs are sent to a configured cloud service. <br>\nMitigation: Use the skill only with informed consent, avoid uploading other people's media, and use a separate workspace or account for testing. <br>\nRisk: Reports are associated with an automatically selected identity and prior reports can be queried from the cloud service. <br>\nMitigation: Review the active workspace and account context before use, and avoid mixing test reports with production or personal reports. <br>\nRisk: Service tokens may persist in the local workspace database. <br>\nMitigation: Limit workspace access, remove or rotate credentials after evaluation, and avoid sharing workspaces that have run the skill. <br>\nRisk: Mental-health analysis output may be mistaken for clinical diagnosis or treatment advice. <br>\nMitigation: Present results as a wellness reference only and direct users with mental-health concerns to qualified professionals. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-psychology-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API documentation](references/api_doc.md) <br>\n- [Analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, JSON, Guidance] <br>\n**Output Format:** [Markdown text with optional structured JSON report content and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Can save report output to a user-specified local file when requested.] <br>\n\n## Skill Version(s): <br>\n1.0.15 (source: server release metadata; artifact frontmatter reports 1.0.10) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.15:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.15:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.14: 31 files, 40751 bytes\n\nFiles: references/api_doc.md (643b), scripts/__init__.py (38b), scripts/config.py (651b), scripts/config.yaml (2b), scripts/psychology_analysis.py (8339b), scripts/skill.py (567b), skill-card.md (3060b), SKILL.md (10551b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (144b)\n\nFile v1.0.14:SKILL.md\n\n---\nname: \"psychology-analysis\"\ndescription: \"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🧠 Mental Health Analysis Tool | 心理健康分析工具\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心理健康分析工具** |\n| 🎯 核心目标 | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `PSYCHOLOGY_ANALYSIS` |\n\nBased on advanced non-contact physiological signal detection and affective computing technologies, this feature captures\nsubtle facial blood flow chan ges (rPPG) and micro-expression characteristics (FACS) via high-precision cameras to\ndeeply\nanalyze user stress levels, anxiety tendencies, and depression tendencies. By leveraging remote photoplethysmography to\nrestore physiological indicators like Heart Rate Variability (HRV) and combining this with AI emotion recognition\nalgorithms to capture emotional fluctuations in micro-expressions, the system accurately quantifies mental health\nstatus. Ideal for corporate employee care, campus psychological screening, and home health monitoring, this feature\nprovides users with imperceptible and objective mental health assessment reports, facilitating the early detection and\nintervention of psychological issues.\n\n本功能基于多模态深度学习算法，针对个体的心理健康状态与行为模式进行全方位深度分析。系统支持通过视频流分析技术，实时捕捉并识别面部微表情、肢体语言及语音语调特征，精准筛查抑郁、焦虑、压力过大等常见心理问题倾向。在分析完成后，系统将自动生成包含风险等级、情绪趋势及行为特征的结构化心理健康分析报告，并基于认知行为疗法等专业理论，提供个性化的心理调适方案与改善建议，为用户提供科学、客观的心理健康参考依据\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过视频分析进行心理健康评估，获取结构化的心理健康分析报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 情绪状态识别 |\n| 3 | 行为模式分析 |\n| 4 | 社交互动评估 |\n| 5 | 常见心理问题倾向识别 |\n| 6 | 心理健康改善建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供需要分析的人物视频 URL 或文件需要进行心理健康分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要进行心理健康检查、心理行为分析、情绪压力评估时，提及心理健康、心理问题、抑郁焦虑评估、压力检测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史心理报告、心理健康报告清单、心理分析报告列表、显示所有心理报告，查询心理健康分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.psychology_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.psychology_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心理健康分析 | 调用 `-m scripts.psychology_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--analysis-type` | 分析类型，可选值：general/emotion/anxiety/depression/stress/other，默认 general（综合分析） | 按需填写 |\n| `--list` | 显示心理健康分析历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/psychology_analysis.py`](scripts/psychology_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **重要声明**：本分析仅供心理健康参考，不能替代专业心理医生诊断或治疗。如有明确心理困扰，请及时寻求专业帮助 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧩 常见心理问题类型 | Common Mental Health Issues\n| 维度/类型 | 说明 |\n|---|---|\n| **情绪相关** | 焦虑倾向、抑郁倾向、情绪低落、情绪亢奋 |\n| **压力相关** | 压力过大、紧张不安、放松困难 |\n| **社交相关** | 社交退缩、回避眼神交流、互动减少 |\n| **行为相关** | 活动减少、重复行为、坐姿僵硬 |\n| **认知相关** | 注意力不集中、思维迟缓 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地视频综合心理健康分析\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type general 分析网络视频焦虑倾向分析\npython -m scripts.psychology_analysis --url https://example.com/video.mp4 --analysis-type anxiety 分析本地视频抑郁状态评估\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type depression 显示历史分析报告/显示分析报告清单列表/显示历史心理报告（自动触发关键词：查看历史心理报告、历史报告、心理报告清单等）\npython -m scripts.psychology_analysis --list\n\n# 输出精简报告\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type general --detail basic\n\n# 保存结果到文件\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type stress --output result.json\n```\n\nFile v1.0.14:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-psychology-analysis\",\n  \"version\": \"1.0.14\",\n  \"publishedAt\": 1785374980021\n}\n\nFile v1.0.14:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心理健康分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动健康分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `PSYCHOLOGY_ANALYSIS` - 心理健康分析\n\nFile v1.0.14:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.14:scripts/config.yaml\n\n{}\n\nFile v1.0.14:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.14:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.14:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.14:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.14:skill-card.md\n\n## Description: <br>\nAnalyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and agents use this skill to submit video files or video URLs for mental health and psychological behavior analysis, then receive structured reports, risk signals, improvement suggestions, and links to generated reports. It can also retrieve cloud-stored historical mental-health analysis reports associated with the resolved internal identity. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive mental-health videos, URLs, and analysis results are uploaded to external cloud services. <br>\nMitigation: Use only with media the user is authorized to process, and confirm that cloud processing and retention are acceptable for the use case. <br>\nRisk: The skill silently derives or creates an internal identity and can retrieve cloud-stored historical mental-health reports. <br>\nMitigation: Review identity handling, report access controls, and user consent expectations before deployment. <br>\nRisk: Local configuration may store authentication tokens or service endpoints used for analysis and history queries. <br>\nMitigation: Protect configuration files, rotate credentials when needed, and avoid exposing tokens in logs or user-facing output. <br>\nRisk: Mental-health analysis may be incorrect, incomplete, or inappropriate as a basis for clinical decisions. <br>\nMitigation: Present results as informational screening support only and direct users with health concerns to qualified professionals. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-psychology-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API documentation](references/api_doc.md) <br>\n- [Analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown and JSON analysis reports with report links and optional Markdown tables for history results] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Outputs are mental-health reference material and should not be treated as clinical diagnosis or treatment advice.] <br>\n\n## Skill Version(s): <br>\n1.0.14 (source: server release metadata; artifact SKILL.md frontmatter lists 1.0.9) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.14:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.14:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.13: 31 files, 40697 bytes\n\nFiles: references/api_doc.md (643b), scripts/__init__.py (38b), scripts/config.py (651b), scripts/config.yaml (2b), scripts/psychology_analysis.py (8339b), scripts/skill.py (567b), skill-card.md (2761b), SKILL.md (10551b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (144b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"psychology-analysis\"\ndescription: \"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议\"\nversion: \"1.0.7\"\nlicense: \"MIT-0\"\n---\n\n# 🧠 Mental Health Analysis Tool | 心理健康分析工具\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心理健康分析工具** |\n| 🎯 核心目标 | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `PSYCHOLOGY_ANALYSIS` |\n\nBased on advanced non-contact physiological signal detection and affective computing technologies, this feature captures\nsubtle facial blood flow chan ges (rPPG) and micro-expression characteristics (FACS) via high-precision cameras to\ndeeply\nanalyze user stress levels, anxiety tendencies, and depression tendencies. By leveraging remote photoplethysmography to\nrestore physiological indicators like Heart Rate Variability (HRV) and combining this with AI emotion recognition\nalgorithms to capture emotional fluctuations in micro-expressions, the system accurately quantifies mental health\nstatus. Ideal for corporate employee care, campus psychological screening, and home health monitoring, this feature\nprovides users with imperceptible and objective mental health assessment reports, facilitating the early detection and\nintervention of psychological issues.\n\n本功能基于多模态深度学习算法，针对个体的心理健康状态与行为模式进行全方位深度分析。系统支持通过视频流分析技术，实时捕捉并识别面部微表情、肢体语言及语音语调特征，精准筛查抑郁、焦虑、压力过大等常见心理问题倾向。在分析完成后，系统将自动生成包含风险等级、情绪趋势及行为特征的结构化心理健康分析报告，并基于认知行为疗法等专业理论，提供个性化的心理调适方案与改善建议，为用户提供科学、客观的心理健康参考依据\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过视频分析进行心理健康评估，获取结构化的心理健康分析报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 情绪状态识别 |\n| 3 | 行为模式分析 |\n| 4 | 社交互动评估 |\n| 5 | 常见心理问题倾向识别 |\n| 6 | 心理健康改善建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供需要分析的人物视频 URL 或文件需要进行心理健康分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要进行心理健康检查、心理行为分析、情绪压力评估时，提及心理健康、心理问题、抑郁焦虑评估、压力检测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史心理报告、心理健康报告清单、心理分析报告列表、显示所有心理报告，查询心理健康分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.psychology_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.psychology_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心理健康分析 | 调用 `-m scripts.psychology_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--analysis-type` | 分析类型，可选值：general/emotion/anxiety/depression/stress/other，默认 general（综合分析） | 按需填写 |\n| `--list` | 显示心理健康分析历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/psychology_analysis.py`](scripts/psychology_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **重要声明**：本分析仅供心理健康参考，不能替代专业心理医生诊断或治疗。如有明确心理困扰，请及时寻求专业帮助 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧩 常见心理问题类型 | Common Mental Health Issues\n| 维度/类型 | 说明 |\n|---|---|\n| **情绪相关** | 焦虑倾向、抑郁倾向、情绪低落、情绪亢奋 |\n| **压力相关** | 压力过大、紧张不安、放松困难 |\n| **社交相关** | 社交退缩、回避眼神交流、互动减少 |\n| **行为相关** | 活动减少、重复行为、坐姿僵硬 |\n| **认知相关** | 注意力不集中、思维迟缓 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地视频综合心理健康分析\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type general 分析网络视频焦虑倾向分析\npython -m scripts.psychology_analysis --url https://example.com/video.mp4 --analysis-type anxiety 分析本地视频抑郁状态评估\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type depression 显示历史分析报告/显示分析报告清单列表/显示历史心理报告（自动触发关键词：查看历史心理报告、历史报告、心理报告清单等）\npython -m scripts.psychology_analysis --list\n\n# 输出精简报告\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type general --detail basic\n\n# 保存结果到文件\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type stress --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-psychology-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1784001027211\n}\n\nFile v1.0.13:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心理健康分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动健康分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `PSYCHOLOGY_ANALYSIS` - 心理健康分析\n\nFile v1.0.13:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.13:scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.13:skill-card.md\n\n## Description: <br>\nAnalyzes video inputs for mental-health and behavioral signals, returning structured psychological analysis reports, risk indicators, improvement suggestions, and report links. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and developers can use this skill to submit local video files or video URLs to a cloud analysis service for mental-health tendency analysis and to retrieve prior reports. It is positioned for employee care, campus screening, and home health monitoring workflows where outputs are treated as reference material rather than clinical diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive video or image inputs and psychological analysis results are processed by the publisher's cloud service and may be linked to an internal identity. <br>\nMitigation: Use only with informed consent, approved data handling, and clear retention, deletion, and account-isolation terms before applying it to real mental-health, workplace, or campus screening data. <br>\nRisk: The skill can silently create or reuse local authentication state and user identity. <br>\nMitigation: Review token storage and identity isolation before deployment, and run the skill in an isolated account or environment for each intended user population. <br>\nRisk: Psychological analysis outputs may be mistaken for clinical diagnosis or treatment advice. <br>\nMitigation: Present outputs as reference-only screening information and require professional review or referral for users with meaningful psychological distress. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-psychology-analysis) <br>\n- [API interface documentation](references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, JSON, Files, Guidance] <br>\n**Output Format:** [Markdown reports or JSON, with optional saved output files] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Supports local mp4, avi, and mov files or video URLs; documented file size limit is 10 MB.] <br>\n\n## Skill Version(s): <br>\n1.0.13 (source: server release metadata and auto changelog; artifact frontmatter lists 1.0.7) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.13:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.13:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.12: 31 files, 40562 bytes\n\nFiles: references/api_doc.md (643b), scripts/__init__.py (38b), scripts/config.py (651b), scripts/config.yaml (2b), scripts/psychology_analysis.py (8339b), scripts/skill.py (567b), skill-card.md (2735b), SKILL.md (10551b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28605b), _meta.json (144b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"psychology-analysis\"\ndescription: \"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 🧠 Mental Health Analysis Tool | 心理健康分析工具\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心理健康分析工具** |\n| 🎯 核心目标 | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `PSYCHOLOGY_ANALYSIS` |\n\nBased on advanced non-contact physiological signal detection and affective computing technologies, this feature captures\nsubtle facial blood flow chan ges (rPPG) and micro-expression characteristics (FACS) via high-precision cameras to\ndeeply\nanalyze user stress levels, anxiety tendencies, and depression tendencies. By leveraging remote photoplethysmography to\nrestore physiological indicators like Heart Rate Variability (HRV) and combining this with AI emotion recognition\nalgorithms to capture emotional fluctuations in micro-expressions, the system accurately quantifies mental health\nstatus. Ideal for corporate employee care, campus psychological screening, and home health monitoring, this feature\nprovides users with imperceptible and objective mental health assessment reports, facilitating the early detection and\nintervention of psychological issues.\n\n本功能基于多模态深度学习算法，针对个体的心理健康状态与行为模式进行全方位深度分析。系统支持通过视频流分析技术，实时捕捉并识别面部微表情、肢体语言及语音语调特征，精准筛查抑郁、焦虑、压力过大等常见心理问题倾向。在分析完成后，系统将自动生成包含风险等级、情绪趋势及行为特征的结构化心理健康分析报告，并基于认知行为疗法等专业理论，提供个性化的心理调适方案与改善建议，为用户提供科学、客观的心理健康参考依据\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过视频分析进行心理健康评估，获取结构化的心理健康分析报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 情绪状态识别 |\n| 3 | 行为模式分析 |\n| 4 | 社交互动评估 |\n| 5 | 常见心理问题倾向识别 |\n| 6 | 心理健康改善建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供需要分析的人物视频 URL 或文件需要进行心理健康分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要进行心理健康检查、心理行为分析、情绪压力评估时，提及心理健康、心理问题、抑郁焦虑评估、压力检测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史心理报告、心理健康报告清单、心理分析报告列表、显示所有心理报告，查询心理健康分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.psychology_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.psychology_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心理健康分析 | 调用 `-m scripts.psychology_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--analysis-type` | 分析类型，可选值：general/emotion/anxiety/depression/stress/other，默认 general（综合分析） | 按需填写 |\n| `--list` | 显示心理健康分析历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/psychology_analysis.py`](scripts/psychology_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **重要声明**：本分析仅供心理健康参考，不能替代专业心理医生诊断或治疗。如有明确心理困扰，请及时寻求专业帮助 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧩 常见心理问题类型 | Common Mental Health Issues\n| 维度/类型 | 说明 |\n|---|---|\n| **情绪相关** | 焦虑倾向、抑郁倾向、情绪低落、情绪亢奋 |\n| **压力相关** | 压力过大、紧张不安、放松困难 |\n| **社交相关** | 社交退缩、回避眼神交流、互动减少 |\n| **行为相关** | 活动减少、重复行为、坐姿僵硬 |\n| **认知相关** | 注意力不集中、思维迟缓 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地视频综合心理健康分析\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type general 分析网络视频焦虑倾向分析\npython -m scripts.psychology_analysis --url https://example.com/video.mp4 --analysis-type anxiety 分析本地视频抑郁状态评估\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type depression 显示历史分析报告/显示分析报告清单列表/显示历史心理报告（自动触发关键词：查看历史心理报告、历史报告、心理报告清单等）\npython -m scripts.psychology_analysis --list\n\n# 输出精简报告\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type general --detail basic\n\n# 保存结果到文件\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type stress --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-psychology-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1783531413236\n}\n\nFile v1.0.12:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心理健康分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动健康分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `PSYCHOLOGY_ANALYSIS` - 心理健康分析\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.12:skill-card.md\n\n## Description: <br>\nAnalyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and developers use this skill to submit a video file or public video URL for cloud-based mental-health analysis and receive structured findings, report links, and improvement suggestions. It can also query the provider-hosted history of prior analysis reports for the internally resolved user identity. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Videos, public URLs, report history, and mental-health analysis results are processed by the provider's cloud service. <br>\nMitigation: Use only media that is appropriate to share with the provider, and review the provider's privacy, retention, and deletion practices before installing or running the skill. <br>\nRisk: The skill can create or reuse an internal identity and store authentication tokens in the workspace. <br>\nMitigation: Run it in a controlled workspace, restrict workspace access, and remove local credentials and report data when the skill is no longer needed. <br>\nRisk: Mental-health analysis output may be mistaken for clinical diagnosis or treatment advice. <br>\nMitigation: Present outputs as reference material only and route users with mental-health concerns to qualified professional support. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-psychology-analysis) <br>\n- [API interface documentation](references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json, shell commands] <br>\n**Output Format:** [Markdown or JSON structured mental-health analysis report with optional report export links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Outputs may include cloud report history and provider-hosted report links; local output can be saved to a user-specified file.] <br>\n\n## Skill Version(s): <br>\n1.0.12 (source: server release metadata; artifact frontmatter lists 1.0.6) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.12:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.12:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Mental Health Analysis Tool | 心理健康分析工具 Owner: smyx-sunjinhui Summary: Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 Tags: latest:1.0.21 Version history: v1.0.21 | 202","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.psychology_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地视频综合心理健康分析\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type general 分析网络视频焦虑倾向分析\npython -m scripts.psychology_analysis --url https://example.com/video.mp4 --analysis-type anxiety 分析本地视频抑郁状态评估\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type depression 显示历史分析报告/显示分析报告清单列表/显示历史心理报告（自动触发关键词：查看历史心理报告、历史报告、心理报告清单等）\npython -m scripts.psychology_analysis --list\n\n# 输出精简报告\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type general --detail basic\n\n# 保存结果到文件\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type stress --output result.json"},{"language":"bash","snippet":"python -m scripts.psychology_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地视频综合心理健康分析\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type general 分析网络视频焦虑倾向分析\npython -m scripts.psychology_analysis --url https://example.com/video.mp4 --analysis-type anxiety 分析本地视频抑郁状态评估\npython -m scripts.psychology_analysis --input /path/to/video.mp4 --analysis-type depression 显示历史分析报告/显示分析报告清单列表/显示历史心理报告（自动触发关键词：查看历史心理报告、历史报告、心理报告清单等）\npython -m scripts.psychology_analysis --list\n\n# 输出精简报告\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type general --detail basic\n\n# 保存结果到文件\npython -m scripts.psychology_analysis --input video.mp4 --analysis-type stress --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"psychology-analysis\"\ndescription: \"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议\"\nversion: \"1.0.18\"\nlicense: \"MIT-0\"\n---\n\n# 🧠 Mental Health Analysis Tool | 心理健康分析工具\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心理健康分析工具** |\n| 🎯 核心目标 | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `PSYCHOLOGY_ANALYSIS` |\n\nBased on advanced non-contact physiological signal detection and affective computing technologies, this feature captures\nsubtle facial blood flow chan ges (rPPG) and micro-expression characteristics (FACS) via high-precision cameras to\ndeeply\nanalyze user stress levels, anxiety tendencies, and depression tendencies. By leveraging remote photoplethysmography to\nrestore physiological indicators like Heart Rate Variability (HRV) and combining this with AI emotion recognition\nalgorithms to capture emotional fluctuations in micro-expressions, the system accurately quantifies mental health\nstatus. Ideal for corporate employee care, campus psychological screening, and home health monitoring, this feature\nprovides users with imperceptible and objective mental health assessment reports, facilitating the early detection and\nintervention of psychological issues.\n\n本功能基于多模态深度学习算法，针对个体的心理健康状态与行为模式进行全方位深度分析。系统支持通过视频流分析技术，实时捕捉并识别面部微表情、肢体语言及语音语调特征，精准筛查抑郁、焦虑、压力过大等常见心理问题倾向。在分析完成后，系统将自动生成包含风险等级、情绪趋势及行为特征的结构化心理健康分析报告，并基于认知行为疗法等专业理论，提供个性化的心理调适方案与改善建议，为用户提供科学、客观的心理健康参考依据\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过视频分析进行心理健康评估，获取结构化的心理健康分析报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 情绪状态识别 |\n| 3 | 行为模式分析 |\n| 4 | 社交互动评估 |\n| 5 | 常见心理问题倾向识别 |\n| 6 | 心理健康改善建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供需要分析的人物视频 URL 或文件需要进行心理健康分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要进行心理健康检查、心理行为分析、情绪压力评估时，提及心理健康、心理问题、抑郁焦虑评估、压力检测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史心理报告、心理健康报告清单、心理分析报告列表、显示所有心理报告，查询心理健康分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.psychology_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.psychology_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-psychology-analysis\",\n  \"version\": \"1.0.21\",\n  \"publishedAt\": 1791063206041\n}"},{"path":"references/api_doc.md","content":"# API 接口文档\n\n此处用于存放心理健康分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动健康分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `PSYCHOLOGY_ANALYSIS` - 心理健康分析"},{"path":"skills/smyx_analysis/references/api_doc.md","content":"# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |"},{"path":"scripts/config.yaml","content":"{}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 Skill: Mental Health Analysis Tool | 心理健康分析工具 Owner: smyx-sunjinhui Summary: Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具，针对人的心理健康和心理行为进行分析，支持通过视频分析识别常见心理问题倾向，提供结构化心理健康分析报告和改善建议 Tags: latest:1.0.21 Version history: v1.0.21 | 202","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":854,"uniquenessScore":52,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T16:21:03.031Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-09T16:21:03.031Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T05:06:44.058Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}