Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

dagu-rest-apidagu rest API 文档

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

194

周安装

8

GitHub Stars

17

下载量

63
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/vinnie357/claude-skills --skill dagu-rest-api

简介

dagu-rest-api 辅助 Dagu 工作流系统的接口设计与文档生成,涵盖端点规划、字段命名与错误码整理。

  • 适合前后端联调、CI/CD 集成或自定义监控面板开发时参考使用。
  • 可自动生成 OpenAPI 草稿、梳理请求响应结构,但需人工确认业务语义与鉴权方式准确性。
  • 涉及敏感操作时应严格限制权限,避免暴露生产环境凭证或未授权 endpoint。
  • 推荐优先从现有代码或 schema 提取事实信息,防止凭空补充虚构字段。

SKILL.md

Dagu REST API

Use this skill when integrating Dagu with external systems, automating workflow operations, or programmatically managing workflows through the API.

When to Use This Skill

Activate when:

  • Triggering workflows programmatically
  • Querying workflow status from applications
  • Building automation around Dagu
  • Integrating Dagu with CI/CD pipelines
  • Creating custom dashboards or monitoring tools
  • Scheduling workflows dynamically
  • Fetching execution logs programmatically

Core API Capabilities

The Dagu REST API provides endpoints for:

  1. Workflow Operations - Start, stop, retry workflows
  2. Status Queries - Get workflow and execution status
  3. DAG Management - List and inspect workflow definitions
  4. Execution History - Query past executions
  5. Log Retrieval - Fetch execution logs

Base URL

Default API base URL: http://localhost:8080/api/v1

Configure in Dagu settings if using a different host/port.

Authentication

Consult references/authentication.md for details on:

  • API token configuration
  • Authentication headers
  • Security best practices

Quick Start Operations

Start a Workflow

POST /dags/{dagName}/start

Basic example:

curl -X POST http://localhost:8080/api/v1/dags/my_workflow/start

For parameter passing and advanced options, see references/workflow-operations.md.

Get Workflow Status

GET /dags/{dagName}/status

Returns current status, running steps, and execution details.

Stop a Workflow

POST /dags/{dagName}/stop

Stops currently running execution.

When to Consult References

  • Detailed endpoint documentation: Read references/api-endpoints.md
  • Workflow operations (start/stop/retry): Read references/workflow-operations.md
  • Status and monitoring queries: Read references/status-queries.md
  • Authentication setup: Read references/authentication.md
  • Integration examples: Read references/integration-examples.md
  • Error handling: Read references/error-handling.md

Common Use Cases

CI/CD Integration

Trigger Dagu workflows from your CI/CD pipeline:

# In GitHub Actions, GitLab CI, etc.
curl -X POST http://dagu-server:8080/api/v1/dags/deploy_production/start \
  -H "Content-Type: application/json" \
  -d '{"params": "VERSION=1.2.3 ENVIRONMENT=production"}'

For complete CI/CD integration patterns, see references/integration-examples.md.

Monitoring and Alerting

Query workflow status for external monitoring:

# Check if workflow is running
curl http://localhost:8080/api/v1/dags/critical_job/status

Build custom alerts based on status responses. See references/status-queries.md for response format details.

Dynamic Scheduling

Trigger workflows based on external events:

import requests

def trigger_workflow(dag_name, params=None):
    url = f"http://localhost:8080/api/v1/dags/{dag_name}/start"
    data = {"params": params} if params else {}
    response = requests.post(url, json=data)
    return response.json()

For comprehensive examples in multiple languages, see references/integration-examples.md.

Response Formats

All API responses are JSON. Common response structure:

{
  "status": "success",
  "data": { ... }
}

Error responses:

{
  "status": "error",
  "message": "Error description"
}

For complete response schemas, consult references/api-endpoints.md.

Key Principles

  • RESTful design: Standard HTTP methods (GET, POST, DELETE)
  • JSON responses: All responses in JSON format
  • Idempotent operations: Safe to retry most operations
  • Error codes: Standard HTTP status codes
  • Stateless: Each request is independent

Pro Tips

  • Use the API for automation, use Web UI for manual operations
  • Implement retry logic for network failures
  • Cache DAG lists if querying frequently
  • Use webhooks for event-driven workflows when possible
  • Monitor API response times for performance issues
  • Validate workflow names before calling API to avoid errors

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.64%
按下载量换算21

Claude

32.01%
按下载量换算20

Cursor

19.16%
按下载量换算12

Gemini CLI

9.81%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills