[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D1V1CVYAVRDQC2Z3MHEXBZ":3,"skill-same:01M6D1V1CVYAVRDQC2Z3MHEXBZ":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},"01M6D1V1CVYAVRDQC2Z3MHEXBZ","database",null,"Designing and changing databases: modelling data so it stays true, constraints, migrations safe to run on live data, queries and indexes, transactions and concurrency, each engine's specifics, and running it. The principles, the defaults, and which skill holds each. Read before any schema, migration or query work.","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\u002Fdatabase\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"read","live","query","indexes","migrations","queries","databases","migration","schema","safe","work","engine","transactions","constraints","concurrency","data","run","2026-11-10 10:12:30",false,"---\nname: database\ndescription: \"Designing and changing databases: modelling data so it stays true, constraints, migrations safe to run on live data, queries and indexes, transactions and concurrency, each engine's specifics, and running it. The principles, the defaults, and which skill holds each. Read before any schema, migration or query work.\"\n---\n\n# Databases\n\nThe generated version: no constraints because the app validates, prices in\nfloats, timestamps without a time zone, a migration that rewrites a large\ntable at noon and blocks every write while it runs, `SELECT *` inside a loop,\nan index on every column and none on the one the slow query filters, backups\nthat have never been restored. This skill is the frame the rest hangs on: how\nto read the project, the principles, the defaults, when each engine fits, and\nwhich skill holds the detail. Data access from server code (money, time, ids,\nrace-free writes) is summarised in `backend-data`; this family goes deeper.\n\n## 1. Read the project before changing anything\n\n- **Engine and version**: `SELECT version();` (Postgres),\n  `SELECT VERSION();` (MySQL), `select sqlite_version();`, `db.version()`\n  (MongoDB), the image tag in `docker-compose.yml`, the provider in the\n  infrastructure code. Which migrations are safe, and which features exist,\n  depend on the version.\n- **Access layer**: the ORM or query builder and where the models live\n  (`schema.prisma`, Drizzle schema files, SQLAlchemy models, Django\n  `models.py`, ActiveRecord, Eloquent, sqlx, GORM, Ent, EF Core). Write in\n  that layer; raw SQL where it cannot express the query, still parameterised.\n- **Migration tool and history**: the folder, the naming, the last few\n  migrations, SQL or code, and the current state (`prisma migrate status`,\n  `alembic current`, `python manage.py showmigrations`,\n  `bin\u002Frails db:migrate:status`, `php artisan migrate:status`,\n  `sqlx migrate info`, `goose status`, `flyway info`).\n- **Conventions in the schema**: plural or singular tables, the id type,\n  timestamp columns, soft deletes, the tenant column, how constraints and\n  indexes are named. Follow them even where this family would choose\n  otherwise, unless the task is to change them.\n- **Seeds, fixtures and tests**: where seed data lives, how tests get a\n  database (a container, a template file, a transaction rolled back per\n  test), and the connection config (`DATABASE_URL`, pool size, SSL mode, a\n  pooler in front).\n- **The load**, when you have access: table sizes and the hot queries\n  (`pg_stat_user_tables`, `pg_stat_statements`, the MySQL slow log). A\n  migration that is instant on 1,000 rows can block writes on 50 million.\n\n## 2. Principles\n\n1. **The database enforces what must always be true.** NOT NULL, foreign\n   keys, UNIQUE and CHECK hold for every writer: two app versions during a\n   deploy, a script, a backfill, an admin console, next year's service.\n   Validation in the app gives friendly messages; the constraint keeps the\n   data true.\n2. **Model the domain, then test the model against its queries.** Tables\n   come from the things the business names and their lifecycle; the list of\n   screens, reports and jobs says whether the shape answers them cheaply.\n3. **Migrations are code**: versioned, reviewed, one concern each,\n   reversible or saying why not, tried on a copy first, never edited once\n   applied anywhere shared.\n4. **Measure before tuning.** `EXPLAIN (ANALYZE, BUFFERS)` (or the engine's\n   equivalent) before and after an index or a rewrite. An index no plan uses\n   is only a cost on every write.\n5. **Short transactions**: locks held for milliseconds, never across a\n   network call or a user's think time.\n6. **Least privilege**: the app's role reads and writes rows and cannot\n   alter the schema; migrations run as the owner; no app runs as superuser.\n7. **A backup exists once a restore from it has been done and timed.**\n\n## 3. Choosing an engine (only when the project has none)\n\n| Situation | Choose |\n|---|---|\n| A new web app or service; relations, money, reporting | PostgreSQL 17 or 18 |\n| Local-first, desktop, mobile, CLI, embedded, a small single-server app | SQLite |\n| The team or host already runs MySQL; Vitess or PlanetScale scale-out | MySQL 8.4 LTS or MariaDB |\n| Documents read and written whole, shape varies per record, an Atlas estate | MongoDB |\n| Cache, rate limits, sessions, leaderboards | Redis or Valkey beside the main database |\n| Analytics over billions of rows | ClickHouse, DuckDB or a warehouse, fed from the primary |\n\n- PostgreSQL by default: strict types, transactional DDL, many index kinds,\n  `jsonb` when a shape truly varies, extensions (full text, trigrams,\n  vectors, geography), and every host offers it.\n- Do not add a second database for what Postgres covers at the project's\n  size: `jsonb` before a document store, full text and `pg_trgm` before a\n  search engine, pgvector before a vector database up to a few million\n  vectors, a `SKIP LOCKED` table before a message broker.\n- A cache is never the source of truth: it can be dropped and rebuilt.\n\n## 4. Defaults (the detail is in the skill named)\n\n- Primary keys `bigint generated always as identity`; UUIDv7 when ids are\n  made outside the database or appear in URLs (`database-schema`).\n- Money as integer minor units beside a currency code, `numeric` for rates;\n  instants as `timestamptz` in UTC; calendar dates as `date`.\n- NOT NULL unless empty means something; every reference a foreign key with\n  a chosen ON DELETE, and an index on the referencing column.\n- snake_case names; every constraint and index named.\n- Live migrations by expand and contract, with `lock_timeout` set, indexes\n  built concurrently, backfills in batches outside the migration\n  (`database-migrations`).\n- Queries parameterised, only the needed columns, keyset pagination for long\n  lists, no query inside a loop (`database-queries`).\n- Races settled by conditional updates, unique constraints or row locks,\n  never by reading, deciding in code, then writing (`database-transactions`).\n- Postgres with `pg_stat_statements` on, `statement_timeout` and\n  `idle_in_transaction_session_timeout` on the app role, a pooler when\n  connections are many (`database-postgres`).\n- SQLite with WAL, `busy_timeout`, `foreign_keys=ON` and STRICT tables\n  (`database-sqlite`).\n- Automated, encrypted, off-site backups with a restore tested on a schedule\n  (`database-operations`).\n\n## 5. How a change is made\n\n1. Write down the change and the queries it must serve.\n2. Read the real schema from the database (`\\d+ orders` in psql,\n   `SHOW CREATE TABLE orders`, `.schema orders` in sqlite3), not only the\n   model files, which drift.\n3. Generate the migration with the project's tool and read the SQL it will\n   run (`prisma migrate dev --create-only`, `python manage.py sqlmigrate app\n   0042`, `alembic upgrade head --sql`). Fix what the generator got wrong: a\n   rename done as drop and add, a missing `CONCURRENTLY`, a default that\n   rewrites the table.\n4. Classify it: additive and instant, additive but slow (an index, a\n   validation, a backfill), or destructive (drop, type change, rename). Slow\n   and destructive ones follow `database-migrations`.\n5. Change the models, queries, seeds and factories that touch it in the same\n   change.\n6. Run it up, down and up on a scratch database; run the tests; `EXPLAIN`\n   the queries it was for.\n7. Report what changed, what it locks and for how long on production-sized\n   data where known, and anything destructive, before it runs anywhere\n   shared.\n\n## 6. Definition of done\n\n- The migration applies to an empty database and to one at the previous\n  version, and rolls back, or the report says why it cannot.\n- Each new constraint refuses a bad row with the expected error (Postgres:\n  `23502` not null, `23503` foreign key, `23505` unique, `23514` check,\n  `23P01` exclusion).\n- The affected queries return the right rows, edge cases included (NULLs,\n  empty results, both ends of a date range), with a plan that uses the\n  intended index at realistic sizes.\n- Seeds and factories are updated and a seed still runs twice cleanly.\n- Nothing dropped, truncated or rewritten without saying so, and a backup\n  taken before anything destructive.\n- Tests pass against the same engine and major version as production.\n\n## 7. Which skill for which job\n\n| Job | Skill |\n|---|---|\n| Principles, defaults, choosing an engine, this map | `database` |\n| Tables, keys, types, constraints, naming, soft deletes, tenants, trees, history | `database-schema` |\n| Changing a live schema: tools, expand and contract, locks, backfills | `database-migrations` |\n| Correct and fast SQL, N+1, pagination, EXPLAIN, ORM habits | `database-queries` |\n| Which index, column order, partial, GIN, BRIN, unused ones, building live | `database-indexes` |\n| Isolation, lost updates, row locks, SKIP LOCKED, retries, idempotency | `database-transactions` |\n| PostgreSQL types, extensions, RLS, vacuum, pooling, roles, config | `database-postgres` |\n| MySQL and MariaDB: InnoDB, collations, online DDL, gap locks, replicas | `database-mysql` |\n| SQLite: pragmas, one writer, STRICT, backups, Litestream, tests | `database-sqlite` |\n| MongoDB: documents by access pattern, ESR indexes, pipelines, concerns | `database-mongodb` |\n| Backups and restores, replicas, monitoring, upgrades, security, retention | `database-operations` |\n| The short version for server code | `backend-data` |\n\nRead the ones for the parts you touch, when you come to them.\n\n## Check it\n\n- The migration folder has one new file per change and no edits to applied\n  ones (`git diff --stat` on it).\n- On a scratch database: apply, roll back, apply; a schema dump afterwards\n  equals the old one plus the change (`pg_dump --schema-only`,\n  `mysqldump --no-data`, `sqlite3 app.db .schema`).\n- Each new constraint tried with a row that breaks it; each new or changed\n  query run with `EXPLAIN (ANALYZE, BUFFERS)` against realistic row counts.\n- The test suite green against the real engine; the seed run twice.\n- The report says plainly what could not be run: no production-sized copy,\n  no access to the managed instance, no restore performed.\n\n## Avoid\n\nRules kept only in application code; floats for money; `timestamp` without a\nzone; `varchar(255)` on every column by habit; editing a migration that\nalready ran; `ALTER TABLE` on a large table with no `lock_timeout`; an index\nno `EXPLAIN` asked for; a transaction held open across an HTTP call; the app\nconnecting as superuser; a second database for what Postgres already does;\nproduction data copied to a laptop; a backup that was never restored.\n","# Databases\n\nThe generated version: no constraints because the app validates, prices in\nfloats, timestamps without a time zone, a migration that rewrites a large\ntable at noon and blocks every write while it runs, `SELECT *` inside a loop,\nan index on every column and none on the one the slow query filters, backups\nthat have never been restored. This skill is the frame the rest hangs on: how\nto read the project, the principles, the defaults, when each engine fits, and\nwhich skill holds the detail. Data access from server code (money, time, ids,\nrace-free writes) is summarised in `backend-data`; this family goes deeper.\n\n## 1. Read the project before changing anything\n\n- **Engine and version**: `SELECT version();` (Postgres),\n  `SELECT VERSION();` (MySQL), `select sqlite_version();`, `db.version()`\n  (MongoDB), the image tag in `docker-compose.yml`, the provider in the\n  infrastructure code. Which migrations are safe, and which features exist,\n  depend on the version.\n- **Access layer**: the ORM or query builder and where the models live\n  (`schema.prisma`, Drizzle schema files, SQLAlchemy models, Django\n  `models.py`, ActiveRecord, Eloquent, sqlx, GORM, Ent, EF Core). Write in\n  that layer; raw SQL where it cannot express the query, still parameterised.\n- **Migration tool and history**: the folder, the naming, the last few\n  migrations, SQL or code, and the current state (`prisma migrate status`,\n  `alembic current`, `python manage.py showmigrations`,\n  `bin\u002Frails db:migrate:status`, `php artisan migrate:status`,\n  `sqlx migrate info`, `goose status`, `flyway info`).\n- **Conventions in the schema**: plural or singular tables, the id type,\n  timestamp columns, soft deletes, the tenant column, how constraints and\n  indexes are named. Follow them even where this family would choose\n  otherwise, unless the task is to change them.\n- **Seeds, fixtures and tests**: where seed data lives, how tests get a\n  database (a container, a template file, a transaction rolled back per\n  test), and the connection config (`DATABASE_URL`, pool size, SSL mode, a\n  pooler in front).\n- **The load**, when you have access: table sizes and the hot queries\n  (`pg_stat_user_tables`, `pg_stat_statements`, the MySQL slow log). A\n  migration that is instant on 1,000 rows can block writes on 50 million.\n\n## 2. Principles\n\n1. **The database enforces what must always be true.** NOT NULL, foreign\n   keys, UNIQUE and CHECK hold for every writer: two app versions during a\n   deploy, a script, a backfill, an admin console, next year's service.\n   Validation in the app gives friendly messages; the constraint keeps the\n   data true.\n2. **Model the domain, then test the model against its queries.** Tables\n   come from the things the business names and their lifecycle; the list of\n   screens, reports and jobs says whether the shape answers them cheaply.\n3. **Migrations are code**: versioned, reviewed, one concern each,\n   reversible or saying why not, tried on a copy first, never edited once\n   applied anywhere shared.\n4. **Measure before tuning.** `EXPLAIN (ANALYZE, BUFFERS)` (or the engine's\n   equivalent) before and after an index or a rewrite. An index no plan uses\n   is only a cost on every write.\n5. **Short transactions**: locks held for milliseconds, never across a\n   network call or a user's think time.\n6. **Least privilege**: the app's role reads and writes rows and cannot\n   alter the schema; migrations run as the owner; no app runs as superuser.\n7. **A backup exists once a restore from it has been done and timed.**\n\n## 3. Choosing an engine (only when the project has none)\n\n| Situation | Choose |\n|---|---|\n| A new web app or service; relations, money, reporting | PostgreSQL 17 or 18 |\n| Local-first, desktop, mobile, CLI, embedded, a small single-server app | SQLite |\n| The team or host already runs MySQL; Vitess or PlanetScale scale-out | MySQL 8.4 LTS or MariaDB |\n| Documents read and written whole, shape varies per record, an Atlas estate | MongoDB |\n| Cache, rate limits, sessions, leaderboards | Redis or Valkey beside the main database |\n| Analytics over billions of rows | ClickHouse, DuckDB or a warehouse, fed from the primary |\n\n- PostgreSQL by default: strict types, transactional DDL, many index kinds,\n  `jsonb` when a shape truly varies, extensions (full text, trigrams,\n  vectors, geography), and every host offers it.\n- Do not add a second database for what Postgres covers at the project's\n  size: `jsonb` before a document store, full text and `pg_trgm` before a\n  search engine, pgvector before a vector database up to a few million\n  vectors, a `SKIP LOCKED` table before a message broker.\n- A cache is never the source of truth: it can be dropped and rebuilt.\n\n## 4. Defaults (the detail is in the skill named)\n\n- Primary keys `bigint generated always as identity`; UUIDv7 when ids are\n  made outside the database or appear in URLs (`database-schema`).\n- Money as integer minor units beside a currency code, `numeric` for rates;\n  instants as `timestamptz` in UTC; calendar dates as `date`.\n- NOT NULL unless empty means something; every reference a foreign key with\n  a chosen ON DELETE, and an index on the referencing column.\n- snake_case names; every constraint and index named.\n- Live migrations by expand and contract, with `lock_timeout` set, indexes\n  built concurrently, backfills in batches outside the migration\n  (`database-migrations`).\n- Queries parameterised, only the needed columns, keyset pagination for long\n  lists, no query inside a loop (`database-queries`).\n- Races settled by conditional updates, unique constraints or row locks,\n  never by reading, deciding in code, then writing (`database-transactions`).\n- Postgres with `pg_stat_statements` on, `statement_timeout` and\n  `idle_in_transaction_session_timeout` on the app role, a pooler when\n  connections are many (`database-postgres`).\n- SQLite with WAL, `busy_timeout`, `foreign_keys=ON` and STRICT tables\n  (`database-sqlite`).\n- Automated, encrypted, off-site backups with a restore tested on a schedule\n  (`database-operations`).\n\n## 5. How a change is made\n\n1. Write down the change and the queries it must serve.\n2. Read the real schema from the database (`\\d+ orders` in psql,\n   `SHOW CREATE TABLE orders`, `.schema orders` in sqlite3), not only the\n   model files, which drift.\n3. Generate the migration with the project's tool and read the SQL it will\n   run (`prisma migrate dev --create-only`, `python manage.py sqlmigrate app\n   0042`, `alembic upgrade head --sql`). Fix what the generator got wrong: a\n   rename done as drop and add, a missing `CONCURRENTLY`, a default that\n   rewrites the table.\n4. Classify it: additive and instant, additive but slow (an index, a\n   validation, a backfill), or destructive (drop, type change, rename). Slow\n   and destructive ones follow `database-migrations`.\n5. Change the models, queries, seeds and factories that touch it in the same\n   change.\n6. Run it up, down and up on a scratch database; run the tests; `EXPLAIN`\n   the queries it was for.\n7. Report what changed, what it locks and for how long on production-sized\n   data where known, and anything destructive, before it runs anywhere\n   shared.\n\n## 6. Definition of done\n\n- The migration applies to an empty database and to one at the previous\n  version, and rolls back, or the report says why it cannot.\n- Each new constraint refuses a bad row with the expected error (Postgres:\n  `23502` not null, `23503` foreign key, `23505` unique, `23514` check,\n  `23P01` exclusion).\n- The affected queries return the right rows, edge cases included (NULLs,\n  empty results, both ends of a date range), with a plan that uses the\n  intended index at realistic sizes.\n- Seeds and factories are updated and a seed still runs twice cleanly.\n- Nothing dropped, truncated or rewritten without saying so, and a backup\n  taken before anything destructive.\n- Tests pass against the same engine and major version as production.\n\n## 7. Which skill for which job\n\n| Job | Skill |\n|---|---|\n| Principles, defaults, choosing an engine, this map | `database` |\n| Tables, keys, types, constraints, naming, soft deletes, tenants, trees, history | `database-schema` |\n| Changing a live schema: tools, expand and contract, locks, backfills | `database-migrations` |\n| Correct and fast SQL, N+1, pagination, EXPLAIN, ORM habits | `database-queries` |\n| Which index, column order, partial, GIN, BRIN, unused ones, building live | `database-indexes` |\n| Isolation, lost updates, row locks, SKIP LOCKED, retries, idempotency | `database-transactions` |\n| PostgreSQL types, extensions, RLS, vacuum, pooling, roles, config | `database-postgres` |\n| MySQL and MariaDB: InnoDB, collations, online DDL, gap locks, replicas | `database-mysql` |\n| SQLite: pragmas, one writer, STRICT, backups, Litestream, tests | `database-sqlite` |\n| MongoDB: documents by access pattern, ESR indexes, pipelines, concerns | `database-mongodb` |\n| Backups and restores, replicas, monitoring, upgrades, security, retention | `database-operations` |\n| The short version for server code | `backend-data` |\n\nRead the ones for the parts you touch, when you come to them.\n\n## Check it\n\n- The migration folder has one new file per change and no edits to applied\n  ones (`git diff --stat` on it).\n- On a scratch database: apply, roll back, apply; a schema dump afterwards\n  equals the old one plus the change (`pg_dump --schema-only`,\n  `mysqldump --no-data`, `sqlite3 app.db .schema`).\n- Each new constraint tried with a row that breaks it; each new or changed\n  query run with `EXPLAIN (ANALYZE, BUFFERS)` against realistic row counts.\n- The test suite green against the real engine; the seed run twice.\n- The report says plainly what could not be run: no production-sized copy,\n  no access to the managed instance, no restore performed.\n\n## Avoid\n\nRules kept only in application code; floats for money; `timestamp` without a\nzone; `varchar(255)` on every column by habit; editing a migration that\nalready ran; `ALTER TABLE` on a large table with no `lock_timeout`; an index\nno `EXPLAIN` asked for; a transaction held open across an HTTP call; the app\nconnecting as superuser; a second database for what Postgres already does;\nproduction data copied to a laptop; a backup that was never restored.\n",{"name":5,"description":7},"main","38293fe1b096e6bf3646c7344c38786ed688f464","crates\u002Fenowx-core\u002Fskills\u002Fdatabase",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 database",{"tool":56,"command":57},"bunx","bunx skills add enowdev\u002Fenowxcli --skill database",{"tool":59,"command":60},"pnpm","pnpm dlx skills add enowdev\u002Fenowxcli --skill database","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fdatabase\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,19],"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,19,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,19,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,19,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,19,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,19,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"]