Code Generation

Regenerate JSON schemas and OpenAPI specifications for dataset manifests and the Admin API.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/edgeandnode/amp --skill code-generation-edgeandnode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Code Generation
Source: https://github.com/edgeandnode/amp/tree/main/.claude/skills/code-gen
Command: npx skills add https://github.com/edgeandnode/amp --skill code-generation-edgeandnode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the error-prone and time-consuming task of manually updating JSON schemas and OpenAPI specifications. It ensures that your documentation and validation artifacts are always in sync with your codebase, reducing inconsistencies and development overhead.

Core Features & Use Cases

  • JSON Schema Generation: Automatically generate JSON schemas for various dataset manifests (common, derived, EVM RPC, Firehose).
  • OpenAPI Specification Generation: Create up-to-date OpenAPI specifications for the Admin API.
  • Batch Generation: Regenerate all schemas and API specs with a single command (just gen).
  • Use Case: When you add a new field to an EVM RPC dataset manifest, use just gen-evm-rpc-dataset-manifest-schema to instantly update the corresponding JSON schema, ensuring all consumers have the correct, validated structure.

Quick Start

Generate all JSON schemas and OpenAPI specifications for the project.

Frequently Asked Questions about Code Generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate JSON schemas when my dataset manifest structure changes?

JSON schema generation automatically creates validated schemas for dataset manifests (common, derived, EVM RPC, Firehose) whenever you update their structure. Run `just gen-evm-rpc-dataset-manifest-schema` or `just gen` to regenerate schemas, keeping documentation and validation artifacts in sync with your codebase.

Can I generate OpenAPI specifications for my API alongside JSON schemas?

Yes. This Skill regenerates both JSON schemas and OpenAPI specifications together. Use `just gen` to batch-generate all schemas and the Admin API OpenAPI spec, or `just gen-admin-api-openapi-spec` to update API documentation independently.

What happens when I add a new field to an EVM RPC dataset manifest?

When you add a field to an EVM RPC manifest, run `just gen-evm-rpc-dataset-manifest-schema` to instantly regenerate the corresponding JSON schema. This ensures all API consumers receive the correct, validated structure without manual updates.

How does this eliminate manual schema and specification updates?

Schema generation automation derives JSON schemas and OpenAPI specs directly from your codebase using RUSTFLAGS, outputting artifacts to docs/manifest-schemas/ and docs/openapi-specs/. This removes error-prone manual edits and keeps documentation synchronized with code changes.

Does this support OpenAPI schema generation with Rust projects?

Yes. The Skill uses Rust tooling with RUSTFLAGS to generate OpenAPI specifications for the Admin API and JSON schemas for multiple dataset types, making it suitable for Rust-based API documentation workflows.

What schemas and API types are covered by batch generation?

Batch generation covers common, derived, EVM RPC, and Firehose JSON schemas plus the Admin API OpenAPI spec. Run `just gen` once to regenerate all artifacts; protobuf bindings generation is currently disabled.