/platform-extras-skills:backstage-developer-portalfrom platform-extras-skills
Guides building an internal developer portal with Backstage — authoring catalog-info.yaml, setting up TechDocs, writing Software Templates for scaffolding, and adding plugins.
Ships in platform-extras-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.
As an organization grows past a handful of services, "which team owns
this repo," "what's the on-call runbook for this API," and "what's the
standard way to spin up a new service" stop being answerable by asking
around and start requiring a system of record. Backstage (a CNCF
graduated project originated at Spotify) provides that system: a
software catalog where every service, API, and resource is described
by a catalog-info.yaml and rendered with ownership, links, and
relationships; TechDocs for versioned, docs-as-code documentation
rendered from Markdown living next to the code it describes; Software
Templates that scaffold new services from a golden-path template
instead of copy-pasting an existing repo; and a plugin architecture
that lets the portal surface CI status, cost, on-call, and security
posture from other tools in one place. The operational payoff is
concrete: faster onboarding (a new engineer can self-serve "how do I
create a new service" instead of asking a senior engineer), and clearer
ownership (an incident responder can find the owning team and runbook
for any service without a tribal-knowledge lookup) — but only if the
catalog stays accurate, which means catalog registration must be
enforced as part of the service creation path, not left as an optional
afterthought.
lifecycle, or missing links.Component vs. an API
vs. a Resource, or how to model relationships (dependsOn,
providesApis) between them.@backstage/create-app scaffold and typically run in Kubernetes/on a
container platform) — Backstage is a framework you deploy and extend,
not a SaaS product; budget for ongoing app maintenance (Node.js/
TypeScript upgrades, plugin version compatibility) as part of adopting
it.catalog-info.yaml files across repos and TechDocs can pull
Markdown from them.catalog.locations static list of repos, or (preferred at scale) a
Location/discovery processor that scans an org for
catalog-info.yaml files automatically so registration isn't a
manual per-repo portal-admin task.Group entities) before rolling out mandatory catalog registration —
registering a service with no valid owner reference is a common
early failure mode.Author a catalog-info.yaml for an existing service and commit
it to the service's repo root:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: payments-api
description: Handles payment authorization and settlement
annotations:
github.com/project-slug: acme-corp/payments-api
backstage.io/techdocs-ref: dir:.
tags:
- payments
- java
links:
- url: https://runbooks.internal/payments-api
title: On-call runbook
spec:
type: service
lifecycle: production
owner: group:payments-team
system: payments
providesApis:
- payments-api-rest
dependsOn:
- resource:payments-db
Register the corresponding API entity if the service exposes
one, so consumers can discover it and its contract:
apiVersion: backstage.io/v1alpha1
kind: API
metadata:
name: payments-api-rest
description: REST API for payment authorization
spec:
type: openapi
lifecycle: production
owner: group:payments-team
definition:
$text: ./openapi.yaml
Model ownership as Group entities, not free-text owner names,
so relationships (which humans are on which team) are queryable:
apiVersion: backstage.io/v1alpha1
kind: Group
metadata:
name: payments-team
spec:
type: team
children: []
members:
- jane.doe
- alex.smith
Wire up catalog discovery so new catalog-info.yaml files are
picked up without manual portal-admin steps, in app-config.yaml:
catalog:
providers:
github:
acmeCorpOrg:
organization: 'acme-corp'
catalogPath: '/catalog-info.yaml'
schedule:
frequency: { minutes: 30 }
timeout: { minutes: 3 }
Enable TechDocs for a service by adding an mkdocs.yml and a
docs/ folder to the repo alongside catalog-info.yaml
(backstage.io/techdocs-ref: dir:. already points at it):
# mkdocs.yml
site_name: 'Payments API'
nav:
- Home: index.md
- Architecture: architecture.md
- Runbook: runbook.md
plugins:
- techdocs-core
Configure the TechDocs backend to publish generated sites to cloud storage in production rather than local disk:
techdocs:
builder: 'external' # generate in CI, not on-demand in the portal
publisher:
type: 'awsS3'
awsS3:
bucketName: '<TECHDOCS_BUCKET>'
Generating docs in CI (techdocs-cli generate) rather than
on-demand in the running Backstage instance keeps the portal
responsive and avoids running arbitrary repo-provided build steps
inside the portal's own runtime.
Write a Software Template so new services are scaffolded consistently instead of copy-pasted:
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
name: golden-path-service
title: New Backend Service (Golden Path)
description: Scaffolds a new service with standard CI, Dockerfile, and catalog registration
spec:
owner: group:platform-team
type: service
parameters:
- title: Service details
required: [name, owner]
properties:
name:
title: Service name
type: string
owner:
title: Owning team
type: string
steps:
- id: fetch
name: Fetch golden-path skeleton
action: fetch:template
input:
url: ./skeleton
values:
name: '${{ parameters.name }}'
owner: '${{ parameters.owner }}'
- id: publish
name: Create repository
action: publish:github
input:
repoUrl: 'github.com?owner=acme-corp&repo=${{ parameters.name }}'
- id: register
name: Register in catalog
action: catalog:register
input:
repoContentsUrl: '${{ steps.publish.output.repoContentsUrl }}'
catalogInfoPath: '/catalog-info.yaml'
output:
links:
- title: Repository
url: '${{ steps.publish.output.remoteUrl }}'
The skeleton/ directory (referenced by fetch:template) contains
the actual golden-path files (Dockerfile, CI pipeline config,
pre-filled catalog-info.yaml) with Nunjucks-style ${{ values.* }}
placeholders — this is what makes every scaffolded service arrive
already registered in the catalog, not registered as an afterthought.
Add a plugin to surface external signal in the portal, e.g. the
Kubernetes plugin (shows live pod/deployment status for a
Component) or a cost-insights plugin fed by the same allocation
data used for Kubernetes showback:
# catalog-info.yaml annotation wiring a Component to its cluster resources
metadata:
annotations:
backstage.io/kubernetes-id: payments-api
Enforce catalog registration in the golden path, not as an
optional step: require catalog-info.yaml presence as a CI check
(or a required file in the Software Template output) so new
services can't ship without being discoverable in the portal.
Group entities with real membership, not a
free-text owner: "payments-team" string with no corresponding
Group — orphaned owner references silently break catalog
relationship views (who's on this team, what does this team own).catalog-info.yaml, or built into the Software
Template output) rather than a best-effort ask — a catalog that's
only 60% populated is worse than no catalog, since engineers stop
trusting it as the source of truth.system and dependsOn/providesApis relationships, not
just flat Component entities, so the catalog can answer "what
breaks if this API goes down" rather than only "what exists."Symptom: A service shows up in the catalog with owner: unknown or a broken owner reference, and nobody can tell who's
responsible for it during an incident.
Fix: The catalog-info.yaml's spec.owner references a group
that was never registered as a Group entity, or uses a free-text
name instead of group:<name>/user:<name> entity-reference syntax.
Register the Group entity first, then reference it correctly.
Symptom: TechDocs pages show stale content, or fail to render
entirely with a build error visible only in the portal's server
logs.
Fix: Docs were being generated on-demand inside the Backstage
instance (techdocs.builder: 'local') and a repo's mkdocs.yml/
Markdown had a build error, or the generated site was never
published anywhere durable. Switch to builder: 'external',
generate in CI with techdocs-cli generate, and publish to cloud
storage so builds are visible in CI logs and independent of the
portal's own uptime.
Symptom: Catalog discovery is enabled, but a newly created repo's
catalog-info.yaml never appears in the portal.
Fix: The discovery processor's schedule hasn't run yet (default
intervals can be 30+ minutes), or the file isn't at the expected
catalogPath, or the GitHub App/integration lacks read access to the
new repo (e.g. it's in an org the integration wasn't granted access
to). Check the discovery processor's schedule and confirm the
integration's access scope includes the repo.
Symptom: A Software Template successfully creates a new
repository, but the service never appears in the catalog.
Fix: The template's steps ended at publish:github without a
catalog:register step, so the new catalog-info.yaml exists in
the repo but was never registered with the running catalog. Add the
catalog:register action (step 6) as the template's final step so
scaffolding and registration always happen together.
Symptom: Engineers stop trusting the catalog and start asking
around again instead of checking Backstage.
Fix: Catalog registration was optional and coverage drifted well
below 100% of active services, so the catalog frequently doesn't
have the answer. Make registration mandatory in the golden path
(a CI gate requiring catalog-info.yaml) and run a periodic audit
for services missing from the catalog (cross-reference the source-
control org's repo list against registered Components).
Scenario: A platform team is rolling out Backstage for a 40-team engineering org. Today, "who owns this service" and "how do I spin up a new one" are answered by asking in Slack, and there's no central documentation index.
@backstage/create-app, configure the GitHub
integration, and enable the GitHub discovery provider (step 4)
scanning the acme-corp org every 30 minutes for
catalog-info.yaml files.Group entities first (step
3), since every subsequent Component's owner field depends on
these existing.catalog-info.yaml for the 15 most critical existing
services manually (step 1-2), prioritized by the incident-response
team's list of "services we get paged for" — this seeds the catalog
with the highest-value entries before chasing full coverage.golden-path-service Software Template (step 6) wrapping
the platform team's existing standard CI pipeline and Dockerfile,
with catalog:register as the final step so every newly scaffolded
service is catalog-registered by construction.catalog-info.yaml
at the root for any repo tagged production (step 8), giving teams
a 60-day grace period to backfill before the check becomes blocking.Component's catalog page shows live pod status, closing the loop
between "who owns this" and "is it healthy right now" in one place.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin platform-extras-skills16 skills in this plugin
/distributed-tracing-with-tempo-and-jaegerGuides configuring Grafana Tempo or Jaeger as the distributed tracing backend — trace storage backend selection and retention, sampling strategy at the backend/collector level (head-based vs. tail-based), and trace-to-metrics/trace-to-logs correlation so a trace ID can pivot directly into a log line or a metrics exemplar. Use when the user asks to "set up Tempo," "configure Jaeger storage," "set trace retention," "configure trace-to-logs correlation in Grafana," "design a sampling strategy for traces," or "query traces with TraceQL." This is the tracing *backend/storage* layer — instrumenting applications and configuring the OpenTelemetry Collector that feeds this backend is covered separately in opentelemetry-instrumentation-and-collector-configuration.
/fluent-bit-configuration-validationValidates Fluent Bit pipeline configuration syntax and tests the INPUT/FILTER/OUTPUT pipeline against sample log lines before a production rollout — dry-run checks, parser testing, and route/Match verification. Use when a user asks to "validate this Fluent Bit config before deploying," "test my Fluent Bit parser against sample logs," "will this Fluent Bit change break log routing," "check this Fluent Bit config in CI," or reports logs silently missing/misrouted after a Fluent Bit config change.
/fluent-bit-log-forwarding-configurationConfigures Fluent Bit as a lightweight log forwarder — INPUT sources (`tail`, `systemd`, Kubernetes container logs), FILTER stages (`kubernetes` metadata enrichment, `parser`, `grep`, `modify`, `nest`/`lift`), and OUTPUT routing to Loki, Elasticsearch/OpenSearch, or S3, including multiple outputs via tags/`Match` and backpressure/ buffering settings. Use when the user asks to "set up Fluent Bit," "forward Kubernetes pod logs to Loki/Elasticsearch/S3," "write a Fluent Bit parser for my log format," "route different logs to different outputs," or "Fluent Bit is dropping logs / backing up."
/incident-investigation-using-metrics-logs-tracesGuides correlating Prometheus metrics, log queries, and distributed traces together during a live incident investigation — using each signal's strengths to narrow from "something is wrong" to a specific root cause faster than any single signal alone. Use when a user asks to "investigate this incident using our metrics and logs," "find the root cause across dashboards, logs, and traces," "correlate this latency spike with logs and a trace," "pivot from an alert to the actual failing request," or is actively triaging a live production issue and needs a systematic cross-signal approach rather than guessing which dashboard to check next.
/karpenter-cluster-autoscalingGuides configuring Karpenter for Kubernetes node autoscaling — NodePool and EC2NodeClass (or equivalent) provisioning, consolidation and bin-packing behavior, Spot/On-Demand mixing, and how Karpenter compares to and can replace the Kubernetes Cluster Autoscaler. Use when a user asks to "set up Karpenter", "write a NodePool spec", "reduce node cost via consolidation/bin-packing", "mix Spot and On-Demand nodes", "choose between Karpenter and Cluster Autoscaler", or "debug why pods are stuck Pending / a node won't scale down."
/kubecost-cost-visibilityGuides deploying Kubecost inside Kubernetes clusters to allocate cloud spend down to namespace, workload, and label, build showback/chargeback reports for platform stakeholders, and feed cost signals into cluster autoscaling and rightsizing decisions. Use when a user asks to "show cost per namespace/team/label in Kubernetes", "set up Kubecost", "build a Kubernetes showback or chargeback report", "find which workload is driving the cloud bill", "size resource requests based on cost", or "connect Kubernetes cost data to autoscaler decisions."
Other plugins' skills for the same job