Skip to content
write-rfc logo

Write RFC Skill

write-rfc

Write RFCs for the ToolHive ecosystem. Use when the user wants to create a new RFC, proposal, or design document for toolhive, toolhive-studio, toolhive-registry, toolhive-registry-server, toolhive-cloud-ui, or dockyard projects.

SKILL.md

Full skill instructions

Write RFC Skill

This skill helps you write high-quality RFCs for the ToolHive ecosystem following established patterns and conventions.

Overview

ToolHive RFCs follow a specific format with the naming convention THV-{NUMBER}-{descriptive-name}.md. The NUMBER must match the PR number and be zero-padded to 4 digits.

Workflow

Step 1: Gather Requirements

Before writing an RFC, ask the user about:

  1. Problem Statement: What problem are they trying to solve?
  2. Target Repository: Which repo does this affect?
    • toolhive - Core runtime, CLI (thv), operator (thv-operator), proxy-runner (thv-proxyrunner), virtual MCP (vmcp)
    • toolhive-studio - Desktop UI application (Electron/​TypeScript)
    • toolhive-registry - MCP server registry data
    • toolhive-registry-server - Registry API server (thv-registry-api)
    • toolhive-cloud-ui - Cloud/​Enterprise web UI (Next.js)
    • dockyard - Container packaging for MCP servers
    • multiple - Cross-cutting changes
  3. Scope: What are the goals and explicit non-goals?

Step 2: Research the Ecosystem

Before drafting, research the relevant codebase:

2.1 Fetch Architectural Documentation

Use mcp__github__get_file_contents to read from stacklok/​toolhive repo's docs/​arch/ directory:

DocumentContent
00-overview.mdPlatform overview, key components
01-deployment-modes.mdLocal vs Kubernetes modes
02-core-concepts.mdNouns (Workloads, Transports, Proxy, etc.) and Verbs
03-transport-architecture.mdstdio, SSE, streamable-http transports
04-secrets-management.mdSecrets handling, providers
05-runconfig-and-permissions.mdConfiguration format, permission profiles
06-registry-system.mdRegistry architecture, MCPRegistry CRD
07-groups.mdServer grouping concepts
08-workloads-lifecycle.mdLifecycle management
09-operator-architecture.mdK8s operator, CRDs
10-virtual-mcp-architecture.mdVirtual MCP aggregation
2.2 Review Existing RFCs

Read rfcs/ directory in this repository to understand patterns and check for related proposals.

2.3 Search Relevant Codebases

Use mcp__github__search_code or mcp__github__get_file_contents to explore:

RepositoryPurpose
stacklok/​toolhiveCore platform, CLI, operator, proxy
stacklok/​toolhive-studioDesktop UI
stacklok/​toolhive-registry-serverRegistry API server
stacklok/​toolhive-registryRegistry data
stacklok/​toolhive-cloud-uiCloud/​Enterprise UI
stacklok/​dockyardContainer packaging

Step 3: Draft the RFC

Create the RFC following the template structure from rfcs/​0000-template.md.

Required Metadata
# RFC-XXXX: Title

- **Status**: Draft
- **Author(s)**: Name (@github-handle)
- **Created**: YYYY-MM-DD
- **Last Updated**: YYYY-MM-DD
- **Target Repository**: [from step 1]
- **Related Issues**: [links if applicable]
Core Sections
  1. Summary - 2-3 sentences capturing the essence
  2. Problem Statement - Current limitation, who's affected, why it matters
  3. Goals - Specific objectives (bulleted)
  4. Non-Goals - Explicit scope boundaries
  5. Proposed Solution
    • High-Level Design (with Mermaid diagrams)
    • Detailed Design: Component changes, API changes, configuration changes, data model changes
  6. Security Considerations (REQUIRED) - See security checklist below
  7. Alternatives Considered - Other approaches evaluated
  8. Compatibility - Backward and forward compatibility
  9. Implementation Plan - Phased approach with tasks
  10. Testing Strategy - Unit, integration, E2E, performance, security tests
  11. Documentation - What needs documenting
  12. Open Questions - Unresolved items
  13. References - Related links
Security Considerations Checklist (REQUIRED)

Every RFC MUST address:

  • Threat Model - Potential threats, attacker capabilities
  • Authentication and Authorization - Auth changes, permission models
  • Data Security - Sensitive data handling, encryption
  • Input Validation - User input, injection vectors
  • Secrets Management - Credentials storage, rotation
  • Audit and Logging - Security events, compliance
  • Mitigations - Security controls implemented

Step 4: Use Proper Conventions

Code Examples
  • Use Go for API changes in toolhive, toolhive-registry-server
  • Use TypeScript for toolhive-studio, toolhive-cloud-ui changes
  • Use YAML for configuration examples
  • Use Mermaid for diagrams (flowcharts, sequence diagrams)
Kubernetes CRDs

If the RFC involves Kubernetes, include CRD examples:

apiVersion: toolhive.stacklok.dev/​v1alpha1
kind: MCPServer
metadata:
  name: example
spec:
  # ...

CRD types: MCPServer, MCPRegistry, MCPToolConfig, MCPExternalAuthConfig, MCPGroup, VirtualMCPServer

Step 5: File Naming

The RFC file should be named THV-XXXX-{descriptive-name}.md where XXXX is the PR number. Since you don't know the PR number yet, use a placeholder like THV-XXXX-{name}.md and remind the user to rename it to match the PR number after creating the PR.

Step 6: Review Checklist

Before finalizing, verify:

  • Problem is clearly stated
  • Goals and non-goals are explicit
  • Security section is complete (all 7 areas addressed)
  • Alternatives are discussed
  • Diagrams illustrate complex flows
  • Code examples are concrete and in the correct language
  • Implementation phases are defined
  • Testing strategy covers all levels
  • File follows naming convention

ToolHive Architecture Summary

Platform Overview

ToolHive is a platform for MCP server management (not just a container runner):

  • Proxy layer with middleware (auth, authz, audit, rate limiting)
  • Security by default (network isolation, permission profiles)
  • Aggregation via Virtual MCP Server
  • Registry for curated MCP servers
  • Multi-deployment: Local (CLI/​UI) and Kubernetes (operator)

Key Binaries

BinaryLocationPurpose
thvtoolhiveMain CLI
thv-operatortoolhiveKubernetes operator
thv-proxyrunnertoolhiveK8s proxy container
vmcptoolhiveVirtual MCP server (aggregation)
thv-registry-apitoolhive-registry-serverRegistry API server

Transport Types

  • stdio - Standard input/​output (requires protocol translation)
  • SSE - Server-Sent Events (HTTP, transparent proxy)
  • streamable-http - HTTP streaming (transparent proxy)

Design Principles

  1. Platform abstraction over direct execution
  2. Security by default (network isolation, permissions)
  3. Extensibility through middleware
  4. Cloud-native (K8s operators, containers)
  5. RunConfig as portable API contract

Reference Files

  • Template: rfcs/​0000-template.md
  • Contributing guide: CONTRIBUTING.md
  • Existing RFCs: rfcs/​THV-*.md

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
I
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View