new-calcmark-feature

Guide new CalcMark language features across lexer, parser, and interpreter layers.

4|1|Updated Nov 9, 2025
One-click install
npx skills add https://github.com/CalcMark/go-calcmark --skill new-calcmark-feature
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-calcmark-feature
Source: https://github.com/CalcMark/go-calcmark/tree/main/.claude/skills/new-calcmark-feature
Command: npx skills add https://github.com/CalcMark/go-calcmark --skill new-calcmark-feature

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive, step-by-step guide to implementing new features within the CalcMark language, ensuring robustness and correctness across all layers of the system.

Core Features & Use Cases

  • End-to-End Feature Implementation: Guides the addition of new functions, keywords, operators, or types.
  • Test-Driven Development (TDD): Emphasizes writing failing tests before production code.
  • Layered Architecture Adherence: Ensures changes are correctly integrated across lexer, parser, classifier, detector, semantic spec, and interpreter layers.
  • Use Case: A developer needs to add a new mathematical function, like geometric_mean, to CalcMark. This Skill outlines the exact files to modify, tests to write, and steps to follow for successful integration.

Quick Start

Follow the detailed TDD execution steps to implement a new feature in CalcMark.

Frequently Asked Questions about new-calcmark-feature

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

FAQPage Schema
How do I add a new language feature to a lexer and parser?

Adding a new language feature using TDD requires writing failing tests before production code across the CalcMark stack. You must modify specific files and follow testing procedures across multiple packages to ensure correctness.

What is the process for implementing a new mathematical function in CalcMark?

Test-driven development is enforced to ensure robustness and correctness across all system layers. You write failing tests first, then implement the production code across the lexer, parser, semantic spec, and interpreter to guarantee feature stability.

Can I use this approach to add new keywords and operators, or just functions?

Yes, this approach supports adding new functions, keywords, operators, or types end-to-end. It guides file modifications and testing procedures across the lexer, parser, classifier, detector, semantic spec, and interpreter layers for successful integration.

What layers need modification when extending language capabilities?

When extending language capabilities, you must modify files across the lexer, parser, classifier, detector, semantic spec, and interpreter layers. Changes must also integrate with TUI autosuggest to complete the 8-layer stack modification.

Do I need to modify multiple packages to add a new CalcMark feature?

Yes, implementing a new feature requires modifying specific files and running testing procedures across multiple packages. This ensures the new function, keyword, operator, or type is robustly integrated across all architectural layers.

Why does my new CalcMark feature fail after updating the parser?

Your feature may fail if updates are not applied across the classifier, detector, semantic spec, and interpreter layers. Following the detailed TDD execution steps ensures all necessary files are modified and tested correctly across the stack.