onedragon-anything/zenlesszonezero-onedragon/zzz-od-dev-plugin

Claude Code and agent skill by onedragon-anything/zenlesszonezero-onedragon

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

当要新增或修改绝区零一条龙的内置应用、第三方应用插件或插件接入配置时使用。

Install

npx vskill@latest install onedragon-anything/zenlesszonezero-onedragon/zzz-od-dev-plugin

SKILL.md

The same SKILL.md was published earlier as onedragon-anything/zenlesszonezero-onedragon/zzz-od-dev-plugin.

新增应用 / 插件开发指南

本项目的“插件”本质上是可被 ApplicationFactoryManager 自动发现的 ApplicationFactory。有两种落点:

类型目录是否提交导入方式
内置应用src/zzz_od/application/<app>/是绝对导入
第三方插件plugins/<plugin>/否,plugins/ 被 gitignore插件内可相对导入

先读文档

文件命名、const 字段、入口组合、工厂、运行记录、plugin.json、仓库布局、数据目录、ZIP 导入、插件商店发布、刷新规则,都以下面这份文档为准,先完整读它再动手,本 skill 不重复其内容:

按需再读:

文档与代码不一致时,以代码为准,并顺手修正文档。

Application 类

应用继承 ZApplication,状态机写法与普通 ZOperation 一致。

python
from one_dragon.base.operation.operation_edge import node_from
from one_dragon.base.operation.operation_node import operation_node
from one_dragon.base.operation.operation_round_result import OperationRoundResult
from zzz_od.application.zzz_application import ZApplication
from zzz_od.context.zzz_context import ZContext
from . import const
class MyPlugin(ZApplication):
def __init__(self, ctx: ZContext):
ZApplication.__init__(
self,
ctx=ctx,
app_id=const.APP_ID,
op_name=const.APP_NAME,
)
@operation_node(name='开始', is_start_node=True)
def start(self) -> OperationRoundResult:
return self.round_success()

内置应用按项目规范使用绝对导入(from zzz_od.application.my_app import my_app_const);第三方插件内部可以使用相对导入。

自定义运行记录

先确认基础每日记录无法表达需求(默认行为见文档「运行记录」),再新增自定义记录,AppRunRecord 的 app id 要与 APP_ID 一致:

python
from one_dragon.base.operation.application_run_record import AppRunRecord
class MyPluginRunRecord(AppRunRecord):
def __init__(self, instance_idx: int | None = None, game_refresh_hour_offset: int = 0):
AppRunRecord.__init__(
self,
'my_plugin',
instance_idx=instance_idx,
game_refresh_hour_offset=game_refresh_hour_offset,
)

然后在工厂里覆盖 create_run_record() 返回它,并传入当前区服的刷新偏移(取法见架构文档)。

DEFAULT_GROUP=False 的应用默认返回 None,不保存完成状态;它需要普通每日完成记录时,也要覆盖 create_run_record() 并返回基础 AppRunRecord。

插件 screen_info

第三方插件可以携带自己的 screen YAML:

text
plugins/my_plugin/
└── screen_info/
└── my_screen.yml

app_id 可省略,加载时会自动使用插件的 APP_ID。应用作用域只限制画面匹配,不隔离画面注册:screen_id 和 screen_name 要在所有插件间全局唯一,重名时后加载的画面会被跳过。

yaml
screen_id: my_plugin_main
screen_name: 我的插件-主界面
area_list:
- area_name: 按钮-开始
pc_rect: [100, 100, 200, 80]
text: 开始

验证清单

  • [ ] 已按文档确认文件命名、const 字段和入口组合合法。
  • [ ] APP_ID 全局唯一,且与运行记录 app id 一致。
  • [ ] 同一目录只有一个工厂文件和一个常量文件。
  • [ ] factory 类继承 ApplicationFactory,并实现 create_application;第三方插件和需要应用配置的内置应用还要实现 create_config,无配置的内置应用可不覆盖。
  • [ ] 应用类继承 ZApplication,构造函数传入 app_id 和 op_name。
  • [ ] 状态机只有一个 is_start_node=True。
  • [ ] 第三方插件位于 plugins/<plugin>/ 子目录,运行所需文件都在插件根内。
  • [ ] 第三方插件需要持久化数据时用 self.data_dir,不写到插件目录或 config/;内置应用保留现有 config/ 路径,要迁移必须兼容读取旧配置。
  • [ ] 如有设置界面,按设置界面文档接入。
  • [ ] 如有 screen_info,区域名和代码中的 round_by_find_area / round_by_click_area 一致。

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
7,429
Repository forks
276
7-day trend score
44

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/onedragon-anything/zenlesszonezero-onedragon/zzz-od-dev-plugin/badge)](https://verified-skill.com/skills/onedragon-anything/zenlesszonezero-onedragon/zzz-od-dev-plugin)

Something wrong with this skill or its page? Tell us.