Deploy templates

From makifbaysal/tasktrooper · View interactive version

Deploy templates is an AI agent skill from the GitHub repository makifbaysal/tasktrooper. Built-in deploy recipes and deploy targets. Use when a task asks you to set up or change a stage/preprod/prod deploy workflow, including the system's "Set up <env> deploy" tasks.

How to use this skill

Skill file

Deploy templates

Deploying is a defined step like build and test, not improvisation. Every environment

(stage, preprod, prod) of a repository has a deploy target: a provider, its

variables, a health URL and a rollback policy. Each provider has a template: the

workflow to write, the secrets it needs, the smoke check and the rollback.

Workflow

  1. A "Set up <env> deploy" task already carries the rendered recipe in its description —

start from that rather than asking the tools for it again.

  1. get_deploy_target with the repository id and env to re-read what this repo ships to,

plus the recipe rendered with its variables, whenever you need it again mid-task.

  1. load_deploy_template for the full raw recipe (secrets, smoke check, rollback) when the

rendered version in the task description is not enough, or the task gives no recipe

(a change to an existing deploy rather than a new one) — list_deploy_templates,

optionally filtered by repo kind, to see what is available first.

  1. Write the workflow into .github/workflows/ exactly as the recipe describes. Keep the

workflow_dispatch trigger: the board dispatches deploys by workflow file.

  1. Name the file and the workflow's name: per ci-cd-pipeline-authoring so the detector maps

it to the right slot (stage_deploy / preprod_deploy / prod_deploy). If the slot still

shows unmapped after that, say so in one comment: mapping the detected slot is the human's

action, not something you can force from here.

Non-negotiables

lie. Every deploy ends with a smoke check against the environment's health URL.

If a provider cannot roll back automatically, document the exact manual command.

their equivalents are what make the result honest; dropping them for speed hides

crash-looping releases.

secrets. Never commit a key file.

otherwise two releases race and the environment ends up in an undefined state.

for it. Do not guess a project id, region or cluster name.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.