← 返回 Skills 市场
caojyb

Ziwei Verify

作者 caojyb · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
43
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ziwei-verify
功能描述
基于 verification_points 通过 ±1、±2 时辰偏移自动校正出生时间,提升紫微斗数命盘置信度和准确性。
使用说明 (SKILL.md)

ziwei_verify Skill Definition

Basic Information

  • Skill ID: ziwei_verify
  • Name: 生时校正与命盘验证
  • Description: 基于 verification_points 的生时校正引擎,通过 ±1、±2 时辰偏移搜索最优出生时间
  • Version: 0.1.0
  • Author: 基于倪海厦紫微斗数体系
  • Vibe: 精准、严谨、数据驱动

Dependencies

  • Required Skills: ziwei(提供命盘计算)
  • Python Libraries: zhdate(农历转换)
  • System: Python 3.9+

Input Schema

StandardDataPacket (from ziwei)

{
  "trace_id": "uuid-string",
  "skill_name": "ziwei",
  "execution_time": 1.234,
  "timestamp": "2024-01-01T12:00:00Z",
  "status": "SUCCESS",
  "confidence": 0.45,
  "data": {
    "birth_info": {
      "gender": "M",
      "birth_dt": "1993-04-01T14:00:00+08:00",
      "location": "北京"
    },
    "chart_data": { ... }
  },
  "verification_points": [
    {
      "field": "命宫主星",
      "description": "命宫为空宫",
      "impact": "high",
      "suggestions": ["考虑生时校正"],
      "related_fields": ["命宫", "身宫"]
    }
  ],
  "errors": [],
  "warnings": [],
  "metadata": {
    "cache_key": "ziwei:19930401M..."
  }
}

Output Schema

StandardDataPacket (CALIBRATION_DONE)

{
  "trace_id": "uuid-string",
  "skill_name": "ziwei_verify",
  "execution_time": 3.456,
  "timestamp": "2024-01-01T12:00:05Z",
  "status": "CALIBRATION_DONE",
  "confidence": 0.82,
  "data": {
    "original_birth_dt": "1993-04-01T14:00:00+08:00",
    "corrected_birth_dt": "1993-04-01T13:00:00+08:00",
    "shift_hours": -1,
    "shift_description": "提前1个时辰",
    "calibration_candidates": [ ... ]
  },
  "verification_points": [ ... ],  // 校正后
  "errors": [],
  "warnings": [],
  "metadata": {
    "original_packet": { ... },
    "candidates_compared": 5,
    "best_candidate_confidence": 0.82
  }
}

StandardDataPacket (LOW_CONFIDENCE)

{
  "status": "LOW_CONFIDENCE",
  "confidence": 0.0,
  "message": "自动校正未能显著提升置信度",
  "data": {
    "best_candidate": { ... },
    "all_candidates": [ ... ]
  }
}

StandardDataPacket (NEED_VERIFICATION)

{
  "status": "NEED_VERIFICATION",
  "confidence": 0.0,
  "data": {
    "candidates": [ ... ],
    "comparison_table": "格式化表格字符串"
  }
}

Action Types

Action Description Input Output
calibrate 自动/交互式生时校正 packet + birth_dt CALIBRATION_DONE / LOW_CONFIDENCE / NEED_VERIFICATION
suggest 仅生成候选不执行 packet 候选列表
validate 验证输入数据包 packet 验证结果

Call Examples

Python API

from ziwei_verify import calibrate

result = calibrate(
    packet=ziwei_packet,
    birth_dt=datetime(1993, 4, 1, 14, 0),
    max_shifts=2,
    interactive=False
)

OpenClaw Invocation

ziwei_verify action=calibrate packet=\x3CStandardDataPacket> birth_dt="1993-04-01T14:00:00+08:00" max_shifts=2 interactive=false

Skill Lifecycle

  1. INIT: 加载配置,验证依赖
  2. RUN: 执行校正流程
  3. OUTPUT: 返回 StandardDataPacket

Error Codes

  • INVALID_INPUT: 输入数据包缺失或格式错误
  • ZIWEI_DEPENDENCY_MISSING: ziwei 技能未就绪
  • NO_CANDIDATES: 无法生成候选时间
  • CALIBRATION_FAILED: 所有候选均失败

Performance Targets

  • 候选生成:\x3C 50ms
  • 单次命盘计算:\x3C 300ms(依赖 ziwei)
  • 总耗时(5候选):\x3C 2s
  • 内存占用:\x3C 100MB

Notes

  • 本技能不直接 import ziwei,应通过 OpenClaw 的 skill invoke 机制调用
  • 农历转换依赖 zhdate 库,需在部署时安装
  • 交互模式下返回 NEED_VERIFICATION,由上层 Agent 发起用户确认
  • 置信度阈值:≥0.7 且无 high-impact 校验点视为校正成功
安全使用建议
This skill appears safe to review/install for its stated astrology calibration purpose, but only use it if you are comfortable providing birth date, gender, and location data; verify manual dependencies, and avoid running demo or test scripts from untrusted sources.
功能分析
Type: OpenClaw Skill Name: ziwei-verify Version: 1.0.0 The ziwei-verify skill bundle is a well-structured and documented engine for birth time calibration in the context of Ziwei Dou Shu (Chinese astrology). The code implements logic for generating time offsets, calculating matching scores based on astrological verification points, and providing interactive dialogue handling for users. Analysis of the Python source files (main.py, calibrator.py, prompt_generator.py) and documentation reveals no evidence of data exfiltration, malicious execution, or prompt injection; the system uses standard environment variable configuration (config.py) and local data processing with legitimate dependencies like 'zhdate'.
能力评估
Purpose & Capability
The stated purpose, inputs, outputs, and code paths align around Ziwei birth-time correction using birth date, gender, location, confidence scores, and verification points.
Instruction Scope
The skill exposes scoped actions such as calibrate, suggest, and validate; interactive mode is documented as requiring user confirmation through the upper agent.
Install Mechanism
There is no install spec and the source/homepage are not provided, while documentation mentions a Python dependency; users may need to verify and install dependencies manually.
Credentials
The main behavior appears local and purpose-aligned, but demo/test files include dynamic import execution if manually run.
Persistence & Privilege
No credentials, account privileges, or privileged system access are declared, but the interactive dialogue handler stores session state in memory and the cleanup method is not implemented.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ziwei-verify
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ziwei-verify 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the ziwei-verify skill for 生时校正与命盘验证. - Provides an engine to calibrate birth time using verification points, searching within ±2 Chinese "时辰" for optimal results. - Supports three main actions: calibrate (auto/interactively adjusts birth time), suggest (generates candidate times), and validate (checks input packets). - Outputs follow a standardized data packet format, indicating calibration status, confidence, and detailed calibration results or need for verification. - Requires the ziwei skill for chart calculation and zhdate for lunar date conversion. - Includes specific error codes and performance targets for efficient operation.
元数据
Slug ziwei-verify
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Ziwei Verify 是什么?

基于 verification_points 通过 ±1、±2 时辰偏移自动校正出生时间,提升紫微斗数命盘置信度和准确性。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 43 次。

如何安装 Ziwei Verify?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ziwei-verify」即可一键安装,无需额外配置。

Ziwei Verify 是免费的吗?

是的,Ziwei Verify 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Ziwei Verify 支持哪些平台?

Ziwei Verify 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ziwei Verify?

由 caojyb(@caojyb)开发并维护,当前版本 v1.0.0。

💬 留言讨论