create-cht-task

Generate JavaScript code for CHT tasks.js from XLSForm analysis.

1|2|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/medic/cht-ai-tools --skill create-cht-task
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-cht-task
Source: https://github.com/medic/cht-ai-tools/tree/main/skills/create-cht-task
Command: npx skills add https://github.com/medic/cht-ai-tools --skill create-cht-task

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openpyxl, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the complex process of creating CHT tasks by guiding developers through each step, analyzing their project context, and generating well-structured task configurations.

Core Features & Use Cases

  • Interactive Guidance: Provides step-by-step assistance for defining task triggers, timing, actions, and resolution logic.
  • Form Analysis: Reads XLSForm structure to suggest relevant fields and conditions for task creation.
  • Code Generation: Outputs ready-to-use JavaScript code for tasks.js, including educational comments.
  • Best Practice Enforcement: Recommends and facilitates the use of form calculations for complex logic.
  • Use Case: A developer needs to create a new follow-up task for patients who have a high-risk delivery. This Skill walks them through identifying the trigger (delivery report), setting the timing (e.g., 7 days post-delivery), defining the action (open 'postnatal_visit' form), and specifying resolution conditions.

Quick Start

Use the create-cht-task skill to help me build a new task for my CHT project.

Frequently Asked Questions about create-cht-task

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

FAQPage Schema
How do I create CHT tasks by analyzing an existing XLSForm?

To create CHT tasks from an XLSForm, the Skill reads the form structure to suggest relevant fields and conditions, then generates ready-to-use JavaScript code for your tasks.js file with educational comments.

What is the best way to define task triggers and resolution logic for CHT tasks?

Defining CHT task triggers and resolution logic is handled through interactive, step-by-step guidance that helps you specify timing, actions, and resolution conditions, while recommending form calculations for complex logic.

Can I generate JavaScript code for tasks.js automatically from my form calculations?

Yes, you can generate JavaScript code for tasks.js automatically. The Skill outputs ready-to-use code structured around your defined triggers and actions, enforcing best practices by facilitating form calculations for complex logic.

Do I need JavaScript expertise to configure task timing and actions in CHT?

You do not need deep JavaScript expertise to configure CHT task timing and actions. The Skill provides interactive guidance and educational comments within the generated code to walk you through the setup process.

When should I use form calculations instead of direct JavaScript for CHT task logic?

You should use form calculations for CHT task logic when dealing with complex conditions. The Skill enforces best practices by recommending and facilitating form calculations over writing intricate direct JavaScript logic.