Skip to content

p-cap/gh-agentic-pcap

Repository files navigation

GH Agentic Workflows Proof of Concept

Pre-requisites

Adding a Custom Workflow

  • Create a new file at .github/workflows/<workflow-name>.md.

  • The workflow markdown file consists of two major parts:

    • Frontmatter: The frontmatter has three components:

      • triggers: Defines when the workflow runs.
      • permissions: Specifies what the workflow can access.
      • tools: Outlines the capabilities of the AI.
      ---
      on: ...
      permissions: ...
      tools: ...
    • Markdown Instructions: This section includes natural language task descriptions.

      ---
      # Natural Language Instructions
      Analyze this issue and provide helpful triage comments...
  • Below is the sample workflow file Frontmatter + markdown instructions

    ---
    on: ...
    permissions: ...
    tools: ...
    ---
    # Natural Language Instructions
    Analyze this issue and provide helpful triage comments...
  • Use the command gh aw compile to produce a .github/workflows/<workflow-name>.lock.yml file.

  • Commit and push your changes.

Prompting for a workflow markdown file

We can feed a chatbot instructions on how to author our agentic workflow
https://github.github.com/gh-aw/guides/agentic-authoring/#planner

Not Starting from Scratch

Special Mention

This template was generated with the assistance of Duck.ai, showcasing the capabilities of AI in streamlining workflow processes. Also, shoutout to OneRose328 for the awesome-agentic-workflow repo!

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors