Skip to content

[training-plan] Add research-backed training node: Customize Your Prompt with Conditional Templating #2535

Description

@github-actions

Caution

Protected files were modified in this change.
This pull request is in request_review mode and requires explicit human scrutiny before merge.

Protected files: README.md

Research focus

Prompt template conditionals — the {{#if}} / {{#else}} / {{#endif}} Handlebars-style blocks that gh-aw resolves at runtime before the agent sees its brief.

Gap filled

The existing curriculum teaches ${{ }} GitHub Actions expressions for conditional workflow execution (Step 15) and A/B experiments as an advanced concept (Step 23), but nowhere explains {{#if}} blocks for adapting the agent brief itself at runtime. Learners who complete the main path cannot vary what the agent is told based on runtime context without duplicating entire workflow files.

This new step bridges those two existing steps and gives learners a practical tool for adaptive prompts.

Files updated

  • Created: workshop/15b-prompt-template-conditionals.md — new step introducing {{#if}} template conditionals, steps.sanitized.outputs.text, condition forms, and integration with experiments: frontmatter
  • Updated: workshop/README.md — curriculum table now includes Step 15b between Step 15 and Step 16

Research sources

  • https://github.github.com/gh-aw/llms.txt — discovery of context.md prompt file
  • https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/context.md — full reference for allowed expressions, steps.sanitized.outputs.text, and {{#if}} syntax
  • https://github.github.com/gh-aw/reference/templating/ — public docs for the templating feature

XML comment metadata

Research focus, source URLs, and rationale are stored in a <research-metadata> XML comment block at the top of workshop/15b-prompt-template-conditionals.md.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by 🧠 Training Plan Researcher · 46 AIC · ⌖ 7.16 AIC · ⊞ 4.9K ·

  • expires on Aug 8, 2026, 4:21 PM UTC

Note

This was originally intended as a pull request, but the git push operation failed.

Original error: pushSignedCommits: refusing unsigned push for branch 'add-prompt-template-conditionals-step-3db76bfa61dc8610': Signed-commit payload violates file-protection policy (request_review): workshop/README.md

Workflow Run: View run details and download bundle artifact

The bundle file is available in the agent artifact in the workflow run linked above.

To create a pull request with the changes:

# Download the artifact from the workflow run
gh run download 31196439104 -n agent -D /tmp/agent-31196439104

# Fetch the bundle into a temporary ref, then update the local branch
git fetch /tmp/agent-31196439104/aw-add-prompt-template-conditionals-step.bundle refs/heads/add-prompt-template-conditionals-step:refs/bundles/create-pr-add-prompt-template-conditionals-step-3db76bfa61dc8610-3dfef91b
git update-ref refs/heads/add-prompt-template-conditionals-step-3db76bfa61dc8610 refs/bundles/create-pr-add-prompt-template-conditionals-step-3db76bfa61dc8610-3dfef91b
git checkout add-prompt-template-conditionals-step-3db76bfa61dc8610
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d refs/bundles/create-pr-add-prompt-template-conditionals-step-3db76bfa61dc8610-3dfef91b

# Push the branch to origin
git push origin add-prompt-template-conditionals-step-3db76bfa61dc8610

# Create the pull request
gh pr create --title '[training-plan] Add research-backed training node: Customize Your Prompt with Conditional Templating' --base main --head add-prompt-template-conditionals-step-3db76bfa61dc8610 --repo githubnext/gh-aw-workshop

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions