[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D1RF1JW8RQRFQWK9ZDC37T":3,"skill-same:01M6D1RF1JW8RQRFQWK9ZDC37T":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":46,"ownerHtmlUrl":47,"ownerBlogUrl":46,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M6D1RF1JW8RQRFQWK9ZDC37T","brainstorm-erd",null,"docs\u002Fplan\u002FERD.md: the data model before anyone writes a migration: entities from the requirements, fields with types, nullability, defaults and constraints, relationships and their cardinality, keys, indexes from the queries the screens need, deletion and history rules, a Mermaid erDiagram, and the migration order. Read when planning anything that stores data.","enowdev\u002Fenowxcli","enowdev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F179420349?v=4","01M6D1MVX2KC0X3Z9NESE7P22K","Enow Dev.","01M6D1MW1FMZGBDKWAJY4GQX81",67,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fbrainstorm-erd\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"brainstorm erd","brainstorm","Rules","requirements","relationships","indexes","queries","migration","read","docs","history","model","plan","constraints","data","planning","mermaid","2026-11-10 10:12:30",false,"---\nname: brainstorm-erd\ndescription: \"docs\u002Fplan\u002FERD.md: the data model before anyone writes a migration: entities from the requirements, fields with types, nullability, defaults and constraints, relationships and their cardinality, keys, indexes from the queries the screens need, deletion and history rules, a Mermaid erDiagram, and the migration order. Read when planning anything that stores data.\"\n---\n\n# ERD.md: the data, agreed before the schema is written\n\nThe database agent writes the schema, the backend reads it, and the\nfrontend shows it. When nobody fixed the model first, the backend queries\n`user_id` while the migration made `customer_id`, money is a float in one\nplace and cents in another, and the one query the catalogue runs on every\nvisit has no index. This document is where the entities, their fields and\ntheir relations are decided once, from the requirements.\n\n## 1. The template\n\n````markdown\n# Data model\n\nDatabase: Postgres 16. Conventions: snake_case; ids uuid (v7) unless noted;\ncreated_at \u002F updated_at timestamptz on every table; money as integer minor\nunits with a currency code.\n\n```mermaid\nerDiagram\n    CATEGORY ||--o{ PRODUCT : groups\n    PRODUCT ||--o{ ORDER_ITEM : \"sold as\"\n    ORDER ||--|{ ORDER_ITEM : contains\n    CUSTOMER ||--o{ ORDER : places\n```\n\n## product\n| Field | Type | Null | Default | Notes |\n|---|---|---|---|---|\n| id | uuid | no | uuid v7 | primary key |\n| category_id | uuid | no | | → category.id, on delete restrict |\n| slug | text | no | | unique; used in URLs |\n| name | text | no | | |\n| price_minor | integer | no | | ≥ 0 |\n| currency | char(3) | no | 'IDR' | ISO 4217 |\n| stock | integer | no | 0 | ≥ 0 |\n| archived_at | timestamptz | yes | | set instead of deleting |\n\nIndexes: (category_id, created_at desc) for the catalogue page; unique (slug).\n\n## Relationships\n- A category has many products; a product has one category (required).\n- An order has one or more items; an item copies the product's name and price at the time of sale.\n\n## Rules\n- Products are archived, not deleted: past orders keep pointing at them.\n- Order items keep price_minor and name as sold; changing a product never changes a past order.\n\n## Migrations (order)\n1. category 2. product 3. customer 4. order 5. order_item\n## Seed\n- 6 categories, 24 products: placeholders, listed in db\u002Fseed.ts.\n````\n\n## 2. From requirements to entities\n\n- Read `PRD.md` and `DESIGN.md`: every noun a user creates, sees in a\n  list, or refers to later is a candidate entity (product, order,\n  booking). Every adjective that filters a list is a field or a relation\n  (category, status, date).\n- Keep the first version's model to what the Must requirements need. A\n  field \"for later\" is a migration later.\n- Name things as the user does, in English, singular table names or the\n  project's existing convention; the same name then appears in `API.md`\n  and the types.\n\n## 3. Fields\n\n- **Types that fit**: `text` for strings unless a limit is a rule;\n  `integer` minor units for money, never floats; `timestamptz` for moments,\n  `date` for calendar days; `boolean` only for real two-state facts (a\n  status with a future third value is an enum or text with a check).\n- **Null means unknown or not applicable**, decided per field. Required\n  fields are `not null` with a default only when there is a true default.\n- **Constraints carry the rules**: unique, check (`price_minor >= 0`),\n  foreign keys with an explicit on-delete (restrict, cascade for owned\n  children, set null for optional links).\n- **Enums** as text with a check, or the database's enum type when the\n  project uses them; list the values.\n\n## 4. Relationships and keys\n\n- Cardinality in words and in the diagram (`||--o{` one to zero or many,\n  `||--|{` one to one or many, `}o--o{` many to many through a join\n  table).\n- Many-to-many always gets its own table with both keys and anything that\n  belongs to the link (a quantity, a role, a date).\n- Keys: uuid (v7 sorts by time) or bigint identity; slugs or codes for\n  public URLs, never the internal id when guessing it would expose data.\n- Multi-tenant data carries the tenant key on every table that needs\n  isolation, and every index starts with it.\n\n## 5. Indexes from the queries\n\nList the queries the screens run (from `DESIGN.md`'s screens and the API\nroutes) and give each an index that serves it: filter columns first, then\nthe sort. No index without a query that needs it.\n\n## 6. History and deletion\n\nSay, per entity, whether rows are deleted, archived (`archived_at`) or\nnever removed, and what a record copies at the moment it is made (an order\nitem's price). Personal data: what is stored, why, and how a user's data\nis removed when they ask.\n\n## 7. The Mermaid diagram\n\nEntity names in capitals, relationship labels in quotes when they have\nspaces, one line per relation. Keep attributes in the tables below the\ndiagram rather than in it: the tables are what the database agent reads.\n\n## Check it\n\n- Every entity traces to a requirement; every Must requirement's data has\n  a home.\n- Money, dates and ids follow `ARCHITECTURE.md`'s conventions.\n- Every foreign key has an on-delete; every list the screens show has an\n  index.\n- The names match `API.md` and the shared types.\n\n## Avoid\n\nFloats for money; nullable everything; many-to-many without a join table;\nindexes on every column; fields \"for later\"; deleting rows that other\nrecords point at; a diagram that disagrees with the tables.\n","# ERD.md: the data, agreed before the schema is written\n\nThe database agent writes the schema, the backend reads it, and the\nfrontend shows it. When nobody fixed the model first, the backend queries\n`user_id` while the migration made `customer_id`, money is a float in one\nplace and cents in another, and the one query the catalogue runs on every\nvisit has no index. This document is where the entities, their fields and\ntheir relations are decided once, from the requirements.\n\n## 1. The template\n\n````markdown\n# Data model\n\nDatabase: Postgres 16. Conventions: snake_case; ids uuid (v7) unless noted;\ncreated_at \u002F updated_at timestamptz on every table; money as integer minor\nunits with a currency code.\n\n```mermaid\nerDiagram\n    CATEGORY ||--o{ PRODUCT : groups\n    PRODUCT ||--o{ ORDER_ITEM : \"sold as\"\n    ORDER ||--|{ ORDER_ITEM : contains\n    CUSTOMER ||--o{ ORDER : places\n```\n\n## product\n| Field | Type | Null | Default | Notes |\n|---|---|---|---|---|\n| id | uuid | no | uuid v7 | primary key |\n| category_id | uuid | no | | → category.id, on delete restrict |\n| slug | text | no | | unique; used in URLs |\n| name | text | no | | |\n| price_minor | integer | no | | ≥ 0 |\n| currency | char(3) | no | 'IDR' | ISO 4217 |\n| stock | integer | no | 0 | ≥ 0 |\n| archived_at | timestamptz | yes | | set instead of deleting |\n\nIndexes: (category_id, created_at desc) for the catalogue page; unique (slug).\n\n## Relationships\n- A category has many products; a product has one category (required).\n- An order has one or more items; an item copies the product's name and price at the time of sale.\n\n## Rules\n- Products are archived, not deleted: past orders keep pointing at them.\n- Order items keep price_minor and name as sold; changing a product never changes a past order.\n\n## Migrations (order)\n1. category 2. product 3. customer 4. order 5. order_item\n## Seed\n- 6 categories, 24 products: placeholders, listed in db\u002Fseed.ts.\n````\n\n## 2. From requirements to entities\n\n- Read `PRD.md` and `DESIGN.md`: every noun a user creates, sees in a\n  list, or refers to later is a candidate entity (product, order,\n  booking). Every adjective that filters a list is a field or a relation\n  (category, status, date).\n- Keep the first version's model to what the Must requirements need. A\n  field \"for later\" is a migration later.\n- Name things as the user does, in English, singular table names or the\n  project's existing convention; the same name then appears in `API.md`\n  and the types.\n\n## 3. Fields\n\n- **Types that fit**: `text` for strings unless a limit is a rule;\n  `integer` minor units for money, never floats; `timestamptz` for moments,\n  `date` for calendar days; `boolean` only for real two-state facts (a\n  status with a future third value is an enum or text with a check).\n- **Null means unknown or not applicable**, decided per field. Required\n  fields are `not null` with a default only when there is a true default.\n- **Constraints carry the rules**: unique, check (`price_minor >= 0`),\n  foreign keys with an explicit on-delete (restrict, cascade for owned\n  children, set null for optional links).\n- **Enums** as text with a check, or the database's enum type when the\n  project uses them; list the values.\n\n## 4. Relationships and keys\n\n- Cardinality in words and in the diagram (`||--o{` one to zero or many,\n  `||--|{` one to one or many, `}o--o{` many to many through a join\n  table).\n- Many-to-many always gets its own table with both keys and anything that\n  belongs to the link (a quantity, a role, a date).\n- Keys: uuid (v7 sorts by time) or bigint identity; slugs or codes for\n  public URLs, never the internal id when guessing it would expose data.\n- Multi-tenant data carries the tenant key on every table that needs\n  isolation, and every index starts with it.\n\n## 5. Indexes from the queries\n\nList the queries the screens run (from `DESIGN.md`'s screens and the API\nroutes) and give each an index that serves it: filter columns first, then\nthe sort. No index without a query that needs it.\n\n## 6. History and deletion\n\nSay, per entity, whether rows are deleted, archived (`archived_at`) or\nnever removed, and what a record copies at the moment it is made (an order\nitem's price). Personal data: what is stored, why, and how a user's data\nis removed when they ask.\n\n## 7. The Mermaid diagram\n\nEntity names in capitals, relationship labels in quotes when they have\nspaces, one line per relation. Keep attributes in the tables below the\ndiagram rather than in it: the tables are what the database agent reads.\n\n## Check it\n\n- Every entity traces to a requirement; every Must requirement's data has\n  a home.\n- Money, dates and ids follow `ARCHITECTURE.md`'s conventions.\n- Every foreign key has an on-delete; every list the screens show has an\n  index.\n- The names match `API.md` and the shared types.\n\n## Avoid\n\nFloats for money; nullable everything; many-to-many without a join table;\nindexes on every column; fields \"for later\"; deleting rows that other\nrecords point at; a diagram that disagrees with the tables.\n",{"name":5,"description":7},"main","38293fe1b096e6bf3646c7344c38786ed688f464","crates\u002Fenowx-core\u002Fskills\u002Fbrainstorm-erd",21,"https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli","https:\u002F\u002Fenowx.ai","https:\u002F\u002Fgithub.com\u002Fenowdev","Pretending to be a Developer","2026-10-06 02:05:35",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add enowdev\u002Fenowxcli --skill brainstorm-erd",{"tool":56,"command":57},"bunx","bunx skills add enowdev\u002Fenowxcli --skill brainstorm-erd",{"tool":59,"command":60},"pnpm","pnpm dlx skills add enowdev\u002Fenowxcli --skill brainstorm-erd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fbrainstorm-erd\u002FSKILL.md",true,[],[65,76,93,106,127,146],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":36},"01M6D2HQYSQD9N7MTNDT4A7CBM","demo-skill","Project-scope demo skill for tests.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fworkspace\u002F.agents\u002Fskills\u002Fdemo-skill\u002FSKILL.md",[],[72,73,74,75,27],"demo skill","demo","tests","project",{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":36},"01M6D2HM0GCPM0TM2HPG9HHR2R","writing","Writing words people read: the specific thing instead of claims, words to drop, sentences, interface copy (buttons, labels, errors, empty states, confirmations), page copy, notifications and emails, alt text and link text, numbers and dates, words that translate well, documentation and voice. Read before writing a page's copy, an interface's text or a document.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fwriting\u002FSKILL.md",[],[78,83,84,85,86,87,27,88,89,90,91,92],"text","emails","empty","drop","document","page","voice","notifications","documentation","translate",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":36},"01M6D2HG07YS49NM196Q0R3AZ8","ui","Designing or restyling an interface: direction, layout, type, colour, icons, components, states, responsive behaviour. Read before building a page, a screen or a set of components.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui\u002FSKILL.md",[],[95,100,101,102,103,88,104,27,105],"icons","components","SET","responsive","layout","before building",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":36},"01M6D2HB59HZHWG1RYZDV4SJ91","ui-themes","Light and dark themes, and colour that holds in both: tokens with a value per theme, and what each kind of content needs to stay visible (icons, SVG drawings and line art, logos, photos, screenshots, charts, code, maps, borders, shadows, focus, form controls), switching without a flash, and checking both. Read before building a second theme or a theme toggle, and before any drawing, logo or chart on a page that has two themes.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-themes\u002FSKILL.md",[],[95,113,114,115,116,117,118,119,120,27,105,121,88,122,123,124,100,125,126],"ui themes","switching","photos","tokens","drawing","focus","maps","Art","flash","code","Charts","content","screenshots","logo",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":36},"01M6D2H5R5KRAE524C8QX0T7Q0","ui-structure","Structure before styling: the blueprint written before any interface code (the screen's job, the regions its kind of page needs, their order and why, the layout skeleton in numbers, the components and their states), the anatomy and order of a homepage, a dashboard, a list, a detail page, settings, a form, sign-in, pricing, docs, an article and a checkout, and how to turn the blueprint into code (tokens, layout primitives, components, sections, page). Read first, before building or rebuilding any page or screen.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-structure\u002FSKILL.md",[],[134,95,135,101,136,137,122,138,139,140,104,116,141,142,143,27,105,88,144,145],"structure","ui structure","pricing","dashboard","Blueprint","article","anatomy","styling","primitives","list","why","how",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":36},"01M6D2H0ZZBJG77MBGPZHA6MWD","ui-stack-vue","Building interfaces in Vue 3 and Nuxt: project layout, script setup with typed defineProps, defineEmits and defineModel, attribute fallthrough, slots and scoped slots, template refs, ref, reactive and computed, watch versus watchEffect, composables and VueUse, provide and inject, Pinia, keyed v-for, transitions, Nuxt 4 (app directory, pages, layouts, useFetch and useAsyncData keys, $fetch in handlers, server routes, runtime config, useSeoMeta, NuxtImg, middleware), VeeValidate forms, Reka UI and Nuxt UI, testing, vue-tsc, and the traps. Read when the project uses Vue or Nuxt.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-stack-vue\u002FSKILL.md",[],[95,153,154,155,156,157,158,159,104,75,160,161,27,162,163,164,165,166,167,168],"vue","stack","ui stack vue","forms","pages","watch","runtime","transitions","fetch","pinia","nuxt","template","server","config","directory","testing"]