with one click
new-function
Add a new template function to jhelm (Helm or Sprig)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Add a new template function to jhelm (Helm or Sprig)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Check and fix Checkstyle violations in jhelm modules
jhelm project coding standards and conventions for Java 21 with Lombok and Maven
Implement a GitHub issue with branch and pull request workflow
Auto-format, fix violations, and run Maven validate (PMD + Checkstyle) in one step
jhelm project architecture and module structure for a Java Helm implementation
Code review automation for Java, TypeScript, JavaScript, Python, Go. Analyzes PRs for complexity and risk, checks code quality for SOLID violations and code smells, generates review reports. Use when reviewing pull requests, analyzing code quality, identifying issues, generating review checklists.
| name | new-function |
| description | Add a new template function to jhelm (Helm or Sprig) |
| disable-model-invocation | true |
| argument-hint | ["function-name"] |
Guided workflow for adding a new template function named $ARGUMENTS.
Helm functions (in jhelm-gotemplate/src/main/java/.../helm/):
conversion/ConversionFunctions.java — YAML/JSON conversion (toYaml, fromJson, etc.)template/TemplateFunctions.java — Template inclusion (include, tpl, required)kubernetes/KubernetesFunctions.java — Kubernetes integration (lookup)chart/ChartFunctions.java — Chart utilities (semverCompare, certificate generation)Sprig functions (in jhelm-gotemplate/src/main/java/.../sprig/):
strings/StringFunctions.java — String manipulationcollections/CollectionFunctions.java — List/dict operationslogic/LogicFunctions.java — default, empty, coalesce, ternarymath/MathFunctions.java — Arithmetic operationsencoding/EncodingFunctions.java — Base64, SHA, etc.crypto/CryptoFunctions.java — UUID, random, encryptiondate/DateFunctions.java — Date formatting/manipulationreflection/ReflectionFunctions.java — Type checkingnetwork/NetworkFunctions.java — DNS lookupsemver/SemverFunctions.java — Semantic versioning@Slf4j for logging if neededmust* version that throws on errorThe function auto-registers via the coordinator:
HelmFunctions.java → getFunctionCategories()SprigFunctionsRegistry.java → getFunctionCategories()If adding a new category, update getFunctionCategories() in the appropriate coordinator.
Add tests in the corresponding test class (e.g., Helm4FunctionsTest.java, or the test class for the Sprig category).
Run the relevant module tests:
./mvnw test -pl jhelm-gotemplate