AAnvio
Reference ArchiveSource Docs

Blueprint Catalog

Reusable workflow templates — installable, composable, and shareable without modifying runtime code.

4 min read

This is a migrated reference document from the original Anvio source repo. Content is preserved as-is; canonical documentation lives in the sections above in the sidebar.

Original path: docs/34-blueprint-catalog.md

Reusable workflow templates — installable, composable, and shareable without modifying runtime code.

Principles

  • Blueprints are YAML-defined workflow templates
  • Stored in workspace/blueprints/ (user) and shipped in configs/blueprints/ (bundled)
  • Invoked by automations, batch jobs, CLI, and kanban task actions
  • Composable: blueprints can call other blueprints

Bundled Catalog

BlueprintDescriptionTrigger Example
daily-summarySummarize notifications and activityCron 08:00 daily
weekly-reviewReview project progress and goalsCron Monday 09:00
github-triageTriage open issues and PRsEvent: schedule
repository-analysisAnalyze repo structure and healthBatch input
documentation-generatorGenerate/update docs from codebaseManual / goal
release-preparationChecklist for release readinessGoal completed
security-auditRun security checks on codebaseCron weekly
research-reportDeep research on a topicManual

File Layout

configs/blueprints/              # Bundled (read-only)
  daily-summary.yaml
  weekly-review.yaml
  ...

workspace/blueprints/            # User-installed
  my-custom-review.yaml
  _installed/                    # Install manifest
    github-triage.yaml

Blueprint Schema

apiVersion: anvio.io/v1
kind: Blueprint
metadata:
  slug: daily-summary
  version: "1.0.0"
  catalog: bundled              # bundled | community | team | private
spec:
  description: Summarize notifications and recent activity
  inputs:
    userId:
      type: string
      required: true
      default: local-user
    channel:
      type: string
      default: cli
  steps:
    - id: gather
      type: agent
      agent: assistant
      input: |
        Summarize all notifications and activity for user {{userId}}
        from the last 24 hours. Be concise.

    - id: format
      type: transform
      input: "{{steps.gather.output}}"
      template: |
        # Daily Summary — {{date}}
        {{steps.gather.output}}

    - id: deliver
      type: channel
      channel: "{{channel}}"
      message: "{{steps.format.output}}"

  outputs:
    summary:
      from: steps.format.output

Step Types

TypeDescription
agentRun an agent with templated input
blueprintInvoke nested blueprint
parallelRun steps concurrently
conditionalBranch on expression
transformTemplate/format data
channelSend via channel hub
hookExecute hook handler
batchFan-out over input list
mcpCall MCP tool

Example: Repository Analysis

apiVersion: anvio.io/v1
kind: Blueprint
metadata:
  slug: repository-analysis
spec:
  inputs:
    repository:
      type: string
      required: true
  steps:
    - id: clone
      type: mcp
      server: github
      tool: clone_repository
      args:
        repo: "{{repository}}"

    - id: analyze
      type: agent
      agent: architect
      input: |
        Analyze repository {{repository}} for:
        - Architecture quality
        - Test coverage gaps
        - Security concerns
        - Documentation completeness

    - id: report
      type: transform
      template: |
        # Repository Analysis: {{repository}}
        {{steps.analyze.output}}
      output: file
      path: "reports/{{repository | slugify}}.md"

Architecture

Rendering diagram…

Installation

# List available blueprints
anvio blueprint catalog

# Install from bundled catalog
anvio blueprint install daily-summary

# Install from URL (future: marketplace)
anvio blueprint install https://example.com/blueprints/custom-review.yaml

# Run directly
anvio blueprint run daily-summary --input userId=local-user

Install Manifest

# workspace/blueprints/_installed/manifest.yaml
apiVersion: anvio.io/v1
kind: BlueprintInstallManifest
spec:
  installed:
    - slug: daily-summary
      source: bundled
      version: "1.0.0"
      installedAt: "2026-06-19"
    - slug: github-triage
      source: bundled
      version: "1.0.0"

Sequence: Automation Invokes Blueprint

Rendering diagram…

Extension Guide

Status (2026-10-25): items below that mention a plugin or plugin manifest describe design intent. Anvio has no plugin system (ROADMAP T-058); extending this subsystem today means changing the package code.

  1. Create blueprint YAML in workspace/blueprints/
  2. Add custom step types via plugin (type: my-step)
  3. Publish to team catalog via git submodule or private registry (future)

Operational Runbook

ScenarioAction
Update bundled blueprintanvio blueprint upgrade daily-summary
Debug step failureanvio blueprint run daily-summary --step gather --verbose
Validate blueprintanvio blueprint validate my-blueprint.yaml

Package Boundaries

  • Schema: packages/core/src/schemas/blueprint.schema.ts
  • Executor: packages/blueprints/src/blueprint-executor.ts
  • Catalog: packages/blueprints/src/catalog-registry.ts
  • Templates: packages/blueprints/src/template-engine.ts
Edit on GitHub

Last updated on

On this page