[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77V2EAZ1NJ2HHRPJCPTFGGA":3,"skill-same:01M77V2EAZ1NJ2HHRPJCPTFGGA":50},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M77V2EAZ1NJ2HHRPJCPTFGGA","building-messages",null,"Use when changing, previewing, or debugging the WhatsApp message text itself — daily report or monthly-target layout, brand lines, signature fallback, balance-block states, or why a sent message looks wrong.","BangerSoul\u002Fwhatsapp-mtd-sales-automation","BangerSoul","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F107968141?v=4","01M77SHZ543JA3G93SJKCCS416","Azmathulla Shaik","01M77SHZ6BBGSHYRHBMY9ATQSG",0,"MIT","https:\u002F\u002Fgithub.com\u002FBangerSoul\u002Fwhatsapp-mtd-sales-automation\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbuilding-messages\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: building-messages\ndescription: Use when changing, previewing, or debugging the WhatsApp message text itself — daily report or monthly-target layout, brand lines, signature fallback, balance-block states, or why a sent message looks wrong.\nversion: 1.0.0\nsources:\n  - anthropics\u002Fskills\n  - mattpocock\u002Fskills\nlicense: MIT\n---\n\n# Building WhatsApp Messages\n\n## The two builders (templates.py)\n\n- `build_whatsapp_message(...)` — the daily report: header (agency), report date, account, brandwise invoiced, brandwise balance, target-speed line, signature.\n- `build_monthly_target_message(...)` — the start-of-month target announcement.\n\nBoth take `brand_strings` (list of `{label, actual, balance, target}` items), `market_names` (brand code → full display name), and `user_profile`. Brand display names come from `market_names`, never from the raw code.\n\n## Signature fallback\n\n`_build_signature(profile)` renders \"Regards,\" + bold name + designation + bold agency when the profile has any of those fields; with no profile fields it returns `config.MESSAGE_FOOTER`. **Never hardcode a signature block** — that is the exact bug this fallback was introduced to prevent (`MESSAGE_FOOTER` is the config-driven default).\n\n## The three balance-block states\n\n1. `target_completed=True` → \"✅ All brand targets fully completed!\" + congratulations line.\n2. No balance lines (every brand at\u002Fover target) → same completed line, no DRR line.\n3. Otherwise → the balance lines + \"👉 *Target Speed:* Order an average of X Cases daily…\" (DRR from `required_drr`).\n\n## Greeting decoration happens at send time\n\nThe dispatchers prepend the greeting (`☀️ Good Morning` \u002F `📊 Good Afternoon` \u002F `🌙 Good Evening` by local hour) to each queue message in `dispatcher.py` and `dispatcher_web.py` — **not** in templates.py. Consequence: the GUI preview dialog shows the message exactly as templates.py rendered it, *without* the greeting. Keep the two dispatchers' greeting logic in sync.\n\n## Verifying\n\n- GUI: Run tab → Load File → the preview dialog renders the exact message for each queued account before dispatch.\n- Tests: `tests\u002Ftest_templates.py` covers layout and the signature fallback. Extend it when touching templates.py.\n\n## Common mistakes\n\n- Editing the message body inside a dispatcher instead of templates.py — it would diverge between the two backends.\n- Hardcoding the signature instead of falling back to `MESSAGE_FOOTER`.\n- Judging the sent message from the preview alone and missing the greeting prefix the dispatcher adds.\n","# Building WhatsApp Messages\n\n## The two builders (templates.py)\n\n- `build_whatsapp_message(...)` — the daily report: header (agency), report date, account, brandwise invoiced, brandwise balance, target-speed line, signature.\n- `build_monthly_target_message(...)` — the start-of-month target announcement.\n\nBoth take `brand_strings` (list of `{label, actual, balance, target}` items), `market_names` (brand code → full display name), and `user_profile`. Brand display names come from `market_names`, never from the raw code.\n\n## Signature fallback\n\n`_build_signature(profile)` renders \"Regards,\" + bold name + designation + bold agency when the profile has any of those fields; with no profile fields it returns `config.MESSAGE_FOOTER`. **Never hardcode a signature block** — that is the exact bug this fallback was introduced to prevent (`MESSAGE_FOOTER` is the config-driven default).\n\n## The three balance-block states\n\n1. `target_completed=True` → \"✅ All brand targets fully completed!\" + congratulations line.\n2. No balance lines (every brand at\u002Fover target) → same completed line, no DRR line.\n3. Otherwise → the balance lines + \"👉 *Target Speed:* Order an average of X Cases daily…\" (DRR from `required_drr`).\n\n## Greeting decoration happens at send time\n\nThe dispatchers prepend the greeting (`☀️ Good Morning` \u002F `📊 Good Afternoon` \u002F `🌙 Good Evening` by local hour) to each queue message in `dispatcher.py` and `dispatcher_web.py` — **not** in templates.py. Consequence: the GUI preview dialog shows the message exactly as templates.py rendered it, *without* the greeting. Keep the two dispatchers' greeting logic in sync.\n\n## Verifying\n\n- GUI: Run tab → Load File → the preview dialog renders the exact message for each queued account before dispatch.\n- Tests: `tests\u002Ftest_templates.py` covers layout and the signature fallback. Extend it when touching templates.py.\n\n## Common mistakes\n\n- Editing the message body inside a dispatcher instead of templates.py — it would diverge between the two backends.\n- Hardcoding the signature instead of falling back to `MESSAGE_FOOTER`.\n- Judging the sent message from the preview alone and missing the greeting prefix the dispatcher adds.\n",{"name":5,"license":15,"sources":24,"version":27,"description":7},[25,26],"anthropics\u002Fskills","mattpocock\u002Fskills","1.0.0","main","182274ecfa933218655fd53561d9ecba872da942",".agents\u002Fskills\u002Fbuilding-messages","https:\u002F\u002Fgithub.com\u002FBangerSoul\u002Fwhatsapp-mtd-sales-automation","https:\u002F\u002Fgithub.com\u002FBangerSoul","https:\u002F\u002Ft.me\u002FBangerSoul","Linux\u002FDebian Systems • Remote IT Support • Tech Content Creator @ Tech Made Easy India • B2B Sales Specialist 🚀","2026-08-11 01:21:10",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add BangerSoul\u002Fwhatsapp-mtd-sales-automation --skill building-messages",{"tool":42,"command":43},"bunx","bunx skills add BangerSoul\u002Fwhatsapp-mtd-sales-automation --skill building-messages",{"tool":45,"command":46},"pnpm","pnpm dlx skills add BangerSoul\u002Fwhatsapp-mtd-sales-automation --skill building-messages","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBangerSoul\u002Fwhatsapp-mtd-sales-automation\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbuilding-messages\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M77VMH7JZB1H3Z4KHH0KQQH6","vercel-react-view-transitions","Guide for implementing smooth, native-feeling animations using React's View Transition API (`\u003CViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter\u002Fexit of components, animate list reorder, implement directional (forward\u002Fback) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.","https:\u002F\u002Fgithub.com\u002FBangerSoul\u002Fwhatsapp-mtd-sales-automation\u002Fblob\u002Fmain\u002Fskills\u002Fsources\u002Fvercel-labs\u002Fagent-skills\u002Fskills\u002Freact-view-transitions\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M77VMCSEYYNSQF8GQXYPCK8N","vercel-react-native-skills","React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.","https:\u002F\u002Fgithub.com\u002FBangerSoul\u002Fwhatsapp-mtd-sales-automation\u002Fblob\u002Fmain\u002Fskills\u002Fsources\u002Fvercel-labs\u002Fagent-skills\u002Fskills\u002Freact-native-skills\u002FSKILL.md",[],[],{"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":19},"01M77VM551DK61K4Q8MXMFPVDN","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002FBangerSoul\u002Fwhatsapp-mtd-sales-automation\u002Fblob\u002Fmain\u002Fskills\u002Fsources\u002Fvercel-labs\u002Fagent-skills\u002Fskills\u002Freact-best-practices\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M77VKVKNN092NCJ1VJW99Y7A","vercel-composition-patterns","React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.","https:\u002F\u002Fgithub.com\u002FBangerSoul\u002Fwhatsapp-mtd-sales-automation\u002Fblob\u002Fmain\u002Fskills\u002Fsources\u002Fvercel-labs\u002Fagent-skills\u002Fskills\u002Fcomposition-patterns\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M77VKCCT492PXAQV6MB9HDNQ","supabase-postgres-best-practices","Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pg_cron, pgmq), vector\u002Fsemantic search (pgvector), and restoring dumps (pg_restore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.","https:\u002F\u002Fgithub.com\u002FBangerSoul\u002Fwhatsapp-mtd-sales-automation\u002Fblob\u002Fmain\u002Fskills\u002Fsources\u002Fsupabase\u002Fagent-skills\u002Fskills\u002Fsupabase-postgres-best-practices\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":90,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M77VK8HNK8XKJPMTWYWVBREC","skill-installer","Install Codex skills into $CODEX_HOME\u002Fskills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).","Apache-2.0","https:\u002F\u002Fgithub.com\u002FBangerSoul\u002Fwhatsapp-mtd-sales-automation\u002Fblob\u002Fmain\u002Fskills\u002Fsources\u002Fopenai\u002Fskills\u002Fskills\u002F.system\u002Fskill-installer\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FBangerSoul\u002Fwhatsapp-mtd-sales-automation\u002Fblob\u002Fmain\u002Fskills\u002Fsources\u002Fopenai\u002Fskills\u002Fskills\u002F.system\u002Fskill-installer\u002FSKILL.md",[],[]]