{"id":"6d3b1a89-34a4-4d5c-947e-98029c750b7c","slug":"clawhub-cnyouker-xungu-query","name":"🔮 循古·算命（八字·每日运势·六爻·大六壬·禄命·大运流年）","description":"🔮 八字·六爻·大六壬·每日运势·禄命古法·算命·占卜·大运流年·流年预测·命理分析 循古玄学算命助手 — 支持八字排盘、六爻占卜、大六壬预测、禄命古法测算、今日运势查询、大运流年分析。基于循古排盘 (xungufa.com) 专业命理引擎。 当用户明确请求算命相关服务（如「帮我算八字」「查今日运势」「起一卦」...","canonicalUrl":"https://www.xpersona.co/agent/clawhub-cnyouker-xungu-query","sourceUrl":"https://clawhub.ai/cnyouker/xungu-query","homepage":"https://clawhub.ai/cnyouker/skills/xungu-query","source":"CLAWHUB","vendor":{"slug":"clawhub","label":"Clawhub","url":"https://clawhub.ai/cnyouker/skills/xungu-query"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"1.0.13","freshnessAt":"2026-10-10T00:16:45.188Z","freshnessLabel":"Oct 10, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Oct 10, 2026"},{"label":"Vendor","value":"Clawhub"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"1.0.13"}],"factsPreview":[{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Clawhub","href":"https://clawhub.ai/cnyouker/skills/xungu-query","sourceUrl":"https://clawhub.ai/cnyouker/skills/xungu-query","sourceType":"profile","confidence":"medium","observedAt":"2026-10-10T00:16:45.188Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/clawhub-cnyouker-xungu-query/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-cnyouker-xungu-query/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-10-10T00:16:45.188Z","isPublic":true},{"factKey":"traction","category":"adoption","label":"Adoption signal","value":"1.8K downloads","href":"https://clawhub.ai/cnyouker/xungu-query","sourceUrl":"https://clawhub.ai/cnyouker/xungu-query","sourceType":"profile","confidence":"medium","observedAt":"2026-10-10T00:16:45.188Z","isPublic":true},{"factKey":"latest_release","category":"release","label":"Latest release","value":"1.0.13","href":"https://clawhub.ai/cnyouker/xungu-query","sourceUrl":"https://clawhub.ai/cnyouker/xungu-query","sourceType":"release","confidence":"medium","observedAt":"2026-06-15T04:55:19.241Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/clawhub-cnyouker-xungu-query/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-cnyouker-xungu-query/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["1.8K downloads","Trust evidence available"],"agentCard":{"name":"🔮 循古·算命（八字·每日运势·六爻·大六壬·禄命·大运流年）","description":"🔮 八字·六爻·大六壬·每日运势·禄命古法·算命·占卜·大运流年·流年预测·命理分析 循古玄学算命助手 — 支持八字排盘、六爻占卜、大六壬预测、禄命古法测算、今日运势查询、大运流年分析。基于循古排盘 (xungufa.com) 专业命理引擎。 当用户明确请求算命相关服务（如「帮我算八字」「查今日运势」「起一卦」...","source":"CLAWHUB","sourceId":"clawhub:s17065e8x40japxv7yb92hx5sd86qwrd:xungu-query","homepage":"https://clawhub.ai/cnyouker/skills/xungu-query","repository":"https://clawhub.ai/cnyouker/xungu-query","documentation":"https://www.xpersona.co/agent/clawhub-cnyouker-xungu-query","protocols":["OPENCLEW"],"examples":[{"kind":"example","language":"text","snippet":"POST https://xungufa.com/api/agent/bazi\nPOST https://xungufa.com/api/agent/liuyao\nPOST https://xungufa.com/api/agent/daliuren"},{"kind":"example","language":"python","snippet":"import json\nimport urllib.request\nimport urllib.error\nfrom pathlib import Path\nimport os\n\nAPI_BASE = \"https://xungufa.com\"\n\ndef _get_xungu_token():\n    \"\"\"\n    【安全修复 ASI03】: 精确读取 Token，避免使用 os.environ.update() 全量加载环境变量\n    \"\"\"\n    token = os.environ.get('XUNGU_API_TOKEN')\n    if token:\n        return token\n\n    env_paths = [Path.home() / '.openclaw' / '.env', Path.cwd() / '.env']\n    for p in env_paths:\n        if p.exists():\n            try:\n                for line in p.read_text().splitlines():\n                    line = line.strip()\n                    if line.startswith('XUNGU_API_TOKEN='):\n                        return line.split('=', 1)[1].strip().strip('\"').strip(\"'\")\n            except:\n                continue\n    return None\n\ndef _api_post(path, payload=None, require_token=False):\n    \"\"\"通用 API 请求\"\"\"\n    token = _get_xungu_token()\n    if require_token and not token:\n        raise ValueError(\n            \"六爻和大六壬查询需要 API Token。\"\n            \"请前往 https://xungufa.com 注册，在「我的 API Key」创建 Key，\"\n            \"并在 .env 配置 XUNGU_API_TOKEN=你的token\"\n        )\n\n    url = API_BASE + path\n    headers = {\n        'Content-Type': 'application/json',\n        'User-Agent': 'Mozilla/5.0'\n    }\n    if token:\n        headers['Authorization'] = f'Bearer {token}'\n\n    req = urllib.request.Request(\n        url,\n        data=json.dumps(payload or {}).encode('utf-8'),\n        headers=headers,\n        method='POST'\n    )\n    try:\n        with urllib.request.urlopen(req, timeout=30) as resp:\n            return json.loads(resp.read())\n    except urllib.error.HTTPError as e:\n        body = e.read().decode('utf-8', errors='replace')\n        if e.code == 401:\n            raise ValueError(\"API Token 无效或未配置，请前往 https://xungufa.com 获取\")\n        if e.code == 429:\n            raise ValueError(\"今日 API 调用次数已达上限，请明日再试\")\n        raise ValueError(f\"API 请求失败 ({e.code}): {body}\")\n\ndef _get_user_profile(user_id):\n    \"\"\"读取用户档案，如不存在则返回 None\"\"\"\n    profile_path = Path.home() / '.openclaw' / 'workspace-j"}]}}