codraft-renderer — community codraft-renderer, codraft, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0

Об этом навыке

Идеально подходит для агентов автоматизации документов, которым необходимы продвинутые возможности рендеринга шаблонов и генерации документов в форматах seperti docx, html или 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

Идеально подходит для агентов автоматизации документов, которым необходимы продвинутые возможности рендеринга шаблонов и генерации документов в форматах seperti docx, html или 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.

Зачем использовать этот навык

Позволяет агентам генерировать завершенные документы из шаблонов и значений переменных, используя словари переменных и поддерживая форматы seperti docx, html и markdown, тем самым автоматизируя процессы генерации и проверки документов.

Подходит лучше всего

Идеально подходит для агентов автоматизации документов, которым необходимы продвинутые возможности рендеринга шаблонов и генерации документов в форматах seperti docx, html или markdown.

Реализуемые кейсы использования for codraft-renderer

Рендеринг завершенных документов из шаблонов для автоматической генерации контрактов
Проверка выходных документов в различных форматах, включая docx, html и markdown
Автоматизация сборки документов с помощью словарей переменных и путей шаблонов

! Безопасность и ограничения

  • Требует пути шаблона и словаря переменных в качестве входных данных
  • Ограничен рендерингом документов в форматах docx, html или markdown
  • Требует интеграции с Codraft orchestrator для вызова навыка

Why this page is reference-only

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

Source Boundary

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

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?

Идеально подходит для агентов автоматизации документов, которым необходимы продвинутые возможности рендеринга шаблонов и генерации документов в форматах seperti docx, html или 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: Рендеринг завершенных документов из шаблонов для автоматической генерации контрактов, Проверка выходных документов в различных форматах, включая docx, html и markdown, Автоматизация сборки документов с помощью словарей переменных и путей шаблонов.

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?

Требует пути шаблона и словаря переменных в качестве входных данных. Ограничен рендерингом документов в форматах docx, html или markdown. Требует интеграции с Codraft orchestrator для вызова навыка.

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.

Imported Repository Instructions

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

Supporting Evidence

codraft-renderer

Install codraft-renderer, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly
Imported Repository Instructions
The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.
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.

Связанные навыки

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

Показать все

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

Создание настраиваемых плагинов виджетов для системы ленты новостей prompts.chat

flags

Logo of vercel
vercel

Фреймворк React

138.4k
0
Браузер

pr-review

Logo of pytorch
pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

98.6k
0
Разработчик