/idp-skills:golden-path-template-validation-and-testingfrom idp-skills
Tests that a golden-path scaffolding template produces a working, deployable service by scaffolding, building, deploying to an ephemeral environment, and running a smoke test in CI.
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.
A golden-path template that looks correct in review — valid YAML, sensible parameters, a plausible skeleton — can still produce a service that doesn't build, doesn't pass its own CI, or fails to deploy, because nobody actually ran the template end-to-end before publishing it. The cost of skipping this is not abstract: the first team to discover a broken golden path is a real team trying to ship a real service, and the damage isn't just their lost afternoon — it's the platform's credibility with every team watching, at the exact moment adoption depends on the golden path visibly working. This skill covers the validation discipline that belongs between designing a template (covered in golden-path-template-design-for-developer-platforms) and pointing new-service creation at it: a CI pipeline that scaffolds a real instance from the template, builds it, deploys it to an ephemeral environment, runs a smoke test, and tears it down — repeated for every tier and, ideally, every supported parameter combination that's actually shipped as a tested option.
scaffolder.backstage.io/v1beta3 Template manifests) or a Score-based
skeleton workflow; see
golden-path-template-design-for-developer-platforms
for the template structure this skill validates.template-ci Kubernetes namespace, or a disposable Humanitec/Score
Environment) with a teardown mechanism (TTL-based namespace cleanup, or
an explicit teardown CI job) so failed test runs don't accumulate
orphaned infrastructure.-template-ci-
naming prefix the cleanup job matches on, or a scheduled deletion job)./healthz or equivalent) the pipeline can curl after
deploy — otherwise "the service deployed" and "the service works" are
conflated.Scaffold a real instance from the template in CI, driven the same way a developer would trigger it, not by hand-copying the skeleton. For Backstage, call the Scaffolder's own execution API rather than reimplementing template rendering:
# .github/workflows/validate-golden-path.yml
name: Validate golden-path template
on:
pull_request:
paths: ["templates/golden-path-service-standard/**"]
schedule:
- cron: "0 6 * * 1" # weekly, to catch dependency rot even with no template change
jobs:
scaffold-build-deploy-smoketest:
runs-on: ubuntu-latest
steps:
- name: Trigger scaffold via Backstage API
run: |
curl -X POST "$BACKSTAGE_URL/api/scaffolder/v2/tasks" \
-H "Authorization: Bearer $BACKSTAGE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"templateRef": "template:default/golden-path-service-standard",
"values": {
"name": "template-ci-standard-'"${GITHUB_RUN_ID}"'",
"owner": "group:platform-team",
"runtime": "go1.22",
"datastore": "postgres14"
}
}' > task.json
echo "task_id=$(jq -r .id task.json)" >> "$GITHUB_ENV"
Poll the scaffolder task to completion and fail fast on a scaffold error, rather than proceeding to build a repository that was never fully created:
until [[ "$(curl -s -H "Authorization: Bearer $BACKSTAGE_TOKEN" \
"$BACKSTAGE_URL/api/scaffolder/v2/tasks/$task_id" | jq -r .status)" =~ ^(completed|failed)$ ]]; do
sleep 5
done
status=$(curl -s -H "Authorization: Bearer $BACKSTAGE_TOKEN" \
"$BACKSTAGE_URL/api/scaffolder/v2/tasks/$task_id" | jq -r .status)
[[ "$status" == "completed" ]] || { echo "Scaffold failed"; exit 1; }
Check out the freshly generated repository and run its own build, exactly as the generated CI pipeline would — a template can render syntactically valid files that still don't compile, especially after a runtime-version bump:
git clone "https://github.com/acme-corp/template-ci-standard-${GITHUB_RUN_ID}.git"
cd "template-ci-standard-${GITHUB_RUN_ID}"
docker build -t "template-ci:${GITHUB_RUN_ID}" .
A failure here is the single most valuable signal this pipeline produces — it means the template renders something that doesn't even build, the sharpest form of "the golden path is broken."
Deploy the built artifact to an ephemeral environment, using whatever deploy mechanism the golden path itself wires in (this proves the generated deploy config works, not just the generated code):
score-compose generate score.yaml -o compose.yaml
docker compose -f compose.yaml up -d
# or, for a Humanitec-backed golden path:
humctl score deploy --app "template-ci-standard-${GITHUB_RUN_ID}" \
--env template-ci --file score.yaml
Run a real smoke test against the deployed instance, not just a "the deploy command exited 0" check — hit the health endpoint and assert a real response:
for i in $(seq 1 30); do
code=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8080/healthz)
[[ "$code" == "200" ]] && break
sleep 2
done
[[ "$code" == "200" ]] || { echo "Smoke test failed: /healthz returned $code"; exit 1; }
Tear down every resource this pipeline created, on both success and failure paths, so a template-validation run never leaves an orphaned repository, catalog entry, or ephemeral deploy behind:
docker compose -f compose.yaml down -v
gh repo delete "acme-corp/template-ci-standard-${GITHUB_RUN_ID}" --yes
Run teardown in a workflow if: always() step (GitHub Actions) or
equivalent after_script/finally block, not only on the happy path —
a failed smoke test that skips cleanup is exactly the run most likely
to need re-investigation later, and an accumulating pile of
template-ci-* repos/namespaces erodes trust in the pipeline itself.
Run the full pipeline for every tier the template ships, not just the one being changed — a change to a shared skeleton fragment (a common CI include, a shared Dockerfile base) can break a tier the PR author wasn't testing:
strategy:
matrix:
template: [golden-path-service-minimal, golden-path-service-standard, golden-path-service-advanced]
Canary a template version change before making it the default
surfaced to every team — publish the new version under a distinct
metadata.name/version tag, route a small subset of new-service
requests (or a designated pilot team) to it first, and only flip the
default once it has both passed this pipeline and produced at least
one real, developer-scaffolded service without incident:
metadata:
name: golden-path-service-standard
annotations:
idp.acme.com/template-version: "3.0.0-canary"
This mirrors a canary release of application code — the same discipline, applied to the thing that produces services rather than a single service.
Template manifest catches the first, this
skill's scaffold-build-deploy-smoke-test pipeline catches the second.template-ci-*) so cleanup, monitoring, and incident
triage can all distinguish real services from validation runs at a
glance.if: always()), not just a happy-path step
— a validation pipeline that leaks resources on failure creates exactly
the kind of untracked infrastructure a golden path is supposed to
prevent.ValidateService hooks
in deployment pipelines generally — a smoke test that only checks the
process started catches almost nothing.Symptom: A template change passes code review (the diff looks reasonable) and is merged, but the next three teams who scaffold from it all hit the same build failure. Fix: Code review of a template's diff doesn't prove the rendered output builds — add the scaffold-build-deploy-smoke-test pipeline (steps 1–5) as a required check on template PRs, not just human review of the templating logic.
Symptom: The validation pipeline is set up but only runs the
golden-path-service-standard tier, and a shared skeleton fragment
change silently breaks golden-path-service-advanced for months before
anyone scaffolds from it and notices.
Fix: Run the pipeline as a matrix across every published tier (step
7), not just the tier a given PR appears to touch — shared fragments
make cross-tier breakage easy to introduce without realizing it.
Symptom: A new template version is made the default for all new services the same day it's merged, and a subtle issue (a misconfigured default resource limit) affects a dozen newly scaffolded services before anyone notices the pattern. Fix: Canary the version (step 8) — route a small number of scaffolds or a single pilot team to the new version first, and only promote it to the default after both the automated pipeline and at least one real developer-scaffolded service confirm it end-to-end.
Symptom: The validation pipeline's ephemeral deploys and throwaway
repositories accumulate in the cloud account and catalog over months,
and nobody notices until a cost review flags dozens of unexplained
template-ci-* resources.
Fix: Make teardown (step 6) unconditional and add a scheduled
sweep job matching the pipeline's naming convention as a backstop for
any run where even the if: always() teardown itself failed (e.g. the
runner was killed mid-job).
Symptom: The smoke test only checks that the deploy command exited successfully, and a service that deploys but crash-loops immediately after is reported by the pipeline as "passed." Fix: Replace an exit-code-only check with an actual health-endpoint poll (step 5) with a real timeout and a real HTTP status assertion — "the deploy command succeeded" and "the service is actually serving traffic" are different facts, and only the second one matters to a developer relying on the golden path.
Scenario: The platform team is about to bump
golden-path-service-standard's default Go runtime from go1.21 to
go1.22 and wants to verify this doesn't break anything before it becomes
the default every new Go service gets.
runtime parameter's default and the skeleton's go.mod/Dockerfile
base image tag.validate-golden-path.yml, which scaffolds
template-ci-standard-48213 from the changed template ref, using
runtime: go1.22 explicitly (not relying on the default alone, to test
the exact value being changed).docker build on the generated repository succeeds — the Dockerfile's
base image update is compatible with the generated go.mod.score-compose generate and docker compose up deploy it locally in
the CI runner; the smoke test polls /healthz and gets 200 within
4 seconds.if: always().golden-path-service-minimal and
golden-path-service-advanced against the same runtime bump — both
pass, confirming the shared Go-runtime skeleton fragment they inherit
from wasn't broken by the change.[email protected], asks one pilot
team (fraud-detection) to explicitly opt into it for their next new
service, and monitors that scaffold for a week before flipping
golden-path-service-standard's published default to 3.1.0.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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."
/complete-idp-deployment-on-azure-from-scratchSequences a complete, from-scratch Internal Developer Platform deployment on Azure: landing zone → AKS cluster → Helm-deployed Backstage backed by Azure Database for PostgreSQL Flexible Server → golden-path scaffolding template → self-service API wired to Azure provisioning (Azure AD Workload Identity federated credentials, Flexible Server instances) → scorecards. This is the integration runbook that orders the individual Azure/AKS/Backstage skills correctly and flags the handoffs between them. Use when a user asks to "deploy an IDP on Azure from scratch," "stand up Backstage on AKS end-to-end," "build our internal developer platform on Azure," "wire self-service database/identity provisioning into Backstage on AKS," or "sequence an Azure platform rollout from subscription vending to golden-path templates."
/complete-idp-deployment-on-gcp-from-scratchSequences a complete, from-scratch Internal Developer Platform deployment on GCP: landing zone → GKE cluster → Helm-deployed Backstage backed by Cloud SQL for PostgreSQL → golden-path scaffolding template → self-service API wired to GCP provisioning (Workload Identity Federation bindings, Cloud SQL instances) → scorecards. This is the integration runbook that orders the individual GCP/GKE/Backstage skills correctly and flags the handoffs between them. Use when a user asks to "deploy an IDP on GCP from scratch," "stand up Backstage on GKE end-to-end," "build our internal developer platform on Google Cloud," "wire self-service database/identity provisioning into Backstage on GKE," or "sequence a GCP platform rollout from project vending to golden-path templates."
/complete-idp-deployment-on-k3s-from-scratchSequences a lightweight Internal Developer Platform deployment on K3s for edge, on-prem, and development contexts where a full Backstage footprint isn't justified: K3s install → a resource-right-sized IDP choice (slimmed single-replica Backstage vs. a hosted no-code catalog tool) → a thin golden-path template → minimal-governance self-service → lightweight scorecards, all explicitly scoped to small teams and constrained hardware rather than restating the full cloud/enterprise build. Use when a user asks to "set up a lightweight internal developer platform," "run Backstage or a service catalog on K3s," "build a dev-team-sized IDP without enterprise overhead," "stand up a platform for an edge or small on-prem deployment," or "decide whether a full Backstage is overkill for our team size."
/complete-idp-deployment-on-kubernetes-from-scratchSequences a complete, cloud-agnostic Internal Developer Platform deployment on any CNCF-conformant Kubernetes cluster: cluster conformance validation → cluster add-ons (ingress, TLS, in-cluster storage) → Helm-deployed Backstage backed by an in-cluster PostgreSQL instance → golden-path scaffolding template → self-service scaffolder actions calling generic Kubernetes/Crossplane APIs, deliberately not tied to one cloud's IAM or managed-database provisioning APIs → scorecards. Use when a user asks to "deploy an IDP on Kubernetes without tying it to one cloud," "build a portable/cloud-agnostic internal developer platform," "stand up Backstage on any conformant cluster," "design self-service provisioning that doesn't assume AWS/Azure/GCP," or "sequence a vendor-neutral platform rollout on Kubernetes."
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin idp-skillsOther plugins' skills for the same job