Skip to content
generate-schema logo

Generate Schema

generate-schema

Generate the conclaude-schema.json configuration schema file using src/bin/generate-schema.rs. USE WHEN the configuration format changes, new config fields are added, or the schema needs to be updated for release or testing.

SKILL.md

Full skill instructions

Generate Schema

This skill helps you generate the conclaude-schema.json file that defines the configuration schema for conclaude. The schema is used for validation and is published as a release asset.

USE WHEN

Use this skill when:

  • Adding new configuration fields to conclaude
  • Modifying existing configuration structure
  • Changing hook definitions or their schema
  • Updating configuration validation rules
  • Preparing for a new release that includes config changes
  • The schema file is out of sync with the code
  • Implementing new features that add configuration options

Do NOT use this skill when:

  • Just reading or viewing the current schema
  • Working on features that don't affect configuration
  • Making non-configuration code changes

How It Works

The schema generator (src/​bin/​generate-schema.rs) uses the conclaude library's built-in schema generation capabilities to:

  1. Introspect the Rust configuration structs
  2. Generate a JSON Schema representation
  3. Write it to conclaude-schema.json at the workspace root

The generated schema file is then published as a release asset for users to reference.

Instructions

Step 1: Make Your Configuration Changes

First, implement your configuration changes in the relevant Rust files (typically src/​config.rs or related modules).

Step 2: Generate the Schema

Run the schema generator:

cargo run --bin generate-schema

This will:

  • Generate the schema from the current configuration code
  • Write it to conclaude-schema.json in the workspace root
  • Display a success message

Step 3: Verify the Changes

Check the generated schema file:

cat conclaude-schema.json

Or use a JSON formatter:

jq . conclaude-schema.json

Look for:

  • Your new fields appear with correct types
  • Descriptions are accurate and helpful
  • Required fields are marked appropriately
  • Enum values are correct

Step 4: Commit the Schema

Include the updated schema in your commit:

git add conclaude-schema.json
git commit -m "Update schema for [your feature]"

Expected Output

When successful, you'll see:

[OK] Schema generated successfully: conclaude-schema.json
     The schema file is ready to be published as a release asset.

Common Issues

Build Errors

If the generator fails to build:

  • Ensure your Rust code compiles: cargo build
  • Check for syntax errors in configuration structs
  • Verify all dependencies are available

Schema Validation Errors

If the generated schema doesn't match expectations:

  • Check your derive macros on configuration structs
  • Ensure you're using the correct serde attributes
  • Review the schema generation code in src/​schema.rs

File Permission Errors

If it fails to write the file:

  • Ensure you have write permissions in the workspace root
  • Check that conclaude-schema.json isn't locked by another process

Related Files

  • src/​bin/​generate-schema.rs - The schema generator binary
  • src/​schema.rs - Schema generation implementation
  • src/​config.rs - Main configuration structures
  • conclaude-schema.json - The output schema file

Notes

  • The schema is automatically generated from code, so manual edits to conclaude-schema.json will be overwritten
  • Always regenerate the schema after configuration changes
  • The schema is version-controlled and should be kept in sync with the code
  • The schema file is published as a release asset for external tools and IDEs

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View