mcpField
V
veadk-skills

veadk-skills

github.com/bytedanceDevelopment47768 installsUpdated today
Repository

About veadk-skills

veadk-skills helps developers generate VeADK Agent code from requirements or adapt existing Langchain, Langgraph, and Dify workflows. It includes guidance for analyzing requirements, refining prompts, and converting source projects.

Key features

  1. 01Generate VeADK Agent code from requirements
  2. 02Convert Langchain and Langgraph code
  3. 03Convert Dify workflow DSL
  4. 04Refine prompts and analyze agent structure

Use cases

  1. 01Create an Agent from a feature description
  2. 02Port a Langgraph implementation to VeADK
  3. 03Convert a Dify YAML workflow to VeADK

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bytedance/agentkit-samples --skill veadk-skills

After installing, type/veadk-skillsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

LICENSE.txt
references/common/
agent.md
knowledgebase.md
tools.md
references/converter/
dify_rules.md
langchain_rules.md
references/generator/
analyze.md
coding.md
refine_prompt.md
scripts/
save_file.py

Details

From the project README

VeADK Agent 生成

本技能可以根据用户的需求,生成符合要求的 VeADK Agent 代码,或完成 VeADK 相关功能。

触发条件

  1. 用户简要描述了其功能需求,并希望构建一个 Agent 来完成;
  2. 用户希望可以将已有的 Langchain/Langgraph 代码转化为 VeADK Agent 代码
  3. 用户希望可以将已有的 Dify 工作流转化为 VeADK Agent 代码

具体步骤

下面是本技能不同的组件能力。

直接根据需求生成 Agent

请你遵循以下步骤:

  1. 分析用户需求,生成对应的 Agent 系统结构,参考 references/generator/analyze.md
  2. 提示词优化,参考 references/generator/refine_prompt.md
  3. 生成 Agent 代码,参考 references/generator/coding.md
Langchain 代码转换为 VeADK Agent

请你遵循以下步骤:

  1. 分析原有 Langchain 或 Langgraph 代码
  2. 将原有代码改为 VeADK Agent,对应关系详见 references/converter/langchain_rules.md
  3. 参照 references/common/ 目录内的文档来生成 VeADK 代码
Dify 工作流转换为 VeADK Agent

请你遵循以下步骤:

  1. 分析原有 Dify 工作流 DSL(一般为一个 Yaml 格式文件)
  2. 将原有代码改为 VeADK Agent,对应关系详见 references/converter/dify_rules.md
  3. 参照 references/common/ 目录内的文档来生成 VeADK 代码

后续工作

在完成 Agent 代码编写后,调用脚本保存代码产物:

  • agent_name/__init__.py: 固定内容为 from . import agent # noqa
  • agent_name/agent.py:包含所有智能体的代码

其中,agent_name 是你认为合适的 Agent 的名称。

脚本调用方法为:

python save_file.py --path ... --content ...

Comments

Markdown supported