diff --git a/.github/skills/agentic-workflows/SKILL.md b/.github/skills/agentic-workflows/SKILL.md index 84c905c3877..0e5802ec146 100644 --- a/.github/skills/agentic-workflows/SKILL.md +++ b/.github/skills/agentic-workflows/SKILL.md @@ -12,6 +12,7 @@ This skill is a dispatcher: identify the task type, load the matching `.github/a Read only the files you need: Load these files from `github/gh-aw` (they are not available locally). - `.github/aw/agentic-chat.md` +- `.github/aw/agentic-workflows-mcp.md` - `.github/aw/asciicharts.md` - `.github/aw/campaign.md` - `.github/aw/charts-trending.md` diff --git a/.github/workflows/daily-agent-of-the-day-blog-writer.lock.yml b/.github/workflows/daily-agent-of-the-day-blog-writer.lock.yml index e0668f90403..66b1c0bdb15 100644 --- a/.github/workflows/daily-agent-of-the-day-blog-writer.lock.yml +++ b/.github/workflows/daily-agent-of-the-day-blog-writer.lock.yml @@ -1,4 +1,4 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"811159b18b5e02950e5025f1560673a63602ee9da8556ad6541c4d070a2d154a","body_hash":"863c0bf15e7fb19b73acf3746bdf70febf5afafeb8a67fe16de0be566c12e1c1","strict":true,"agent_id":"copilot"} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"811159b18b5e02950e5025f1560673a63602ee9da8556ad6541c4d070a2d154a","body_hash":"8e7457adc788abd99325279f627534b1cbb03ce36b80c65baaece783de205c28","strict":true,"agent_id":"copilot"} # gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"de0fac2e4500dabe0009e67214ff5f5447ce83dd","version":"v6.0.2"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-go","sha":"4a3601121dd01d1626a1e23e37211e3254c1c06c","version":"v6.4.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"docker/build-push-action","sha":"f9f3042f7e2789586610d6e8b85c8f03e5195baf","version":"v7.2.0"},{"repo":"docker/setup-buildx-action","sha":"d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5","version":"v4.1.0"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.25.58"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.25.58"},{"image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.25.58"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.25.58"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.22"},{"image":"ghcr.io/github/github-mcp-server:v1.1.2"},{"image":"node:lts-alpine","digest":"sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14","pinned_image":"node:lts-alpine@sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14"}]} # ___ _ _ # / _ \ | | (_) diff --git a/.github/workflows/daily-agent-of-the-day-blog-writer.md b/.github/workflows/daily-agent-of-the-day-blog-writer.md index 588d55b0f7f..2e65bb7e4de 100644 --- a/.github/workflows/daily-agent-of-the-day-blog-writer.md +++ b/.github/workflows/daily-agent-of-the-day-blog-writer.md @@ -98,11 +98,13 @@ Use UTC date and set target file: ### 2) Collect live workflow evidence -Use `agentic-workflows` MCP tools: +Use `agenticworkflows` CLI commands (run each as a **simple shell command with no pipes or redirects**): -1. `list` to identify active workflows. -2. `logs` for recent runs (last 3 days, up to 5 runs) of top candidates. -3. `audit` for structured evidence when available. +1. `agenticworkflows status` to identify active workflows. +2. `agenticworkflows logs --start-date -3d --limit 5` for recent runs of top candidates. +3. `agenticworkflows audit ` for structured evidence when available. + +**Important**: If any command is not working, run `agenticworkflows --help` as a standalone command (no pipes) to check available subcommands and flags. Do not combine commands with `|`, `&&`, `2>&1`, or other shell operators. From evidence, extract: @@ -110,7 +112,7 @@ From evidence, extract: - Real links to created/updated issues and PRs. - Any chart/image links or artifact links. -If no useful data appears for the selected workflow, pick another active workflow. +If no useful data appears for the selected workflow, pick another active workflow. If evidence collection commands keep failing (e.g., tool not found or permission error), call `noop` immediately with a brief explanation — **do not delegate evidence collection to a general-purpose sub-agent**. ### 3) Gather optional chart image @@ -163,6 +165,8 @@ Body requirements: ### 6) Open PR +**You (the main agent) must call `create_pull_request` directly** — sub-agents cannot call safe-output tools. Do not delegate this step to a general-purpose sub-agent. + Create a PR with title: - `Agent of the Day – YYYY-MM-DD` @@ -175,7 +179,7 @@ PR body must include: ### 7) No-action rule -If no trustworthy live evidence can be gathered after checking multiple workflows, call `noop` with a short explanation. +If no trustworthy live evidence can be gathered after checking multiple workflows, or if the `agenticworkflows` CLI commands fail, call `noop` with a short explanation. **Do not end the session without calling at least one safe-output tool** (`create_pull_request` or `noop`). ## Quality Bar diff --git a/actions/setup/md/mcp_cli_tools_prompt.md b/actions/setup/md/mcp_cli_tools_prompt.md index d9343b2fef7..96b981446ea 100644 --- a/actions/setup/md/mcp_cli_tools_prompt.md +++ b/actions/setup/md/mcp_cli_tools_prompt.md @@ -1,5 +1,5 @@ CLI servers are available on `PATH`: __GH_AW_MCP_CLI_SERVERS_LIST__ -Use ` --help` for tool names, parameters, and examples before calling any command. +Invoke as a simple shell command: ` [--flag value ...]`. Do **NOT** add pipes, redirects, or shell operators (`|`, `&&`, `2>&1`, etc.) — run ` --help` or ` --help` as a standalone command (no pipes) to discover available tools and parameters.