imitate-wenyan-style

Generate Java 17+ code matching WenyanNature repository conventions.

10|1|Updated Sep 4, 2024
One-click install
npx skills add https://github.com/gyxx-xc/WenyanNature --skill imitate-wenyan-style
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imitate-wenyan-style
Source: https://github.com/gyxx-xc/WenyanNature/tree/main/.opencode/skills/user-wenyan-style
Command: npx skills add https://github.com/gyxx-xc/WenyanNature --skill imitate-wenyan-style

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

When you need to keep writing code that matches your WenyanNature/Wenyan compiler and Minecraft Mod coding conventions, it prevents style drift by guiding the AI to follow your established naming, structure, and error-handling patterns.

Core Features & Use Cases

  • Style-driven Java code continuation: Generate new Java code that follows your high-confidence habits (e.g., I-prefixed interfaces, Wenyan-prefixed classes, record, and switch expressions).
  • Evidence-based imitation: First uses your provided style report and representative snippets, then applies only high-confidence rules with conservative fallbacks when samples are insufficient.
  • Project-aligned correctness expectations: Encourages consistent testing patterns (JUnit 5 parameterized tests) and correct nullability annotations (@NotNull/@Nullable).

Quick Start

Use the imitate-wenyan-style skill and ask it to generate or complete the next Java class/function for a nearby file path, describing inputs/outputs and any required exceptions.

Frequently Asked Questions about imitate-wenyan-style

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

FAQPage Schema
How do I maintain consistent Java coding style when generating new compiler or Minecraft Mod features?

To maintain consistent Java coding style when generating new compiler or Minecraft Mod features, this skill imitates high-confidence conventions extracted from your repository's style profile and representative snippets, preventing style drift by matching existing naming, structure, and error-handling patterns.

What is the best way to generate Java code that follows my existing naming and structure patterns?

The best way to generate Java code following existing patterns is to use evidence-based imitation, applying high-confidence rules from your provided style report and representative snippets while applying conservative fallbacks when cross-language samples are insufficient.

How do I start generating a Java class that matches my Wenyan compiler conventions?

To start generating a Java class matching Wenyan compiler conventions, ask the skill to complete a function for a nearby file path, describing the required inputs, outputs, and any exceptions while letting it apply your established habits like I-prefixed interfaces and Wenyan-prefixed classes.

Does this code generation approach support Java 17 features like records and switch expressions?

Yes, this code generation approach supports Java 17 features like records and switch expressions, requiring their use when compatible with your WenyanNature style, and it encourages consistent JUnit 5 parameterized tests and correct nullability annotations.

What happens when there are insufficient code samples to determine a coding style rule?

When there are insufficient code samples to determine a coding style rule, the skill applies conservative fallbacks rather than guessing, following strict evidence priority rules to ensure generated Java code remains safe and aligned with your project.