yamlscript

Converts Clojure code to idiomatic YAMLScript with style rules.

631|60|Updated Jul 3, 2022
One-click install
npx skills add https://github.com/yaml/yamlscript --skill yamlscript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yamlscript
Source: https://github.com/yaml/yamlscript/tree/main/ai/claude/ys-skill/skills/yamlscript
Command: npx skills add https://github.com/yaml/yamlscript --skill yamlscript

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users write, convert, and review YAMLScript code, ensuring idiomatic style and correctness by leveraging Clojure as a base and applying specific YAMLScript conversion rules.

Core Features & Use Cases

  • YAMLScript Code Generation: Write new YAMLScript code from scratch.
  • Clojure to YAMLScript Conversion: Convert existing Clojure code into idiomatic YAMLScript.
  • Code Review & Refinement: Improve and validate YAMLScript code against best practices.
  • Use Case: Convert a complex Clojure data transformation script into a more concise and readable YAMLScript equivalent for easier maintenance.

Quick Start

Use the yamlscript skill to convert the following Clojure code into idiomatic YAMLScript.

Frequently Asked Questions about yamlscript

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

FAQPage Schema
How do I convert Clojure code to YAMLScript?

To convert Clojure code to YAMLScript, apply specific style rules that transform standard Clojure syntax into idiomatic .ys files. This process ensures adherence to program tag conventions and YAMLScript-specific syntax for strings, function definitions, and control flow.

What is idiomatic YAMLScript code?

Idiomatic YAMLScript code refers to .ys files written with specific syntax rules for strings, function definitions, calls, control flow, and values. It prioritizes YS standard library preferences over Clojure defaults to ensure correct and maintainable code structure.

Can I review existing YAMLScript files for style adherence?

Yes, you can review existing YAMLScript files for style adherence. The review process validates your code against best practices, ensuring proper program tag conventions and correct syntax for function definitions, calls, and values.

Do I need Clojure installed to write YAMLScript?

You do not need Clojure installed to write YAMLScript from scratch. YAMLScript leverages Clojure as a base for conversion and code generation, allowing you to generate idiomatic .ys files directly without a local Clojure environment.

What's the best way to handle function definitions in YAMLScript?

The best way to handle function definitions in YAMLScript is to apply specific syntax rules that differentiate .ys files from standard Clojure. Following these style rules ensures your function definitions are idiomatic and correctly structured.