coquill-analyzer

Generate CoQuill v2 manifest.yaml from docx, html, or markdown templates.

46|25|Updated May 7, 2026
One-click install
npx skills add https://github.com/LegalQuants/lq-skills --skill coquill-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coquill-analyzer
Source: https://github.com/LegalQuants/lq-skills/tree/main/skills/coquill/analyzer
Command: npx skills add https://github.com/LegalQuants/lq-skills --skill coquill-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the guesswork from turning CoQuill v2 contract template files into a structured manifest by automatically extracting template variables, control structures, and loop-scoped fields.

Core Features & Use Cases

  • Template structure parsing: Detects {% if %}, {% else %}, {% endif %}, {% for %}, and {{ variable }} tags and classifies variables by scope (top-level, conditional branches, loop sub-variables).
  • Type inference & variable labeling: Infers basic variable types (e.g., boolean/text/date/number/email/phone) from names and produces human-friendly labels.
  • Config merge for authoritative overrides: Merges config.yaml variable overrides into the extracted manifest while preserving template-derived structure.
  • Manifest generation for orchestrated rendering: Produces a v2 manifest.yaml consumed by the CoQuill orchestrator, including dependencies and optional meta/groups/validation.

Quick Start

Ask the Orchestrator to run the coquill orchestrator analyzer on your template directory so it generates <template_dir>/manifest.yaml.

Frequently Asked Questions about coquill-analyzer

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

FAQPage Schema
How do I generate a manifest from docx, html, and markdown template files?

To generate a manifest from template files, the analyzer parses docx, html, and markdown formats to extract variables, conditionals, and loops, writing the structured output into a manifest.yaml file. It validates file selection and infers variable types.

What is template variable inference and how does it work for manifests?

Template variable inference detects tags like `{% if %}` and `{{ variable }}`, classifying variables by scope into top-level, conditional branches, or loop sub-variables. It infers basic types such as boolean, text, date, number, email, and phone from variable names.

Can I override inferred template variables using a config.yaml file?

Yes, you can override inferred template variables using a config.yaml file. The analyzer merges config.yaml overrides into the extracted manifest while preserving the template-derived structure, ensuring authoritative configurations take precedence over inferred types.

How do I extract variables and control structures from a docx template?

Extracting variables from a docx template involves parsing the document's XML structure with a fallback mechanism to detect control structures like `{% for %}` loops and `{{ variable }}` tags. The analyzer classifies these elements by scope to build a dependency graph.

Does the manifest generation process support loop-scoped fields and dependency graphs?

Yes, manifest generation supports loop-scoped fields and dependency graphs. The analyzer detects `{% for %}` tags to classify loop sub-variables and writes a v2 manifest.yaml that includes dependencies and optional meta, groups, and validation.

When do I need a v2 manifest.yaml for template rendering workflows?

You need a v2 manifest.yaml when a downstream renderer requires a machine-readable contract template schema and dependency graph. It provides a structured contract by extracting variables and control structures, enabling orchestrated rendering workflows.