Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

trades-builder交易建设者

Agent Skill

trades-builder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,463

周安装

264

GitHub Stars

1

下载量

2,091
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:trades-builder(交易建设者)
来源仓库:https://github.com/customware-ai/skills
仓库路径:skills/trades-builder
安装命令:
npx skills add https://github.com/customware-ai/skills --skill trades-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/customware-ai/skills --skill trades-builder

简介

用于查找、检索和筛选与交易结构或执行方案相关的信息。

  • 适合在衍生品设计、套利策略或订单流分析中使用。trades-builder 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 通过关键词匹配帮助用户定位常见模式、工具链或历史案例。
  • 使用前应确认是否涉及实时市场数据接口,注意合规与延迟问题。
  • 建议结合原始文档了解具体输出格式和适用市场范围。

SKILL.md

Trades Operations Skill

What This Skill Does

This skill defines how to build a trades operations tool — the estimate-to-payment workflow that construction trades and field service businesses run daily.

It is NOT a generic project management tool (Jira/Asana). It is NOT a CPQ tool (no product configuration). It is a workflow tracker specifically shaped for businesses that:

  • Create estimates based on measured scope items (square footage, linear feet, units)
  • Schedule and assign field work to crews or subtrades
  • Track progress by scope item and location
  • Pay subtrades based on completed measured work
  • Invoice customers and collect payment

Common verticals: drywall, roofing, HVAC, plumbing, electrical, painting, flooring, concrete, landscaping, general contracting.

The builder reads this skill, reads the DOMAIN.md for the specific trade and terminology, and generates a working prototype that uses the customer's actual scope items, pricing, and workflow stages.

When to Use This Skill

Use this skill when the transcript or DOMAIN.md contains these signals:

SignalExamples
Scope items with measurementssquare footage, linear feet, board feet, units per area
Field schedulingcrew assignment, job calendar, field work planning
Subtrade paymentspaying subs, trade payments, per-sqft pay rates
Estimate-to-invoice workflowestimate → schedule → work → invoice cycle
Trade-specific scopesinsulation, drywall, taping, roofing, framing, plumbing rough-in
Location-based specsdifferent specs per floor, per room, per zone
Dual invoicingtrade invoices (outgoing to subs) AND customer invoices (incoming from clients)

Do NOT use this skill for:

  • Product configuration with dependencies → use cpq-builder
  • Inventory and stock management → use erp-builder (future)
  • Generic CRM or contact management → use crm-builder

Template Contract

Before you start building, understand what the template gives you and what this skill adds. This is the contract:

The template (app/layouts/MainLayout.tsx) ships with:

  • SidebarProvider, Sidebar, SidebarContent, SidebarInset, SidebarTrigger — already wired
  • SidebarContent is empty — this is your landing zone
  • One brand slot in the header (logo placeholder + company name)
  • ModeToggle and user menu in the header's right cluster

This skill fills:

  • SidebarContent — with the vertical stepper and saved projects (see Layout Pattern below)
  • The brand slot in the header — with the client's logo and company name from DOMAIN.md
  • The header's right cluster — adds a role switcher DropdownMenu before the existing user menu
  • The <Outlet /> in <main> — via route components for each of the five sections

This skill does NOT:

  • Add a second Sidebar component. There is one sidebar.
  • Put a brand tile inside SidebarContent. Brand lives in the header only.
  • Rewire SidebarProvider or replace the collapsible behavior. Use what's there.
  • Put the stepper as horizontal tabs in the main content area. The stepper is a vertical list inside SidebarContent.

If you find yourself wanting to restructure MainLayout.tsx, stop — the answer is almost always to fill SidebarContent instead.


Section Definitions

The trades-builder tool has FIVE sections. These are fixed — they come from this skill, not from the business process described in the transcript.

Section 1: Estimate

What it does: Capture the project details and build the scope-based estimate.

