CO

common-technical-practices

Applies consistent architectural patterns for infrastructure concerns such as concurrency and observability.

Install

mkdir -p .claude/skills/common-technical-practices && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2170" && unzip -o skill.zip -d .claude/skills/common-technical-practices && rm skill.zip

Installs to .claude/skills/common-technical-practices

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

处理 BK-CI 后端中的横切技术实践时使用,例如 AOP、分布式锁、重试、参数校验、性能监控、定时任务和审计日志。当用户要实现这类框架级实践而不是具体业务功能时优先使用。
86 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Add AOP aspects
  • Implement distributed locks for concurrency control
  • Configure retry mechanisms with backoff strategies
  • Perform interface parameter validation
  • Add performance monitoring points
  • Write audit logs

How it works

This skill provides guidance for implementing common technical practices that cut across multiple modules in backend development. It directs users to relevant documentation for AOP, distributed locks, retry mechanisms, parameter validation, performance monitoring, scheduled tasks, and audit logging.

Inputs & outputs

You give it
Codebase requiring cross-cutting concerns, specific technical practice to implement
You get back
Implemented AOP aspects, distributed locks, retry mechanisms, parameter validation, performance monitoring, or audit logs

When to use common-technical-practices

  • Implementing distributed locks
  • Configuring retry strategies
  • Adding performance monitoring
  • Writing audit logs

About this skill

通用技术实践

适用场景

  • 添加 AOP 切面
  • 使用分布式锁控制并发
  • 配置重试机制与退避策略
  • 做接口参数校验
  • 添加性能监控埋点
  • 编写定时任务
  • 记录审计日志

不适用场景

  • 只是使用某个具体工具类,例如 JWT、表达式解析、线程池工具
  • 只是微服务之间的调用、事件驱动或多环境配置
  • 只是某个模块自己的业务规则

快速指导

  1. 这个 skill 关注的是“框架级横切实践”,不是具体业务模块。
  2. 如果问题更像“给业务逻辑增加一层通用能力”,通常落在这里。
  3. 先按主题进入对应参考文档:
    • AOP:reference/1-aop-aspect.md
    • 分布式锁:reference/2-distributed-lock.md
    • 重试:reference/3-retry-mechanism.md
    • 参数校验:reference/4-parameter-validation.md
    • 性能监控:reference/5-performance-monitoring.md
    • 定时任务:reference/6-scheduled-tasks.md
    • 审计日志:reference/7-audit-logging.md
  4. 如果你要的是“某个现成组件怎么用”,切到 utility-components;如果你要的是“微服务基础能力怎么搭”,切到 microservice-infrastructure

高信号规则

  • AOP、锁、重试、监控、审计这类能力通常跨多个模块复用
  • 这类实践往往和 Spring / 框架集成方式强相关
  • 落地时要优先考虑幂等性、可观测性和并发安全
  • 不要把横切能力写死在单个业务类里

关键陷阱

  • 把工具类使用问题误放到这里
  • 只实现功能,不处理幂等、超时、并发和可观测性
  • 重试、锁、定时任务直接上,而不先判断是否真的需要
  • 把审计日志、监控埋点散落在业务代码里,后续难以维护

延伸阅读

  • AOP:reference/1-aop-aspect.md
  • 分布式锁:reference/2-distributed-lock.md
  • 重试:reference/3-retry-mechanism.md
  • 参数校验:reference/4-parameter-validation.md
  • 性能监控:reference/5-performance-monitoring.md
  • 定时任务:reference/6-scheduled-tasks.md
  • 审计日志:reference/7-audit-logging.md
  • 如果你需要的是工具组件:再看 utility-components
  • 如果你需要的是微服务底座:再看 microservice-infrastructure

When not to use it

  • When only using a specific utility class like JWT or thread pool tools
  • When dealing with microservice calls, event-driven architectures, or multi-environment configurations
  • When addressing specific business rules within a module

Limitations

  • Does not address specific business functionality
  • Does not cover microservice infrastructure components
  • Does not cover general utility components

How it compares

This skill focuses on framework-level cross-cutting practices, providing a standardized approach to common infrastructure concerns rather than implementing these features within individual business logic modules.

Compared to similar skills

common-technical-practices side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
common-technical-practices (this skill)23moNo flagsIntermediate
java-pro344moNo flagsAdvanced
backend-microservice-development23moNo flagsIntermediate
microservice-infrastructure43moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by TencentBlueKing

View all by TencentBlueKing

project-module-architecture

TencentBlueKing

Project 项目管理模块架构指南,涵盖项目 CRUD、成员管理、项目配置、标签管理、项目迁移。当用户开发项目管理功能、处理项目成员、配置项目属性或实现项目相关逻辑时使用。

612

artifactory-module-architecture

TencentBlueKing

Artifactory 制品库模块架构指南,涵盖制品上传下载、存储后端适配、制品元数据、清理策略、权限控制。当用户开发制品库功能、处理制品存储、配置清理策略或实现制品管理时使用。

419

microservice-infrastructure

TencentBlueKing

微服务基础设施指南,涵盖条件配置、事件驱动架构、服务间通信、国际化与日志等微服务架构的核心基础设施。当用户实现服务间调用、配置多环境、实现异步通信、处理国际化或规范日志输出时使用。

411

frontend-vue-development

TencentBlueKing

前端 Vue 开发规范,涵盖 Vue 2/3 组件开发、Vuex 状态管理、路由配置、组件通信、样式规范、国际化。当用户进行前端开发、编写 Vue 组件、处理状态管理或实现页面交互时使用。

38

unit-testing

TencentBlueKing

单元测试编写指南,涵盖 JUnit5/MockK 使用、测试命名规范、Mock 技巧、测试覆盖率要求、TDD 实践。当用户编写单元测试、Mock 依赖、提高测试覆盖率或进行测试驱动开发时使用。

319

worker-module-architecture

TencentBlueKing

Worker 构建执行器模块架构指南,涵盖插件执行引擎、任务分发、日志上报、制品上传、Worker 生命周期。当用户开发 Worker 功能、实现插件执行、处理任务分发或优化执行器性能时使用。

37

You might also like

java-pro

sickn33

Master Java 21+ with modern features like virtual threads, pattern matching, and Spring Boot 3.x. Expert in the latest Java ecosystem including GraalVM, Project Loom, and cloud-native patterns. Use PROACTIVELY for Java development, microservices architecture, or performance optimization.

3492

backend-microservice-development

TencentBlueKing

后端微服务开发规范,涵盖目录结构、分层架构(API/Service/DAO)、依赖注入、配置管理、Spring Boot 最佳实践。当用户进行后端开发、创建新微服务、编写 Kotlin/Java 代码或设计服务架构时使用。

213

microservice-infrastructure

TencentBlueKing

微服务基础设施指南,涵盖条件配置、事件驱动架构、服务间通信、国际化与日志等微服务架构的核心基础设施。当用户实现服务间调用、配置多环境、实现异步通信、处理国际化或规范日志输出时使用。

411

spring-boot-4-conventions

loiane

Spring Framework 7 / Spring Boot 4 idioms and defaults. Use when writing or reviewing controllers, services, configuration, HTTP clients, async/virtual-thread code, or anything touching Spring's programming model.

00

clean-architecture

darshanchaudharii

Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven Design in Java 21+ Spring Boot 3.5+ applications. Use when structuring layered architectures, separating domain logic from frameworks, implementing ports and adapters, creating entit

00

Context7 MCP Rule

dlwlrmjlo

Always use the Context7 MCP server when foundational planning or architecture decisions are being made.

00

Search skills

Search the agent skills registry