Spotiarr workflow

From mralexsaavedra/spotiarr · View interactive version

Spotiarr workflow is an AI agent skill from the GitHub repository mralexsaavedra/spotiarr. Trigger: command, validate, PR, branch, run lint, run build, secrets. Correct pnpm commands, branch naming, PR checklist, and secrets rules for spotiarr.

How to use this skill

Skill file

Activation Contract

Load when running commands, validating changes, creating PRs, managing branches, or checking secrets.

Hard Rules

Decision Gates

| Scope | Validate with |

| ------------------------- | -------------------------------------------------------------------------------------------------------------- |

| Frontend only | pnpm --filter frontend run lint → pnpm --filter frontend run test:run → pnpm --filter frontend run build |

| Backend only | pnpm --filter backend run lint → pnpm --filter backend run test:run → pnpm --filter backend run build |

| Shared or cross-workspace | pnpm lint → pnpm test → pnpm build |

Execution Steps

Branch naming:

| Type | Prefix | Example |

| -------- | ----------- | ---------------------------- |

| Feature | feature/ | feature/add-playback-retry |

| Fix | fix/ | fix/sse-reconnect-loop |

| Refactor | refactor/ | refactor/backend-di-wiring |

| Docs | docs/ | docs/update-env-guide |

| Chore | chore/ | chore/bump-deps |

PR checklist: branch up to date with main · lint + build passing · PR body has what/why/verification · screenshots for UI changes.

PR sizing policy:

| Situation | Action |

| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- |

| Slice over 400 LOC | Default: split into chained-to-main PRs (see chained-pr skill). |

| ask-on-risk | Only when the requester explicitly asks to be consulted before splitting. |

| size:exception | Reserved for irreducible atomic refactors that cannot be split without breaking review or correctness. Label the PR and justify in the body. |

The 400 LOC threshold protects review focus. Prefer many small, sequentially reviewable PRs over one oversized PR. size:exception is the rare escape hatch, not a routine option.

Key commands:

pnpm dev                                    # full dev stack
pnpm lint && pnpm test && pnpm build        # broad validation
pnpm test                                   # all workspace tests
pnpm --filter frontend run test:run         # frontend unit tests
pnpm --filter backend run test:run          # backend unit tests
pnpm --filter backend run prisma:migrate:deploy
gh pr create                                # title must follow Conventional Commits
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.