Pos Sales Operations Engineering 标志

Pos Sales Operations Engineering

社区
peterbamuhigire
pos-sales-operations-engineering

在实施或审查支持租户隔离的 ERP POS、代理 POS 或手动销售录入流程时使用,确保客户默认设置、产品与库存身份对应关系、库存时点、付款、权限和符合审计要求的过账保持一致。视觉呈现请使用 design engine。

Add to TypingMind

概览

发布者peterbamuhigire
代码仓库chwezi-dev-engine
技能名称pos-sales-operations-engineering
星标数
29
复刻数
6
附带文件
1
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 peterbamuhigire 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Pos Sales Operations Engineering AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/frontend-ux/pos-sales-operations-engineering
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/peterbamuhigire/chwezi-dev-engine.git /tmp/chwezi-dev-engine
mkdir -p .claude/skills
cp -r /tmp/chwezi-dev-engine/skills/frontend-ux/pos-sales-operations-engineering .claude/skills/pos-sales-operations-engineering
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Pos Sales Operations Engineering,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Pos Sales Operations Engineering。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Pos Sales Operations Engineering 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

POS Sales Operations Engineering

This skill owns the application and service contract for operational point of sale. It keeps fast sales entry aligned with tenant isolation, finished-stock truth, manufacturing timing, payment idempotency, permissions, accounting posting, and evidence. Visual hierarchy and typography remain owned by the external chwezi-design-engine engine.

Prerequisites

Load skills/frontend-ux/pos-sales-operations-engineering for implementation rules together with the external design engine's pos-and-retail-operations skill for presentation decisions. For money, inventory value, or ledger work, also route to chwezi-accounting-doctrine and the local accounting-engine.

Use When

  • Building or auditing pos.php, agent-pos.php, or encode-sales.php in an ERP.
  • Defining a tenant-wide Walk-in/default customer and its administrator permission.
  • Connecting products to finished stock, manufacturing recipes, batches, and sale deductions.
  • Consolidating multiple sales writers, payment handlers, or retry paths into one boundary.
  • Testing tenant, branch, sales-agent, plant, stock, invoice, payment, GL, and audit controls together.

Do Not Use When

  • The work is only visual composition, typography, colour, or interaction polish; use the external design engine.
  • The workflow is quotation → customer order → delivery → invoice → payment collection; design that as separate order-to-cash, not POS.
  • The task is a financial statement, statutory rule, or accounting policy judgement; use the accounting doctrine.
  • The task is generic frontend architecture without POS-specific transaction or stock semantics.

Required Inputs

InputProduced byRequired?Why
Surface inventory and user journeysProduct owner / route auditrequiredSeparates shop POS, agent POS, and manual encoding
Tenant, branch, store, agent, and plant access modelArchitecture / securityrequiredPrevents accidental scope escalation
Product-to-finished-stock mapInventory and manufacturingrequiredIdentifies the stock item a sale may deduct
Recipe and manufacturing posting rulesManufacturing / accountingwhen applicableKeeps ingredient consumption at manufacture
Customer, tender, tax, invoice, and GL mappingsSales / financerequiredDefines a complete posting boundary
Representative fixtures and replay expectationsQA / demo seedingrequiredProves normal, failed, retried, and isolated paths

Outputs

ArtefactConsumed byTemplate or acceptance condition
POS surface contractProduct, design, frontend, QANames the three operational pages and the separate order-to-cash workflow
Product-stock and manufacturing mapInventory, manufacturing, salesEvery saleable product has one active finished-stock mapping
Default-customer configuration contractTenant administration and QAOne server-resolved active customer is shared by all POS surfaces
Canonical posting boundaryAPI, accounting, inventory, auditOne atomic/idempotent service owns invoice, payment, stock, GL, and audit effects
Test and evidence bundleRelease owner and finance reviewIncludes tenant, permission, failure, replay, stock-timing, and reconciliation evidence

Non-negotiables

  1. Keep exactly three operational POS surfaces distinct: pos.php is the general shop POS; agent-pos.php posts sales strictly for a sales agent; encode-sales.php manually records an already-made sale.
  2. Store one tenant-wide default customer, normally Walk-in, in a tenant-scoped configuration key such as pos_default_customer_id. Resolve it server-side on every POS page. Never choose the first active customer or infer a default from a name containing “cash” or “walk”.
  3. Allow only super administrators, max administrators, or users with the dedicated tenant configuration permission to change that setting. Validate customer ownership and active status before saving.
  4. If the setting is missing or inactive, stop the POS page before the selling interface opens. Show a clear, localised configuration state and route the authorised user to settings; do not post an unassigned sale.
  5. Sell products, not arbitrary stock items. Each saleable product must map 1:1 to a finished stock item. Ingredients and packaging are not POS catalogue cards.
  6. Manufacturing consumes recipe ingredient stock and produces the finished stock item. Sale posting deducts only that finished stock item. Do not deduct recipe ingredients again at sale.
  7. Use one canonical transaction service or explicit adapters into it. Enforce tenant scope, customer validation, mapped product identity, batch/FEFO availability, price, invoice, payment, stock movement, GL posting, audit lineage, and idempotency in the service boundary.
  8. Keep branch-sales access, sales-agent access, and plant/job access as separate permissions. A user who can view branch sales does not automatically gain plant access.
  9. Treat a timeout as an unknown result. Retry with the same idempotency key and reconcile persisted records before displaying a new success or creating a second invoice.
  10. For fiscal POS deployments, apply the mandatory session-locking and receipt sequence controls in skills/product-business/product-discovery/references/feature-planning/references/pos-mandatory-requirements.md.

Decision rules

