Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

github-agentic-workflows-tools-ecosystemGitHub agentic workflows tools ecosystem 搜索

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

2,593

周安装

105

GitHub Stars

7

下载量

1,018
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:github-agentic-workflows-tools-ecosystem(GitHub agentic workflows tools ecosystem 搜索)
来源仓库:https://github.com/hack23/riksdagsmonitor
仓库路径:skills/github-agentic-workflows-tools-ecosystem
安装命令:
npx skills add https://github.com/hack23/riksdagsmonitor --skill 'GitHub Agentic Workflows Tools Ecosystem'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/hack23/riksdagsmonitor --skill 'GitHub Agentic Workflows Tools Ecosystem'

简介

梳理 GitHub 生态中支持智能代理的工具集。

  • 比较不同框架的优缺点和适用场景。
  • 追踪新兴工具和废弃技术的演变趋势。
  • 数据来源限于开源项目可见部分。github-agentic-workflows-tools-ecosystem 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 帮助用户选择合适的技术栈组合。

SKILL.md

🛠️ GitHub Agentic Workflows Tools Ecosystem

📋 Overview

This skill provides a comprehensive guide to all tools available in GitHub Agentic Workflows. Understanding the tools ecosystem is critical for building effective AI agents that can interact with code, GitHub APIs, browsers, and external services.

What is the Tools Ecosystem?

The Tools Ecosystem is the collection of capabilities that AI agents can invoke to perform actions:

  • GitHub Tools: Interact with repositories, issues, PRs, workflows
  • File Operations: Read, write, edit files in repositories
  • Web Tools: Fetch web pages, make HTTP requests, search the web
  • Bash Tools: Execute shell commands, run scripts
  • Playwright Tools: Automate browsers, take screenshots, interact with web UIs
  • Memory Tools: Store and retrieve knowledge across sessions
  • Custom Tools: Develop domain-specific tools via MCP servers

Why Master the Tools Ecosystem?

Effective agents require deep knowledge of available tools:

  • Capability Awareness: Know what's possible
  • Tool Selection: Choose the right tool for each task
  • Efficient Workflows: Combine tools effectively
  • Security: Understand tool limitations and risks
  • Error Handling: Handle tool failures gracefully
  • Extensibility: Build custom tools when needed

🐙 GitHub Tools

Repository Operations

View Files and Directories

// github-get_file_contents
await github.getFileContents({
  owner: 'Hack23',
  repo: 'riksdagsmonitor',
  path: 'src/index.js',
  ref: 'main',
});

// List directory
await github.getFileContents({
  owner: 'Hack23',
  repo: 'riksdagsmonitor',
  path: 'src/',
});

Get Repository Tree

// github-get_repository_tree
await github.getRepositoryTree({
  owner: 'Hack23',
  repo: 'riksdagsmonitor',
  tree_sha: 'main',
  recursive: true,
  path_filter: 'src/',
});

Issue Operations

// Create issue
await github.issueWrite({
  method: 'create',
  owner: 'Hack23',
  repo: 'riksdagsmonitor',
  title: 'Bug: Application crashes',
  body: 'Description here...',
  labels: ['bug', 'P1-high'],
  assignees: ['developer1'],
});

// Search issues
await github.searchIssues({
  query: 'repo:Hack23/riksdagsmonitor is:open label:bug',
  sort: 'created',
  order: 'desc',
});

Pull Request Operations

// Create PR
await github.createPullRequest({
  owner: 'Hack23',
  repo: 'riksdagsmonitor',
  title: 'feat: Add dark mode',
  body: 'Implementation details...',
  head: 'feature/dark-mode',
  base: 'main',
});

// Get PR diff
await github.pullRequestRead({
  method: 'get_diff',
  owner: 'Hack23',
  repo: 'riksdagsmonitor',
  pullNumber: 456,
});

// Code review
await github.pullRequestReviewWrite({
  method: 'create',
  owner: 'Hack23',
  repo: 'riksdagsmonitor',
  pullNumber: 456,
  body: 'LGTM!',
  event: 'APPROVE',
});

GitHub Actions

// List workflows
await github.actionsList({
  method: 'list_workflows',
  owner: 'Hack23',
  repo: 'riksdagsmonitor',
});

