Token导航 LogoToken导航

Agent Skill · 前端设计

kcli-provider-development(kcli 提供商开发)

kcli-provider-development 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

kcli-provider-development 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 10,192。

总安装 14周安装 17GitHub Stars 636下载 140核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:kcli-provider-development(kcli 提供商开发)
来源仓库:https://github.com/karmab/kcli
仓库路径:skills/kcli-provider-development
安装命令:
npx skills add https://github.com/karmab/kcli --skill kcli-provider-development
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/karmab/kcli --skill kcli-provider-development

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

kcli-provider-development 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。

通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/kcli-provider-development

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/karmab/kcli --skill kcli-provider-development;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

kcli-provider-development 怎么安装?

在终端执行 npx skills add https://github.com/karmab/kcli --skill kcli-provider-development。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

kcli-provider-development 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

kcli-provider-development 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

kcli-provider-development 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

kcli-provider-development 用的人多吗?

公开数据是累计安装 14 次,近一周安装 17 次,下载 140 次,GitHub 636 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

kcli-provider-development 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
kcli-provider-development

kcli 提供商开发 · 本页

14636调用外部服务MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

kcli Provider Development

Provider Architecture

Providers are located in kvirt/providers/ as subdirectories. Each provider implements the interface defined in kvirt/providers/sampleprovider.py (class Kbase).

Required Implementation Steps

1. Create Provider Directory

kvirt/providers/yourprovider/
├── __init__.py      # Contains your Kyourprovider class
└── (optional helpers)

2. Implement the Provider Class

Your class must:

  • Set self.conn attribute in __init__ (set to None if backend unreachable)
  • Set self.debug from the debug parameter
  • Return standardized response dicts from methods

Return Value Pattern:

# Success
return {'result': 'success'}

# Failure
return {'result': 'failure', 'reason': "VM %s not found" % name}

3. Core Methods to Implement

VM Lifecycle (required):

  • create() - Create VM with all parameters (cpus, memory, disks, nets, etc.)
  • start(name) - Start VM
  • stop(name, soft=False) - Stop VM
  • restart(name) - Restart VM (default calls start)
  • delete(name, snapshots=False, keep_disks=False) - Delete VM
  • list() - Return list of [name, state, ip, source, plan, profile]
  • info(name, output, fields, values, vm, debug) - Return VM details dict
  • exists(name) - Check if VM exists
  • status(name) - Return VM status
  • ip(name) - Return IP string
  • clone(old, new, full=False, start=False) - Clone VM
  • export(name, image=None) - Export VM as image
  • console(name, tunnel, tunnelhost, tunnelport, tunneluser, web) - Graphical console
  • serialconsole(name, web) - Serial console

Storage:

  • create_pool(name, poolpath, pooltype, user, thinpool)
  • delete_pool(name, full)
  • list_pools() - Return list of pool names
  • get_pool_path(pool) - Get pool path
  • add_disk(name, size, pool, thin, image, shareable, existing, interface, novm, overrides)
  • delete_disk(name, diskname, pool, novm)
  • create_disk(name, size, pool, thin, image) - Create standalone disk
  • list_disks() - Return dict {'diskname': {'pool': poolname, 'path': name}}
  • disk_exists(pool, name) - Check if disk exists
  • detach_disks(name) - Detach all disks from VM

Networking:

  • create_network(name, cidr, dhcp, nat, domain, plan, overrides)
  • delete_network(name, cidr, force)
  • update_network(name, dhcp, nat, domain, plan, overrides)
  • list_networks() - Return dict of networks
  • info_network(name) - Get network info
  • net_exists(name) - Check if network exists
  • network_ports(name) - List ports on network
  • add_nic(name, network, model)
  • delete_nic(name, interface)
  • update_nic(name, index, network) - Update NIC

Subnets (cloud providers):

  • create_subnet(name, cidr, dhcp, nat, domain, plan, overrides)
  • delete_subnet(name, force)
  • update_subnet(name, overrides)
  • list_subnets() - Return subnet dict
  • info_subnet(name) - Get subnet info

Images:

  • volumes(iso=False, extended=False) - List available images
  • add_image(url, pool, short, cmds, name, size, convert)
  • delete_image(image, pool)

Snapshots:

  • create_snapshot(name, base) - Create snapshot
  • delete_snapshot(name, base) - Delete snapshot
  • list_snapshots(base) - List snapshots (returns list)
  • revert_snapshot(name, base) - Revert to snapshot

