Skip to content
Skill

cue

by majiayu000

AI Summary

Provides structured guidance for working with CUE schema files and parsing flows in invkfile, invkmod, and config schemas. Developers maintaining or extending CUE-based configuration validation will benefit from this reference.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "cue" skill in my project.

Please run this command in my terminal:
# Install skill into your project (2 files)
mkdir -p .claude/skills/cue && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/cue/SKILL.md "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/other/cue/SKILL.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/cue/metadata.json "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/other/cue/metadata.json"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

CUE schema patterns for *.cue files, 3-step parsing flow, validation matrix, error formatting. Use when editing invkfile_schema.cue, invkmod_schema.cue, config_schema.cue, or working with cueutil parsing.

Decode Usage Rules

ALWAYS use value.Decode(&goStruct) for type-safe extraction.

Error Formatting Requirements

All CUE errors MUST include JSON path prefixes for clear error messages:

CUE Schema Patterns

Use this skill when: • Working with CUE schema files (*.cue) • Modifying parse functions in pkg/invkfile/, pkg/invkmod/, or internal/config/ • Adding new CUE definitions or corresponding Go struct fields • Debugging CUE validation errors ---

Schema Locations

• pkg/invkfile/invkfile_schema.cue defines invkfile structure. • pkg/invkmod/invkmod_schema.cue defines invkmod structure. • internal/config/config_schema.cue defines config.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
Adoption100+ stars on GitHub
119 ★ · Growing
DocsREADME + description
Well-documented

GitHub Signals

Stars119
Forks20
Issues1
Updated1mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code