// Trigger workflow
await github.actionsRunTrigger({
  method: 'run_workflow',
  owner: 'Hack23',
  repo: 'riksdagsmonitor',
  workflow_id: 'deploy.yml',
  ref: 'main',
  inputs: { environment: 'production' },
});

// Get job logs
await github.getJobLogs({
  owner: 'Hack23',
  repo: 'riksdagsmonitor',
  job_id: 98765432,
  return_content: true,
  tail_lines: 500,
});

📁 File Operations

Read Files

// Read entire file
const content = await filesystem.readTextFile({
  path: '/workspace/src/index.js',
});

// Read first 50 lines
const header = await filesystem.readTextFile({
  path: '/workspace/README.md',
  head: 50,
});

// Read last 100 lines
const logs = await filesystem.readTextFile({
  path: '/workspace/app.log',
  tail: 100,
});

// Read multiple files
const files = await filesystem.readMultipleFiles({
  paths: ['file1.js', 'file2.js', 'file3.js'],
});

Write and Edit Files

// Create or overwrite file
await filesystem.writeFile({
  path: '/workspace/output.txt',
  content: 'File content...',
});

// Edit file (line-based)
await filesystem.editFile({
  path: '/workspace/src/index.js',
  edits: [
    {
      oldText: 'const oldVar = 123;',
      newText: 'const newVar = 456;',
    },
  ],
});

Directory Operations

// List directory
const entries = await filesystem.listDirectory({
  path: '/workspace/src',
});

// List with sizes
const entriesWithSizes = await filesystem.listDirectoryWithSizes({
  path: '/workspace/dist',
  sortBy: 'size',
});

// Get directory tree
const tree = await filesystem.directoryTree({
  path: '/workspace',
  excludePatterns: ['node_modules/**', '.git/**'],
});

// Create directory
await filesystem.createDirectory({
  path: '/workspace/new-dir',
});

// Search files
const jsFiles = await filesystem.searchFiles({
  path: '/workspace',
  pattern: '**/*.js',
});

🌐 Web Tools

AI-Powered Web Search

// Web search with AI-generated answer
const result = await web.search({
  query: 'What are the latest features in React 19?',
});

// Returns:
// {
//   answer: 'AI-generated answer with citations...',
//   sources: [...]
// }

HTTP Requests (via bash)

# GET request
curl -s https://api.github.com/repos/Hack23/riksdagsmonitor | jq .

# POST request
curl -s -X POST https://api.example.com/endpoint \
  -H "Content-Type: application/json" \
  -d '{"key":"value"}'

# With authentication
curl -s -H "Authorization: Bearer $TOKEN" \
  https://api.example.com/data

💻 Bash Tools

Execute Commands

// Synchronous
const result = await bash({
  command: 'npm test',
  mode: 'sync',
  initial_wait: 60,
});

// Async
await bash({
  command: 'npm run build',
  mode: 'async',
  shellId: 'build-session',
});

// Read output
await read_bash({
  shellId: 'build-session',
  delay: 30,
});

// Detached (persistent)
await bash({
  command: 'npm run dev',
  mode: 'async',
  detach: true,
});

Common Patterns

# Code analysis
eslint src/ --format json > report.json
npm audit --json > audit.json

# Git operations
git --no-pager status
git --no-pager diff
git add . && git commit -m "feat: New feature"

# Build and test
npm ci
npm run lint
npm test
npm run build

🌐 Playwright Tools

Browser Navigation

// Navigate
await playwright.browserNavigate({
  url: 'https://riksdagsmonitor.pages.dev',
});

// Capture accessibility snapshot
const snapshot = await playwright.browserSnapshot();

Page Interaction

// Click element
await playwright.browserClick({
  ref: '[2]',
  element: 'Button',
});

// Type text
await playwright.browserType({
  ref: '[5]',
  element: 'Search input',
  text: 'query',
  submit: true,
});

// Fill form
await playwright.browserFillForm({
  fields: [
    { ref: '[10]', name: 'username', type: 'textbox', value: 'user' },
    { ref: '[11]', name: 'password', type: 'textbox', value: 'pass' },
  ],
});

Screenshots

