enforce-rules-for-pinia-synced
A contributor skill in the AIRI repository covering Vue state stores built with Pinia whose state is shared between Electron windows by the pinia-plugin-synced package.
スキルの内容
A contributor skill in the AIRI repository covering Vue state stores built with Pinia whose state is shared between Electron windows by the pinia-plugin-synced package. It explains that the plugin copies snapshots and routes actions through a leader window rather than sharing Vue refs, so only stores that truly need cross-window ownership should sync, and only small, cloneable source-of-truth state. Watchers must not write synced state directly; they may call an idempotent, awaited synced action instead. Side-effecting actions belong to the leader and must be async, persistence needs one explicit owner, every renderer must set its leadership mode, and a multi-window test should show that remote snapshots do not trigger local writes.
できること
- Decide which Pinia state to sync
- Avoid watcher writes to synced state
- Assign leader-owned actions and persistence
- Test multi-window state sync
概要
- 公開元
- Moeru AI
- ツール
- フロントエンドデザイン
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
含まれるファイル
- agents/openai.yaml
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
出典
- スキルファイル(SKILL.md)github.com/moeru-ai/airi · 根拠となる項目:スクリプトを含む2026年11月10日
- GitHubリポジトリgithub.com/moeru-ai/airi · 根拠となる項目:ライセンス, 公開元, 活動状況2026年11月13日
- リポジトリ内のフォルダ(enforce-rules-for-pinia-synced)github.com/moeru-ai/airi · 根拠となる項目:スクリプトを含む2026年11月10日