Apply when debugging errors, reviewing code for issues, or encountering unexpected behavior. Contains known mistakes with ChurchTools API, Vue components, TypeScript, Safari cookies, and form handling.
npx playbooks add skill bwl21/bwl-flyer-generator --skill common-pitfalls
| Pitfall | Wrong | Correct |
|---------|-------|---------|
| Nested params | { params: { key: 'val' } } | { key: 'val' } |
| Delete method | churchtoolsClient.delete() | churchtoolsClient.deleteApi() |
| Tags response | response.data | response (direct array) |
| Tag domains | 'appointment' | 'person' \| 'song' \| 'group' |
| Pitfall | Wrong | Correct |
|---------|-------|---------|
| Button type | <button> | <button type="button"> |
| BaseCard import | Absolute path | Relative: ../common/BaseCard.vue |
| Reactivity | Plain objects | ref() or reactive() |
src/ct-types.d.ts for ChurchTools typesSecure; SameSite=None cookies on http://localhostButtons without type="button" will submit forms and cause page reloads:
<!-- Wrong - triggers form submission -->
<button @click="handleClick">Click</button>
<!-- Correct -->
<button type="button" @click="handleClick">Click</button>
Always wrap API calls in try-catch with loading states:
try {
loading.value = true
// API call
} catch (err) {
error.value = 'User-friendly message'
console.error('Debug info:', err)
} finally {
loading.value = false
}Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.