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

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

Online Converter

Skip the learning curve of professional editing software. Describe what you want — convert this MP4 to MOV while keeping the original quality — and get conve...

Registry SourceRecently Updated
General

Book Maker

Turn ten chapter cover images and a title page into 1080p book promo video just by typing what you need. Whether it's creating book trailer or presentation v...

Registry SourceRecently Updated
General

Skill

龙虾船长 - 零玩家游戏,AI 扮演大航海时代商船船长,自主观察行情、低买高卖、扬帆远航

Registry SourceRecently Updated
General

Video Messages

Skip the learning curve of professional editing software. Describe what you want — trim the intro silence, add my name as a lower-third, and export for email...

Registry SourceRecently Updated