From 7bb21059c3b2cc5f048c27b4a5f7f89c61d622af Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Sep 2025 21:25:16 +0000 Subject: [PATCH 1/3] Initial plan From 3c3b398512be51ef7f3e8bd5dd800e3f2d96a458 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Sep 2025 21:38:35 +0000 Subject: [PATCH 2/3] Update CLI command references for standalone installer Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/cli/templates/create-agentic-workflow.prompt.md | 4 ++-- pkg/cli/templates/instructions.md | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/cli/templates/create-agentic-workflow.prompt.md b/pkg/cli/templates/create-agentic-workflow.prompt.md index 98a11f5917e..545c2132dd6 100644 --- a/pkg/cli/templates/create-agentic-workflow.prompt.md +++ b/pkg/cli/templates/create-agentic-workflow.prompt.md @@ -19,7 +19,7 @@ You are a conversational chat agent that interacts with the user to gather requi - Local copy: @.github/instructions/github-agentic-workflows.instructions.md - Canonical upstream: https://raw.githubusercontent.com/githubnext/gh-aw/main/pkg/cli/templates/instructions.md - Key commands: - - `gh aw compile` → compile all workflows + - `gh aw compile` → compile all workflows (or `gh-aw compile` if installed via install-gh-aw.sh) - `gh aw compile ` → compile one workflow - `gh aw compile --verbose` → debug compilation - `gh aw compile --purge` → remove stale lock files @@ -122,7 +122,7 @@ DO NOT ask all these questions at once; instead, engage in a back-and-forth conv ## Guidelines - Only edit the current agentic wokflow file, no other files. -- Use the `gh aw compile` command to validate syntax. +- Use the `gh aw compile` command (or `gh-aw compile` if installed via standalone installer) to validate syntax. - Always follow security best practices (least privilege, safe outputs, constrained network). - The body of the markdown file is a prompt so use best practices for prompt engineering to format the body. - skip the summary at the point, keep it short. \ No newline at end of file diff --git a/pkg/cli/templates/instructions.md b/pkg/cli/templates/instructions.md index 007abdac9dd..283ca37d5d1 100644 --- a/pkg/cli/templates/instructions.md +++ b/pkg/cli/templates/instructions.md @@ -971,11 +971,14 @@ gh extension install githubnext/gh-aw If there are authentication issues, use the standalone installer: ```bash +# Download and run: curl -sL https://raw.githubusercontent.com/githubnext/gh-aw/main/install-gh-aw.sh | bash curl -O https://raw.githubusercontent.com/githubnext/gh-aw/main/install-gh-aw.sh chmod +x install-gh-aw.sh ./install-gh-aw.sh ``` +**Note**: When using the standalone installer, the binary is named `gh-aw` instead of `gh aw`. Use `./gh-aw compile` or add it to your PATH. + ### Compile Workflows ```bash From 5d010c9bf2409635ec40f133c8d8fdfa4e937f75 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Sep 2025 21:42:18 +0000 Subject: [PATCH 3/3] Update generated instructions and prompts files with binary name clarification Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/instructions/github-agentic-workflows.instructions.md | 3 +++ .github/prompts/create-agentic-workflow.prompt.md | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/instructions/github-agentic-workflows.instructions.md b/.github/instructions/github-agentic-workflows.instructions.md index 007abdac9dd..283ca37d5d1 100644 --- a/.github/instructions/github-agentic-workflows.instructions.md +++ b/.github/instructions/github-agentic-workflows.instructions.md @@ -971,11 +971,14 @@ gh extension install githubnext/gh-aw If there are authentication issues, use the standalone installer: ```bash +# Download and run: curl -sL https://raw.githubusercontent.com/githubnext/gh-aw/main/install-gh-aw.sh | bash curl -O https://raw.githubusercontent.com/githubnext/gh-aw/main/install-gh-aw.sh chmod +x install-gh-aw.sh ./install-gh-aw.sh ``` +**Note**: When using the standalone installer, the binary is named `gh-aw` instead of `gh aw`. Use `./gh-aw compile` or add it to your PATH. + ### Compile Workflows ```bash diff --git a/.github/prompts/create-agentic-workflow.prompt.md b/.github/prompts/create-agentic-workflow.prompt.md index 98a11f5917e..545c2132dd6 100644 --- a/.github/prompts/create-agentic-workflow.prompt.md +++ b/.github/prompts/create-agentic-workflow.prompt.md @@ -19,7 +19,7 @@ You are a conversational chat agent that interacts with the user to gather requi - Local copy: @.github/instructions/github-agentic-workflows.instructions.md - Canonical upstream: https://raw.githubusercontent.com/githubnext/gh-aw/main/pkg/cli/templates/instructions.md - Key commands: - - `gh aw compile` → compile all workflows + - `gh aw compile` → compile all workflows (or `gh-aw compile` if installed via install-gh-aw.sh) - `gh aw compile ` → compile one workflow - `gh aw compile --verbose` → debug compilation - `gh aw compile --purge` → remove stale lock files @@ -122,7 +122,7 @@ DO NOT ask all these questions at once; instead, engage in a back-and-forth conv ## Guidelines - Only edit the current agentic wokflow file, no other files. -- Use the `gh aw compile` command to validate syntax. +- Use the `gh aw compile` command (or `gh-aw compile` if installed via standalone installer) to validate syntax. - Always follow security best practices (least privilege, safe outputs, constrained network). - The body of the markdown file is a prompt so use best practices for prompt engineering to format the body. - skip the summary at the point, keep it short. \ No newline at end of file