一键导入
ordine-list-entities
Use when 需要在 Ordine 系统中列出或发现已有的 Operation、Pipeline、Best Practice 等实体以复用,避免重复创建。触发词:list entities、列出operation、查找pipeline、有没有已有的、复用检查、发现实体。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when 需要在 Ordine 系统中列出或发现已有的 Operation、Pipeline、Best Practice 等实体以复用,避免重复创建。触发词:list entities、列出operation、查找pipeline、有没有已有的、复用检查、发现实体。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when 需要了解 Ordine 系统的整体架构和快速上手指南,包括核心概念、实体关系、CLI 和 API 使用方法。触发词:ordine入门、快速开始、ordine是什么、系统架构、ordine overview。
Use when 需要通过 Ordine 浏览项目文件系统,列出目录内容或获取递归目录树。触发词:浏览文件、查看目录、文件系统浏览、目录树、browse filesystem。
Use when Pipeline 运行失败或结果异常,需要读取 Job 的 Trace 日志、分析错误原因并给出修复建议。触发词:browse traces、job失败、排查运行失败、trace日志、pipeline报错、job error。
Use when 需要在 Ordine 系统中创建新的 Best Practice(最佳实践),包含条件、内容、代码片段和检查清单条目。触发词:创建最佳实践、新建bestpractice、添加编码规范、添加实践规范。
Use when 需要在 Ordine 系统中创建新的 Operation(原子操作),定义执行器(skill/script)、输入输出和接受的对象类型。触发词:创建操作、新建operation、添加检查操作、添加修复操作。
Use when 需要在 Ordine 系统中创建新的 Pipeline(质量检查流水线),包括定义节点(folder/operation/output)和边(连接关系),通过 REST API 或 UI 完成。触发词:创建流水线、新建pipeline、设计工作流、构建检查流程。
| name | ordine-list-entities |
| description | Use when 需要在 Ordine 系统中列出或发现已有的 Operation、Pipeline、Best Practice 等实体以复用,避免重复创建。触发词:list entities、列出operation、查找pipeline、有没有已有的、复用检查、发现实体。 |
在创建新的 Operation、Pipeline 或 Best Practice 之前,应先搜索系统中是否已存在可复用的实体。Ordine 的 REST API 提供全量列表接口,通过客户端过滤实现搜索。
# 列出所有 Operation
curl -s http://localhost:9433/api/operations | python3 -m json.tool
# 按名称关键词搜索(客户端过滤)
curl -s http://localhost:9433/api/operations | \
python3 -c "
import sys, json
ops = json.load(sys.stdin)
keyword = 'lint'
for op in ops:
if keyword.lower() in op['name'].lower() or keyword.lower() in (op.get('description') or '').lower():
print(f\"{op['id']}: {op['name']} — {op.get('description', '')}\")"
# 列出所有 Pipeline
curl -s http://localhost:9433/api/pipelines | python3 -m json.tool
# 按名称搜索
curl -s http://localhost:9433/api/pipelines | \
python3 -c "
import sys, json
pipes = json.load(sys.stdin)
keyword = 'dao'
for p in pipes:
if keyword.lower() in p['name'].lower() or keyword.lower() in (p.get('description') or '').lower():
print(f\"{p['id']}: {p['name']} — {p.get('description', '')}\")"
# 列出所有 Best Practice
curl -s http://localhost:9433/api/best-practices | python3 -m json.tool
# 按名称或描述搜索
curl -s http://localhost:9433/api/best-practices | \
python3 -c "
import sys, json
bps = json.load(sys.stdin)
keyword = 'naming'
for bp in bps:
if keyword.lower() in bp['name'].lower() or keyword.lower() in (bp.get('description') or '').lower():
print(f\"{bp['id']}: {bp['name']} — {bp.get('description', '')}\")"
# 列出所有 Skill
curl -s http://localhost:9433/api/skills | python3 -m json.tool
# 列出所有 Recipe(Operation + Best Practice 绑定)
curl -s http://localhost:9433/api/recipes | python3 -m json.tool
需要一个新的检查功能
├── 搜索 Operation:已有类似的?
│ ├── 完全匹配 → 直接使用
│ ├── 部分匹配 → 考虑修改现有 Operation 的配置
│ └── 无匹配 → 创建新 Operation(参考 ordine-create-operation)
│
├── 搜索 Best Practice:已有对应规范?
│ ├── 完全匹配 → 直接绑定 Recipe
│ └── 无匹配 → 创建新 Best Practice(参考 ordine-create-bestpractice)
│
└── 搜索 Pipeline:已有包含此检查的?
├── 匹配 → 直接运行
└── 无匹配 → 创建或扩展 Pipeline(参考 ordine-create-pipeline)
找到候选实体后,查看完整配置以确认是否满足需求:
# 查看 Operation 详情(含 executor 配置、输入输出端口)
curl -s http://localhost:9433/api/operations/<OP_ID> | python3 -m json.tool
# 查看 Pipeline 详情(含 DAG 节点和连线)
curl -s http://localhost:9433/api/pipelines/<PIPELINE_ID> | python3 -m json.tool
# 查看 Best Practice 详情
curl -s http://localhost:9433/api/best-practices/<BP_ID> | python3 -m json.tool
# 查看 Best Practice 的 Checklist
curl -s "http://localhost:9433/api/checklist-items?bestPracticeId=<BP_ID>" | python3 -m json.tool
# 查看 Best Practice 的 Code Snippets
curl -s "http://localhost:9433/api/code-snippets?bestPracticeId=<BP_ID>" | python3 -m json.tool
GET /api/<resource> 返回全量数据name 和 description 字段config 字段包含完整 DAG 定义(JSON),可进一步解析查看包含的 Operation 节点