Advent of AI 2025 - Day 15: Goose Sub-Recipes

Published: (December 21, 2025 at 12:44 PM EST)
4 min read
Source: Dev.to

Source: Dev.to

What is Goose?

Author: Nick Taylor • Dec 10, 2025
Tags: #adventofai #goose #automation #ai

Goose is a local, extensible, open‑source AI agent that automates engineering tasks.
It can:

  • Build entire projects from scratch
  • Write, run, and debug code
  • Orchestrate complex workflows
  • Interact with external APIs – all autonomously

Goose works with any LLM, supports multi‑model configurations, integrates with MCP servers, and is available as both a desktop app and a CLI.

“Your on‑machine AI assistant for developers who want to move faster and focus on innovation.”

CategoryLink
Quickstart
Installation
Tutorials
Documentation
Responsible AI‑Assisted Coding Guide
Governance
Need Help?
Diagnostics & Reporting
Known Issues
View on GitHub

Day 15 Challenge Recap

The challenge introduced sub‑recipes – a way to compose smaller recipes into larger, more powerful workflows.

Scenario: Social‑Media Campaign for the Grand Ice Sculpture Unveiling

PlatformContent Requirements
InstagramVisual captions with hashtags
Twitter/XConcise thread
FacebookDetailed event description

Manually crafting each piece is tedious. The solution: a main recipe that orchestrates three sub‑recipes, one per platform.

Files Created

FilePurpose
instagram‑post.yamlGenerates Instagram captions
twitter‑thread.yamlGenerates a Twitter/X thread
facebook‑event.yamlGenerates a Facebook event description
social‑campaign.yamlMain orchestrator that calls the three sub‑recipes

All recipes share the same core parameters:

  • event_name
  • event_date
  • event_description
  • target_audience
  • call_to_action

The main recipe passes these values to each sub‑recipe, keeping each component focused and reusable.

Main Recipe: social-campaign.yaml

version: 1.0.0
title: Social Media Campaign Generator
description: Generate a complete cross‑platform social media campaign using sub‑recipes
instructions: |
  You are a social media campaign coordinator creating a comprehensive multi‑platform campaign.

  Generate a complete social media campaign for the following event:
  - event_name: {{event_name}}
  - event_date: {{event_date}}
  - event_description: {{event_description}}
  - target_audience: {{target_audience}}
  - call_to_action: {{call_to_action}}

  **Campaign Strategy:** Execute the following sub‑recipes to create platform‑specific content:
  1. **Instagram Content** – run `instagram-post.yaml`
  2. **Twitter/X Thread** – run `twitter-thread.yaml`
  3. **Facebook Event** – run `facebook-event.yaml`

  **Output Format:** Present the complete campaign organized by platform.

📱 SOCIAL MEDIA CAMPAIGN: {{event_name}}

How It Works

  1. Coordination – The main recipe defines the workflow and passes the shared parameters to each sub‑recipe.
  2. Composability – Each sub‑recipe focuses on a single platform, making it easier to maintain and extend.
  3. Result Presentation – The final output is neatly grouped by platform, ready for publishing.

Takeaway

Using sub‑recipes turns a monolithic, hard‑to‑maintain script into a clean, modular system.
You can now generate platform‑specific content with a single command, saving time and reducing errors.

Happy automating! 🚀

📷 Instagram Post

# Output from `instagram‑post.yaml`
# -------------------------------------------------
# (Insert the generated YAML content here)
# -------------------------------------------------

🐦 Twitter/X Thread

# Output from `twitter‑thread.yaml`
# -------------------------------------------------
# (Insert the generated thread content here)
# -------------------------------------------------

👥 Facebook Event

# Output from `facebook‑event.yaml`
# -------------------------------------------------
# (Insert the generated Facebook event content here)
# -------------------------------------------------

📊 Campaign Summary

Posting Strategy

PlatformTimingGoal
FacebookFirst (immediately)Provide full details & drive RSVPs
Instagram2‑4 hours laterVisual engagement & brand awareness
Twitter/X1‑2 hours after InstagramSpark conversation with a thread

Engagement Tips

  • Monitor comments during the first 2 hours for maximum reach.
  • Respond to questions quickly to keep the conversation flowing.
  • Share user‑generated content (photos, stories, replies).
  • Cross‑promote between platforms (e.g., “Check out our Instagram post for a sneak peek!”).

▶️ Execution Instructions

  1. Call each sub‑recipe with the provided parameters.
  2. Collect all outputs (Instagram caption, Twitter thread, Facebook event).
  3. Format the results as shown above.
  4. Follow the posting strategy and engagement tips for optimal impact.

Rules

  • Execute all three sub‑recipes.
  • Present the output in a clear, organized format.
  • Include the campaign summary and strategy.
  • Make the deliverable ready for immediate deployment.

Prompt

Generate complete social media campaign for {{event_name}}

Extensions

extensions: []

Sub‑recipes

sub_recipes:
  - name: "instagram_content"
    path: "./instagram-post.yaml"
    values:
      event_name: "{{event_name}}"
      event_date: "{{event_date}}"
      event_description: "{{event_description}}"
      target_audience: "{{target_audience}}"
      call_to_action: "{{call_to_action}}"

  - name: "twitter_content"
    path: "./twitter-thread.yaml"
    values:
      event_name: "{{event_name}}"
      event_date: "{{event_date}}"
      event_description: "{{event_description}}"
      target_audience: "{{target_audience}}"
      call_to_action: "{{call_to_action}}"

  - name: "facebook_content"
    path: "./facebook-event.yaml"
    values:
      event_name: "{{event_name}}"
      event_date: "{{event_date}}"
      event_description: "{{event_description}}"
      target_audience: "{{target_audience}}"
      call_to_action: "{{call_to_action}}"

Activities

activities: []

Parameters

KeyTypeRequirementDescription
event_namestringrequiredName of the festival event
event_datestringrequiredWhen the event is happening
event_descriptionstringrequiredWhat the event is about
target_audiencestringrequiredWho should attend
call_to_actionstringrequiredWhat you want people to do

Running the campaign generator with the event details will produce ready‑to‑post content for all three platforms:

  • Instagram: Caption with strategic hashtags.
  • Twitter/X: A 4‑tweet thread.
  • Facebook: Complete event description and RSVP link.

The output also includes the posting strategy and engagement tips, even though they weren’t explicitly requested—thanks to the recipe’s built‑in guidance.

For deeper dives into sub‑recipes, see the “Recipes Guide” on GitHub (Advent of AI 2025 – Day 15). Stay connected via my socials at nickyt.online.

Back to Blog

Related posts

Read more »