业务模块工程师-服务层与业务逻辑

Business module engineer skill for service-layer design, business logic extraction, and module-safe orchestration.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "业务模块工程师-服务层与业务逻辑" with this command: npx skills add aiweline/business-service-logic

Role

This skill owns service-layer implementation and business-rule placement inside modules. It keeps controllers thin, models focused on persistence, and business logic extracted into services that can be tested and reused.

When To Use

  • Use for service classes, business-rule extraction, API service contracts, and coordination between controllers and models.
  • Use for keywords such as service, business logic, orchestration, API layer, domain rule, and refactor controller logic.
  • Use when a task is more about module behavior than about framework infrastructure.

Source Material

  • AI-ENTRY.md
  • CLAUDE.md
  • dev/ai/skills/service-development/SKILL.md
  • dev/ai/skills/code-generation-standards/SKILL.md
  • dev/ai/skills/module-development/SKILL.md

Responsibilities

  • Place business logic in services instead of controllers or templates.
  • Define stable module-local service contracts and collaboration boundaries.
  • Keep persistence concerns in models and orchestration concerns in services.
  • Structure code to support unit testing and future reuse.

Workflow

  1. Confirm the business rule, the entry point, and the owning module.
  2. Read the existing controller, service, and model interaction before changing structure.
  3. Extract or implement the rule inside a service with explicit dependencies.
  4. Keep controllers and console commands focused on input/output orchestration only.
  5. Add unit tests around the extracted service behavior.
  6. Validate the end-to-end feature path through its real entry point.
  7. Report the service boundary and any new contract assumptions.

Weline Rules

  • Prefer small, isolated, testable changes.
  • Keep module boundaries intact.
  • Do not hardcode user-facing text.
  • Use i18n for user-facing text.
  • Provide unit test evidence where relevant.

Inputs Required

  • The current feature entry point and expected business outcome.
  • The owning module and collaborating models or services.
  • Any API or controller contracts that must remain stable.
  • Required validation path and edge cases.

Expected Output

  • A service-layer implementation or refactor with clearer business boundaries.
  • Unit-test or focused validation evidence for the business rule.
  • Notes about affected controller, API, or model interactions.

Validation

  • Run targeted unit tests for extracted or changed service behavior.
  • Run a route, command, or API check through the real entry point when relevant.
  • Confirm controllers no longer contain unnecessary business-rule branches.
  • Confirm models remain persistence-focused rather than becoming orchestration hubs.

Constraints

  • Do not move UI rendering logic into services.
  • Do not bury business-critical logic inside controllers, commands, or templates.
  • Do not introduce raw SQL or framework-invented APIs in service code.
  • Do not change public contracts silently without documenting the impact.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Content Keyword Tracker

An OpenClaw skill for tracking keyword trends and generating structured reports. Uses Tavily API for search and supports webhook notifications for daily repo...

Registry SourceRecently Updated
General

读书每日推荐

微信读书飙升榜每日推荐卡片生成器。从微信读书飙升榜抓取热门书籍数据,生成精美的每日读书推荐卡片(HTML/PNG)。当用户说「读书推荐」「微信读书」「飙升榜」「今日好书」「推荐一本书」「读书卡片」「book recommendation」时触发。也可用于每日定时推送读书推荐场景。

Registry SourceRecently Updated
General

V3.3 系统架构白皮书

V3.3系统架构白皮书 — V19认知治理协议最高级架构版本。三维耦合引擎(空间冗余×时间调度×结构对齐)整合内部自洽、外部控制、注意力均衡为单一状态机驱动执行流。

Registry SourceRecently Updated
General

CORE CONSTITUTION MANIFEST API Spec v1.0.0

CORE CONSTITUTION MANIFEST API规范文档v1.0.0 — V19认知治理协议的外部接入技术规范。包含宪法合规校验、系统启动自检、注意力均衡、审计冗余查询等核心端点。

Registry SourceRecently Updated