360 Secure SkillHub
360 安全技能中心

general-best-practices

汇总编码规范、架构模式和工作流约定,重点包含环境变量 AD_ 前缀及基于工单号的特性开关命名规则,适用于新项目、代码评审、架构决策和团队规范制定。

分类:开发
未知作者
热度 0.00
最近更新 2026-11-06 23:51:07

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add handbook.adra.dev/general-best-practices
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
general-best-practices
description
Comprehensive guide for general best practices across coding, architecture, and development workflows

General Best Practices

Comprehensive development guidelines covering coding standards, architecture patterns, and workflow conventions applicable across all languages and frameworks. Contains rules prioritized by impact to guide code generation and review.

When to Apply

Reference these guidelines when:

  • Starting a new project or feature
  • Reviewing code for general quality or consistency issues
  • Making architectural decisions
  • Establishing team conventions and standards
  • Refactoring code across any language or framework

Quick Reference

  • env-variable-ad-prefix - Prefix new environment variables with AD_ (e.g. AD_MAIL_FROM) for consistent ADRA-owned configuration
  • feature-flag-naming - Name feature flags using Jira ticket numbers (DEVT-XXXX) for traceability and easy cleanup

How to Use

Read individual rule files for detailed explanations and code examples:

rules/feature-flag-naming.md

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Additional context and references