Project details (editable inline):

  • Project name — inline editable text (click to edit, save on blur)
  • Customer name — inline editable text
  • Address — inline editable text
  • Estimate number — auto-generated, read-only
  • Lead source — Select dropdown if DOMAIN.md defines sources, otherwise free text
  • Estimator notes — Textarea, always editable

Scope items table (the core of this section): This table is the most important element in the app. Each row represents a scope of work with measured quantities.

ColumnTypeEditableNotes
ScopeSelect dropdownYesOptions from DOMAIN.md: insulation, drywall, taping, sanding, cleaning, priming, etc.
LocationText inputYese.g., "Main floor living room," "Basement suite"
Spec/TypeText input or SelectYese.g., "Type X," "Moisture resistant," "R-20 batt," "Level 4 finish"
Sq ftNumber inputYesSquare footage for this scope at this location
RateNumber inputYesDollar rate per sqft (CAD)
Line totalCalculatedNoSqft × Rate, auto-calculated
ActionsDelete buttonTrash icon to remove the row
  • "Add row" button below the table to add more scope items
  • Multiple rows per scope type — e.g., two drywall rows for different locations with different types
  • Auto-calculated footer: Subtotal, Tax (GST 5%), Total — updates on every cell change
  • All cells are directly editable — click a cell, type, blur to save. See frontend-design skill for inline editing pattern.

Data from DOMAIN.md to use:

  • Entity Registry → Job Specification sub-items become the Scope dropdown options
  • Business Rules → unit of measure (sqft, lft), tax type and rate, payment terms
  • Terminology Glossary → exact scope names (not generic labels)

Section 2: Schedule

What it does: Plan field work assignments and sequence.

Fields (editable):

  • Assigned roles/people — Select dropdowns from DOMAIN.md Stakeholder Map, NOT free text
  • Scope sequence — reorderable list showing which scope items happen in what order
  • Start date — date picker, editable
  • Target completion date — date picker, editable
  • Field crew notes — Textarea, editable

If DOMAIN.md mentions scheduling tools (e.g., "Bold for scheduling"), reference them in the section description: "Use Bold to line up the field crew."

Section 3: In Progress

What it does: Track work completion per scope item and location.

Display:

  • Table populated from Estimate's scope items — same rows, now being tracked for completion
ColumnTypeEditableNotes
ScopeTextNoFrom Estimate
LocationTextNoFrom Estimate
Sq ftNumberNoFrom Estimate
StatusSelect dropdownYesNot Started / In Progress / Completed
  • Status changes save immediately to localStorage
  • "Mark all completed" button for bulk update
  • Progress indicator: "3 of 5 scope items completed"

Section 4: Close Out

What it does: Handle the dual payment flow — pay subtrades and invoice the customer.

Display — two invoice sections side by side:

Trade Invoice section:

  • Subtrade payment amount — auto-calculated from completed scope items (sqft × rate)
  • Status: Select dropdown — Ready to pay / Paid
  • Payment date — date picker, editable when status is Paid
  • Reference to Bold if mentioned in DOMAIN.md

Customer Invoice section:

  • Invoice amount — subtotal + tax from Estimate
  • Status: Select dropdown — Ready to send / Sent / Paid
  • Invoice date — date picker, editable
  • Reference to Arvest if mentioned in DOMAIN.md
  • "Close out job" action button that marks the project as Completed
  • Both invoice statuses must be saved to localStorage

If DOMAIN.md mentions invoicing tools, reference them in the section headers: "Trade invoice (Bold)" and "Customer invoice (Arvest)."

Section 5: Job Summary

What it does: Read-only summary of the completed project — the final output view.

Layout (top to bottom):

  1. Company header — brand logo from domain.md Brand Logos section (use the logo URL or path provided) + company name + placeholder address ("123 Main St, City, Province, Postal Code — update in settings")
  2. Project metadata — project name, customer, address, estimate number, dates, assigned to. Two-column grid of label/value pairs.
  3. Scope summary table — all scope items with scope type, location, spec/type, sqft, rate, line total. Clean Table with right-aligned numeric columns.
  4. Totals block — subtotal, tax (GST 5%), total. Total is large and bold.
  5. Payment status — trade invoice status badge + customer invoice status badge, side by side.
  6. Terms — payment terms (Net 30), currency (CAD).

