Agent skill

Enforce Rules For Pinia Synced

by moeru-ai in moeru-ai/airi

Enforce AIRI's rules for Pinia stores that use pinia-plugin-synced for cross-window synchronization.

MITAuto-check passed

Install Enforce Rules For Pinia Synced

skills CLI
$ npx skills add moeru-ai/airi --skill enforce-rules-for-pinia-synced -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install moeru-ai/airi enforce-rules-for-pinia-synced --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/moeru-ai/airi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/enforce-rules-for-pinia-synced .claude/skills/enforce-rules-for-pinia-synced && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
enforce-rules-for-pinia-synced
GitHub stars
50k
Token cost
~653 tokens
SKILL.md length
299 words
Files
2
Skills in repo
24
Repo updated
First seen
Licence
MIT

At a glance

Enforce AIRI's rules for Pinia stores that use pinia-plugin-synced for cross-window synchronization.

  • Adding synced to a Pinia store
  • SKILL.md covers Synchronization Model, Watchers and Invariants, Actions and Persistence and Leadership, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Changing a synced stores state

What it does

Enforce Rules For Pinia Synced is an agent skill from moeru-ai/airi. Enforce AIRI's rules for Pinia stores that use pinia-plugin-synced for cross-window synchronization. Use when adding synced to a Pinia store, changing a synced store's state or actions, or writing watchers, persistence, or tests for synchronized state in AIRI renderers.

Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

The repository describes itself as: 💖🧸 Self hosted, you-owned Grok Companion, a container of souls of waifu, cyber livings to bring them into our worlds, wishing to achieve Neuro-sama's altitude. Capable of… The licence is MIT.

When your agent uses it

  • Adding synced to a Pinia store
  • Changing a synced stores state
  • Writing watchers
  • Tests for synchronized state in AIRI renderers

Example prompts

  • “/enforce-rules-for-pinia-synced”

What it can do on your machine

Read from SKILL.md and the folder at commit ec682e2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Enforce Rules For Pinia Synced loads about 653 tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 299 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~76
When it runs · the whole SKILL.md, loaded when a task matches
~653

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from moeru-ai/airi at commit ec682e2, republished under its MIT licence (© moeru-ai). 299 words, ~653 tokens.

Download SKILL.mdSave it as .claude/skills/enforce-rules-for-pinia-synced/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
enforce-rules-for-pinia-synced
description
Enforce AIRI's rules for Pinia stores that use pinia-plugin-synced for cross-window synchronization. Use when adding `synced` to a Pinia store, changing a synced store's state or actions, or writing watchers, persistence, or tests for synchronized state in AIRI renderers.

Enforce AIRI Pinia Synchronization Rules

Apply these rules to every Pinia store that uses pinia-plugin-synced.

Synchronization Model

  • Treat pinia-plugin-synced as snapshot replication and leader-routed RPC. It does not share Vue refs between renderers.
  • Add synced only to stores that need cross-window ownership. Synchronize the smallest serializable source-of-truth state.
  • state: true sends a full-store proposal after each local mutation. Keep transient and high-frequency state in an unsynchronized store.
  • State, action arguments, and action results must support structuredClone.
  • Keep computed values, query status, runtime clients, controllers, pending promises, and component state outside synchronized state.

Watchers and Invariants

  • Remote snapshots run local Vue watchers. A watcher on synchronized state must not write synchronized state directly.
  • A watcher can call a synchronized action to enforce a leader-owned invariant. The watcher must await the action. The action must be idempotent because each renderer can observe the same snapshot.
  • Enforce cross-field invariants inside explicit actions before the state commit. Do not repair replicated state with a watcher.

Actions

  • Every returned function in a setup store is a Pinia action. Use computed values or pure helpers for read-only projections.
  • List only leader-owned side-effecting actions under synced.actions. These actions must be asynchronous, and callers must await them.
  • Unlisted actions run in the caller renderer. Their mutations become full-state proposals when state: true.

Persistence and Leadership

  • Keep synchronization and persistence as separate boundaries. Give persisted synchronized state one explicit persistence owner.
  • Do not add bidirectional persistence composables or storage-event listeners to synchronized state. Use explicit persistence commands.
  • Set the leadership mode explicitly for every Electron renderer. Utility and minimal windows must use follower-only.

Tests

  • Add a multi-window regression test for synchronization changes. A remote snapshot must not produce a local synchronized-state proposal.
  • If a watcher calls a synchronized action, verify that repeated calls converge without repeated side effects.

© moeru-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/enforce-rules-for-pinia-synced of moeru-ai/airi.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit ec682e2

Compare with similar skills

Enforce Rules For Pinia Synced next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Enforce Rules For Pinia Synced compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Enforce Rules For Pinia Synced this skillmoeru-ai/airi50k—~653Automated safety check: PassMIT
Pinia Store Setupjeremylongshore/tons-of-skills-marketplace2.8k—~563Automated safety check: PassMIT
Agent App Storeruvnet/ruflo74k2 repos~1kAutomated safety check: PassMIT
App Store Optimizationalirezarezvani/claude-skills28k1 repos~4.2kAutomated safety check: PassMIT
React Syncvercel/next.js143k—~486Automated safety check: PassMIT
Eas App Storessickn33/agentic-awesome-skills47k1 repos~1.9kAutomated safety check: PassMIT

