Skip to content
Skills Library
DevOps & cloud · Building & coding

tf-worker

/tf-worker

Scaffold Terraform (Azure) for a console worker running in a container, for UAT and prod, from a project prefix. Same base as the web app but with no ingress, plus optional add-ons (private or public blob storage, Foundry AI models, PostgreSQL). Use when the user wants infrastructure for a background or console worker.

Repository
skills ↗
Licence
MIT
Last repository change
11.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Scaffold Terraform (Azure) for a console worker running in a container, for UAT and prod, from a project prefix. Same base as the web app but with no ingress, plus optional add-ons (private or public blob storage, Foundry AI models, PostgreSQL). Use when the user wants infrastructure for a background or console worker.

Arguments

/tf-worker [prefix]
Original author description

Scaffold Terraform (Azure) for a console worker running in a container, for UAT and prod, from a project prefix. Same base as the web app but with no ingress, plus optional add-ons (private or public blob storage, Foundry AI models, PostgreSQL). Use when the user wants infrastructure for a background or console worker.

How it works

  1. Steps
  2. Notes
Original SKILL.md headings · 21 lines, 284 words
SKILL.md preview
---
name: tf-worker
description: Scaffold Terraform (Azure) for a console worker running in a container, for UAT and prod, from a project prefix. Same base as the web app but with no ingress, plus optional add-ons (private or public blob storage, Foundry AI models, PostgreSQL). Use when the user wants infrastructure for a background or console worker.
argument-hint: [prefix]
---

# Terraform: console worker

Create the Terraform for a containerised console worker, one directory per environment. It has the same base as `/tf-web` and differs only in the container app, which has no ingress.

## Steps

1. Read [../_shared/terraform-base.md](../_shared/terraform-base.md) and follow it with `service` = `worker`. Check the repo's existing layout and `CLAUDE.md` conventions first.
2. Collect the inputs. The first argument, if given, is the `prefix`. If a `web` service for the same prefix already exists, reuse its `location` and `created_by`.
3. Ask which add-ons to include, all optional: blob storage (`/tf-blob`), Foundry AI models (`/tf-foundry`), PostgreSQL (`/tf-pgsql`). The worker has its own resource group and PostgreSQL server, so say so if the web service already has one, and ask whether the worker should share the web service's database instead (then skip PostgreSQL here and note the connection string comes from the web service).
4. **Confirm** the plan before writing: the directories, the files, the generated names, and the add-ons.
5. Write the base files for each environment, using this skill's [container_app.tf.tmpl](container_app.tf.tmpl). There is no `vars-extra`.
6. Apply each chosen add-on by following its skill's "Add" steps, reusing the inputs already collected.
7. Write or extend `docs/state-bootstrap.md` and `.gitignore`.
8. Run the checks from the base doc and report.

## Notes

- With no ingress and no probe, Container Apps keeps the replica running and restarts it on exit. For a worker that should run on a schedule or per message instead, a Container Apps job or a scale rule is the better fit. Say so if the user describes that.
- The container runs the Microsoft quickstart image as a placeholder, and `ignore_changes` on the image stops Terraform fighting the app pipeline.
Files in this package (2)
  • SKILL.md 2 KB
  • container_app.tf.tmpl 1 KB

Versions

The database has no other skills named tf-worker.

Database snapshot: 13.11.2026 · package version 2ea83b6c85c8 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90tf-web
    Scaffold Terraform (Azure) for a web app running in a container, for UAT and prod, from a project prefix. Creates the resource group, Log Analytics, Container Apps environment, container registry, externally ingressed container app and state bootstrap doc, then offers optional…
  • 90tf-blob
    Add Azure blob storage to an existing Terraform web or worker environment created by tf-web or tf-worker, private, public (anonymous read of blobs) or both. Use when the user wants file or asset storage on an existing service.
  • 100terraform-azure
    Provision Azure infrastructure with Terraform. Configure providers, manage state, and deploy resources. Use when implementing IaC for Azure.
  • 100terraform-azure
    Provision Azure infrastructure with Terraform. Configure providers, manage state, and deploy resources. Use when implementing IaC for Azure.
  • 86generate-modern-terraform-code-for-azure
    Guidelines for generating modern Terraform code for Azure Triggers on: **/*.tf
  • 100azure
    Azure cloud services SDK integration. Azure Functions, Cosmos DB, Blob Storage, Service Bus, Azure AD (Entra ID), and Key Vault. Node.js and .NET SDKs. USE WHEN: user mentions "Azure", "Azure Functions", "Cosmos DB", "Blob Storage", "Service Bus", "Azure AD", "Entra ID", "Key…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.