eng-write-dart-test

Automate Dart/Flutter test creation for the Hifz Companion app.

Updated Jun 17, 2026
One-click install
npx skills add https://github.com/zakariaf/Hifz-Companion --skill eng-write-dart-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eng-write-dart-test
Source: https://github.com/zakariaf/Hifz-Companion/tree/main/.claude/skills/eng-write-dart-test
Command: npx skills add https://github.com/zakariaf/Hifz-Companion --skill eng-write-dart-test

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the writing and extending of Dart/Flutter tests for the Hifz Companion app, ensuring comprehensive coverage and adherence to testing strategies.

Core Features & Use Cases

  • Automated Test Writing: Generates tests for engine arithmetic, cold-start seeds, the load balancer, and more.
  • Golden Vector Testing: Pins the FSRS-style arithmetic with frozen golden-vector rows.
  • Invariant Property Testing: Encodes PRD invariants as glados property tests.
  • Widget Testing: Adds widget tests for UI elements like the recite/grade flow and heat-map.
  • Golden and RTL Testing: Captures muṣḥaf-fidelity and RTL/layout goldens.
  • Integration Testing: Writes one of the four integration_test journeys.
  • Offline Guard Testing: Installs and verifies the no-network offline guard.
  • Use Case: Ensure the app's engine logic is robust and the UI elements behave as expected.

Quick Start

Use the eng-write-dart-test skill to create a new unit test for the engine's arithmetic calculations.

Frequently Asked Questions about eng-write-dart-test

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

FAQPage Schema
How do I automate Dart and Flutter testing for my application?

Automating Dart and Flutter testing generates engine unit tests, widget tests, golden vector tests, and integration tests to ensure comprehensive coverage. This approach applies testing strategies directly to the app's architecture and arithmetic calculations.

What is golden vector testing in Flutter?

Golden vector testing in Flutter pins specific arithmetic calculations, like FSRS-style algorithms, using frozen golden-vector rows. It ensures the engine's math logic remains stable and behaves as expected across different test runs.

How do I write integration tests for a Flutter app?

Writing integration tests for a Flutter app involves creating integration_test journeys to verify end-to-end workflows. You can also install and verify a no-network offline guard to ensure the app functions correctly without connectivity.

Can I use property testing for Dart invariants?

Property testing for Dart invariants encodes product requirements as glados property tests. This allows you to verify that your engine logic and PRD invariants hold true across a wide range of generated inputs.

Does Flutter testing support RTL layout and golden image capture?

Flutter testing supports capturing muṣḥaf-fidelity and RTL/layout goldens to verify UI elements. This ensures that widgets like the recite/grade flow and heat-map display correctly in right-to-left configurations.

Do I need to know the app architecture to write Flutter widget tests?

Writing Flutter widget tests requires knowledge of Dart/Flutter testing frameworks and the app's architecture. Understanding the underlying engine logic and UI components is necessary to effectively test flows like recite/grade and heat-maps.