naming-and-labeling-as-code

Enforce standardized naming and mandatory tagging for cloud resources via Terraform.

28|3|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/oborchers/fractional-cto --skill naming-and-labeling-as-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: naming-and-labeling-as-code
Source: https://github.com/oborchers/fractional-cto/tree/main/cloud-foundation-principles/skills/naming-and-labeling-as-code
Command: npx skills add https://github.com/oborchers/fractional-cto --skill naming-and-labeling-as-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the chaos of inconsistent cloud resource naming and tagging, which leads to confusion, security risks, and billing inaccuracies. It enforces a standardized, predictable, and auditable system for naming and labeling all cloud infrastructure.

Core Features & Use Cases

  • Automated Naming Convention: Generates resource names based on a defined pattern (<team>-<env>[-<scope>]-<name>[-<function>][-<suffix>]).
  • Mandatory Tagging: Ensures essential tags (owner, environment, project, cost_center, managed_by) are applied to every resource.
  • Cost Center Validation: Enforces a closed list of valid cost centers at terraform plan time, preventing billing errors.
  • Use Case: When provisioning new AWS or GCP resources via Terraform, this Skill ensures every resource is named consistently, tagged correctly for ownership and cost allocation, and adheres to company-wide standards, preventing sprawl and simplifying cost management.

Quick Start

Use the naming-and-labeling-as-code skill to generate a Terraform module for resource naming and tagging.

Frequently Asked Questions about naming-and-labeling-as-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce consistent naming conventions and tagging for cloud resources using Terraform?

You can enforce consistent naming and tagging for cloud resources by generating a Terraform module that standardizes resource names using a defined pattern and applies mandatory tags like owner, environment, and cost center. This prevents configuration drift and ensures compliance across teams.

Why do inconsistent cloud resource tags cause billing inaccuracies and how can I prevent them?

Inconsistent cloud resource tags cause billing inaccuracies by obscuring resource ownership and cost allocation. You can prevent billing errors by validating inputs against a closed list of valid cost centers during the terraform plan phase, ensuring every resource is tracked correctly.

Can I validate mandatory tags for AWS and GCP resources before provisioning?

Yes, you can validate mandatory tags for AWS and GCP resources before provisioning. The module checks essential tags such as project, cost center, and managed by at terraform plan time, blocking deployment if required metadata is missing or invalid.

What is the best way to standardize cloud resource names across multiple teams?

The best way to standardize cloud resource names across multiple teams is to use an automated naming pattern like <team>-<env>-<name>-<function>. This provides a single source of truth for resource identification, preventing sprawl and simplifying cost management in multi-team environments.