This view is entirely read-only. No edit controls, no inputs, no dropdowns. Users click back to Estimate or Schedule in the stepper to make changes. The Job Summary is the output, not the workspace.

Layout Pattern

The trades-builder tool uses a three-panel layout with FIVE sections (not four). The builder MUST follow this layout.

Left sidebar (always visible, collapsible)

The template ships SidebarProvider, Sidebar, SidebarContent, and SidebarTrigger already wired in app/layouts/MainLayout.tsx. SidebarContent is empty — that's the slot this skill fills. 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).

Sidebar heading: Use a contextual label like "Workflow" or "Project workflow" — not the company name. The heading describes what the navigation IS.

ComponentContent
StepperA VERTICAL list of ALL FIVE sections inside SidebarContent: (1) Estimate, (2) Schedule, (3) In Progress, (4) Close Out, (5) Job Summary. Each step shows: step number, label, subtitle from section description, and completion state. Vertical stepper in the sidebar — NOT horizontal tabs in the main content area.
Saved projectsList of projects stored in localStorage. Each shows name + customer + status badge (Estimated / Scheduled / In Progress / Completed). Pin this section to the bottom of the sidebar so it's always visible without scrolling. Double-click a project name to rename inline.

CRITICAL: Stepper labels come from THIS SKILL, not from DOMAIN.md. The DOMAIN.md state model may list estimated, scheduled, in progress, completed — those are the project's STATUS values for badges. The stepper LABELS are the skill's section names: Estimate, Schedule, In Progress, Close Out, Job Summary. These are different things. The stepper has 5 steps. The domain has 4 statuses. Do not use the domain status list as stepper labels — you'll get 4 steps instead of 5 and lose Close Out and Job Summary.

Main content (center — changes per section)

Only the active section renders. Do NOT stack all sections on one scrolling page. Do NOT combine multiple sections into one panel (e.g., "Schedule / In Progress / Close Out" as one section is WRONG — each is its own panel). Do NOT use horizontal tabs. Each stepper step shows its corresponding panel at FULL WIDTH of the main content area. All other panels are hidden.

Implementation: use a currentStep state variable (0–4). Render only the panel that matches currentStep.

// ALL FIVE panels, conditional rendering
{currentStep === 0 && <EstimatePanel />}
{currentStep === 1 && <SchedulePanel />}
{currentStep === 2 && <InProgressPanel />}
{currentStep === 3 && <CloseOutPanel />}
{currentStep === 4 && <JobSummaryPanel />}
SectionWhat renders
EstimateProject details form + scope items table with add/remove rows, quantities, rates, auto-calculated totals. "Save estimate" and "Continue to Schedule" buttons.
ScheduleRole/crew assignment dropdowns (from DOMAIN.md), scope sequence, date fields, field notes. "Continue to In Progress" button.
In ProgressLocation-based scope tracking table with status per row. "Mark completed" button.
Close OutTrade invoice section + customer invoice section, side by side. "Close out job" button.
Job SummaryRead-only formatted project summary with company header, scope table, totals, payment status.

Right sidebar (always visible)

ComponentContent
Project summaryLive-updating sidebar summary: current stage, estimate number, payment terms, subtotal, tax, total. Updates when scope items change.
Workflow notesBusiness rules from DOMAIN.md displayed as contextual guidance. Reference BR-IDs.
ActionsBack, Continue, and Delete project buttons. Primary action uses brand accent color.

RBAC behavior

  • Seed localStorage with roles from DOMAIN.md User Roles or Stakeholder Map.
  • Role switcher is a single DropdownMenu dropdown in the header bar — not separate buttons. Shows active role name and badge.
  • Approval gating: If DOMAIN.md says only certain roles can close out or approve, disable those buttons for other roles.
  • Role-specific views: If roles handle specific stages (e.g., estimator handles Estimate, project manager handles Schedule), show relevant context when that role is active.

