pinia-best-practices

hyf0/vue-skills · updated Apr 8, 2026

$npx skills add https://github.com/hyf0/vue-skills --skill pinia-best-practices
0 commentsdiscussion
summary

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
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

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.530 reviews
  • Naina Park· Dec 4, 2024

    pinia-best-practices fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Emma Perez· Dec 4, 2024

    I recommend pinia-best-practices for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Nikhil Desai· Nov 23, 2024

    pinia-best-practices is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Naina Haddad· Nov 23, 2024

    Useful defaults in pinia-best-practices — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Neel Chen· Oct 14, 2024

    Solid pick for teams standardizing on skills: pinia-best-practices is focused, and the summary matches what you get after install.

  • Neel Farah· Oct 14, 2024

    Registry listing for pinia-best-practices matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Chinedu Brown· Sep 21, 2024

    pinia-best-practices fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Yash Thakker· Sep 1, 2024

    Useful defaults in pinia-best-practices — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Dhruvi Jain· Aug 20, 2024

    Registry listing for pinia-best-practices matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Chinedu Wang· Aug 12, 2024

    pinia-best-practices has been reliable in day-to-day use. Documentation quality is above average for community skills.

showing 1-10 of 30

1 / 3