/idp-skills:humanitec-score-workload-specificationfrom idp-skills
Authors platform-agnostic workload specs using the Score open standard and wires them into Humanitec's Platform Orchestrator for environment-specific resource binding.
Ships in idp-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Application teams shouldn't need to know whether "staging" runs on a shared
Postgres RDS instance, a per-namespace CloudSQL database, or a local Docker
container — but without a shared abstraction, every environment difference
leaks into the app's deployment config, and every platform migration means
rewriting every service's manifests. Score (an open, vendor-neutral
specification at score.dev) solves this by letting a developer declare a
workload's containers and abstract resource dependencies (postgres,
route, dns) once, in a single score.yaml, without naming a concrete
cloud service; a separate implementation — score-compose for local
Docker Compose, score-k8s for plain Kubernetes, or Humanitec's Platform
Orchestrator for full environment-aware provisioning — resolves those
abstract resources into real infrastructure per target. This skill covers
writing a correct score.yaml and understanding how Humanitec's Resource
Definitions and Environments turn that same file into different concrete
infrastructure across dev/staging/prod.
score.yaml for a service that needs to run identically
(from the app team's perspective) across local dev, CI, and multiple
cloud environments.resources
entry in score.yaml (e.g. type: postgres) resolves to a real
Terraform-provisioned database in a given environment.score.yaml produces a local container on a
laptop (score-compose), a plain Deployment/Service on a personal k8s
cluster (score-k8s), and a fully wired cloud database + DNS record in
production (Humanitec).staging-eu)
without asking every app team to change their workload spec.apiVersion (score.dev/v1b1 is the current stable schema version as
of this writing — check score.dev for the latest before assuming a
newer v1b2/GA version hasn't shipped).score-compose (Docker Compose target) or
score-k8s (plain Kubernetes target), both open-source CLIs maintained
under the Score project — install via the project's release binaries or
brew install score-spec/tap/score-compose.humctl CLI installed
and authenticated (humctl login), and an API token
(HUMANITEC_TOKEN) scoped to the target Application.type/class
combination the score.yaml references must already exist in the
target Humanitec Environment — this is an operator/platform-team
responsibility, not something the app team's score.yaml can create.image
by tag/digest, it doesn't build one).Write the workload's basic shape: apiVersion, metadata.name, and
one or more containers with an image reference, environment
variables, and resource requests/limits:
apiVersion: score.dev/v1b1
metadata:
name: checkout-api
containers:
checkout-api:
image: registry.example.com/checkout-api:1.4.2
variables:
LOG_LEVEL: info
DB_CONNECTION: "${resources.db.connection}"
resources:
requests:
cpu: "250m"
memory: "256Mi"
limits:
cpu: "1"
memory: "512Mi"
files:
- target: /etc/checkout-api/config.yaml
content: |
feature_flags:
new_pricing: false
variables values can reference resources.<name>.<field> — Score
substitutes these at resolution time from whatever the target
implementation actually provisions, which is the mechanism that keeps
the file itself environment-agnostic.
Declare abstract resources by type, not by concrete vendor — this
is the core of Score's portability:
resources:
db:
type: postgres
params:
version: "15"
dns:
type: dns
params:
host: "checkout.example.com"
route:
type: route
params:
host: "${resources.dns.host}"
port: 8080
cache:
type: volume
Nothing here says "RDS" or "CloudSQL" — the postgres type is resolved
differently by each implementation: score-compose spins up a local
postgres container, while Humanitec matches type: postgres (and
optionally a class) against a Resource Definition bound in the
current Environment.
Validate and run locally with score-compose before anything
touches a real environment:
score-compose init
score-compose generate score.yaml -o compose.yaml
docker compose -f compose.yaml up
score-compose generate fails fast on a malformed spec (missing
required fields, unknown resource type it doesn't have a built-in
provisioner for) — this is the cheapest validation loop, run before any
CI or Humanitec deploy.
Run the same file against plain Kubernetes with score-k8s for a
team not using Humanitec at all:
score-k8s generate score.yaml -o manifests.yaml
kubectl apply -f manifests.yaml -n checkout
score-k8s resolves postgres/route/etc. using its own default
provisioners (e.g. a postgres resource becomes a StatefulSet + Service
in-cluster) — good for teams who want Score's portability without
adopting Humanitec's orchestration layer.
Deploy through Humanitec with humctl score deploy, which uploads
the Score spec and creates a deployment against a specific
Application/Environment:
humctl score deploy \
--app checkout \
--env staging \
--file score.yaml
Humanitec resolves each resources.* entry against the Resource
Definitions bound to the staging Environment, not the ones bound to
production — same score.yaml, different concrete infrastructure.
Define the Humanitec Resource Definition that resolves type: postgres to a real Terraform module, scoped per environment type:
apiVersion: entity.humanitec.io/v1b1
kind: Definition
metadata:
id: postgres-aws-rds
entity:
type: postgres
driver_type: humanitec/terraform
driver_inputs:
source:
path: "git::https://github.com/<ORG>/tf-modules//postgres-rds"
variables:
instance_class: "db.t3.medium"
engine_version: "15"
In staging, bind this Resource Definition with a smaller
instance_class; in production, bind a different Resource Definition
(or the same one with a larger override) — the app team's score.yaml
never changes.
Bind Resource Definitions per Environment, not globally, so dev
can resolve postgres to a lightweight container-based Postgres while
production resolves the same type to RDS Multi-AZ:
humctl score resources apply \
--env dev \
--res-def postgres-dev-local
humctl score resources apply \
--env production \
--res-def postgres-aws-rds-multiaz
This environment-level binding — not anything in score.yaml — is what
makes the same workload spec produce a throwaway dev database and a
production-grade Multi-AZ instance from identical application code.
Reference dynamically resolved values back into the container, e.g.
a DB connection string Humanitec only knows after provisioning
completes, using Score's ${resources.<name>.<output>} interpolation
shown in step 1 — never hardcode a host/port/credential into
variables directly.
type (postgres, not a
vendor-specific type name) so the same spec stays portable across
score-compose, score-k8s, and Humanitec — pushing vendor specificity
into the Resource Definition, not the score.yaml.apiVersion explicitly and check it into the same PR review as the
application code — a score.yaml schema change (e.g. a new required
container field between spec minor versions) should go through the same
review as any other deployment-affecting change.containers.*.variables
— reference ${resources.<name>.*} and let the Resource
Definition/provisioner inject the real value (e.g. from a secret store)
at resolution time, never at authoring time.score.yaml per deployable workload, not one shared across
multiple services with conditional logic — Score intentionally has no
templating/conditionals; if multiple services need different shapes,
give each its own file (or generate them from a golden-path template,
see cross-references).score-compose before every Humanitec deploy, even to
a low-risk dev environment — it catches schema errors in seconds
without touching real infrastructure or waiting on a Terraform apply.type/class combinations a
platform actually supports small and documented — an app team writing
type: mystery-queue with no matching Resource Definition anywhere
fails only at deploy time, not at authoring time (see pitfalls and the
companion validation skill).Symptom: humctl score deploy succeeds against staging but fails
against production with "no resource definition matches type=postgres,
class=default" even though the score.yaml is unchanged.
Fix: The production Environment has no Resource Definition bound
for that type/class combination — bindings are per-Environment, not
global; confirm with humctl score resources list --env production
before assuming the workload spec itself is broken.
Symptom: A developer hardcodes DB_HOST: postgres-prod.internal into
containers.checkout-api.variables "just to get it working," defeating
the entire point of the abstract resources block.
Fix: Replace with ${resources.db.host} and let whichever
implementation resolves the spec (Humanitec, score-k8s, or
score-compose) inject the real value — a hardcoded host is invisible
to Score and will silently point at the wrong environment's database the
next time the same file is deployed elsewhere.
Symptom: score-compose generate and score-k8s generate both
produce working output for the same score.yaml, but the file fails
validation only when submitted to Humanitec.
Fix: Humanitec enforces additional constraints beyond the base Score
schema (e.g. that every resources.*.type has a bound Resource
Definition in the target Environment) that the open-source CLIs, which
ship their own built-in default provisioners, don't need to enforce —
run humctl score deploy --dry-run (or the org's CI validation gate; see
humanitec-score-configuration-validation)
against the actual target Environment, not just local resolution, before
assuming the spec is deploy-ready everywhere.
Symptom: Two services end up with near-duplicate score.yaml files
that differ only in metadata.name and image, and a shared config bug
(e.g. missing resources.requests) has to be fixed in a dozen places.
Fix: Generate score.yaml from a shared golden-path template with
parameterized fields, rather than hand-copying between services — see
golden-path-template-design-for-developer-platforms.
Symptom: A Resource Definition change (e.g. bumping the Terraform
module's instance_class default) is applied directly against
production and every workload resolving type: postgres there gets an
unplanned resize on next deploy.
Fix: Test Resource Definition changes against a non-production
Environment's resource graph first and gate the change through review,
the same as any other infrastructure-as-code change — see
humanitec-score-configuration-validation
for the dry-run/Resource Graph workflow.
Scenario: The checkout-api service needs to run identically (from the
app team's point of view) in a developer's local Docker environment, a
shared staging environment, and production, where staging uses a
small shared RDS instance and production uses Multi-AZ RDS with read
replicas — without the app team maintaining three different manifests.
score.yaml (single file, used everywhere):
apiVersion: score.dev/v1b1
metadata:
name: checkout-api
containers:
checkout-api:
image: registry.example.com/checkout-api:1.4.2
variables:
DB_CONNECTION: "${resources.db.connection}"
LOG_LEVEL: info
resources:
requests: { cpu: "250m", memory: "256Mi" }
limits: { cpu: "1", memory: "512Mi" }
resources:
db:
type: postgres
params:
version: "15"
route:
type: route
params:
host: checkout.example.com
port: 8080
Local dev: score-compose generate score.yaml -o compose.yaml && docker compose -f compose.yaml up — resolves db to a local postgres:15
container with no Humanitec involvement at all.
Staging deploy: humctl score deploy --app checkout --env staging --file score.yaml — Humanitec resolves type: postgres against the
postgres-staging-shared Resource Definition (a small shared RDS
instance, db.t3.small, provisioned once and reused across services in
staging).
Production deploy: identical command with --env production — Humanitec
resolves the same type: postgres entry against
postgres-production-multiaz (RDS Multi-AZ, db.r5.large, with automated
failover), because that's the Resource Definition bound to the
production Environment. The app team changed nothing between the three
deploys; only the platform team's Environment-level Resource Definition
bindings differ.
score.yaml and its target Resource Definitions before a real deploy, referenced above for dry-run/CI gating.score.yaml in a scaffolding template so new services start from a correct spec instead of hand-copying one.What SKILL.md sets; muted values are Claude Code's defaults
20 skills in this plugin
/backstage-plugin-developmentGuides authoring a custom Backstage plugin — scaffolding a frontend or backend plugin package with `yarn new`, wiring a frontend API client via `createApiRef`, building a backend plugin on the new backend system (`createBackendPlugin`), and registering either into the app's routes or an entity page tab. Use when a user asks to "write a custom Backstage plugin," "add a backend plugin to Backstage," "build a Backstage frontend component that talks to a new API," or "create a Backstage plugin that surfaces X" — this goes beyond catalog/TechDocs/template configuration.
/complete-idp-deployment-on-aws-from-scratchSequences a complete, from-scratch Internal Developer Platform deployment on AWS: landing zone → EKS cluster → Helm-deployed Backstage backed by RDS PostgreSQL → golden-path scaffolding template → self-service API wired to AWS provisioning (IRSA roles, RDS instances) → scorecards. This is the integration runbook that orders the individual AWS/EKS/Backstage skills correctly and flags the handoffs between them. Use when a user asks to "deploy an IDP on AWS from scratch," "stand up Backstage on EKS end-to-end," "build our internal developer platform on AWS," "wire self-service database/IAM provisioning into Backstage on AWS," or "sequence an AWS platform rollout from account creation to golden-path templates."
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin idp-skillsOther plugins' skills for the same job