[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BY4QF1MAR0BJ2C9Y92N1NE":3,"skill-same:01M7BY4QF1MAR0BJ2C9Y92N1NE":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":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7BY4QF1MAR0BJ2C9Y92N1NE","crm-builder",null,"Customer Relationship Management (CRM) vertical skill for the Customware SPA. Defines the section layout, entity views, and mapping rules for transforming a DOMAIN.md into a CRM tool. Use this skill when the Builder Agent classifies a customer's domain as contact management, sales pipeline, deal tracking, or customer relationship workflows. Trigger signals: contacts, leads, deals, pipeline, follow-ups, opportunities, accounts, customer data everywhere, can't track who talked to whom, sales process, referrals.","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fcustomware-ai-skills\u002Fcrm-builder\u002Fskills\u002Fcrm-builder\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: crm-builder\nlicense: MIT\ncompatibility: Works with any AI coding assistant that supports the Agent Skills specification. Requires a running Customware SPA instance to consume the generated config.\nmetadata:\n  author: ryan-price\n  version: \"1.1\"\ndescription: >\n  Customer Relationship Management (CRM) vertical skill for the Customware SPA. Defines the\n  section layout, entity views, and mapping rules for transforming a DOMAIN.md into a CRM tool.\n  Use this skill when the Builder Agent classifies a customer's domain as contact management,\n  sales pipeline, deal tracking, or customer relationship workflows.\n  Trigger signals: contacts, leads, deals, pipeline, follow-ups, opportunities, accounts,\n  customer data everywhere, can't track who talked to whom, sales process, referrals.\n---\n\n# CRM Builder Skill\n\n## What This Skill Does\n\nThis skill defines how to build a **CRM tool** — a system for managing contacts, companies, deals, and the relationships between them.\n\nCRM is structurally different from CPQ and trades-builder:\n- **CPQ \u002F Trades** = one record moves through sequential stages (stepper navigation)\n- **CRM** = multiple entity types with relationships between them (entity navigation)\n\nThe left sidebar uses a **navigator pattern** (Contacts, Companies, Deals, Pipeline, Activities) — NOT a stepper. Users switch between entity views, not sequential stages.\n\n**Common verticals:** sales teams, consulting firms, agencies, professional services, real estate, recruiting, B2B services, any business that tracks relationships and deals.\n\nThe builder reads this skill, reads the DOMAIN.md for the specific business terminology and pipeline stages, and generates a working prototype with the customer's actual entities, fields, and workflow.\n\n## When to Use This Skill\n\nUse this skill when the transcript or DOMAIN.md contains these signals:\n\n| Signal | Examples |\n|---|---|\n| **Contact\u002Fpeople tracking** | \"customer data is everywhere,\" \"can't find who we talked to,\" \"contacts in spreadsheets\" |\n| **Sales pipeline** | \"deals,\" \"opportunities,\" \"pipeline,\" \"stages,\" \"won\u002Flost\" |\n| **Follow-up tracking** | \"follow-ups fall through the cracks,\" \"no one knows who called last\" |\n| **Relationship management** | \"referrals,\" \"who knows who,\" \"account management\" |\n| **Lead management** | \"leads from website,\" \"inbound inquiries,\" \"lead source tracking\" |\n\n**Do NOT use this skill for:**\n- Product configuration with pricing → use cpq-builder\n- Construction\u002Ftrades project tracking → use trades-builder\n- Inventory and stock management → use erp-builder (future)\n\n---\n\n## Template Contract\n\nBefore you start building, understand what the template gives you and what this skill adds. This is the contract:\n\n**The template (`app\u002Flayouts\u002FMainLayout.tsx`) ships with:**\n- `SidebarProvider`, `Sidebar`, `SidebarContent`, `SidebarInset`, `SidebarTrigger` — already wired\n- `SidebarContent` is **empty** — this is your landing zone\n- One brand slot in the header (logo placeholder + company name)\n- `ModeToggle` and user menu in the header's right cluster\n\n**This skill fills:**\n- `SidebarContent` — with entity navigation (Pipeline, Contacts, Companies, Deals, Activities), quick filters, and recent records (see Layout Pattern below)\n- The brand slot in the header — with the client's logo and company name from DOMAIN.md\n- The header's right cluster — adds a role switcher `DropdownMenu` before the existing user menu, plus a global search input if there's room\n- The `\u003COutlet \u002F>` in `\u003Cmain>` — via route components for each entity view (Pipeline is default)\n\n**This skill does NOT:**\n- Add a second `Sidebar` component. There is one sidebar.\n- Put a brand tile inside `SidebarContent`. Brand lives in the header only.\n- Rewire `SidebarProvider` or replace the collapsible behavior. Use what's there.\n- Build a stepper. CRM uses entity navigation — parallel views, not sequential stages.\n- Collapse the detail view into a popover or modal by default. List\u002Fdetail is a full-page pattern (list view → click → detail view in the main content area).\n\nIf you find yourself wanting to restructure `MainLayout.tsx`, stop — the answer is almost always to fill `SidebarContent` instead.\n\n---\n\n## Section Definitions\n\nThe CRM tool has **FIVE sections**. Unlike CPQ\u002Ftrades-builder, these are NOT sequential stages — they are parallel entity views. Users navigate between them freely.\n\n### Section 1: Pipeline\n\n**What it does:** Visual board view of deals moving through stages.\n\n**Display:**\n- Kanban-style columns, one per pipeline stage from DOMAIN.md\n- If DOMAIN.md does not define stages, use: Lead → Qualified → Proposal → Negotiation → Closed Won \u002F Closed Lost\n- Each deal item shows: deal name, company, value, assigned to, days in stage\n- Drag-and-drop between columns (or click to move stage)\n- \"Add deal\" button on each column\n- Filter by assigned person, date range, or deal value\n\n**If no pipeline stages exist in DOMAIN.md**, use the defaults above. The customer refines them after seeing the prototype.\n\n### Section 2: Contacts\n\n**What it does:** List\u002Fdetail view of people.\n\n**List view:**\n- Table or lightweight list of contacts\n- Columns: name, email, phone, company, last activity, tags\n- Search and filter\n- \"Add contact\" button\n\n**Detail view (clicking a contact):**\n- Contact detail: name, email, phone, company (linked), role\u002Ftitle, source, notes\n- Activity timeline below: calls, emails, meetings, notes — most recent first\n- Linked deals: list of deals associated with this contact\n- \"Log activity\" button: quick-add a call, email, meeting, or note with date and description\n\n**Fields from DOMAIN.md:**\n- Entity Registry → Contact entity fields become the contact detail fields\n- Terminology Glossary → exact field names and labels\n- If DOMAIN.md doesn't define contact fields, use: name, email, phone, company, role, source, notes\n\n### Section 3: Companies\n\n**What it does:** List\u002Fdetail view of organizations.\n\n**List view:**\n- Table of companies\n- Columns: company name, industry, contacts count, deals count, total deal value\n- Search and filter\n- \"Add company\" button\n\n**Detail view (clicking a company):**\n- Company detail: name, industry, size, website, address, notes\n- Contacts tab: list of people linked to this company\n- Deals tab: list of deals linked to this company\n- Activity timeline: aggregated from all contacts at this company\n\n**Fields from DOMAIN.md:**\n- Entity Registry → Company\u002FAccount entity fields\n- If not defined: name, industry, size, website, address, notes\n\n### Section 4: Deals\n\n**What it does:** List\u002Fdetail view of deals\u002Fopportunities.\n\n**List view:**\n- Table of deals\n- Columns: deal name, company, contact, value, stage (badge), close date, assigned to\n- Sort by value, stage, close date\n- Filter by stage, assigned person\n- \"Add deal\" button\n\n**Detail view (clicking a deal):**\n- Deal detail: name, value, stage (selectable dropdown), expected close date, probability, assigned to\n- Linked contact and company (clickable links)\n- Activity timeline specific to this deal\n- Notes section\n- \"Mark as Won\" \u002F \"Mark as Lost\" action buttons when in final stages\n\n**Stage progression:**\n- Deal stage is a `Select` dropdown populated from DOMAIN.md pipeline stages\n- Changing the stage updates the Pipeline board view automatically\n- Won\u002FLost are terminal stages — show win\u002Floss reason field when selected\n\n### Section 5: Activities\n\n**What it does:** Chronological feed of all activities across the CRM.\n\n**Display:**\n- Timeline\u002Ffeed view, most recent first\n- Each activity shows: type icon (call\u002Femail\u002Fmeeting\u002Fnote), description, linked contact, linked deal, date, logged by\n- Filter by activity type, date range, person\n- \"Log activity\" button at top\n\n**Activity types:** Call, Email, Meeting, Note, Task. Use icons to distinguish.\n- If DOMAIN.md defines different activity types, use those instead.\n\n## Layout Pattern\n\nThe CRM tool uses a **two-panel layout** (left sidebar + main content) by default. A right sidebar appears contextually when viewing a record detail.\n\n**This is NOT a stepper layout.** The left sidebar is entity navigation, not sequential stages.\n\n### Left sidebar (always visible, collapsible)\n\nThe template ships `SidebarProvider`, `Sidebar`, `SidebarContent`, and `SidebarTrigger` already wired in `app\u002Flayouts\u002FMainLayout.tsx`. `SidebarContent` is empty — that's the slot this skill fills with entity navigation. Do not re-wire the sidebar, do not add a second `Sidebar` component, and do not put a brand tile inside it. Brand identity lives in the header only (see Template Contract above).\n\n**Sidebar heading:** Use a contextual label like \"CRM\" or the business name + \"CRM\" — not a workflow description. If the business name is short, \"[Business] CRM\" reads naturally; if it's long, just \"CRM\" is fine. The heading describes what the navigation IS.\n\n| Component | Content |\n|---|---|\n| **Entity navigation** | A VERTICAL nav list inside `SidebarContent` with the five sections: Pipeline, Contacts, Companies, Deals, Activities. Each nav item shows: icon, label, and record count badge. Clicking navigates to that entity's view. **This is a navigator, NOT a stepper** — no step numbers, no completion states, no sequential flow. |\n| **Quick filters** | Below the nav, show saved filters or views if the user creates them. E.g., \"My deals,\" \"Hot leads,\" \"This week's follow-ups.\" |\n| **Recent records** | Below filters, show the 3-5 most recently accessed records (any entity type) for quick navigation. Each shows name and entity type badge. Pin this section near the bottom of the sidebar so it's always visible without scrolling. |\n\n### Main content (center — changes per section)\n\n**The active section renders based on the selected nav item.** Only one section visible at a time.\n\n```tsx\n{activeSection === \"pipeline\" && \u003CPipelineView \u002F>}\n{activeSection === \"contacts\" && \u003CContactsView \u002F>}\n{activeSection === \"companies\" && \u003CCompaniesView \u002F>}\n{activeSection === \"deals\" && \u003CDealsView \u002F>}\n{activeSection === \"activities\" && \u003CActivitiesView \u002F>}\n```\n\n**List\u002Fdetail pattern within each section:**\n- Default: list view, table, or lightweight board depending on the entity.\n- Click a record: detail view with full-width sections, activity timeline, linked records\n- \"Back to list\" button or breadcrumb to return\n- This is a standard Salesforce\u002FHubSpot pattern\n\n### Right sidebar (contextual — appears on detail views)\n\nWhen viewing a record detail (contact, company, or deal), a right sidebar can show:\n- **Quick summary** — key fields at a glance\n- **Linked records** — related contacts, deals, or companies\n- **Upcoming activities** — next scheduled call\u002Fmeeting\n\nThis sidebar is optional for the prototype. If the main content area has enough space, the detail view can be single-panel. Add the right sidebar only if the record detail benefits from simultaneous context.\n\n### RBAC behavior\n\n- Seed localStorage with roles from DOMAIN.md User Roles or Stakeholder Map.\n- Role switcher is a **single `DropdownMenu` dropdown in the header bar**.\n- **Assignment filtering**: When a role is active, optionally filter pipeline and deal views to show only records assigned to that person.\n- **Activity attribution**: Activities logged should be attributed to the active role.\n- CRM typically has fewer hard permission gates than CPQ — most users can see everything but own their assigned records.\n\n### Price\u002Fvalue visibility\n\n- Show deal values on Pipeline items, Deal list, and Deal detail.\n- Show total pipeline value per stage at the top of the Pipeline view.\n- Use the currency from DOMAIN.md.\n- Format: \"$25,000\" or \"$25,000 CAD\" depending on DOMAIN.md.\n\n### shadcn\u002Fui component mapping\n\nTreat cards as an exception, not the default layout primitive. Inline content into the page body whenever possible. Use cards only when something truly needs emphasis, separation, repetition, or dialog\u002Fdetail framing. Do not build card-heavy dashboards, cards inside cards, or generic grids of floating panels.\n\n| CRM Element | shadcn Component | Usage Notes |\n|---|---|---|\n| Entity nav items | `Button variant=\"ghost\"` in vertical stack | Inside `SidebarContent`. Active item gets accent background. Icon + label + count badge. |\n| Pipeline columns | Column sections, `ScrollArea` if many deals | Column header shows stage name + deal count + total value. Use cards only if items need strong separation. |\n| Deal items (pipeline) | Compact clickable rows or subtle item blocks | Deal name, company, value, assigned avatar. |\n| Contact\u002FCompany list | `Table` | Sortable columns, search input above. |\n| Record detail | Full-width sections with `Separator` | Keep details inline in the main page body. |\n| Activity timeline | Custom list with icons | Each item: type icon, description, date, linked record. Use `Avatar` for person. |\n| Stage badges | `Badge` | Color-coded by stage: lead=gray, qualified=blue, proposal=amber, negotiation=purple, won=green, lost=red. |\n| Deal value | `text-lg font-semibold` | Prominent on pipeline items and detail views. |\n| Assignment dropdowns | `Select` | Populated from DOMAIN.md stakeholder names. NOT free text. |\n| Activity type selector | `Select` or `RadioGroup` | Call, Email, Meeting, Note, Task. |\n| Search inputs | `Input` with search icon | At top of every list view. |\n| Action buttons | `Button` | Primary: \"Add contact,\" \"Log activity.\" Destructive: \"Delete,\" \"Mark as Lost.\" |\n| Linked record chips | `Badge variant=\"outline\"` | Clickable — navigates to the linked record. |\n| Quick add forms | `Dialog` or inline form | Modal for adding a contact\u002Fdeal quickly without leaving the current view. |\n| Empty states | Inline empty block with centered text + action | \"No contacts yet. Add your first contact.\" |\n| Confirmation dialogs | `AlertDialog` | Delete record, mark deal as lost. |\n| Toast notifications | `Sonner` \u002F `toast()` | After create, update, delete, log activity. |\n\n## Deterministic Mapping Rules\n\n### Entity → CRM Record Mapping\n\n| DOMAIN.md entity pattern | Maps to | In section |\n|---|---|---|\n| Contact \u002F Person \u002F Lead \u002F Customer | Contact record | Contacts |\n| Company \u002F Account \u002F Organization \u002F Business | Company record | Companies |\n| Deal \u002F Opportunity \u002F Sale \u002F Prospect | Deal record | Deals + Pipeline |\n| Activity \u002F Call \u002F Meeting \u002F Email \u002F Note | Activity entry | Activities + record timelines |\n| Pipeline \u002F Stage \u002F Status | Pipeline stage columns | Pipeline |\n| Referral \u002F Source \u002F Lead source | Source field on Contact or Deal | Contact\u002FDeal detail |\n\n### Relationship Mapping\n\n| DOMAIN.md relationship | Implementation |\n|---|---|\n| Contact belongs to Company | Contact has a Company field (Select dropdown). Company detail shows linked contacts. |\n| Deal has a Contact | Deal has a Contact field (Select dropdown). Contact detail shows linked deals. |\n| Deal has a Company | Deal has a Company field (auto-populated from contact's company, editable). |\n| Activity tied to Contact\u002FDeal | Activity has Contact and Deal fields (Select dropdowns). |\n\n### Business Rule → Behavior Mapping\n\n| DOMAIN.md rule pattern | Implementation |\n|---|---|\n| \"pipeline stages: X, Y, Z\" | Pipeline columns use those exact names |\n| \"only [role] can close deals\" | RBAC gate on \"Mark as Won\u002FLost\" buttons |\n| \"follow up within X days\" | Show overdue badge on contacts\u002Fdeals without recent activity |\n| \"deals over $X need approval\" | Show approval requirement note on high-value deals |\n| \"referral source tracking\" | Source field on contacts with defined dropdown values |\n| Currency\u002Ftax\u002Fterms | Display on deal values and any invoicing views |\n\n### Pipeline Stage Defaults\n\nIf DOMAIN.md does not define pipeline stages, use these:\n\n| Stage | Color | Meaning |\n|---|---|---|\n| Lead | Gray | New unqualified inquiry |\n| Qualified | Blue | Confirmed as a real opportunity |\n| Proposal | Amber | Proposal or quote sent |\n| Negotiation | Purple | In discussion, terms being worked out |\n| Closed Won | Green | Deal signed, revenue booked |\n| Closed Lost | Red | Deal did not close |\n\nThese defaults can be overridden by DOMAIN.md state models.\n\n## Key UX Patterns from Real CRMs\n\nThese patterns are drawn from Salesforce, HubSpot, Pipedrive, and Freshsales. Follow them for a prototype that feels familiar to CRM users:\n\n### 1. Everything links to everything\nContacts link to companies. Deals link to contacts and companies. Activities link to contacts and deals. Every linked name is clickable — clicking navigates to that record's detail view.\n\n### 2. Activity timeline is the heartbeat\nEvery record (contact, company, deal) shows an activity timeline. The most recent interaction matters most. \"When did we last talk to this person?\" should be answerable at a glance.\n\n### 3. Pipeline is the home screen\nThe Pipeline board view is the default landing page. Sales teams live here. Total pipeline value per stage is visible at the top.\n\n### 4. Quick-add is everywhere\n\"Log a call\" and \"Add a deal\" should be accessible from any view — either via a floating action button or a persistent \"Quick add\" in the header. Users shouldn't have to navigate away to log an interaction.\n\n### 5. Search is global\nOne search bar that finds contacts, companies, and deals by name. Results grouped by entity type.\n\n### 6. Empty states guide action\nWhen a section has no records, show a helpful empty state: \"No deals yet. Add your first deal to start tracking your pipeline.\" Include a primary action button.\n\n## Reference Files\n\nThis skill expects these files to exist:\n\n| File | Purpose |\n|---|---|\n| `DOMAIN.md` or `.tasks\u002Fdomain.md` | Business terminology, entities, pipeline stages, roles, brand data |\n\nThe builder should read `DOMAIN.md` or `.tasks\u002Fdomain.md` before writing any code.\n","# CRM Builder Skill\n\n## What This Skill Does\n\nThis skill defines how to build a **CRM tool** — a system for managing contacts, companies, deals, and the relationships between them.\n\nCRM is structurally different from CPQ and trades-builder:\n- **CPQ \u002F Trades** = one record moves through sequential stages (stepper navigation)\n- **CRM** = multiple entity types with relationships between them (entity navigation)\n\nThe left sidebar uses a **navigator pattern** (Contacts, Companies, Deals, Pipeline, Activities) — NOT a stepper. Users switch between entity views, not sequential stages.\n\n**Common verticals:** sales teams, consulting firms, agencies, professional services, real estate, recruiting, B2B services, any business that tracks relationships and deals.\n\nThe builder reads this skill, reads the DOMAIN.md for the specific business terminology and pipeline stages, and generates a working prototype with the customer's actual entities, fields, and workflow.\n\n## When to Use This Skill\n\nUse this skill when the transcript or DOMAIN.md contains these signals:\n\n| Signal | Examples |\n|---|---|\n| **Contact\u002Fpeople tracking** | \"customer data is everywhere,\" \"can't find who we talked to,\" \"contacts in spreadsheets\" |\n| **Sales pipeline** | \"deals,\" \"opportunities,\" \"pipeline,\" \"stages,\" \"won\u002Flost\" |\n| **Follow-up tracking** | \"follow-ups fall through the cracks,\" \"no one knows who called last\" |\n| **Relationship management** | \"referrals,\" \"who knows who,\" \"account management\" |\n| **Lead management** | \"leads from website,\" \"inbound inquiries,\" \"lead source tracking\" |\n\n**Do NOT use this skill for:**\n- Product configuration with pricing → use cpq-builder\n- Construction\u002Ftrades project tracking → use trades-builder\n- Inventory and stock management → use erp-builder (future)\n\n---\n\n## Template Contract\n\nBefore you start building, understand what the template gives you and what this skill adds. This is the contract:\n\n**The template (`app\u002Flayouts\u002FMainLayout.tsx`) ships with:**\n- `SidebarProvider`, `Sidebar`, `SidebarContent`, `SidebarInset`, `SidebarTrigger` — already wired\n- `SidebarContent` is **empty** — this is your landing zone\n- One brand slot in the header (logo placeholder + company name)\n- `ModeToggle` and user menu in the header's right cluster\n\n**This skill fills:**\n- `SidebarContent` — with entity navigation (Pipeline, Contacts, Companies, Deals, Activities), quick filters, and recent records (see Layout Pattern below)\n- The brand slot in the header — with the client's logo and company name from DOMAIN.md\n- The header's right cluster — adds a role switcher `DropdownMenu` before the existing user menu, plus a global search input if there's room\n- The `\u003COutlet \u002F>` in `\u003Cmain>` — via route components for each entity view (Pipeline is default)\n\n**This skill does NOT:**\n- Add a second `Sidebar` component. There is one sidebar.\n- Put a brand tile inside `SidebarContent`. Brand lives in the header only.\n- Rewire `SidebarProvider` or replace the collapsible behavior. Use what's there.\n- Build a stepper. CRM uses entity navigation — parallel views, not sequential stages.\n- Collapse the detail view into a popover or modal by default. List\u002Fdetail is a full-page pattern (list view → click → detail view in the main content area).\n\nIf you find yourself wanting to restructure `MainLayout.tsx`, stop — the answer is almost always to fill `SidebarContent` instead.\n\n---\n\n## Section Definitions\n\nThe CRM tool has **FIVE sections**. Unlike CPQ\u002Ftrades-builder, these are NOT sequential stages — they are parallel entity views. Users navigate between them freely.\n\n### Section 1: Pipeline\n\n**What it does:** Visual board view of deals moving through stages.\n\n**Display:**\n- Kanban-style columns, one per pipeline stage from DOMAIN.md\n- If DOMAIN.md does not define stages, use: Lead → Qualified → Proposal → Negotiation → Closed Won \u002F Closed Lost\n- Each deal item shows: deal name, company, value, assigned to, days in stage\n- Drag-and-drop between columns (or click to move stage)\n- \"Add deal\" button on each column\n- Filter by assigned person, date range, or deal value\n\n**If no pipeline stages exist in DOMAIN.md**, use the defaults above. The customer refines them after seeing the prototype.\n\n### Section 2: Contacts\n\n**What it does:** List\u002Fdetail view of people.\n\n**List view:**\n- Table or lightweight list of contacts\n- Columns: name, email, phone, company, last activity, tags\n- Search and filter\n- \"Add contact\" button\n\n**Detail view (clicking a contact):**\n- Contact detail: name, email, phone, company (linked), role\u002Ftitle, source, notes\n- Activity timeline below: calls, emails, meetings, notes — most recent first\n- Linked deals: list of deals associated with this contact\n- \"Log activity\" button: quick-add a call, email, meeting, or note with date and description\n\n**Fields from DOMAIN.md:**\n- Entity Registry → Contact entity fields become the contact detail fields\n- Terminology Glossary → exact field names and labels\n- If DOMAIN.md doesn't define contact fields, use: name, email, phone, company, role, source, notes\n\n### Section 3: Companies\n\n**What it does:** List\u002Fdetail view of organizations.\n\n**List view:**\n- Table of companies\n- Columns: company name, industry, contacts count, deals count, total deal value\n- Search and filter\n- \"Add company\" button\n\n**Detail view (clicking a company):**\n- Company detail: name, industry, size, website, address, notes\n- Contacts tab: list of people linked to this company\n- Deals tab: list of deals linked to this company\n- Activity timeline: aggregated from all contacts at this company\n\n**Fields from DOMAIN.md:**\n- Entity Registry → Company\u002FAccount entity fields\n- If not defined: name, industry, size, website, address, notes\n\n### Section 4: Deals\n\n**What it does:** List\u002Fdetail view of deals\u002Fopportunities.\n\n**List view:**\n- Table of deals\n- Columns: deal name, company, contact, value, stage (badge), close date, assigned to\n- Sort by value, stage, close date\n- Filter by stage, assigned person\n- \"Add deal\" button\n\n**Detail view (clicking a deal):**\n- Deal detail: name, value, stage (selectable dropdown), expected close date, probability, assigned to\n- Linked contact and company (clickable links)\n- Activity timeline specific to this deal\n- Notes section\n- \"Mark as Won\" \u002F \"Mark as Lost\" action buttons when in final stages\n\n**Stage progression:**\n- Deal stage is a `Select` dropdown populated from DOMAIN.md pipeline stages\n- Changing the stage updates the Pipeline board view automatically\n- Won\u002FLost are terminal stages — show win\u002Floss reason field when selected\n\n### Section 5: Activities\n\n**What it does:** Chronological feed of all activities across the CRM.\n\n**Display:**\n- Timeline\u002Ffeed view, most recent first\n- Each activity shows: type icon (call\u002Femail\u002Fmeeting\u002Fnote), description, linked contact, linked deal, date, logged by\n- Filter by activity type, date range, person\n- \"Log activity\" button at top\n\n**Activity types:** Call, Email, Meeting, Note, Task. Use icons to distinguish.\n- If DOMAIN.md defines different activity types, use those instead.\n\n## Layout Pattern\n\nThe CRM tool uses a **two-panel layout** (left sidebar + main content) by default. A right sidebar appears contextually when viewing a record detail.\n\n**This is NOT a stepper layout.** The left sidebar is entity navigation, not sequential stages.\n\n### Left sidebar (always visible, collapsible)\n\nThe template ships `SidebarProvider`, `Sidebar`, `SidebarContent`, and `SidebarTrigger` already wired in `app\u002Flayouts\u002FMainLayout.tsx`. `SidebarContent` is empty — that's the slot this skill fills with entity navigation. Do not re-wire the sidebar, do not add a second `Sidebar` component, and do not put a brand tile inside it. Brand identity lives in the header only (see Template Contract above).\n\n**Sidebar heading:** Use a contextual label like \"CRM\" or the business name + \"CRM\" — not a workflow description. If the business name is short, \"[Business] CRM\" reads naturally; if it's long, just \"CRM\" is fine. The heading describes what the navigation IS.\n\n| Component | Content |\n|---|---|\n| **Entity navigation** | A VERTICAL nav list inside `SidebarContent` with the five sections: Pipeline, Contacts, Companies, Deals, Activities. Each nav item shows: icon, label, and record count badge. Clicking navigates to that entity's view. **This is a navigator, NOT a stepper** — no step numbers, no completion states, no sequential flow. |\n| **Quick filters** | Below the nav, show saved filters or views if the user creates them. E.g., \"My deals,\" \"Hot leads,\" \"This week's follow-ups.\" |\n| **Recent records** | Below filters, show the 3-5 most recently accessed records (any entity type) for quick navigation. Each shows name and entity type badge. Pin this section near the bottom of the sidebar so it's always visible without scrolling. |\n\n### Main content (center — changes per section)\n\n**The active section renders based on the selected nav item.** Only one section visible at a time.\n\n```tsx\n{activeSection === \"pipeline\" && \u003CPipelineView \u002F>}\n{activeSection === \"contacts\" && \u003CContactsView \u002F>}\n{activeSection === \"companies\" && \u003CCompaniesView \u002F>}\n{activeSection === \"deals\" && \u003CDealsView \u002F>}\n{activeSection === \"activities\" && \u003CActivitiesView \u002F>}\n```\n\n**List\u002Fdetail pattern within each section:**\n- Default: list view, table, or lightweight board depending on the entity.\n- Click a record: detail view with full-width sections, activity timeline, linked records\n- \"Back to list\" button or breadcrumb to return\n- This is a standard Salesforce\u002FHubSpot pattern\n\n### Right sidebar (contextual — appears on detail views)\n\nWhen viewing a record detail (contact, company, or deal), a right sidebar can show:\n- **Quick summary** — key fields at a glance\n- **Linked records** — related contacts, deals, or companies\n- **Upcoming activities** — next scheduled call\u002Fmeeting\n\nThis sidebar is optional for the prototype. If the main content area has enough space, the detail view can be single-panel. Add the right sidebar only if the record detail benefits from simultaneous context.\n\n### RBAC behavior\n\n- Seed localStorage with roles from DOMAIN.md User Roles or Stakeholder Map.\n- Role switcher is a **single `DropdownMenu` dropdown in the header bar**.\n- **Assignment filtering**: When a role is active, optionally filter pipeline and deal views to show only records assigned to that person.\n- **Activity attribution**: Activities logged should be attributed to the active role.\n- CRM typically has fewer hard permission gates than CPQ — most users can see everything but own their assigned records.\n\n### Price\u002Fvalue visibility\n\n- Show deal values on Pipeline items, Deal list, and Deal detail.\n- Show total pipeline value per stage at the top of the Pipeline view.\n- Use the currency from DOMAIN.md.\n- Format: \"$25,000\" or \"$25,000 CAD\" depending on DOMAIN.md.\n\n### shadcn\u002Fui component mapping\n\nTreat cards as an exception, not the default layout primitive. Inline content into the page body whenever possible. Use cards only when something truly needs emphasis, separation, repetition, or dialog\u002Fdetail framing. Do not build card-heavy dashboards, cards inside cards, or generic grids of floating panels.\n\n| CRM Element | shadcn Component | Usage Notes |\n|---|---|---|\n| Entity nav items | `Button variant=\"ghost\"` in vertical stack | Inside `SidebarContent`. Active item gets accent background. Icon + label + count badge. |\n| Pipeline columns | Column sections, `ScrollArea` if many deals | Column header shows stage name + deal count + total value. Use cards only if items need strong separation. |\n| Deal items (pipeline) | Compact clickable rows or subtle item blocks | Deal name, company, value, assigned avatar. |\n| Contact\u002FCompany list | `Table` | Sortable columns, search input above. |\n| Record detail | Full-width sections with `Separator` | Keep details inline in the main page body. |\n| Activity timeline | Custom list with icons | Each item: type icon, description, date, linked record. Use `Avatar` for person. |\n| Stage badges | `Badge` | Color-coded by stage: lead=gray, qualified=blue, proposal=amber, negotiation=purple, won=green, lost=red. |\n| Deal value | `text-lg font-semibold` | Prominent on pipeline items and detail views. |\n| Assignment dropdowns | `Select` | Populated from DOMAIN.md stakeholder names. NOT free text. |\n| Activity type selector | `Select` or `RadioGroup` | Call, Email, Meeting, Note, Task. |\n| Search inputs | `Input` with search icon | At top of every list view. |\n| Action buttons | `Button` | Primary: \"Add contact,\" \"Log activity.\" Destructive: \"Delete,\" \"Mark as Lost.\" |\n| Linked record chips | `Badge variant=\"outline\"` | Clickable — navigates to the linked record. |\n| Quick add forms | `Dialog` or inline form | Modal for adding a contact\u002Fdeal quickly without leaving the current view. |\n| Empty states | Inline empty block with centered text + action | \"No contacts yet. Add your first contact.\" |\n| Confirmation dialogs | `AlertDialog` | Delete record, mark deal as lost. |\n| Toast notifications | `Sonner` \u002F `toast()` | After create, update, delete, log activity. |\n\n## Deterministic Mapping Rules\n\n### Entity → CRM Record Mapping\n\n| DOMAIN.md entity pattern | Maps to | In section |\n|---|---|---|\n| Contact \u002F Person \u002F Lead \u002F Customer | Contact record | Contacts |\n| Company \u002F Account \u002F Organization \u002F Business | Company record | Companies |\n| Deal \u002F Opportunity \u002F Sale \u002F Prospect | Deal record | Deals + Pipeline |\n| Activity \u002F Call \u002F Meeting \u002F Email \u002F Note | Activity entry | Activities + record timelines |\n| Pipeline \u002F Stage \u002F Status | Pipeline stage columns | Pipeline |\n| Referral \u002F Source \u002F Lead source | Source field on Contact or Deal | Contact\u002FDeal detail |\n\n### Relationship Mapping\n\n| DOMAIN.md relationship | Implementation |\n|---|---|\n| Contact belongs to Company | Contact has a Company field (Select dropdown). Company detail shows linked contacts. |\n| Deal has a Contact | Deal has a Contact field (Select dropdown). Contact detail shows linked deals. |\n| Deal has a Company | Deal has a Company field (auto-populated from contact's company, editable). |\n| Activity tied to Contact\u002FDeal | Activity has Contact and Deal fields (Select dropdowns). |\n\n### Business Rule → Behavior Mapping\n\n| DOMAIN.md rule pattern | Implementation |\n|---|---|\n| \"pipeline stages: X, Y, Z\" | Pipeline columns use those exact names |\n| \"only [role] can close deals\" | RBAC gate on \"Mark as Won\u002FLost\" buttons |\n| \"follow up within X days\" | Show overdue badge on contacts\u002Fdeals without recent activity |\n| \"deals over $X need approval\" | Show approval requirement note on high-value deals |\n| \"referral source tracking\" | Source field on contacts with defined dropdown values |\n| Currency\u002Ftax\u002Fterms | Display on deal values and any invoicing views |\n\n### Pipeline Stage Defaults\n\nIf DOMAIN.md does not define pipeline stages, use these:\n\n| Stage | Color | Meaning |\n|---|---|---|\n| Lead | Gray | New unqualified inquiry |\n| Qualified | Blue | Confirmed as a real opportunity |\n| Proposal | Amber | Proposal or quote sent |\n| Negotiation | Purple | In discussion, terms being worked out |\n| Closed Won | Green | Deal signed, revenue booked |\n| Closed Lost | Red | Deal did not close |\n\nThese defaults can be overridden by DOMAIN.md state models.\n\n## Key UX Patterns from Real CRMs\n\nThese patterns are drawn from Salesforce, HubSpot, Pipedrive, and Freshsales. Follow them for a prototype that feels familiar to CRM users:\n\n### 1. Everything links to everything\nContacts link to companies. Deals link to contacts and companies. Activities link to contacts and deals. Every linked name is clickable — clicking navigates to that record's detail view.\n\n### 2. Activity timeline is the heartbeat\nEvery record (contact, company, deal) shows an activity timeline. The most recent interaction matters most. \"When did we last talk to this person?\" should be answerable at a glance.\n\n### 3. Pipeline is the home screen\nThe Pipeline board view is the default landing page. Sales teams live here. Total pipeline value per stage is visible at the top.\n\n### 4. Quick-add is everywhere\n\"Log a call\" and \"Add a deal\" should be accessible from any view — either via a floating action button or a persistent \"Quick add\" in the header. Users shouldn't have to navigate away to log an interaction.\n\n### 5. Search is global\nOne search bar that finds contacts, companies, and deals by name. Results grouped by entity type.\n\n### 6. Empty states guide action\nWhen a section has no records, show a helpful empty state: \"No deals yet. Add your first deal to start tracking your pipeline.\" Include a primary action button.\n\n## Reference Files\n\nThis skill expects these files to exist:\n\n| File | Purpose |\n|---|---|\n| `DOMAIN.md` or `.tasks\u002Fdomain.md` | Business terminology, entities, pipeline stages, roles, brand data |\n\nThe builder should read `DOMAIN.md` or `.tasks\u002Fdomain.md` before writing any code.\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":27},{"author":25,"version":26},"ryan-price","1.1","Works with any AI coding assistant that supports the Agent Skills specification. Requires a running Customware SPA instance to consume the generated config.","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fcustomware-ai-skills\u002Fcrm-builder\u002Fskills\u002Fcrm-builder",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill crm-builder",{"tool":42,"command":43},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill crm-builder",{"tool":45,"command":46},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill crm-builder","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fcustomware-ai-skills\u002Fcrm-builder\u002Fskills\u002Fcrm-builder\u002FSKILL.md",true,[],[51,58,63,70,75,82],{"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},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":59,"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":60,"categories":61,"keywords":62,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":71,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":83,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]