Skip to content

arm/topo-template-format

Topo Template Format Specification

A Topo Template is a containerized sample project for Arm-based Linux systems. At minimum, it is a directory containing a compose.yaml, Dockerfiles, and source code, with an x-topo metadata block that describes what the Template does, what hardware features it requires, and what parameters a user can configure.

This specification defines the x-topo extension. It was developed for use with Topo, but this is an open spec and any tool can read and act on x-topo metadata to discover, validate, and deploy Templates.

Not sure what these terms mean? Topo's glossary defines many of its core concepts.

How It Works

A Template's compose.yaml is a standard Compose file with an x-topo block at the root:

services:
  app:
    platform: linux/arm64
    build:
      context: .
      args:
        GREETING: "Hello, World"

x-topo:
  name: "hello-world"
  description: "A simple greeting app for Arm"
  features: ["NEON"]
  args:
    GREETING:
      description: "Message shown by the app"
      required: true
      example: "Hello from Arm"

Because this is valid Compose, any Template can be run with plain docker compose. The x-topo block is what allows tools like Topo to add interactive configuration, argument validation, and target feature matching on top.

Specification

Discover Topo Templates

A curated list of example Templates can be found either via:

We welcome any contributors who wish to add their own Template to the list to submit a Pull Request as indicated below.

Authoring Skills

This repository includes public agent skills that help authors create and validate Topo Templates.

  • topo-template-context: provides Topo and Topo Template reference context for questions about x-topo metadata, schema, docs, and CLI Template behavior.
  • topo-template-bootstrap: converts a repository into a Topo Template by adding or improving compose.yaml and x-topo metadata.
  • topo-template-lint: reviews an existing Topo Template for correctness, consistency, and authoring best practices.
  • topo-template-optimize-deployment: optimizes topo deploy or Docker build performance for initial deployment and iteration workflows.

Installing Skills

You can install the skills with npx skills:

npx skills add arm/topo-template-format

Or install the skills manually by copying or symlinking the directories under skills/ into your agent's skills directory.

Restart your agent after installing or updating skills.

Propose Your Template to Topo

If you want your Template to be added to the Template list:

  1. Review the Authoring Templates section of the Specification.
  2. Validate Schema Compliance of your proposed Template.
  3. Open a Pull Request in the Topo repository to update the Topo Template catalog.

Validate Schema Compliance

The machine-readable schema to check any Template against is provided as a JSON schema and is therefore compatible with any supported tooling.

For validation workflows, see:

Versioning

This format follows Compose-style evolution and does not require strict schema-version pinning by implementations.

Implementations should follow Compose guidance for optional attributes.

Metadata
Status Work in progress
Created 2025-11-10

About

Compose-spec-based format for defining Topo-compatible software

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors