codraft-renderer — community codraft-renderer, codraft, community, ide skills

v1.0.0

Sobre este Skill

Perfeito para Agentes de Automação de Documentos que necessitam de renderização de modelo avançada e capacidades de geração de documentos em formatos como docx, html ou markdown. Document renderer for Codraft. Takes a template, variable values, and produces rendered documents (docx or html+pdf). Validates output for unfilled placeholders. Called by the codraft orchestrator — not triggered directly by the user.

houfu houfu
[2]
[0]
Updated: 3/10/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 9/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
9/11
Quality Score
54
Canonical Locale
en
Detected Body Locale
en

Perfeito para Agentes de Automação de Documentos que necessitam de renderização de modelo avançada e capacidades de geração de documentos em formatos como docx, html ou markdown. Document renderer for Codraft. Takes a template, variable values, and produces rendered documents (docx or html+pdf). Validates output for unfilled placeholders. Called by the codraft orchestrator — not triggered directly by the user.

Por que usar essa habilidade

Habilita os agentes a gerar documentos concluídos a partir de modelos e valores de variáveis, aproveitando dicionários de variáveis e suportando formatos como docx, html e markdown, automatizando assim os processos de geração e validação de documentos.

Melhor para

Perfeito para Agentes de Automação de Documentos que necessitam de renderização de modelo avançada e capacidades de geração de documentos em formatos como docx, html ou markdown.

Casos de Uso Práticos for codraft-renderer

Renderização de documentos concluídos a partir de modelos para geração automática de contratos
Validação de documentos de saída em vários formatos, incluindo docx, html e markdown
Automação da montagem de documentos usando dicionários de variáveis e caminhos de modelo

! Segurança e Limitações

  • Requer caminho do modelo e dicionário de variáveis como entradas
  • Limitado à renderização de documentos em formatos docx, html ou markdown
  • Necessita de integração com o Codraft orchestrator para invocação da habilidade

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is codraft-renderer?

Perfeito para Agentes de Automação de Documentos que necessitam de renderização de modelo avançada e capacidades de geração de documentos em formatos como docx, html ou markdown. Document renderer for Codraft. Takes a template, variable values, and produces rendered documents (docx or html+pdf). Validates output for unfilled placeholders. Called by the codraft orchestrator — not triggered directly by the user.

How do I install codraft-renderer?

Run the command: npx killer-skills add houfu/codraft/codraft-renderer. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for codraft-renderer?

Key use cases include: Renderização de documentos concluídos a partir de modelos para geração automática de contratos, Validação de documentos de saída em vários formatos, incluindo docx, html e markdown, Automação da montagem de documentos usando dicionários de variáveis e caminhos de modelo.

Which IDEs are compatible with codraft-renderer?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for codraft-renderer?

Requer caminho do modelo e dicionário de variáveis como entradas. Limitado à renderização de documentos em formatos docx, html ou markdown. Necessita de integração com o Codraft orchestrator para invocação da habilidade.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add houfu/codraft/codraft-renderer. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use codraft-renderer immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

codraft-renderer

Install codraft-renderer, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Codraft — Document Renderer (v2)

You are running the Codraft document renderer. Your job is to render a completed document from a template and a set of variable values, then validate the output.

Inputs

This skill is called by the Codraft orchestrator. You receive:

  • Template path — e.g., templates/_examples/Bonterms_Mutual_NDA/Bonterms-Mutual-NDA.docx
  • Formatdocx, html, or markdown
  • Variable dictionary — all collected values: flat key-value pairs, booleans as Python True/False, and loop collections as lists of dicts
  • Output directory — e.g., output/

Step 1 — Output Structure

Each rendering job gets its own folder inside the output directory:

output/
└── {template_name}_{key_variable}_{date}/
    ├── {template_name}_{key_variable}_{date}.docx
    └── {template_name}_{key_variable}_{date}.pdf   ← when tooling available
  • key_variable: the most identifying variable (typically a person/company name) — slugified (lowercase, underscores, no special characters).
  • date: today's date in YYYY-MM-DD format.
  • Job folders deduplicate by appending _2, _3, etc. if the folder already exists.

Step 2 — Write Context and Run Render Script

2a — Write context.json

Serialize the full variable dictionary as a JSON file to a temporary path. The render script reads this file.

2b — Resolve script path

The render script lives at scripts/render.py relative to the project root. If the CLAUDE_PLUGIN_ROOT environment variable is set, resolve the script as $CLAUDE_PLUGIN_ROOT/scripts/render.py.

2c — Run the render script

bash
1python <script_path> \ 2 --template <template_path> \ 3 --format <docx|html|markdown> \ 4 --context <context_file> \ 5 --output-dir <output_dir> \ 6 --job-name <job_name> \ 7 [--pdf]

The script handles boolean coercion, job folder creation, template rendering (docxtpl for docx, jinja2 for html/markdown), PDF conversion, and output validation. It prints a JSON result to stdout containing job_dir, files, pdf_produced, pdf_warning, and validation.

2d — Cowork DOCX to PDF fallback

The render script does not handle Cowork-specific docx-to-PDF conversion. If you are running inside Cowork (check for /home/user/.claude/ or the COWORK environment variable) and the format is docx with PDF requested:

  1. Run the render script without --pdf to produce the .docx.
  2. Use the Cowork built-in docx skill to read the rendered .docx file.
  3. Use the Cowork built-in pdf skill to produce a .pdf from it.
  4. Save the resulting PDF to the job folder as {job_name}.pdf.

Do NOT attempt docx2pdf or soffice in Cowork — they fail due to sandbox restrictions.

Step 3 — Interpret Validation Results

The script's JSON output includes a validation object:

  • validation.passed == true: All placeholders and control tags were processed. The document is ready.
  • validation.unfilled_variables (non-empty): Variable names that remain as {{ var }} in the rendered output. Check whether those variables exist in the manifest — if they do, something went wrong in rendering; if they don't, the template may have placeholders the Analyzer missed.
  • validation.unprocessed_tags (non-empty): Remaining {% %} control tags indicate a rendering failure. Common causes: boolean value passed as a string, missing loop collection, or malformed template syntax.

If validation fails, report the issue back to the orchestrator so it can inform the user and offer to re-collect and re-render. Do NOT deliver a document with unfilled placeholders or unprocessed control tags.

Step 4 — Report Results

Return to the orchestrator:

  • The job_dir and files list from the script output
  • Whether validation passed or failed (with details if failed)
  • Whether PDF was produced (pdf_produced); if not, include pdf_warning

Soft-fail semantics for PDF: Always deliver the primary document (.docx, .html, or .md). Warn if PDF was not produced — never hard-fail because of missing PDF tooling.

Important Notes

  • For docx templates, always use docxtpl — not raw python-docx with string replacement. docxtpl preserves formatting around placeholders and natively supports Jinja2 control tags.
  • PDF output is soft-fail — always deliver the primary format even if PDF conversion fails.

Habilidades Relacionadas

Looking for an alternative to codraft-renderer or another community skill for your workflow? Explore these related open-source skills.

Ver tudo

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

widget-generator

Logo of f
f

Gerar plugins de widgets personalizáveis para o sistema de feed do prompts.chat

flags

Logo of vercel
vercel

O Framework React

138.4k
0
Navegador

pr-review

Logo of pytorch
pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

98.6k
0
Desenvolvedor