[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6P4V49WRG7JRPF2VHDM6NH8":3,"skill-same:01M6P4V49WRG7JRPF2VHDM6NH8":65},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6P4V49WRG7JRPF2VHDM6NH8","utils-implementation",null,"Write and organize utils (pure helpers for formatting, mapping, filtering, math, parsing, ids, storage) as one namespace object per domain with clear, readable names. Use before creating or changing any util.","maurodesouza\u002Fai-kanban-app-lab","maurodesouza","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F54520907?v=4","01M6P3VA3WVQC4XZ0RQWJCDKW6","Mauro de Souza","01M6P3VA7YK770SNWT12GBEGAF",1,"MIT","https:\u002F\u002Fgithub.com\u002Fmaurodesouza\u002Fai-kanban-app-lab\u002Fblob\u002Fmain\u002Flab-10\u002F.claude\u002Fskills\u002Futils-implementation\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"utils implementation","utils","implementation","domain","for","object","with","mapping","clear","as","formatting","storage","organize","use","filtering","write","math","parsing","ids","2026-11-10 10:12:30",false,"---\nname: utils-implementation\ndescription: Write and organize utils (pure helpers for formatting, mapping, filtering, math, parsing, ids, storage) as one namespace object per domain with clear, readable names. Use before creating or changing any util.\n---\n\n# User Input\n\n```text\n$ARGUMENTS\n```\n\n# Objective\n\nEvery util is easy to read: looking at the call site tells what it does.\n\nReferences (read one when unsure of the style):\n\n* `~\u002Fme\u002Fcalculation-pipeline\u002Ffrontend\u002Fsrc\u002Futils\u002F` and `...\u002Ffeatures\u002Fpipeline\u002Futils\u002Fcanvas\u002Findex.ts` (style reference only; its `index.ts` file naming is outdated)\n* `~\u002Fwork\u002Fme\u002Ffe-assignment-react\u002Fsrc\u002Futils\u002Fnumber\u002Fnumber.ts` and `...\u002Ffeatures\u002Fdashboard\u002Futils\u002Fmetrics\u002Fmetrics.ts`\n\n# 1. Reuse First\n\nBefore writing a util, check the existing ones (`src\u002Futils\u002F`, `src\u002Ffeatures\u002F\u003Cfeature>\u002Futils\u002F`). Extend a domain namespace that already exists instead of creating a new file or a duplicate function.\n\n# 2. Location\n\n```text\nsrc\u002Futils\u002F\u003Cdomain>\u002F\u003Cdomain>.ts                       # generic, used by any feature (array, json, number, random, storage, dev)\nsrc\u002Ffeatures\u002F\u003Cfeature>\u002Futils\u002F\u003Cdomain>\u002F\u003Cdomain>.ts    # specific to one feature (board, card, canvas, metrics)\n```\n\n* `\u003Cdomain>` is a singular noun in kebab-case: what the functions operate on.\n* Tests live next to it: `\u003Cdomain>.test.ts`.\n* Import with the full path: `#\u002Futils\u002Fnumber\u002Fnumber`. No `index.ts` barrel files.\n* No `helpers.ts`, `common.ts`, `misc.ts` or flat `utils\u002F\u003Cthing>.ts` files.\n\n# 3. One Namespace per Domain\n\nEach file exports **one object**, named after the domain in camelCase:\n\n```typescript\nexport const board = { ... };\n```\n\n* No loose exported functions (`export function readJSON`).\n* Types go to the feature `types`; constants used only by the util stay private at the top of the file (`const EMPTY_VALUE = \"-\"`).\n* A constant other layers need is a member of the namespace (`priority.list`, `priority.default`), not a separate export.\n\n# 4. Group by Intent\n\nInside the namespace, group members by what they do. The call site must read like a sentence:\n\n| Group | Use | Call site |\n| --- | --- | --- |\n| `find` | predicates for `.find()` | `cards.find(board.cards.find.byId(id))` |\n| `filter` | predicates for `.filter()` | `cards.filter(board.cards.filter.byColumn(columnId))` |\n| `map` | transformers for `.map()` | `cards.map(board.cards.map.moveTo(columnId))` |\n| `sort` | comparators for `.sort()` | `cards.sort(board.cards.sort.byPriority())` |\n| `format` | values → display strings | `number.format.currency(value)` |\n| `math` \u002F `aggregate` | calculations | `metrics.math.average(total, days)` |\n| `create` | build new entities | `board.cards.create(payload)` |\n| `is` \u002F `has` | boolean checks | `priority.is(value)` |\n| `to\u003CThing>` | conversions | `metrics.chart.toSeries(measure)` |\n\nNest by entity when a domain has several (`canvas.nodes.find.byType`, `canvas.edges.filter.removeIds`).\n\n# 5. Callbacks Are Curried\n\nPredicates, mappers and comparators used in array methods take their arguments first and return the callback:\n\n```typescript\nfind: {\n  byId: (id: string) => (card: Card) => card.id === id,\n},\n```\n\n```typescript\n\u002F\u002F ✅ Correct\nconst card = cards.find(board.cards.find.byId(id));\n\n\u002F\u002F ❌ Wrong\nconst card = cards.find((card) => card.id === id);\nconst card = findCardById(cards, id);\n```\n\nComparators and mappers without arguments are still factories (`sort.byPriority()`, `map.toOption()`), so every call site has the same shape.\n\n# 6. Naming\n\n* Names describe the result, not the mechanics: `byColumn`, `currency`, `average`, `toSeries`.\n* Predicates start with `by` (find\u002Ffilter) or `is` \u002F `has` (checks).\n* No `get`, `handle`, `do`, `util`, `helper` prefixes; no abbreviations.\n* The namespace path already gives context: `date.format.short`, not `date.formatDateShort`.\n\n# 7. Function Bodies\n\n* Short members are written inline in the namespace.\n* A member longer than a few lines is a named function declared above the namespace and referenced from it:\n\n```typescript\nfunction buildChainFromCanvas(nodes: CanvasNode[], edges: Edge[]): CanvasOperationNode[] {\n  \u002F\u002F ...\n}\n\nexport const canvas = {\n  chain: {\n    build: buildChainFromCanvas,\n  },\n};\n```\n\n* Members reuse each other through the namespace (`number.currency` calls `number.format`).\n* Early returns over nested conditionals.\n* Explicit return types on members whose result type is not obvious.\n\n# 8. Purity\n\nUtils are pure: same input, same output.\n\n* No store access, no React, no `actions` \u002F `command`, no API calls.\n* Platform wrappers (`storage`, `json`, `random`, `dev`) live only in `src\u002Futils\u002F`, swallow platform errors with a safe fallback, and are called from Handles, never from components.\n* Utils are used by store `$` getters and by Handles. Components do not call utils; they read prepared `$` values (`command-bus-architecture`).\n\n# 9. Example\n\n```typescript\n\u002F\u002F src\u002Ffeatures\u002Fkanban\u002Futils\u002Fpriority\u002Fpriority.ts\nimport type { Priority } from \"#\u002Ffeatures\u002Fkanban\u002Ftypes\";\n\nconst PRIORITIES: readonly Priority[] = [\"low\", \"medium\", \"high\"];\n\nconst META: Record\u003CPriority, { label: string; palette: string }> = {\n  low: { label: \"Low\", palette: \"palette-green\" },\n  medium: { label: \"Medium\", palette: \"palette-orange\" },\n  high: { label: \"High\", palette: \"palette-danger\" },\n};\n\nexport const priority = {\n  list: PRIORITIES,\n  default: \"medium\" as Priority,\n\n  is: (value: unknown): value is Priority => PRIORITIES.includes(value as Priority),\n\n  format: {\n    label: (value: Priority): string => META[value].label,\n    palette: (value: Priority): string => META[value].palette,\n  },\n\n  sort: {\n    byWeight: () => (a: Priority, b: Priority): number =>\n      PRIORITIES.indexOf(b) - PRIORITIES.indexOf(a),\n  },\n};\n```\n\n# 10. Final Output\n\nReturn:\n\n* Utils created or extended (namespace path and members)\n* Existing utils reused\n\nReturn this output to the calling skill and continue its flow. Do not end the run here unless this skill was invoked directly by the user.\n","# User Input\n\n```text\n$ARGUMENTS\n```\n\n# Objective\n\nEvery util is easy to read: looking at the call site tells what it does.\n\nReferences (read one when unsure of the style):\n\n* `~\u002Fme\u002Fcalculation-pipeline\u002Ffrontend\u002Fsrc\u002Futils\u002F` and `...\u002Ffeatures\u002Fpipeline\u002Futils\u002Fcanvas\u002Findex.ts` (style reference only; its `index.ts` file naming is outdated)\n* `~\u002Fwork\u002Fme\u002Ffe-assignment-react\u002Fsrc\u002Futils\u002Fnumber\u002Fnumber.ts` and `...\u002Ffeatures\u002Fdashboard\u002Futils\u002Fmetrics\u002Fmetrics.ts`\n\n# 1. Reuse First\n\nBefore writing a util, check the existing ones (`src\u002Futils\u002F`, `src\u002Ffeatures\u002F\u003Cfeature>\u002Futils\u002F`). Extend a domain namespace that already exists instead of creating a new file or a duplicate function.\n\n# 2. Location\n\n```text\nsrc\u002Futils\u002F\u003Cdomain>\u002F\u003Cdomain>.ts                       # generic, used by any feature (array, json, number, random, storage, dev)\nsrc\u002Ffeatures\u002F\u003Cfeature>\u002Futils\u002F\u003Cdomain>\u002F\u003Cdomain>.ts    # specific to one feature (board, card, canvas, metrics)\n```\n\n* `\u003Cdomain>` is a singular noun in kebab-case: what the functions operate on.\n* Tests live next to it: `\u003Cdomain>.test.ts`.\n* Import with the full path: `#\u002Futils\u002Fnumber\u002Fnumber`. No `index.ts` barrel files.\n* No `helpers.ts`, `common.ts`, `misc.ts` or flat `utils\u002F\u003Cthing>.ts` files.\n\n# 3. One Namespace per Domain\n\nEach file exports **one object**, named after the domain in camelCase:\n\n```typescript\nexport const board = { ... };\n```\n\n* No loose exported functions (`export function readJSON`).\n* Types go to the feature `types`; constants used only by the util stay private at the top of the file (`const EMPTY_VALUE = \"-\"`).\n* A constant other layers need is a member of the namespace (`priority.list`, `priority.default`), not a separate export.\n\n# 4. Group by Intent\n\nInside the namespace, group members by what they do. The call site must read like a sentence:\n\n| Group | Use | Call site |\n| --- | --- | --- |\n| `find` | predicates for `.find()` | `cards.find(board.cards.find.byId(id))` |\n| `filter` | predicates for `.filter()` | `cards.filter(board.cards.filter.byColumn(columnId))` |\n| `map` | transformers for `.map()` | `cards.map(board.cards.map.moveTo(columnId))` |\n| `sort` | comparators for `.sort()` | `cards.sort(board.cards.sort.byPriority())` |\n| `format` | values → display strings | `number.format.currency(value)` |\n| `math` \u002F `aggregate` | calculations | `metrics.math.average(total, days)` |\n| `create` | build new entities | `board.cards.create(payload)` |\n| `is` \u002F `has` | boolean checks | `priority.is(value)` |\n| `to\u003CThing>` | conversions | `metrics.chart.toSeries(measure)` |\n\nNest by entity when a domain has several (`canvas.nodes.find.byType`, `canvas.edges.filter.removeIds`).\n\n# 5. Callbacks Are Curried\n\nPredicates, mappers and comparators used in array methods take their arguments first and return the callback:\n\n```typescript\nfind: {\n  byId: (id: string) => (card: Card) => card.id === id,\n},\n```\n\n```typescript\n\u002F\u002F ✅ Correct\nconst card = cards.find(board.cards.find.byId(id));\n\n\u002F\u002F ❌ Wrong\nconst card = cards.find((card) => card.id === id);\nconst card = findCardById(cards, id);\n```\n\nComparators and mappers without arguments are still factories (`sort.byPriority()`, `map.toOption()`), so every call site has the same shape.\n\n# 6. Naming\n\n* Names describe the result, not the mechanics: `byColumn`, `currency`, `average`, `toSeries`.\n* Predicates start with `by` (find\u002Ffilter) or `is` \u002F `has` (checks).\n* No `get`, `handle`, `do`, `util`, `helper` prefixes; no abbreviations.\n* The namespace path already gives context: `date.format.short`, not `date.formatDateShort`.\n\n# 7. Function Bodies\n\n* Short members are written inline in the namespace.\n* A member longer than a few lines is a named function declared above the namespace and referenced from it:\n\n```typescript\nfunction buildChainFromCanvas(nodes: CanvasNode[], edges: Edge[]): CanvasOperationNode[] {\n  \u002F\u002F ...\n}\n\nexport const canvas = {\n  chain: {\n    build: buildChainFromCanvas,\n  },\n};\n```\n\n* Members reuse each other through the namespace (`number.currency` calls `number.format`).\n* Early returns over nested conditionals.\n* Explicit return types on members whose result type is not obvious.\n\n# 8. Purity\n\nUtils are pure: same input, same output.\n\n* No store access, no React, no `actions` \u002F `command`, no API calls.\n* Platform wrappers (`storage`, `json`, `random`, `dev`) live only in `src\u002Futils\u002F`, swallow platform errors with a safe fallback, and are called from Handles, never from components.\n* Utils are used by store `$` getters and by Handles. Components do not call utils; they read prepared `$` values (`command-bus-architecture`).\n\n# 9. Example\n\n```typescript\n\u002F\u002F src\u002Ffeatures\u002Fkanban\u002Futils\u002Fpriority\u002Fpriority.ts\nimport type { Priority } from \"#\u002Ffeatures\u002Fkanban\u002Ftypes\";\n\nconst PRIORITIES: readonly Priority[] = [\"low\", \"medium\", \"high\"];\n\nconst META: Record\u003CPriority, { label: string; palette: string }> = {\n  low: { label: \"Low\", palette: \"palette-green\" },\n  medium: { label: \"Medium\", palette: \"palette-orange\" },\n  high: { label: \"High\", palette: \"palette-danger\" },\n};\n\nexport const priority = {\n  list: PRIORITIES,\n  default: \"medium\" as Priority,\n\n  is: (value: unknown): value is Priority => PRIORITIES.includes(value as Priority),\n\n  format: {\n    label: (value: Priority): string => META[value].label,\n    palette: (value: Priority): string => META[value].palette,\n  },\n\n  sort: {\n    byWeight: () => (a: Priority, b: Priority): number =>\n      PRIORITIES.indexOf(b) - PRIORITIES.indexOf(a),\n  },\n};\n```\n\n# 10. Final Output\n\nReturn:\n\n* Utils created or extended (namespace path and members)\n* Existing utils reused\n\nReturn this output to the calling skill and continue its flow. Do not end the run here unless this skill was invoked directly by the user.\n",{"name":5,"description":7},"main","6f1867f215cf86d20099b6dfb1164c79abfb87ce","lab-10\u002F.claude\u002Fskills\u002Futils-implementation",0,"https:\u002F\u002Fgithub.com\u002Fmaurodesouza\u002Fai-kanban-app-lab","https:\u002F\u002Fgithub.com\u002Fmaurodesouza","Software Engineer","2026-10-28 02:01:00",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add maurodesouza\u002Fai-kanban-app-lab --skill utils-implementation",{"tool":57,"command":58},"bunx","bunx skills add maurodesouza\u002Fai-kanban-app-lab --skill utils-implementation",{"tool":60,"command":61},"pnpm","pnpm dlx skills add maurodesouza\u002Fai-kanban-app-lab --skill utils-implementation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmaurodesouza\u002Fai-kanban-app-lab\u002Fblob\u002Fmain\u002Flab-10\u002F.claude\u002Fskills\u002Futils-implementation\u002FSKILL.md",true,[],[66,71,88,114,126,137],{"skillNo":67,"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":68,"categories":69,"keywords":70,"publishedAt":38},"01M6P519M13JTBZDK3ZJP48P2C","https:\u002F\u002Fgithub.com\u002Fmaurodesouza\u002Fai-kanban-app-lab\u002Fblob\u002Fmain\u002Flab-10\u002F.codex\u002Fskills\u002Futils-implementation\u002FSKILL.md",[],[19,21,20,36,23,24,30,37,27,35,34,33,25,32,31,22,26,29,28],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":82,"publishedAt":38},"01M6P516BP8GPRJHPGVFWRF5T8","test-writer","Write tests for the current implementation","https:\u002F\u002Fgithub.com\u002Fmaurodesouza\u002Fai-kanban-app-lab\u002Fblob\u002Fmain\u002Flab-10\u002F.codex\u002Fskills\u002Ftest-writer\u002FSKILL.md",[77],{"categoryNo":78,"categoryName":79,"taxonomyType":80,"taxonomyTypeDesc":81},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[83,84,85,86,34,21,87,23],"test","test writer","writer","write tests","tests",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":38},"01M6P50M0Z2AQH32ZTV90D5V32","tech-lead","Analyze a project, turn the user's goal into an implementation-ready GitHub Epic and Issues (following project rules, the Command Bus architecture and Fragiola UI), then start epic-implementer automatically (use the no-implement flag to stop after planning).","https:\u002F\u002Fgithub.com\u002Fmaurodesouza\u002Fai-kanban-app-lab\u002Fblob\u002Fmain\u002Flab-10\u002F.codex\u002Fskills\u002Ftech-lead\u002FSKILL.md",[],[95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,32,111,112,113],"tech","tech lead","ready","command bus architecture","implement","github","EPIC","architecture","planning","issues","ui","start","analyze","Rules","command","implementer","goal","stop","project",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":38},"01M6P50GND99S9QQY6KWPP6NW9","tech-lead-publish","Publish a final Epic and its Issues to GitHub, linked and labeled, keeping dependency and execution information. Sub-skill of tech-lead.","https:\u002F\u002Fgithub.com\u002Fmaurodesouza\u002Fai-kanban-app-lab\u002Fblob\u002Fmain\u002Flab-10\u002F.codex\u002Fskills\u002Ftech-lead-publish\u002FSKILL.md",[],[121,96,95,122,100,104,123,124,101,125],"tech lead publish","publish","execution","dependency","information",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":38},"01M6P50D4P2SQSYZM7TZMHZA0J","setup-command-system","Install the Command System architecture in the project","https:\u002F\u002Fgithub.com\u002Fmaurodesouza\u002Fai-kanban-app-lab\u002Fblob\u002Fmain\u002Flab-10\u002F.codex\u002Fskills\u002Fsetup-command-system\u002FSKILL.md",[],[133,109,134,135,102,136,113],"setup command system","system","setup","install",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":38},"01M6P50A032630X9JDDZYJMNV3","reviewer","Review code changes and provide feedback","https:\u002F\u002Fgithub.com\u002Fmaurodesouza\u002Fai-kanban-app-lab\u002Fblob\u002Fmain\u002Flab-10\u002F.codex\u002Fskills\u002Freviewer\u002FSKILL.md",[],[139,144,145,146,147,148],"code","review code","feedback","changes","review"]