Similar skills

  • Pinia Store Setup

    jeremylongshore/tons-of-skills-marketplace

    Configure pinia store setup operations. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~563 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Agent App Store

    ruvnet/ruflo

    Agent skill for app-store - invoke with $agent-app-store. An agent skill from ruvnet/ruflo.

    74k GitHub starsUsed in 2 repos~1k tokens
    MobileAuto-check passed
  • App Store Optimization

    alirezarezvani/claude-skills

    App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store.

    28k GitHub starsUsed in 1 repo~4.2k tokens
    Marketing & SEOAuto-check passed
  • React Sync

    vercel/next.js

    Official

    Build local React changes in the bundle variants consumed by Next.js, sync them into a local Next.js checkout, and test the resulting integration.

    143k GitHub stars~486 tokensUpdated today
    Auto-check passed
  • Eas App Stores

    sickn33/agentic-awesome-skills

    Curated upstream guidance for Eas App Stores; use when the workflow matches the user goal.

    47k GitHub starsUsed in 1 repo~1.9k tokens
    MobileAuto-check passed
  • App Store Changelog

    sickn33/agentic-awesome-skills

    Generate user-facing App Store release notes from git history since the last tag.

    47k GitHub starsUsed in 2 repos~831 tokens
    DevelopmentAuto-check passed

More from moeru-ai/airi

All 24 skills in this repo
  • Simple English

    moeru-ai/airi

    Write or rewrite technical text with the rules of ASD-STE100 Simplified Technical English so it is clear, unambiguous, and free of AI slop.

    50k GitHub starsUsed in 2 repos~4.6k tokens
    Auto-check passed
  • Review pending AIRI translations on Crowdin in a batch, then sync them into the repository.

    50k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Upload a local image or file to GitHub's user-attachments storage and return a URL suitable for issue, pull request, discussion, or comment Markdown.

    50k GitHub stars~554 tokensUpdated today
    Auto-check passed
  • Create PR

    moeru-ai/airi

    Prepare and create an AIRI pull request with verifiable change context, architecture evidence, and required visual evidence.

    50k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts.

    50k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • A skill your agent uses when Codex needs to inspect, debug, or automate an Electron app through agent-browser and Chrome DevTools Protocol, especially when the app has multiple BrowserWindow…

    50k GitHub stars~3.1k tokensUpdated today
    Auto-check passed

Questions about Enforce Rules For Pinia Synced

What does Enforce Rules For Pinia Synced do?

Enforce AIRI's rules for Pinia stores that use pinia-plugin-synced for cross-window synchronization. Enforce Rules For Pinia Synced is an agent skill from moeru-ai/airi. Enforce AIRI's rules for Pinia stores that use pinia-plugin-synced for cross-window synchronization.

When should I use Enforce Rules For Pinia Synced?

Enforce Rules For Pinia Synced fits situations like: adding synced to a Pinia store; changing a synced stores state; writing watchers; tests for synchronized state in AIRI renderers.

How do I install Enforce Rules For Pinia Synced in Claude Code?

Run `npx skills add moeru-ai/airi --skill enforce-rules-for-pinia-synced -a claude-code`. Or copy the skill folder (.agents/skills/enforce-rules-for-pinia-synced in moeru-ai/airi) into .claude/skills/enforce-rules-for-pinia-synced in your project. Claude Code loads it when a task matches its description.

How do I install Enforce Rules For Pinia Synced in Codex?

Run `npx skills add moeru-ai/airi --skill enforce-rules-for-pinia-synced -a codex`. Or copy the skill folder (.agents/skills/enforce-rules-for-pinia-synced in moeru-ai/airi) into .agents/skills/enforce-rules-for-pinia-synced in your project. Codex loads it when a task matches its description.

Can I use Enforce Rules For Pinia Synced in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add moeru-ai/airi --skill enforce-rules-for-pinia-synced -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/enforce-rules-for-pinia-synced, .gemini/skills/enforce-rules-for-pinia-synced, .github/skills/enforce-rules-for-pinia-synced and .opencode/skills/enforce-rules-for-pinia-synced in your project.

What does Enforce Rules For Pinia Synced need to run?

SKILL.md names no scripts, command-line tools or credentials: Enforce Rules For Pinia Synced is instructions for the agent only.

Does Enforce Rules For Pinia Synced access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Enforce Rules For Pinia Synced safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Enforce Rules For Pinia Synced use?

Enforce Rules For Pinia Synced is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Enforce Rules For Pinia Synced use?

About 653 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Enforce Rules For Pinia Synced?

Skills that share tags, products or a category with Enforce Rules For Pinia Synced: Pinia Store Setup (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Agent App Store (ruvnet/ruflo, 74k stars), App Store Optimization (alirezarezvani/claude-skills, 28k stars) and React Sync (vercel/next.js, 143k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Enforce Rules For Pinia Synced?

moeru-ai (a GitHub organization) maintains it in moeru-ai/airi, which has 50,267 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 11, 2026.

Source: moeru-ai/airi on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.