Price visibility

  • Show prices on the Estimate panel — unit rates, line totals, subtotal, tax, total.
  • Show running totals in the right sidebar Project Summary.
  • Use the currency, tax type, and tax rate from DOMAIN.md.
  • Format prices with the currency code (e.g., "$3,900.40 CAD" or "$3,900.40" with "CAD" shown in the summary).

shadcn/ui component mapping

Treat 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/detail framing. Do not build card-heavy dashboards, cards inside cards, or generic grids of floating panels.

Trades-ops Elementshadcn ComponentUsage Notes
Project details formInput, Label, SelectProject name, customer, address. Stack label above input.
Scope items tableTable, TableHeader, TableRow, TableCellAdd/remove rows. Right-align numeric columns.
Scope item statusBadgeNot Started = outline, In Progress = blue, Completed = green.
Project status badgesBadgeEstimated = amber, Scheduled = blue, In Progress = blue, Completed = green.
Role badgesBadgeStaff = outline, Approver = default.
Assignment dropdownsSelect, SelectContent, SelectItemPopulate from DOMAIN.md stakeholder names. NOT free text inputs.
Invoice status sectionsInline sections with Separator, Badge, Select, InputTrade invoice + customer invoice side by side. Use cards only if the invoices need stronger separation.
Action buttonsButtonPrimary: brand accent, "Continue." Secondary: outline, "Back." Destructive: "Delete project."
Stepper navigationCustom vertical listInside SidebarContent. Step number in circle, label, subtitle, completion checkmark. Use cn() for states.
Role switcherDropdownMenuSingle dropdown trigger in header.
Project summary sidebarInline stacked label/value rowsLabels muted, values bold. Total row large and prominent.
Workflow notesCompact muted note blockReference material with BR-IDs.
Date fieldsInput with type="date"Start date, target completion.
Notes/textareaTextareaEstimator notes, field crew notes.
Confirmation dialogsAlertDialogDelete project, close out job.
Toast notificationsSonner / toast()After save, mark complete, close out.

Deterministic Mapping Rules

Entity → Scope Item Mapping

When the Knowledge Agent extracts entities from the transcript, map them to the trades-builder structure:

DOMAIN.md entityMaps toIn section
Project / JobProject record (top-level)All sections
EstimateEstimate data (prices, terms)Estimate panel
Job Specification / ScopeScope items table rowsEstimate + In Progress
InvoiceCustomer invoice sectionClose Out
Trade InvoiceTrade invoice sectionClose Out
Subtrade PaymentPayment status on trade invoiceClose Out
Field ScheduleSchedule dataSchedule panel

Business Rule → Validation Mapping

DOMAIN.md rule patternImplementation
"tracked by square footage"Scope items table uses sqft as quantity column
"paid per square footage"Trade invoice amount = sum of (sqft × rate) for completed scope items
"different [type] per location"Scope items table includes Location column, multiple rows per scope type
"stages: estimated, scheduled, in progress, completed"Stepper stages match exactly
"manually entered"Project creation form, no import flow
"GST/HST at X%"Tax line in estimate and invoice, tax type as label
"Net 30/45"Payment terms shown in summary and invoice
"only [role] can [action]"RBAC gate on the relevant button

Integration → Reference Mapping

If DOMAIN.md lists integration points (e.g., Bold, Arvest, QuickBooks), reference them in section descriptions and workflow notes — but do NOT build integration UI. The prototype is localStorage-only. Integration comes in the full build.

Reference Files

This skill expects these files to exist:

FilePurpose
DOMAIN.md or .tasks/domain.mdBusiness terminology, entities, rules, roles, brand data

The builder should read DOMAIN.md or .tasks/domain.md before writing any code.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.26%
按下载量换算758

Claude

30.49%
按下载量换算638

Cursor

19.41%
按下载量换算406

Gemini CLI

10.12%
按下载量换算212

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills