codraft-analyzer

Analyzes Codraft docx/HTML templates and generates manifest.yaml with variables, logic, and loops.

3|2|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/houfu/codraft --skill codraft-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codraft-analyzer
Source: https://github.com/houfu/codraft/tree/main/plugin/skills/codraft-analyzer
Command: npx skills add https://github.com/houfu/codraft --skill codraft-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the analysis of Codraft document templates, extracting variables, conditional logic, and loop structures to generate a manifest for document assembly.

Core Features & Use Cases

  • Template Parsing: Analyzes both .docx and .html templates used by Codraft.
  • Variable Extraction: Identifies all template variables, including those within conditional (if/else) and loop (for) blocks.
  • Manifest Generation: Creates a manifest.yaml file detailing template structure, variable types, and dependencies.
  • Use Case: Developers can use this Skill to quickly understand the complexity of a new Codraft template and ensure all variables are correctly defined before deployment.

Quick Start

Analyze the Codraft template located in the 'templates/nda/' directory.

Frequently Asked Questions about codraft-analyzer

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

FAQPage Schema
How do I extract variables from a docx or html document template?

To extract variables from a document template, this Skill analyzes Codraft templates in docx or html formats to identify variables, including those within conditional and loop blocks, and generates a manifest.yaml file.

How do I generate a manifest.yaml file for document assembly?

You generate a manifest.yaml file by analyzing your document templates to extract structural logic, infer variable types, and merge configuration overrides, creating a complete manifest detailing template dependencies for the codraft orchestrator.

Does Codraft template analysis support conditional logic and loop structures?

Yes, Codraft template analysis supports conditional logic and loop structures. It parses your templates to identify and extract variables contained within if/else conditionals and for loop blocks for accurate manifest generation.

What is the best way to analyze html and docx templates before deployment?

The best way to analyze templates before deployment is to use an automated analyzer to parse the document structure, infer variable types, and ensure all variables are correctly defined and documented in a v2 manifest.yaml file.

Can I merge configuration overrides when generating a template manifest?

Yes, you can merge configuration overrides when generating a template manifest. The analysis process automatically merges these overrides while inferring variable types to produce the final manifest.yaml file.