ConditionRequired actionFailure avoided
Active tenant default existsLoad it in all three POS pages before async catalogue workEmpty or divergent customer attribution
Default is absent or inactiveBlock the POS interface and show configuration guidanceUnassigned or guessed customer sales
Operator selects a named customerPreserve it through product, sales-point, review, and retry statesSilent reset to Walk-in
Product lacks an active 1:1 finished-stock mappingHide or reject it and report the data defectRaw ingredient or phantom stock sale
Recipe ingredient is consumedPost at manufacturing completionDouble consumption at sale
Finished stock is soldDeduct the mapped finished item by batchIngredient deduction or negative stock leakage
User has branch rights but no plant rightsKeep plant records and job cards inaccessiblePermission transitivity breach
Payment response is unavailableReconcile by idempotency key before retryingDuplicate payment or invoice
Any journal, stock, or invoice write failsRoll back the atomic boundary or post an authorised reversalPartial economic event

Workflow

  1. Inventory the surfaces. Search routes, APIs, JavaScript, services, stored procedures, seeders, reports, and tests. Mark every writer and payment path; retire fake or random-ID writers rather than leaving them as competing authorities.
  2. Write the identity map. Record product ID, finished stock-item ID, recipe ingredient IDs, batch ID, UOM, price, cost, and the direction of each manufacturing and sales movement. Keep customer-facing product identity separate from inventory identity.
  3. Define tenant configuration. Add the setting, permission, settings UI, API validation, audit metadata, and a repeatable demo seeder. Verify the default belongs to the current tenant and is active.
  4. Gate and initialise all pages. Resolve the default before rendering the sale interface or starting asynchronous catalogue calls. Show explicit loading, empty, error, disabled, and configuration-required states.
  5. Consolidate posting. Route normal invoice sales, manual encoding, agent sales, and payment receipt through the canonical service. Preserve the same request/idempotency contract across retries and replay.
  6. Enforce stock timing. Manufacture ingredient-to-finished movements at job completion; sell product-to-finished-stock movements at sale posting; lock and validate the relevant batch quantities in the same transaction.
  7. Verify boundaries. Test tenant and branch scope, sales-agent scope, plant separation, permission changes, inactive defaults, unmapped products, insufficient stock, duplicate keys, payment timeouts, voids, and reversals.
  8. Reconcile evidence. Confirm invoice lines, payments, stock ledger, batch balances, GL journals, customer balance, and audit entries agree. Run the seeder in dry-run/apply/verify modes and prove replay does not duplicate.

Quality Standards

  • Use server-derived tenant context and prepared statements; never trust a tenant ID, customer ID, stock ID, branch ID, or plant ID from the browser.
  • Keep errors solution-bearing and localisable. Never return a green success state before the persisted result is known.
  • Require focused unit/contract tests, a database-backed integration path where possible, PHP/JavaScript syntax checks, and a release evidence record.
  • Keep the implementation separate from the visual system. Hand off spacing, type, colour, touch targets, and visual QA to the design engine.

Anti-Patterns

  • Name heuristic default: selecting the first customer matching “cash”. Fix: resolve the explicit tenant setting and block when invalid.
  • Terminal override: letting a sales-point default silently replace the tenant default. Fix: keep compatibility fields secondary to the tenant key.
  • Raw-stock catalogue: displaying bottles, jars, labels, or ingredients as products. Fix: expose only active product-to-finished-stock mappings.
  • Sale-time recipe deduction: consuming ingredients when a product is sold. Fix: consume ingredients at manufacture and finished stock at sale.
  • Writer sprawl: separate fake sale/payment writers for each screen. Fix: use one canonical transaction boundary and adapters.
  • Permission shortcut: treating branch visibility as plant access. Fix: model and enforce plant permissions separately.
  • Retry duplication: generating a new idempotency key after a timeout. Fix: query the original key and reconcile before retrying.
  • False success: trusting a browser toast without invoice, stock, and GL evidence. Fix: verify persisted records and reconcile the posting.

Read next

  • External chwezi-design-engine/skills/06-sector-and-domain-ux/pos-and-retail-operations
  • skills/architecture/api-design-first
  • skills/finance-accounting/accounting-engine
  • skills/backend-databases/database-design-engineering
  • skills/security/vibe-security-skill
  • skills/sdlc-meta/advanced-testing-strategy
  • skills/devops-cloud/reliability-engineering
  • skills/sdlc-meta/skill-composition-standards

References

  • references/pos-operations-contract.md — detailed identity, transaction, permissions, and evidence contract.
  • skills/product-business/product-discovery/references/feature-planning/references/pos-mandatory-requirements.md — session and receipt controls.
  • skills/sdlc-meta/skill-composition-standards/references/test-plan-template.md — test evidence shape.
  • skills/sdlc-meta/skill-composition-standards/references/rollback-plan-template.md — rollback evidence shape.

Evidence Produced

CategoryArtifactFormatExample
CorrectnessPOS sale-to-ledger journey evidenceMarkdown plus transaction fixturescustomer, stock, payment, posting, retry, reversal, permission, and reconciliation

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Pos Sales Operations Engineering AI 技能有什么作用?

在实施或审查支持租户隔离的 ERP POS、代理 POS 或手动销售录入流程时使用,确保客户默认设置、产品与库存身份对应关系、库存时点、付款、权限和符合审计要求的过账保持一致。视觉呈现请使用 design engine。

为什么在 TypingMind 中使用 Pos Sales Operations Engineering?

因为您只需安装一次,就能搭配任何模型使用。Pos Sales Operations Engineering 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Pos Sales Operations Engineering?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/frontend-ux/pos-sales-operations-engineering。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Pos Sales Operations Engineering?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Pos Sales Operations Engineering 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Pos Sales Operations Engineering 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Pos Sales Operations Engineering AI 技能免费吗?

是的。peterbamuhigire 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