pinia-best-practices

TypeScript configuration and type safety patterns for Pinia stores in Vue 3. Addresses storeToRefs type inference issues, particularly nested ref type loss in Vue 3.5+ Resolves circular type references and any type errors in getters that use this Provides setup store patterns and best practices for type-safe store configuration Covers common debugging scenarios when working with Pinia in TypeScript projects

INSTALLATION
npx skills add https://github.com/hyf0/vue-skills --skill pinia-best-practices
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

Pinia Best Practices

TypeScript configuration and common pitfalls for Pinia stores in Vue 3 applications.

When to Apply

  • Working with Pinia stores in TypeScript projects
  • Debugging storeToRefs type issues
  • Fixing getter circular type references
  • Setting up type-safe store patterns

Capability Rules

Rules that enable AI to solve problems it cannot solve without the skill.

Rule

Impact

Description

storeToRefs-type-loss

HIGH

Fix incorrect nested ref types with Vue 3.5+

Efficiency Rules

Rules that help AI solve problems more effectively and consistently.

Rule

Impact

Description

getters-circular-types

MEDIUM

Fix TypeScript any or circular errors in getters using this

Reference

BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card