用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/zhuxixi/zima-blue-cli --skill new-entity命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | new-entity |
| description | Scaffold a new configuration entity type (model, commands, manager integration, CLI registration) |
| disable-model-invocation | true |
Scaffold a new configuration entity type for the Zima Blue CLI platform.
/new-entity Trigger — create a new entity called "Trigger"/new-entity Schedule — create a new entity called "Schedule"Follow the 4-step extension pattern documented in CLAUDE.md:
Create zima/models/<entity>.py:
zima/models/agent.py)BaseConfig or create a standalone dataclassMetadata with code, name, descriptionapiVersion: zima.io/v1 / kind: <Entity> / metadata / specKIND = "<entity>" class constantfrom_dict classmethod and to_dict methodmetadata.code: lowercase letters, numbers, hyphens only, max 64 charsEdit zima/config/manager.py:
ConfigManager.KINDS setConfigManager handles all entity types genericallyCreate zima/commands/<entity>.py:
zima/commands/agent.py)app = typer.Typer(help="<Entity> management commands")list, get, create, deletecreate: accept YAML file via --file option, validate and saveConfigManager for all config operationsrich for formatted outputEdit zima/cli.py:
from zima.commands.<entity> import app as <entity>_appapp.add_typer(<entity>_app, name="<entity>")Create sample YAML config in tests/fixtures/configs/:
apiVersion: zima.io/v1
kind: <Entity>
metadata:
code: sample-<entity>
name: Sample <Entity>
description: For testing
spec:
# entity-specific fields
After scaffolding, verify:
python -c "from zima.models.<entity> import <Entity>Config" — import workszima <entity> --help — CLI registered correctlypytest tests/ — no existing tests broken