Update Operations:

  • update_metadata(name, metatype, metavalue, append)
  • update_memory(name, memory)
  • update_cpus(name, numcpus)
  • update_start(name, start) - Set autostart
  • update_information(name, information) - Update info metadata
  • update_iso(name, iso) - Change attached ISO
  • update_flavor(name, flavor) - Change VM flavor

Buckets (object storage):

  • create_bucket(bucket, public) - Create storage bucket
  • delete_bucket(bucket) - Delete bucket
  • list_buckets() - List all buckets
  • list_bucketfiles(bucket) - List files in bucket
  • upload_to_bucket(bucket, path, overrides, temp_url, public)
  • download_from_bucket(bucket, path)
  • delete_from_bucket(bucket, path)

Security Groups (cloud providers):

  • create_security_group(name, overrides)
  • delete_security_group(name)
  • update_security_group(name, overrides)
  • list_security_groups(network) - List security groups

DNS:

  • reserve_dns(name, nets, domain, ip, alias, force, primary, instanceid)
  • list_dns_zones() - List DNS zones
  • dnsinfo(name) - Return (dnsclient, domain) for VM

Other:

  • close() - Clean up connection
  • info_host() - Return host info dict
  • vm_ports(name) - List ports on VM
  • list_flavors() - Return [[name, numcpus, memory],...] if platform supports flavors

4. Register Provider in config.py

Add import and instantiation in kvirt/config.py (around lines 102-220):

elif self.type == 'yourprovider':
    # Get provider-specific options
    option1 = options.get('option1')
    if option1 is None:
        error("Missing option1 in configuration. Leaving")
        sys.exit(1)
    try:
        from kvirt.providers.yourprovider import Kyourprovider
    except Exception as e:
        exception = e if debug else None
        dependency_error('yourprovider', exception)
    k = Kyourprovider(option1=option1, debug=debug)

5. Add Dependencies to setup.py

YOURPROVIDER = ['required-package1', 'required-package2']

# Add to extras_require dict:
extras_require={
    'yourprovider': YOURPROVIDER,
    # ...
}

# Add to ALL list if needed:
ALL = EXTRAS + AWS + ... + YOURPROVIDER

Info Method Structure

The info() method should build a dict with these keys:

  • name, autostart, plan, profile, image, ip, memory, numcpus, creationdate
  • nets: list of {'device': device, 'mac': mac, 'net': network, 'type': network_type}
  • disks: list of {'device': device, 'size': disksize, 'format': diskformat, 'type': drivertype, 'path': path}
  • snapshots: list of {'snapshot': snapshot, 'current': current}

Then call: common.print_info(yamlinfo, output=output, fields=fields, values=values)

Reference Implementations

Study these existing providers:

  • kvirt/providers/kvm/ - Libvirt (most complete reference, ~4300 lines)
  • kvirt/providers/aws/ - AWS cloud (~2200 lines)
  • kvirt/providers/gcp/ - Google Cloud Platform (~2100 lines)
  • kvirt/providers/kubevirt/ - KubeVirt on Kubernetes (~1900 lines)
  • kvirt/providers/vsphere/ - VMware vSphere (~1900 lines)
  • kvirt/providers/azure/ - Microsoft Azure (~1500 lines)
  • kvirt/providers/ibm/ - IBM Cloud (~1500 lines)
  • kvirt/providers/ovirt/ - oVirt/RHV (~1400 lines)
  • kvirt/providers/openstack/ - OpenStack (~1350 lines)
  • kvirt/providers/proxmox/ - Proxmox VE (~1200 lines)
  • kvirt/providers/hcloud/ - Hetzner Cloud (~550 lines)
  • kvirt/providers/web/ - Web-based provider (~530 lines)
  • kvirt/providers/fake/ - Minimal stub for testing (~20 lines)

Provider Complexity Guide

Not all providers need to implement every method. Focus on:

  1. Minimum viable: create, delete, list, info, start, stop, exists, status, ip
  2. Storage: add_disk, delete_disk, list_disks, create_pool, delete_pool, list_pools
  3. Networking: create_network, delete_network, list_networks, net_exists
  4. Images: volumes, add_image, delete_image
  5. Advanced: Snapshots, cloning, export, buckets, security groups (as needed)

Methods can return {'result': 'success'} with a print("not implemented") for optional features.

平台分布

Claude Code

28.12%
按下载量换算39

windsurf

23.75%
按下载量换算33

trae

16.58%
按下载量换算23

OpenCode

11.08%
按下载量换算16

Codex

7.63%
按下载量换算11

Antigravity

2.92%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills