RedHat Code Generation
/install axodus-code-generation
SKILL: code-generation
Purpose
Generate production-ready code (TypeScript/JavaScript/Python) that matches the repo’s conventions, is testable, and is safe to run.
When to Use
- You have an explicit spec and acceptance criteria.
- A new module/component/function is needed.
- Small-to-medium scoped implementation work is requested.
Inputs
spec(required, string|object): functional requirements + acceptance criteria.language(required, enum:ts|js|py).targets(optional, string[]): files/modules to create or modify.constraints(optional, string[]): security/perf/compat requirements.test_expectations(optional, string): tests to add/run.
Steps
- Validate the spec:
- confirm inputs/outputs
- confirm error handling
- identify missing requirements (ask if material)
- Inspect existing code style and patterns in the target area.
- Generate minimal, modular code:
- small functions
- explicit types (TS) where useful
- clear error paths
- Add or update tests aligned to acceptance criteria.
- Update docs/config only if required by the change.
- Provide a deterministic validation command sequence (lint/test/build).
Validation
- Code is syntactically valid and follows project conventions.
- Tests cover the critical behavior and fail before the fix (when applicable).
- No secrets or credentials are introduced.
- Any external API usage is explicit and configurable (env/config), with timeouts and retries.
Output
files_changed: list of pathssummary: what changedvalidation_commands: ordered commands to runnotes: any assumptions or follow-ups
Safety Rules
- Never embed secrets, private keys, or tokens.
- Never introduce dynamic code execution (
eval, runtime compilation) unless explicitly required and sandboxed. - Avoid network calls in tests unless explicitly controlled/mocked.
- Prefer additive changes over risky rewrites.
Example
Input:
language:tsspec: “AddparseUserId(input)that rejects non-UUID values.â€
Output (excerpt):
files_changed:["src/utils/ids.ts", "src/utils/ids.test.ts"]validation_commands:["pnpm test", "pnpm lint"]
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install axodus-code-generation - After installation, invoke the skill by name or use
/axodus-code-generation - Provide required inputs per the skill's parameter spec and get structured output
What is RedHat Code Generation?
Generate production-ready code aligned to repo conventions and constraints. It is an AI Agent Skill for Claude Code / OpenClaw, with 66 downloads so far.
How do I install RedHat Code Generation?
Run "/install axodus-code-generation" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is RedHat Code Generation free?
Yes, RedHat Code Generation is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does RedHat Code Generation support?
RedHat Code Generation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created RedHat Code Generation?
It is built and maintained by Mauricio Z. (@mzfshark); the current version is v1.0.0.