baldart 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +599 -0
- package/README.md +566 -0
- package/VERSION +1 -0
- package/bin/baldart.js +143 -0
- package/framework/.claude/agents/REGISTRY.md +169 -0
- package/framework/.claude/agents/api-perf-cost-auditor.md +291 -0
- package/framework/.claude/agents/code-reviewer.md +350 -0
- package/framework/.claude/agents/codebase-architect.md +391 -0
- package/framework/.claude/agents/coder.md +291 -0
- package/framework/.claude/agents/deep-human-insight.md +198 -0
- package/framework/.claude/agents/doc-reviewer.md +440 -0
- package/framework/.claude/agents/email-deliverability-architect.md +193 -0
- package/framework/.claude/agents/hybrid-ml-architect.md +285 -0
- package/framework/.claude/agents/hyper-gamification-designer.md +149 -0
- package/framework/.claude/agents/legal-counsel-gdpr.md +179 -0
- package/framework/.claude/agents/marketing-conversion-strategist.md +162 -0
- package/framework/.claude/agents/motion-expert.md +108 -0
- package/framework/.claude/agents/onboarding-architect-lead.md +230 -0
- package/framework/.claude/agents/plan-auditor.md +546 -0
- package/framework/.claude/agents/prd-card-writer.md +372 -0
- package/framework/.claude/agents/prd.md +744 -0
- package/framework/.claude/agents/qa-sentinel.md +305 -0
- package/framework/.claude/agents/remotion-animator-orchestrator.md +218 -0
- package/framework/.claude/agents/security-reviewer.md +276 -0
- package/framework/.claude/agents/senior-researcher.md +175 -0
- package/framework/.claude/agents/seo-analytics-strategist.md +156 -0
- package/framework/.claude/agents/skill-improver.md +61 -0
- package/framework/.claude/agents/ui-expert.md +191 -0
- package/framework/.claude/agents/visual-designer.md +190 -0
- package/framework/.claude/agents/website-orchestrator.md +118 -0
- package/framework/.claude/agents/wiki-curator.md +145 -0
- package/framework/.claude/commands/baldart-push.md +15 -0
- package/framework/.claude/commands/check.md +237 -0
- package/framework/.claude/commands/codexreview.md +203 -0
- package/framework/.claude/commands/design-review.md +11 -0
- package/framework/.claude/commands/issue-review.md +34 -0
- package/framework/.claude/commands/new.md +331 -0
- package/framework/.claude/commands/qa.md +257 -0
- package/framework/.claude/hooks/framework-edit-gate.js +208 -0
- package/framework/.claude/hooks/lint-before-commit.sh.template +66 -0
- package/framework/.claude/settings.local.json.example +32 -0
- package/framework/.claude/skills/api-design-principles/SKILL.md +567 -0
- package/framework/.claude/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.claude/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.claude/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.claude/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.claude/skills/baldart-push/SKILL.md +222 -0
- package/framework/.claude/skills/bug/SKILL.md +200 -0
- package/framework/.claude/skills/bug/references/logging-patterns.md +174 -0
- package/framework/.claude/skills/capture/SKILL.md +125 -0
- package/framework/.claude/skills/capture/references/synthesis-template.md +42 -0
- package/framework/.claude/skills/context-primer/SKILL.md +189 -0
- package/framework/.claude/skills/copywriting/SKILL.md +273 -0
- package/framework/.claude/skills/copywriting/references/copy-frameworks.md +338 -0
- package/framework/.claude/skills/copywriting/references/natural-transitions.md +252 -0
- package/framework/.claude/skills/doc-writing-for-rag/SKILL.md +119 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/before-after-examples.md +291 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/compact-templates.md +183 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/frontmatter-minimal.md +112 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/line-count-targets.md +110 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/schemas-and-errors.md +129 -0
- package/framework/.claude/skills/find-skills/SKILL.md +133 -0
- package/framework/.claude/skills/frontend-design/LICENSE.txt +177 -0
- package/framework/.claude/skills/frontend-design/SKILL.md +84 -0
- package/framework/.claude/skills/gamification-design/SKILL.md +130 -0
- package/framework/.claude/skills/issue-review/SKILL.md +45 -0
- package/framework/.claude/skills/kie-ai/SKILL.md +262 -0
- package/framework/.claude/skills/kie-ai/references/models-catalog.md +272 -0
- package/framework/.claude/skills/kie-ai/scripts/kie_api.sh +209 -0
- package/framework/.claude/skills/kie-ai/scripts/remove_greenscreen.py +69 -0
- package/framework/.claude/skills/kie-ai/scripts/setup_api_key.sh +77 -0
- package/framework/.claude/skills/motion-design/LICENSE +21 -0
- package/framework/.claude/skills/motion-design/README.md +82 -0
- package/framework/.claude/skills/motion-design/SKILL.md +336 -0
- package/framework/.claude/skills/motion-design/director/choreography.md +93 -0
- package/framework/.claude/skills/motion-design/director/context-adaptation.md +83 -0
- package/framework/.claude/skills/motion-design/director/core-philosophy.md +53 -0
- package/framework/.claude/skills/motion-design/director/decision-framework.md +91 -0
- package/framework/.claude/skills/motion-design/director/disney-principles.md +102 -0
- package/framework/.claude/skills/motion-design/director/emotion-mapping.md +71 -0
- package/framework/.claude/skills/motion-design/director/motion-personality.md +89 -0
- package/framework/.claude/skills/motion-design/director/narrative-structure.md +62 -0
- package/framework/.claude/skills/motion-design/patterns/ambient-continuous.md +81 -0
- package/framework/.claude/skills/motion-design/patterns/entrance-exit.md +82 -0
- package/framework/.claude/skills/motion-design/patterns/multi-element.md +69 -0
- package/framework/.claude/skills/motion-design/patterns/state-feedback.md +96 -0
- package/framework/.claude/skills/motion-design/reference/property-selection.md +95 -0
- package/framework/.claude/skills/motion-design/reference/quality-checklist.md +67 -0
- package/framework/.claude/skills/motion-design/reference/timing-easing-tables.md +106 -0
- package/framework/.claude/skills/motion-design/reference/troubleshooting.md +73 -0
- package/framework/.claude/skills/new/SKILL.md +1687 -0
- package/framework/.claude/skills/playwright-skill/API_REFERENCE.md +652 -0
- package/framework/.claude/skills/playwright-skill/SKILL.md +157 -0
- package/framework/.claude/skills/playwright-skill/package.json +26 -0
- package/framework/.claude/skills/prd/SKILL.md +228 -0
- package/framework/.claude/skills/prd/assets/card-template.yml +232 -0
- package/framework/.claude/skills/prd/assets/epic-template.yml +190 -0
- package/framework/.claude/skills/prd/assets/prd-template.md +230 -0
- package/framework/.claude/skills/prd/assets/state-template.md +78 -0
- package/framework/.claude/skills/prd/references/api-perf-gate.md +152 -0
- package/framework/.claude/skills/prd/references/audit-phase.md +478 -0
- package/framework/.claude/skills/prd/references/backlog-phase.md +145 -0
- package/framework/.claude/skills/prd/references/discovery-phase.md +359 -0
- package/framework/.claude/skills/prd/references/impact-analysis.md +233 -0
- package/framework/.claude/skills/prd/references/prd-add-phase.md +214 -0
- package/framework/.claude/skills/prd/references/prd-writing-phase.md +145 -0
- package/framework/.claude/skills/prd/references/research-phase.md +216 -0
- package/framework/.claude/skills/prd/references/ui-design-phase.md +61 -0
- package/framework/.claude/skills/prd/references/validation-phase.md +72 -0
- package/framework/.claude/skills/prd-add/SKILL.md +222 -0
- package/framework/.claude/skills/prd-add/references/impact-analysis.md +233 -0
- package/framework/.claude/skills/remotion-best-practices/SKILL.md +48 -0
- package/framework/.claude/skills/remotion-best-practices/rules/3d.md +86 -0
- package/framework/.claude/skills/remotion-best-practices/rules/animations.md +29 -0
- package/framework/.claude/skills/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
- package/framework/.claude/skills/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
- package/framework/.claude/skills/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +108 -0
- package/framework/.claude/skills/remotion-best-practices/rules/assets.md +78 -0
- package/framework/.claude/skills/remotion-best-practices/rules/audio.md +169 -0
- package/framework/.claude/skills/remotion-best-practices/rules/calculate-metadata.md +104 -0
- package/framework/.claude/skills/remotion-best-practices/rules/can-decode.md +75 -0
- package/framework/.claude/skills/remotion-best-practices/rules/charts.md +58 -0
- package/framework/.claude/skills/remotion-best-practices/rules/compositions.md +141 -0
- package/framework/.claude/skills/remotion-best-practices/rules/display-captions.md +184 -0
- package/framework/.claude/skills/remotion-best-practices/rules/extract-frames.md +229 -0
- package/framework/.claude/skills/remotion-best-practices/rules/fonts.md +152 -0
- package/framework/.claude/skills/remotion-best-practices/rules/get-audio-duration.md +58 -0
- package/framework/.claude/skills/remotion-best-practices/rules/get-video-dimensions.md +68 -0
- package/framework/.claude/skills/remotion-best-practices/rules/get-video-duration.md +58 -0
- package/framework/.claude/skills/remotion-best-practices/rules/gifs.md +141 -0
- package/framework/.claude/skills/remotion-best-practices/rules/images.md +130 -0
- package/framework/.claude/skills/remotion-best-practices/rules/import-srt-captions.md +69 -0
- package/framework/.claude/skills/remotion-best-practices/rules/light-leaks.md +73 -0
- package/framework/.claude/skills/remotion-best-practices/rules/lottie.md +67 -0
- package/framework/.claude/skills/remotion-best-practices/rules/maps.md +401 -0
- package/framework/.claude/skills/remotion-best-practices/rules/measuring-dom-nodes.md +34 -0
- package/framework/.claude/skills/remotion-best-practices/rules/measuring-text.md +143 -0
- package/framework/.claude/skills/remotion-best-practices/rules/parameters.md +98 -0
- package/framework/.claude/skills/remotion-best-practices/rules/sequencing.md +118 -0
- package/framework/.claude/skills/remotion-best-practices/rules/subtitles.md +36 -0
- package/framework/.claude/skills/remotion-best-practices/rules/tailwind.md +11 -0
- package/framework/.claude/skills/remotion-best-practices/rules/text-animations.md +20 -0
- package/framework/.claude/skills/remotion-best-practices/rules/timing.md +179 -0
- package/framework/.claude/skills/remotion-best-practices/rules/transcribe-captions.md +70 -0
- package/framework/.claude/skills/remotion-best-practices/rules/transitions.md +197 -0
- package/framework/.claude/skills/remotion-best-practices/rules/transparent-videos.md +106 -0
- package/framework/.claude/skills/remotion-best-practices/rules/trimming.md +52 -0
- package/framework/.claude/skills/remotion-best-practices/rules/videos.md +171 -0
- package/framework/.claude/skills/seo-audit/SKILL.md +394 -0
- package/framework/.claude/skills/seo-audit/references/aeo-geo-patterns.md +279 -0
- package/framework/.claude/skills/seo-audit/references/ai-writing-detection.md +190 -0
- package/framework/.claude/skills/simplify/SKILL.md +137 -0
- package/framework/.claude/skills/skill-creator/LICENSE.txt +202 -0
- package/framework/.claude/skills/skill-creator/SKILL.md +356 -0
- package/framework/.claude/skills/skill-creator/references/output-patterns.md +82 -0
- package/framework/.claude/skills/skill-creator/references/workflows.md +28 -0
- package/framework/.claude/skills/skill-creator/scripts/init_skill.py +303 -0
- package/framework/.claude/skills/skill-creator/scripts/package_skill.py +110 -0
- package/framework/.claude/skills/skill-creator/scripts/quick_validate.py +95 -0
- package/framework/.claude/skills/ui-design/SKILL.md +199 -0
- package/framework/.claude/skills/ui-design/references/component-discovery.md +54 -0
- package/framework/.claude/skills/ui-design/references/evaluation.md +171 -0
- package/framework/.claude/skills/ui-design/references/generation.md +109 -0
- package/framework/.claude/skills/ui-design/references/inventory.md +59 -0
- package/framework/.claude/skills/webapp-testing/LICENSE.txt +202 -0
- package/framework/.claude/skills/webapp-testing/SKILL.md +123 -0
- package/framework/.claude/skills/webapp-testing/examples/console_logging.py +35 -0
- package/framework/.claude/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/framework/.claude/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/framework/.claude/skills/webapp-testing/scripts/with_server.py +106 -0
- package/framework/.claude/skills/worktree-manager/SKILL.md +680 -0
- package/framework/AGENTS.md +240 -0
- package/framework/agents/api-contracts.md +137 -0
- package/framework/agents/architecture.md +145 -0
- package/framework/agents/coding-standards.md +148 -0
- package/framework/agents/data-model.md +110 -0
- package/framework/agents/deployment-protocol.md +232 -0
- package/framework/agents/design-review.md +172 -0
- package/framework/agents/env-reference.md +171 -0
- package/framework/agents/github-issue-subagent.md +252 -0
- package/framework/agents/index.md +261 -0
- package/framework/agents/llm-wiki-methodology.md +216 -0
- package/framework/agents/maintenance-protocol.md +305 -0
- package/framework/agents/observability.md +162 -0
- package/framework/agents/performance.md +155 -0
- package/framework/agents/project-context.md +145 -0
- package/framework/agents/runbook.md +208 -0
- package/framework/agents/security.md +168 -0
- package/framework/agents/skills-mapping.md +286 -0
- package/framework/agents/testing.md +111 -0
- package/framework/agents/workflows.md +215 -0
- package/framework/docs/PROJECT-CONFIGURATION.md +336 -0
- package/framework/docs/references/brand-guidelines.md +170 -0
- package/framework/docs/references/ui-guidelines.template.md +182 -0
- package/framework/routines/code-review.routine.yml +46 -0
- package/framework/routines/doc-review.routine.yml +45 -0
- package/framework/routines/ds-drift.routine.yml +52 -0
- package/framework/routines/full-sweep.routine.yml +51 -0
- package/framework/routines/index.yml +70 -0
- package/framework/routines/skill-improve.routine.yml +50 -0
- package/framework/routines/wiki-review.routine.yml +45 -0
- package/framework/templates/baldart.config.template.yml +113 -0
- package/framework/templates/breaking-change-checklist.md +484 -0
- package/framework/templates/feature-card.template.yml +125 -0
- package/framework/templates/overlays/README.md +44 -0
- package/framework/templates/overlays/copywriting.fidelity-example.md +62 -0
- package/framework/templates/overlays/ui-design.fidelity-example.md +75 -0
- package/framework/templates/skill-project-context.snippet.md +19 -0
- package/framework/templates/spec.template.md +208 -0
- package/package.json +51 -0
- package/src/commands/add.js +229 -0
- package/src/commands/configure.js +385 -0
- package/src/commands/doctor.js +486 -0
- package/src/commands/migrate.js +185 -0
- package/src/commands/push.js +0 -0
- package/src/commands/routines.js +269 -0
- package/src/commands/status.js +130 -0
- package/src/commands/update.js +419 -0
- package/src/commands/version.js +88 -0
- package/src/utils/contamination.js +400 -0
- package/src/utils/git.js +181 -0
- package/src/utils/hooks.js +152 -0
- package/src/utils/routine-adapters/claude-code-cloud.js +78 -0
- package/src/utils/routine-adapters/cron.js +138 -0
- package/src/utils/routine-adapters/github-actions.js +141 -0
- package/src/utils/routine-adapters/index.js +21 -0
- package/src/utils/routines.js +166 -0
- package/src/utils/state.js +143 -0
- package/src/utils/symlinks.js +425 -0
- package/src/utils/ui.js +133 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Schemas & Errors — Central Reference Files
|
|
2
|
+
|
|
3
|
+
Protocollo per usare e estendere `${paths.api_schemas}` e `${paths.api_errors}` (typically `docs/references/api/schemas.md` and `docs/references/errors.md`).
|
|
4
|
+
|
|
5
|
+
> **Note**: the schema names and domain sections below come from a real project (a multi-merchant fidelity/loyalty platform) and are kept as a concrete example. Replace them with your own domain entities when applying this skill to a new project — the project-specific domain vocabulary lives in `.baldart/overlays/doc-writing-for-rag.md`.
|
|
6
|
+
|
|
7
|
+
## schemas.md — Struttura attuale
|
|
8
|
+
|
|
9
|
+
File centrale con **80+ JSON schemas riusabili** organizzati per dominio:
|
|
10
|
+
|
|
11
|
+
| Domain section | Esempi schemi |
|
|
12
|
+
|----------------|---------------|
|
|
13
|
+
| Booking | BookingRoom, BookingTable, BookingCombo, ReservationDocument, ReservationStatus |
|
|
14
|
+
| Admin | Merchant, MerchantPublic, Store, MerchantEmailSettings, AdminCustomerProfile |
|
|
15
|
+
| Customer | CustomerDashboard, CustomerProfile, Coupon, CustomerNotification, GamificationProfile |
|
|
16
|
+
| Merchant | MerchantWithStores, BrandSettings, DashboardAnalytics, MerchantSession |
|
|
17
|
+
| Stores | StoreLandingSettings, StoreWheelSettings, WheelStats, ActiveWheelToken |
|
|
18
|
+
| Promos | Promo, PromoDetail, PromoToken, PromoAnalyticsDetail, DailyOffersSettings |
|
|
19
|
+
| Membership | MembershipTier, MembershipBenefit, MembershipCard, BenefitToken |
|
|
20
|
+
| Menu | MenuCategory, MenuItem, MenuVariant, NutritionalInfo, CustomerMenuPreference |
|
|
21
|
+
| DIO | DioMeta, DioSignal, DioRankedItem, DioMerchantConfig, BeverageQuizAnswers |
|
|
22
|
+
| Notifications | NotificationEventType, NotificationSubscription, NotificationDevice |
|
|
23
|
+
| Survey | SurveyAnswer, SurveyLinkConfigResponse, SurveyCategoryProductsResponse |
|
|
24
|
+
| Wallet | WalletPass, FavoriteStoreLocationSnapshot, MerchantPassSummary |
|
|
25
|
+
|
|
26
|
+
### Path relativi per riferimenti
|
|
27
|
+
|
|
28
|
+
| File scrittura | Link schemas.md |
|
|
29
|
+
|----------------|-----------------|
|
|
30
|
+
| `docs/references/api/*.md` (top level) | `./schemas.md#anchor` |
|
|
31
|
+
| `docs/references/api/booking/*.md` | `../schemas.md#anchor` |
|
|
32
|
+
| `docs/references/api/survey/*.md` | `../schemas.md#anchor` |
|
|
33
|
+
| `docs/references/ui/*.md` | `../api/schemas.md#anchor` |
|
|
34
|
+
| `docs/references/ui/merchant/*.md` | `../../api/schemas.md#anchor` |
|
|
35
|
+
|
|
36
|
+
### Estendere schemas.md
|
|
37
|
+
|
|
38
|
+
1. **Verifica prima**: `grep -i "SchemaName" docs/references/api/schemas.md` per evitare duplicati
|
|
39
|
+
2. **APPEND alla domain section** esistente (o crea nuova sezione `## X Domain Schemas` alla fine)
|
|
40
|
+
3. **Format tabella**:
|
|
41
|
+
```markdown
|
|
42
|
+
## SchemaName
|
|
43
|
+
| Field | Type | Notes |
|
|
44
|
+
|-------|------|-------|
|
|
45
|
+
| id | string | UUID |
|
|
46
|
+
| name | string | 1-120 chars |
|
|
47
|
+
| createdAt | string | ISO 8601 |
|
|
48
|
+
```
|
|
49
|
+
4. **Union types**: usa `\|` per separare (`"ACTIVE" \| "EXPIRED"`)
|
|
50
|
+
5. **Nullable**: `string \| null`
|
|
51
|
+
6. **Nested**: crea schema separato (es. `BookingPolicy`) e referenzialo nel field Notes
|
|
52
|
+
|
|
53
|
+
### Quando NON estendere schemas.md
|
|
54
|
+
|
|
55
|
+
- Schema usato UNA SOLA VOLTA in un endpoint molto specifico → inline nel file
|
|
56
|
+
- Schema differisce significativamente da uno esistente (evita "BookingResponseV2" se è un alias di "BookingResponse")
|
|
57
|
+
|
|
58
|
+
## errors.md — Struttura attuale
|
|
59
|
+
|
|
60
|
+
File centrale con **300+ error codes** grouped per dominio:
|
|
61
|
+
|
|
62
|
+
### Domain sections esistenti
|
|
63
|
+
|
|
64
|
+
- Auth / Access Control
|
|
65
|
+
- Generic Validation
|
|
66
|
+
- Booking — Rooms / Tables / Combos / Policies / Availability / Customer Lookup / Hold / Reservations
|
|
67
|
+
- No-Show / Blacklist
|
|
68
|
+
- Tags / Email Templates / Floor Plan / Swap / Arrival Queue
|
|
69
|
+
- Admin (Merchant Management, Stores, Staff, Points Rules, Customers, Membership, DORE)
|
|
70
|
+
- Customer (Profile, Phone Change, Notifications, Reward, Referrals, Gamification, Wallet)
|
|
71
|
+
- Merchant (Brand Settings, Points, Analytics, Ledger, Session)
|
|
72
|
+
- Stores (Landing, Wheel, QR Codes, Pixels)
|
|
73
|
+
- Promos (CRUD, Tokens, Time Slots)
|
|
74
|
+
- Membership (Tiers, Benefits, Points, Analytics)
|
|
75
|
+
- Menu (Categories, Items, Variants, Images, Inferred Orders)
|
|
76
|
+
- DIO Menu (Ranking, Quiz, Behavior, Cron)
|
|
77
|
+
- Notifications, Survey, Wallet Passes, Closure Days
|
|
78
|
+
|
|
79
|
+
### Format entry
|
|
80
|
+
|
|
81
|
+
```markdown
|
|
82
|
+
| Code | HTTP | IT Message | Context |
|
|
83
|
+
|------|------|------------|---------|
|
|
84
|
+
| BOOKING_NOT_FOUND | 404 | Prenotazione non trovata | GET/PATCH /api/v1/merchant/booking/:id |
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Error code naming conventions
|
|
88
|
+
|
|
89
|
+
- **UPPER_SNAKE_CASE**
|
|
90
|
+
- Prefix con dominio quando ambiguo: `BOOKING_NOT_FOUND`, `STORE_NOT_FOUND`
|
|
91
|
+
- Senza prefix per codes generici: `MISSING_FIELDS`, `INVALID_HEX_COLOR`, `MERCHANT_MISMATCH` (riusati in più domini)
|
|
92
|
+
- Descrittivi: `NAME_REQUIRED` meglio di `ERR_001`
|
|
93
|
+
|
|
94
|
+
### Riutilizzo error codes
|
|
95
|
+
|
|
96
|
+
**RIUSA** i generic codes esistenti in più domini:
|
|
97
|
+
- `MISSING_FIELDS`, `INVALID_FORMAT`, `MERCHANT_MISMATCH`, `STORE_NOT_FOUND`, `FORBIDDEN`
|
|
98
|
+
|
|
99
|
+
**NON creare duplicati** con prefix non necessari: se `INVALID_HEX_COLOR` esiste in Admin, riusalo in Merchant Brand Settings.
|
|
100
|
+
|
|
101
|
+
### Link dagli endpoint
|
|
102
|
+
|
|
103
|
+
Dal file API:
|
|
104
|
+
```markdown
|
|
105
|
+
**Errors**: BOOKING_NOT_FOUND, BOOKING_CONFLICT ([errors.md](../errors.md#booking---reservations))
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Il link anchor punta alla **domain section**, non al singolo code.
|
|
109
|
+
|
|
110
|
+
### Anchor naming per domain sections
|
|
111
|
+
|
|
112
|
+
Markdownlint genera anchor da heading: tutto lowercase, spazi → `-`, caratteri speciali → rimossi.
|
|
113
|
+
|
|
114
|
+
Esempi:
|
|
115
|
+
- `## Booking — Reservations` → `#booking--reservations`
|
|
116
|
+
- `## Admin Domain` → `#admin-domain`
|
|
117
|
+
- `## Merchant — Staff Management (FEAT-0119/0485/0486)` → `#merchant--staff-management-feat-01190485-0486`
|
|
118
|
+
|
|
119
|
+
**Verifica sempre** l'anchor generato con `grep "^## " docs/references/errors.md` prima di committare.
|
|
120
|
+
|
|
121
|
+
## Workflow estensione in sequenza
|
|
122
|
+
|
|
123
|
+
Quando scrivi un nuovo endpoint che richiede nuovo schema + nuovo error code:
|
|
124
|
+
|
|
125
|
+
1. **Grep** in schemas.md e errors.md (evita duplicati)
|
|
126
|
+
2. **APPEND** schema in schemas.md (sezione dominio)
|
|
127
|
+
3. **APPEND** error codes in errors.md (sezione dominio esistente o nuova)
|
|
128
|
+
4. **Scrivi endpoint** con link ai nuovi anchor
|
|
129
|
+
5. **Verify** link validity: grep gli anchor per confermare che esistono
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: find-skills
|
|
3
|
+
description: Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Find Skills
|
|
7
|
+
|
|
8
|
+
This skill helps you discover and install skills from the open agent skills ecosystem.
|
|
9
|
+
|
|
10
|
+
## When to Use This Skill
|
|
11
|
+
|
|
12
|
+
Use this skill when the user:
|
|
13
|
+
|
|
14
|
+
- Asks "how do I do X" where X might be a common task with an existing skill
|
|
15
|
+
- Says "find a skill for X" or "is there a skill for X"
|
|
16
|
+
- Asks "can you do X" where X is a specialized capability
|
|
17
|
+
- Expresses interest in extending agent capabilities
|
|
18
|
+
- Wants to search for tools, templates, or workflows
|
|
19
|
+
- Mentions they wish they had help with a specific domain (design, testing, deployment, etc.)
|
|
20
|
+
|
|
21
|
+
## What is the Skills CLI?
|
|
22
|
+
|
|
23
|
+
The Skills CLI (`npx skills`) is the package manager for the open agent skills ecosystem. Skills are modular packages that extend agent capabilities with specialized knowledge, workflows, and tools.
|
|
24
|
+
|
|
25
|
+
**Key commands:**
|
|
26
|
+
|
|
27
|
+
- `npx skills find [query]` - Search for skills interactively or by keyword
|
|
28
|
+
- `npx skills add <package>` - Install a skill from GitHub or other sources
|
|
29
|
+
- `npx skills check` - Check for skill updates
|
|
30
|
+
- `npx skills update` - Update all installed skills
|
|
31
|
+
|
|
32
|
+
**Browse skills at:** <https://skills.sh/>
|
|
33
|
+
|
|
34
|
+
## How to Help Users Find Skills
|
|
35
|
+
|
|
36
|
+
### Step 1: Understand What They Need
|
|
37
|
+
|
|
38
|
+
When a user asks for help with something, identify:
|
|
39
|
+
|
|
40
|
+
1. The domain (e.g., React, testing, design, deployment)
|
|
41
|
+
2. The specific task (e.g., writing tests, creating animations, reviewing PRs)
|
|
42
|
+
3. Whether this is a common enough task that a skill likely exists
|
|
43
|
+
|
|
44
|
+
### Step 2: Search for Skills
|
|
45
|
+
|
|
46
|
+
Run the find command with a relevant query:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
npx skills find [query]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
For example:
|
|
53
|
+
|
|
54
|
+
- User asks "how do I make my React app faster?" → `npx skills find react performance`
|
|
55
|
+
- User asks "can you help me with PR reviews?" → `npx skills find pr review`
|
|
56
|
+
- User asks "I need to create a changelog" → `npx skills find changelog`
|
|
57
|
+
|
|
58
|
+
The command will return results like:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
Install with npx skills add <owner/repo@skill>
|
|
62
|
+
|
|
63
|
+
vercel-labs/agent-skills@vercel-react-best-practices
|
|
64
|
+
└ https://skills.sh/vercel-labs/agent-skills/vercel-react-best-practices
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Step 3: Present Options to the User
|
|
68
|
+
|
|
69
|
+
When you find relevant skills, present them to the user with:
|
|
70
|
+
|
|
71
|
+
1. The skill name and what it does
|
|
72
|
+
2. The install command they can run
|
|
73
|
+
3. A link to learn more at skills.sh
|
|
74
|
+
|
|
75
|
+
Example response:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
I found a skill that might help! The "vercel-react-best-practices" skill provides
|
|
79
|
+
React and Next.js performance optimization guidelines from Vercel Engineering.
|
|
80
|
+
|
|
81
|
+
To install it:
|
|
82
|
+
npx skills add vercel-labs/agent-skills@vercel-react-best-practices
|
|
83
|
+
|
|
84
|
+
Learn more: https://skills.sh/vercel-labs/agent-skills/vercel-react-best-practices
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Step 4: Offer to Install
|
|
88
|
+
|
|
89
|
+
If the user wants to proceed, you can install the skill for them:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
npx skills add <owner/repo@skill> -g -y
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
The `-g` flag installs globally (user-level) and `-y` skips confirmation prompts.
|
|
96
|
+
|
|
97
|
+
## Common Skill Categories
|
|
98
|
+
|
|
99
|
+
When searching, consider these common categories:
|
|
100
|
+
|
|
101
|
+
| Category | Example Queries |
|
|
102
|
+
| --------------- | ---------------------------------------- |
|
|
103
|
+
| Web Development | react, nextjs, typescript, css, tailwind |
|
|
104
|
+
| Testing | testing, jest, playwright, e2e |
|
|
105
|
+
| DevOps | deploy, docker, kubernetes, ci-cd |
|
|
106
|
+
| Documentation | docs, readme, changelog, api-docs |
|
|
107
|
+
| Code Quality | review, lint, refactor, best-practices |
|
|
108
|
+
| Design | ui, ux, design-system, accessibility |
|
|
109
|
+
| Productivity | workflow, automation, git |
|
|
110
|
+
|
|
111
|
+
## Tips for Effective Searches
|
|
112
|
+
|
|
113
|
+
1. **Use specific keywords**: "react testing" is better than just "testing"
|
|
114
|
+
2. **Try alternative terms**: If "deploy" doesn't work, try "deployment" or "ci-cd"
|
|
115
|
+
3. **Check popular sources**: Many skills come from `vercel-labs/agent-skills` or `ComposioHQ/awesome-claude-skills`
|
|
116
|
+
|
|
117
|
+
## When No Skills Are Found
|
|
118
|
+
|
|
119
|
+
If no relevant skills exist:
|
|
120
|
+
|
|
121
|
+
1. Acknowledge that no existing skill was found
|
|
122
|
+
2. Offer to help with the task directly using your general capabilities
|
|
123
|
+
3. Suggest the user could create their own skill with `npx skills init`
|
|
124
|
+
|
|
125
|
+
Example:
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
I searched for skills related to "xyz" but didn't find any matches.
|
|
129
|
+
I can still help you with this task directly! Would you like me to proceed?
|
|
130
|
+
|
|
131
|
+
If this is something you do often, you could create your own skill:
|
|
132
|
+
npx skills init my-xyz-skill
|
|
133
|
+
```
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: frontend-design
|
|
3
|
+
description: Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
|
|
4
|
+
license: Complete terms in LICENSE.txt
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
This skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices.
|
|
8
|
+
|
|
9
|
+
## Project Context
|
|
10
|
+
|
|
11
|
+
**Reads from `baldart.config.yml`:** `paths.design_system`, `paths.ui_guidelines`, `identity.design_philosophy`, `stack.charting.canonical`, `stack.animation.canonical`.
|
|
12
|
+
**Gated by features:** `features.has_design_system` (when `true`, the BLOCKING reads in the next section are mandatory; when `false`, fall back to `paths.ui_guidelines` alone — the BOLD aesthetic direction is then driven by `identity.design_philosophy` only).
|
|
13
|
+
**Overlay:** loads `.baldart/overlays/frontend-design.md` if present — project-specific aesthetic mandates, forbidden patterns, illustration-motion contract.
|
|
14
|
+
**On missing/empty keys:** ask the user; do not assume defaults. See `framework/agents/project-context.md` § 3.
|
|
15
|
+
|
|
16
|
+
The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints.
|
|
17
|
+
|
|
18
|
+
## Design Thinking
|
|
19
|
+
|
|
20
|
+
Before coding, understand the context and commit to a BOLD aesthetic direction:
|
|
21
|
+
- **Purpose**: What problem does this interface solve? Who uses it?
|
|
22
|
+
- **Tone**: Pick an extreme: brutally minimal, maximalist chaos, retro-futuristic, organic/natural, luxury/refined, playful/toy-like, editorial/magazine, brutalist/raw, art deco/geometric, soft/pastel, industrial/utilitarian, etc. There are so many flavors to choose from. Use these for inspiration but design one that is true to the aesthetic direction.
|
|
23
|
+
- **Constraints**: Technical requirements (framework, performance, accessibility).
|
|
24
|
+
- **Differentiation**: What makes this UNFORGETTABLE? What's the one thing someone will remember?
|
|
25
|
+
|
|
26
|
+
**CRITICAL**: Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work - the key is intentionality, not intensity.
|
|
27
|
+
|
|
28
|
+
Then implement working code (HTML/CSS/JS, React, Vue, etc.) that is:
|
|
29
|
+
- Production-grade and functional
|
|
30
|
+
- Visually striking and memorable
|
|
31
|
+
- Cohesive with a clear aesthetic point-of-view
|
|
32
|
+
- Meticulously refined in every detail
|
|
33
|
+
|
|
34
|
+
## Frontend Aesthetics Guidelines
|
|
35
|
+
|
|
36
|
+
Focus on:
|
|
37
|
+
- **Typography**: Choose fonts that are beautiful, unique, and interesting. Avoid generic fonts like Arial and Inter; opt instead for distinctive choices that elevate the frontend's aesthetics; unexpected, characterful font choices. Pair a distinctive display font with a refined body font.
|
|
38
|
+
- **Color & Theme**: Commit to a cohesive aesthetic. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid, evenly-distributed palettes.
|
|
39
|
+
- **Motion**: Use animations for effects and micro-interactions. Prioritize CSS-only solutions for HTML. Use Motion library for React when available. Focus on high-impact moments: one well-orchestrated page load with staggered reveals (animation-delay) creates more delight than scattered micro-interactions. Use scroll-triggering and hover states that surprise.
|
|
40
|
+
- **Spatial Composition**: Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Generous negative space OR controlled density.
|
|
41
|
+
- **Backgrounds & Visual Details**: Create atmosphere and depth rather than defaulting to solid colors. Add contextual effects and textures that match the overall aesthetic. Apply creative forms like gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, custom cursors, and grain overlays.
|
|
42
|
+
|
|
43
|
+
NEVER use generic AI-generated aesthetics like overused font families (Inter, Roboto, Arial, system fonts), cliched color schemes (particularly purple gradients on white backgrounds), predictable layouts and component patterns, and cookie-cutter design that lacks context-specific character.
|
|
44
|
+
|
|
45
|
+
Interpret creatively and make unexpected choices that feel genuinely designed for the context. No design should be the same. Vary between light and dark themes, different fonts, different aesthetics. NEVER converge on common choices (Space Grotesk, for example) across generations.
|
|
46
|
+
|
|
47
|
+
**IMPORTANT**: Match implementation complexity to the aesthetic vision. Maximalist designs need elaborate code with extensive animations and effects. Minimalist or refined designs need restraint, precision, and careful attention to spacing, typography, and subtle details. Elegance comes from executing the vision well.
|
|
48
|
+
|
|
49
|
+
Remember: Claude is capable of extraordinary creative work. Don't hold back, show what can truly be created when thinking outside the box and committing fully to a distinctive vision.
|
|
50
|
+
|
|
51
|
+
## MANDATORY Pre-Work Read (project design-system override)
|
|
52
|
+
|
|
53
|
+
When operating inside a repo that ships a design-system SSOT, the generic
|
|
54
|
+
creative guidance above is BLOCKED by the project design-system until the
|
|
55
|
+
reads below are complete. MANDATORY pre-work reads (skipping any of them is
|
|
56
|
+
a protocol violation when the docs exist):
|
|
57
|
+
|
|
58
|
+
1. **MANDATORY / BLOCKING** — `${paths.design_system}/INDEX.md`. Authoritative component index + Canonical Authority Matrix. Discover existing primitives there BEFORE inventing new ones.
|
|
59
|
+
2. **MANDATORY / BLOCKING** — `${paths.design_system}/tokens-reference.md`. Human-readable token contract (colors, spacing, radius, shadows, typography). Never hardcode hex colors, shadow pixel tuples, or border widths not defined in the design-system doc.
|
|
60
|
+
3. **MANDATORY** — `${paths.design_system}/components/<Name>.md` for every primitive in scope, and `${paths.design_system}/patterns/*.md` (overlays, theming, animations, platform quirks) for the pattern involved.
|
|
61
|
+
4. **MANDATORY / BLOCKING** — `${paths.ui_guidelines}`. Brand philosophy, aesthetic rules, SVG rules, accessibility constraints.
|
|
62
|
+
5. **MANDATORY for generated marketing illustrations/videos** — `the project's illustration-motion pattern doc (listed in `.baldart/overlays/frontend-design.md` if present)` (if your project has one). Canonical illustration language, product-variant vocabulary, and surgical element-by-element video prompt contract.
|
|
63
|
+
|
|
64
|
+
Non-negotiable constraints typical of mature design-system SSOTs (adapt to your project):
|
|
65
|
+
|
|
66
|
+
- Token consumption: only via the project's design-token mechanism (e.g. CSS custom properties, Tailwind theme, Stitches tokens). Never hardcode values outside this contract.
|
|
67
|
+
- **Themed-surface text/bg pairing rule (MANDATORY / BLOCKING)** when the design-system defines a primary theme color: any text rendered over the themed primary background MUST pair with the project's theme-primary-text token (e.g. `text-[var(--theme-primary-text,#000)]` on `bg-[var(--theme-primary)]`).
|
|
68
|
+
- Do NOT create new overlay systems if the project already catalogs an overlay decision tree — pick from the existing options.
|
|
69
|
+
- **Chart library (MANDATORY / BLOCKING)** when the project standardizes a chart stack: use only the approved library and the project's wrappers, never call the underlying chart library from feature code. Banned libraries (typical): `chart.js`, `echarts`, `victory`, `visx`, `d3` standalone, `observable-plot`, `tremor`. Exceptions require an ADR.
|
|
70
|
+
|
|
71
|
+
Within those bounds, creative choices (typography nuance, composition, motion intensity) are welcome — but the design-system token contract and themed-surface pairing are non-negotiable.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Prototipi Standalone e Demo
|
|
76
|
+
|
|
77
|
+
Quando il task richiede un prototipo HTML interattivo, demo animata, slide deck, mockup iOS/app, o design exploration **NON legato alla codebase Next.js** (nessun contesto `src/app/`), invocare la skill `huashu-design` in aggiunta o al posto di questa skill. Essa fornisce:
|
|
78
|
+
- App Prototype shell (AppPhone state manager, tappabile, iPhone frame)
|
|
79
|
+
- Tweaks panel per varianti in-page
|
|
80
|
+
- Export animazioni → MP4/GIF (25fps base, 60fps interpolato)
|
|
81
|
+
- 5 flussi × 20 filosofie di design per design exploration
|
|
82
|
+
- Validazione Playwright click-test prima della consegna
|
|
83
|
+
|
|
84
|
+
**Regola del Filesystem (ASSOLUTA):** ogni output HTML/prototipo deve essere scritto su disco con il tool `Write` PRIMA di aprirlo in Safari o condividerlo con l'utente. Non è sufficiente outputtare blocchi di codice inline.
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gamification-design
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: Use when designing or analyzing points systems, reward loops, progression mechanics, engagement features, or loyalty programs. Triggers include "points system," "rewards design," "progression," "engagement loop," "battle pass," "loyalty mechanics," "gamification," or "retention hooks." For B2C customer-facing features in this codebase, this skill invokes the hyper-gamification-designer agent.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Gamification Design
|
|
8
|
+
|
|
9
|
+
Analyze and optimize gamification elements for maximum engagement and retention.
|
|
10
|
+
|
|
11
|
+
## Project Context
|
|
12
|
+
|
|
13
|
+
**Reads from `baldart.config.yml`:** `paths.design_system`, `paths.ui_guidelines`, `identity.audience_segments`, `identity.design_philosophy`, `stack.animation.canonical`.
|
|
14
|
+
**Gated by features:** `features.has_design_system` (when `true`, design-system reads below are BLOCKING; when `false`, fall back to `paths.ui_guidelines` alone), `identity.audience_segments` non-empty (gamification surfaces target a specific segment — usually `customer` — which the user must confirm before any recommendation).
|
|
15
|
+
**Overlay:** loads `.baldart/overlays/gamification-design.md` if present — project-specific reward economy facts (point name, tier ladder, lottery format), motion vocabulary, brand voice register for customer surfaces.
|
|
16
|
+
**On missing/empty keys:** ask the user; do not assume defaults. See `framework/agents/project-context.md` § 3.
|
|
17
|
+
|
|
18
|
+
## When to Use
|
|
19
|
+
|
|
20
|
+
Invoke this skill when working on:
|
|
21
|
+
- Points systems (earning, spending, expiring)
|
|
22
|
+
- Reward mechanics (coupons, discounts, prizes)
|
|
23
|
+
- Progression systems (tiers, levels, badges)
|
|
24
|
+
- Engagement loops (streaks, daily rewards, challenges)
|
|
25
|
+
- Loyalty mechanics (membership, VIP status)
|
|
26
|
+
- Social features (referrals, leaderboards, sharing)
|
|
27
|
+
- Retention mechanics (notifications, reminders)
|
|
28
|
+
|
|
29
|
+
## MANDATORY Design System Reads (BLOCKING before any visual recommendation)
|
|
30
|
+
|
|
31
|
+
Gamification features are typically customer-facing — their visual expression MUST conform to the project design-system SSOT (when one exists). The reads below are BLOCKING when `features.has_design_system: true`. Skipping any of them in that case is a protocol violation.
|
|
32
|
+
|
|
33
|
+
1. **MANDATORY / BLOCKING** — `${paths.design_system}/INDEX.md`. Component index and Canonical Authority Matrix. Entry point.
|
|
34
|
+
2. **MANDATORY / BLOCKING** — `${paths.design_system}/areas/<customer-segment>.md` (segment name comes from `identity.audience_segments` — typically `customer`). Surface guidance for badges, progress bars, reward cards, lottery tickets, etc.
|
|
35
|
+
3. **MANDATORY / BLOCKING** — the project's motion patterns doc (typically `${paths.design_system}/patterns/animations.md`; exact path listed in `.baldart/overlays/gamification-design.md`). Approved motion patterns (confetti, level-ups, wheel spin, progress pulses) must be specified against this registry.
|
|
36
|
+
4. **MANDATORY** — `${paths.design_system}/tokens-reference.md`. Colors, spacing, radii, shadows. Never invent new palettes that bypass this token contract.
|
|
37
|
+
5. **MANDATORY** — `${paths.ui_guidelines}` (brand voice + interaction-state sections). The project's brand voice pillars are listed in `.baldart/overlays/gamification-design.md` if it overrides the defaults.
|
|
38
|
+
|
|
39
|
+
If `stack.animation.canonical` is set, motion recommendations target those libraries.
|
|
40
|
+
|
|
41
|
+
Do NOT invent new color palettes, shadow recipes, or token names for gamification elements. Re-use the existing semantic tokens and component primitives defined in the design-system SSOT.
|
|
42
|
+
|
|
43
|
+
## Agent Delegation
|
|
44
|
+
|
|
45
|
+
This skill delegates to the `hyper-gamification-designer` agent for comprehensive analysis.
|
|
46
|
+
|
|
47
|
+
**To invoke the agent**, use the Task tool:
|
|
48
|
+
```
|
|
49
|
+
Task tool:
|
|
50
|
+
- subagent_type: hyper-gamification-designer
|
|
51
|
+
- prompt: [Feature description with details below]
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Required Context for Analysis
|
|
55
|
+
|
|
56
|
+
Provide the agent with:
|
|
57
|
+
|
|
58
|
+
1. **Feature Name**: What you're building/analyzing
|
|
59
|
+
2. **Target Behavior**: What users should do repeatedly
|
|
60
|
+
3. **Core Action**: The repeatable action (e.g., "scan receipt", "visit store")
|
|
61
|
+
4. **Reward Structure**: How users are rewarded
|
|
62
|
+
5. **Progression**: How users advance/progress
|
|
63
|
+
6. **Economy**: Points, tokens, currencies involved
|
|
64
|
+
7. **Social Elements**: Referrals, leaderboards, sharing (if any)
|
|
65
|
+
8. **Current KPI Concerns**: Drop-off points, churn, conversion issues
|
|
66
|
+
|
|
67
|
+
## Agent Output
|
|
68
|
+
|
|
69
|
+
The `hyper-gamification-designer` agent provides:
|
|
70
|
+
|
|
71
|
+
### A) TL;DR Verdict
|
|
72
|
+
- What works
|
|
73
|
+
- What is broken/weak
|
|
74
|
+
- Single highest-leverage change
|
|
75
|
+
|
|
76
|
+
### B) Gamification Scorecard (0-10)
|
|
77
|
+
| Dimension | Score | Notes |
|
|
78
|
+
|-----------|-------|-------|
|
|
79
|
+
| Core loop clarity | | |
|
|
80
|
+
| Reward design | | |
|
|
81
|
+
| Progression pacing | | |
|
|
82
|
+
| Meaningful goals | | |
|
|
83
|
+
| Social stickiness | | |
|
|
84
|
+
| Economy balance | | |
|
|
85
|
+
| Retention hooks | | |
|
|
86
|
+
| Agency & choice | | |
|
|
87
|
+
| Fairness | | |
|
|
88
|
+
| Ethical safety | | |
|
|
89
|
+
|
|
90
|
+
### C) MDA Map
|
|
91
|
+
- Mechanics: Concrete rules/systems
|
|
92
|
+
- Dynamics: Emerging behaviors
|
|
93
|
+
- Aesthetics: Player feelings
|
|
94
|
+
|
|
95
|
+
### D) Failure Modes
|
|
96
|
+
- Exploit vectors
|
|
97
|
+
- Churn triggers
|
|
98
|
+
- Pay-to-win risks
|
|
99
|
+
|
|
100
|
+
### E) Prioritized Improvements
|
|
101
|
+
| # | Change | Rationale | Complexity | KPI Impact |
|
|
102
|
+
|---|--------|-----------|------------|------------|
|
|
103
|
+
|
|
104
|
+
### F) Validation Plan
|
|
105
|
+
- Events to track
|
|
106
|
+
- Funnels/cohorts
|
|
107
|
+
- A/B test design
|
|
108
|
+
|
|
109
|
+
### G) Ethical Check
|
|
110
|
+
- Dark patterns detected
|
|
111
|
+
- Risk level
|
|
112
|
+
- Safer alternatives
|
|
113
|
+
|
|
114
|
+
## Quick Self-Check
|
|
115
|
+
|
|
116
|
+
Before invoking the agent, verify you have:
|
|
117
|
+
- [ ] Clear description of the feature
|
|
118
|
+
- [ ] Target user behavior defined
|
|
119
|
+
- [ ] Reward/progression structure outlined
|
|
120
|
+
- [ ] Any current metrics or concerns noted
|
|
121
|
+
|
|
122
|
+
## Related Skills
|
|
123
|
+
|
|
124
|
+
- `prd-planning`: For full PRD with gamification section
|
|
125
|
+
- `copywriting`: For reward/achievement messaging
|
|
126
|
+
- `ui-ux-pro-max`: For gamification UI patterns
|
|
127
|
+
|
|
128
|
+
## Project Integration
|
|
129
|
+
|
|
130
|
+
In this codebase, the `prd` agent automatically invokes `hyper-gamification-designer` for B2C features touching gamification areas. This skill provides direct access for standalone analysis.
|