← 返回
未分类 中文

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

Business module engineer skill for service-layer design, business logic extraction, and module-safe orchestration.
业务模块工程师技能,负责服务层设计、业务逻辑抽取与模块安全编排。
aiweline aiweline 来源
未分类 clawhub v1.1.0 2 版本 100000 Key: 无需
★ 0
Stars
📥 366
下载
💾 0
安装
2
版本
#latest

概述

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.

Shared Collaboration Contract

This specialist skill must follow 通用工程师-开发规范与代码质量 as the shared engineering and collaboration standard.

Before and during work:

  • Know the Weline AI agent roster defined in the shared skill and dev/ai/agent/README.md.
  • Keep work inside this specialist's ownership boundary.
  • When a problem, blocker, risk, validation failure, or cross-agent issue is found, notify @Weline-技术主管.
  • Do not silently expand scope to fix another agent's area.
  • Include collaboration status in the final report.

版本历史

共 2 个版本

  • v1.1.0 当前
    2026-05-09 04:04 安全 安全
  • v1.0.0
    2026-05-08 02:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 679 📥 328,312
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,782
it-ops-security

安全权限工程师 会话配置与数据保护

aiweline
安全工程师技能:会话配置、区域隔离、敏感状态处理及数据保护边界。
★ 0 📥 484