gh-aw-new
Skill4 starsChanged 6 months agoMITView on GitHub
Create new GitHub Agentic Workflows (gh-aw) from scratch using the CLI extension. You MUST load this skill when creating new Agentic Workflow files.
In this repository124 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- .vscode/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agent-log-analysisSkill
- agent-mdSkill
- agent-md-writerSkill
- agent-skill-md-writerSkill
- agentskillsSkill
- agents-md-writerSkill
- ai-prompt-writerSkill
- ansibleSkill
- apache-airflow-apiSkill
- apache-airflow-dagsSkill
- astro-cliSkill
- astronomer-docsSkill
- awesome-copilotSkill
- brainstorm-agent-runsSkill
- brainstorm-github-prSkill
- brainstormSkill
- catSkill
- chrome-devtoolsSkill
- claude-docsSkill
- codeqlSkill
- code-reviewSkill
- code-tourSkill
- coding-standard-writerSkill
- context-aware-opsSkill
- copilot-cliSkill
- copilot-docsSkill
- critical-thinkingSkill
- datadog-agentSkill
- datadog-apiSkill
- datadog-mcpSkill
- datadog-monitorsSkill
- datadog-pulumiSkill
- devcontainerSkill
- dictationSkill
- direnvSkill
- dockerfileSkill
- dockerSkill
- docs-reviewSkill
- docs-writerSkill
- dot-claudeSkill
- dotfilesSkill
- dot-githubSkill
- editorconfigSkill
- fact-writerSkill
- gdpr-compliantSkill
- gh-agent-taskSkill
- gh-apiSkill
- gh-aw-compileSkill
- gh-aw-firewall-debugSkill
- gh-aw-firewallSkill
- gh-awSkill
- gh-aw-troubleshootingSkill
- gh-codespaceSkill
- gh-issueSkill
- gh-modelsSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 6 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Create new GitHub Agentic Workflows (gh-aw) by installing the CLI extension and fetching official step-by-step creation instructions.
- Very specific: line 17
When creating standard GitHub Actions (.yml) that don't use the Agentic Workflows framework.
- Distinctive: line 18
If you simply need to execute an agent prompt in the CLI rather than scaffolding a repository integration.
- Very specific: line 30
If not installed or needs upgrade: gh extension install github/gh-aw or gh extension upgrade github/gh-aw
- Very specific: line 32
Use webfetch to retrieve the relevant instruction file based on the user's request, and read ALL instructions before proceeding:
- Very specific: line 35
Execute the Action: Follow the fetched prompt's instructions exactly.
- Distinctive: line 36
Review Changes: Run git status. Ensure the following are present:
- Very specific: line 41
Update .gitattributes: Ensure .gitattributes contains: .github/workflows/*.lock.yml linguist-generated=true merge=ours.
- Distinctive: line 42
Validate: Run repo-standard pre-commit hooks to ensure the new workflow meets quality and security standards:
- Very specific: line 46
Commit and Push: Commit the workflow files, lock files, agent files, and .gitattributes.
- Very specific: line 50
Dynamic Loading: Never guess the structure of a new workflow.
- Distinctive: line 51
Artifact Inclusion: Always include regenerated lock files and agent definitions in the commit to ensure the workflow is ready for execution.
- Distinctive: line 55
When the user wants to create a new workflow from scratch, add automation, or design a workflow that doesn't exist yet.
- Very specific: line 72
If gh aw commands fail, verify that GitHub CLI (gh) is authenticated and that the github/gh-aw extension is installed with gh extension …
- Very specific: line 73
If a command is missing, ensure you have the latest version: gh extension upgrade github/gh-aw.
- Very specific: line 74
Check .lock.yml files; workflows must be compiled successfully before they can run.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: gh-aw-new
<!-- markdownlint-disable MD013 MD023 MD031 MD032 -->Create new GitHub Agentic Workflows (gh-aw) by installing the CLI extension and fetching official step-by-step creation instructions.
When Not to Use
- To modify or debug an existing agentic workflow (use
github-aworgh-aw-troubleshootinginstead). - When creating standard GitHub Actions (
.yml) that don't use the Agentic Workflows framework. - If you simply need to execute an agent prompt in the CLI rather than scaffolding a repository integration.
Common Pitfalls
- Ignoring the Prompt: Trying to create the
.mdworkflow file manually without fetching the officialcreate-agentic-workflow.mdprompt, resulting in invalid frontmatter. - Forgetting Compilation: Scaffolding the workflow but failing to run
gh aw compile, leaving the repository without an executable.lock.ymlfile. - Missing Hooks: Bypassing
pre-commit run --all-filesafter generation, pushing a workflow that violates repository standards.
Core Process
- Install or Upgrade gh-aw:
- Check installation:
gh extension list - If not installed or needs upgrade:
gh extension install github/gh-aworgh extension upgrade github/gh-aw
- Check installation:
- Fetch the Appropriate Prompt:
Use
webfetchto retrieve the relevant instruction file based on the user's request, and read ALL instructions before proceeding:- Create New Workflow:
https://raw.githubusercontent.com/github/gh-aw/v0.74.3/.github/aw/create-agentic-workflow.md - Create Shared Workflow:
https://raw.githubusercontent.com/github/gh-aw/v0.74.3/.github/aw/create-shared-agentic-workflow.md
- Create New Workflow:
- Execute the Action: Follow the fetched prompt's instructions exactly. Use
gh aw new <workflow-name>to scaffold. - Review Changes: Run
git status. Ensure the following are present:.github/workflows/<workflow-name>.md.github/workflows/<workflow-name>.lock.yml.github/agents/(if new agents were created).github/aw/actions-lock.json(if new actions were pinned)
- Update .gitattributes: Ensure
.gitattributescontains:.github/workflows/*.lock.yml linguist-generated=true merge=ours. - Validate: Run repo-standard pre-commit hooks to ensure the new workflow meets quality and security standards:
pre-commit run --all-files - Commit and Push: Commit the workflow files, lock files, agent files, and
.gitattributes.
Core Principles
- Dynamic Loading: Never guess the structure of a new workflow. Always fetch and read the appropriate
ROOT/.github/aw/create-*.mdprompt first. - Artifact Inclusion: Always include regenerated lock files and agent definitions in the commit to ensure the workflow is ready for execution.
When to Use
- When the user wants to create a new workflow from scratch, add automation, or design a workflow that doesn't exist yet.
Commands / Usage Patterns
# Verify installation
gh extension list | grep gh-aw
# Create a new workflow (follow fetched guidelines)
gh aw new <workflow-name>
# Compile the new workflow
gh aw compile <workflow-name>Diagnostics and Troubleshooting
- If
gh awcommands fail, verify that GitHub CLI (gh) is authenticated and that thegithub/gh-awextension is installed withgh extension list. - If a command is missing, ensure you have the latest version:
gh extension upgrade github/gh-aw. - Check
.lock.ymlfiles; workflows must be compiled successfully before they can run.
Limitations
- This skill relies on fetching external Markdown files from the
gh-awrepository. Ensurewebfetchis available.
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