// Full page screenshot
await playwright.browserTakeScreenshot({
  filename: 'page.png',
  fullPage: true,
});

// Element screenshot
await playwright.browserTakeScreenshot({
  ref: '[4]',
  element: 'Article',
  filename: 'article.png',
});

🧠 Memory Tools

Knowledge Graph

// Create entities
await memory.createEntities({
  entities: [
    {
      name: 'Riksdagsmonitor',
      entityType: 'project',
      observations: ['Static website', 'GitHub Pages'],
    },
  ],
});

// Create relationships
await memory.createRelations({
  relations: [
    {
      from: 'Riksdagsmonitor',
      to: 'GitHub Pages',
      relationType: 'uses',
    },
  ],
});

// Search knowledge
const results = await memory.searchNodes({
  query: 'Swedish Parliament',
});

// Read graph
const graph = await memory.readGraph();

🔧 Custom Tool Development

Create MCP Server

// custom-mcp-server.js
import { Server } from '@modelcontextprotocol/sdk/server/index.js';

class CustomMCPServer {
  constructor() {
    this.server = new Server({
      name: 'custom-tools',
      version: '1.0.0',
    }, {
      capabilities: { tools: {} },
    });

    this.setupTools();
  }

  setupTools() {
    this.server.setRequestHandler('tools/list', async () => ({
      tools: [
        {
          name: 'analyze_code',
          description: 'Analyze code quality',
          inputSchema: {
            type: 'object',
            properties: {
              path: { type: 'string' },
            },
            required: ['path'],
          },
        },
      ],
    }));

    this.server.setRequestHandler('tools/call', async (request) => {
      const { name, arguments: args } = request.params;

      if (name === 'analyze_code') {
        return this.analyzeCode(args);
      }

      throw new Error(`Unknown tool: ${name}`);
    });
  }

  async analyzeCode(args) {
    // Implementation
    return {
      content: [
        { type: 'text', text: 'Analysis results...' },
      ],
    };
  }

  async start() {
    const transport = new StdioServerTransport();
    await this.server.connect(transport);
  }
}

const server = new CustomMCPServer();
server.start();

Register in Configuration

{
  "mcpServers": {
    "custom-tools": {
      "type": "local",
      "command": "node",
      "args": ["custom-mcp-server.js"],
      "tools": ["*"]
    }
  }
}

🔒 Security Considerations

Input Validation

// Validate tool inputs
function validateInput(tool, args) {
  const Ajv = require('ajv');
  const ajv = new Ajv();

  const schema = getToolSchema(tool);
  const validate = ajv.compile(schema);

  if (!validate(args)) {
    throw new Error('Invalid input');
  }
}

// Sanitize paths
function sanitizePath(path) {
  if (path.includes('..')) {
    throw new Error('Path traversal not allowed');
  }
  return path;
}

Rate Limiting

class RateLimiter {
  constructor(maxRequests, windowMs) {
    this.maxRequests = maxRequests;
    this.windowMs = windowMs;
    this.requests = new Map();
  }

  checkLimit(toolName) {
    const now = Date.now();
    const requests = this.requests.get(toolName) || [];

    const validRequests = requests.filter(
      time => now - time < this.windowMs
    );

    if (validRequests.length >= this.maxRequests) {
      throw new Error('Rate limit exceeded');
    }

    validRequests.push(now);
    this.requests.set(toolName, validRequests);
  }
}

Audit Logging

class ToolAuditLogger {
  log(tool, args, result, error = null) {
    const entry = {
      timestamp: new Date().toISOString(),
      tool,
      args: this.sanitizeArgs(args),
      result: error ? null : result,
      error: error ? error.message : null,
    };

    console.log(JSON.stringify(entry));
  }

  sanitizeArgs(args) {
    const sanitized = { ...args };

    for (const key in sanitized) {
      if (key.toLowerCase().includes('token')) {
        sanitized[key] = '[REDACTED]';
      }
    }

    return sanitized;
  }
}

🔗 Integration Patterns

Sequential Chain

async function sequentialChain(steps) {
  const results = [];

  for (const step of steps) {
    const result = await invokeTool(step.tool, step.args);
    results.push(result);
  }

  return results;
}

Parallel Execution

