logic-coder

Generate typed services, composables, and Pinia stores for Vue 3 components.

2|1|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/Eva813/skills-base --skill logic-coder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logic-coder
Source: https://github.com/Eva813/skills-base/tree/main/.agents/skills/logic-coder
Command: npx skills add https://github.com/Eva813/skills-base --skill logic-coder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Upgrades presentation-only Vue components into functional front-end features by wiring API calls, typed state management, view-model mapping, and robust loading/error handling without modifying component templates or styles.

Core Features & Use Cases

  • Composable & Service Generation: Produces typed types, service wrappers, composables, and optional Pinia stores from enriched-spec.md API and state definitions.
  • Robust UI States & Error Handling: Implements loading, empty, and error UI states, ApiError classification, retry/backoff strategies, and mock fallbacks when real APIs are not available.
  • Use Case: After api-enrichment provides enriched-spec.md and component_paths, generate claimService, useClaimRecords composable, and a container component that connects dumb components to API and state for code review handoff.

Quick Start

Provide enriched-spec.md and component_paths and request the logic-coder to generate types, services, composables, and a container component that wires the dumb Vue components to API calls and Pinia state.

Frequently Asked Questions about logic-coder

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

FAQPage Schema
How do I wire Vue 3 UI components to API endpoints and Pinia state management?

To wire Vue 3 UI components, you integrate presentation-only components with API endpoints and typed state management to generate container components, services, composables, and Pinia stores. This process upgrades dumb components into functional front-end features without modifying templates or styles.

How do I generate TypeScript composables and service wrappers from API definitions?

Generating TypeScript composables and service wrappers involves processing enriched-spec.md API and state definitions to produce typed types, service wrappers with ApiError handling, and composables. It includes implementing loading, empty, and error UI states with retry and backoff strategies.

Do I need enriched-spec.md and component_paths to generate Vue container components?

Yes, you need enriched-spec.md and component_paths handoff payloads as prerequisites. These inputs define API mappings, state schemas, and error handling requirements necessary to generate the container components, composables, and Pinia stores that connect dumb components to API calls.

Can I use mock fallbacks for Vue 3 API integration when real APIs are unavailable?

Yes, you can use mock fallbacks for Vue 3 API integration when real APIs are unavailable. The generated composables and services include mock fallback functionality alongside robust error handling, allowing development and testing to proceed without a live backend.

What is the best way to handle loading and error states in Vue 3 composables?

The best way to handle loading and error states in Vue 3 composables is by generating typed composables that implement loading, empty, and error UI states. This approach includes ApiError classification and retry or backoff strategies to ensure robust front-end state management.

How do I prepare handoff-ready modified_files and diff_summary for Vue code review?

To prepare handoff-ready outputs for Vue code review, generate types, services, composables, and container components that satisfy typed state requirements. The process produces modified_files and diff_summary outputs ready for review after wiring dumb components to API calls and Pinia state.