async function parallelExecution(tasks) {
  const promises = tasks.map(task =>
    invokeTool(task.tool, task.args)
  );

  return await Promise.all(promises);
}

Conditional Execution

async function conditionalExecution(condition, ifTrue, ifFalse) {
  const result = await invokeTool(condition.tool, condition.args);

  if (evaluateCondition(result, condition.predicate)) {
    return await invokeTool(ifTrue.tool, ifTrue.args);
  } else if (ifFalse) {
    return await invokeTool(ifFalse.tool, ifFalse.args);
  }

  return null;
}

Error Handling

async function retryTool(tool, args, maxRetries = 3) {
  for (let attempt = 0; attempt <= maxRetries; attempt++) {
    try {
      return await invokeTool(tool, args);
    } catch (error) {
      if (attempt === maxRetries) throw error;

      const delay = Math.pow(2, attempt) * 1000;
      await new Promise(resolve => setTimeout(resolve, delay));
    }
  }
}

📊 Tool Capabilities Matrix

ToolReadWriteSearchExecuteBrowser
GitHub Issues
GitHub PRs
File System
Bash
Web
Playwright
Memory

🎓 Related Skills

  • gh-aw-security-architecture: Tool security
  • gh-aw-mcp-configuration: Custom tools
  • gh-aw-continuous-ai-patterns: Tool orchestration

🆕 Tool Scoping & Engine Support (v0.68.1)

Agentic Workflows Introspection Tool

Enable workflow introspection for AI agents with:

tools:
  agentic-workflows: true

This provides tools for:

  • status — Show status of workflow files in the repository
  • compile — Compile markdown workflows to YAML
  • logs — Download and analyze workflow run logs
  • audit — Investigate workflow run failures and generate reports
  • checks — Classify CI check state for a pull request (returns normalized verdict: success, failed, pending, no_checks, policy_blocked)

Use case: Enable AI agents to analyze GitHub Actions traces and improve workflows based on execution history.

Runtime Configuration

All agentic workflows MUST specify the Node.js runtime version:

runtimes:
  node:
    version: "25"

Runtime configuration properties:

  • version: — Runtime version (e.g., "25", "3.12", "latest")
  • action-repo: — GitHub Actions setup action (e.g., "actions/setup-node")
  • action-version: — Setup action version (e.g., "v4", "v5")
  • if: — Optional condition (e.g., "hashFiles('go.mod')!= ''")

GitHub Tools Configuration

Scope tool access in frontmatter:

---
tools:
  github:
    toolsets: [issues, labels, pull-requests]  # Specific toolsets
    min-integrity: approved                     # Integrity filtering
---

Available toolsets: all, context, repos, issues, pull-requests, users, projects, actions, security, discussions, stars, notifications, gists (all is a shorthand that enables every GitHub toolset)

Engine-Specific Tool Support

EngineGitHub ToolsBashPlaywrightFile OpsMCP
Copilot
Claude
Codex
Gemini

MCP Tool Routing

Connect external tools via MCP servers. The MCP Gateway routes requests from the agent to Docker containers running MCP servers. In this repository, MCP servers are configured via a top-level mcp-servers key in workflow frontmatter, with additional repo-level definitions in .github/copilot-mcp.json:

---
mcp-servers:
  custom-server:
    command: npx
    args: ["-y", "@my/mcp-server"]
tools:
  github:
    toolsets: [issues]
---

📚 References


✅ Remember

  • ✅ Scope tools to minimum needed (least privilege)
  • ✅ Use toolsets to restrict GitHub API access
  • ✅ Use min-integrity for public repo security
  • ✅ All engines support the same tool categories
  • ✅ MCP enables extensibility with custom servers
  • ✅ Validate tool inputs, sanitize paths and commands
  • ✅ Rate limit tool invocations
  • ✅ Handle errors gracefully
  • ✅ Use parallel tool execution when possible
  • ✅ Audit log all tool usage

Last Updated: 2026-04-02 Version: 2.0.0 License: Apache-2.0

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

31.41%
按下载量换算320

Claude

30.65%
按下载量换算312

Cursor

20.14%
按下载量换算205

Gemini CLI

8.98%
按下载量换算91

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills