Dev Conventions — Design skill for Claude Code
Android / 软件项目的通用开发约定与硬约束(详细版),覆盖组件与 UI 设计规范、主题与深色适配、构建验证与构建前排查、原生库 16KB 页对齐、工具链架构匹配、安装脚本自检、Kotlin 协程、内存泄漏、列表性能、外部 IO 容错、签名与混淆发版、敏感信息管控、Git 规范、开发记录与架构图、崩溃日志采集、Skill/MCP 管理.
How to install Dev Conventions
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Ray01207/dev-conventions and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Dev Conventions does
Android / 软件项目的通用开发约定与硬约束(详细版),覆盖组件与 UI 设计规范、主题与深色适配、构建验证与构建前排查、原生库 16KB 页对齐、工具链架构匹配、安装脚本自检、Kotlin 协程、内存泄漏、列表性能、外部 IO 容错、签名与混淆发版、敏感信息管控、Git 规范、开发记录与架构图、崩溃日志采集、Skill/MCP 管理。本技能应在以下场景使用:编写或修改 Android 项目代码、调整布局/样式/主题/颜色/间距、新增或改动组件、配置签名或混淆规则、打 release 包、安装 NDK/build-tools 等工具链、排查构建失败或运行闪退、以及任何 Android / 软件项目开工前需要对齐开发规范时。
Alternatives in Design
- CloudCLI — 8,400+ Free open-source web/mobile UI for Claude Code, Cursor CLI, and Codex 8.7k ★
- Guitar — by soramimi - Serves as development guide for Guitar Git GUI Client with build commands for various platforms 1.7k ★
- Claude Powerline — by Owloops - A vim-style powerline statusline for Claude Code with real-time usage tracking, git integration 940 ★
README
Dev Conventions & Guardrails
Android 通用开发 & UI 规范 —— 一份让 AI 写代码前自动遵守的工程约定包。
**中文** | [English](#english)
[](https://github.com/Ray01207/dev-conventions/releases) [](LICENSE)
这是什么
一份跨项目通用的开发约定与硬约束,封装成 AI 工具(WorkBuddy / Claude Code 等支持 `SKILL.md` 标准的客户端)可以自动加载的 Skill 包。
它解决的不是"知识不够",而是**AI 每次动手都要重新提醒一遍**的问题:
- 布局里直接写
#FF5722,切深色模式全崩 - 控件之间零间距,换台设备就露馅
- 外部存储
readText()裸调用,一个权限问题崩掉整页 - 给 arm64 机器下 x86_64 的 NDK,然后花两小时查「为什么 aapt2 跑不起来」
.so没做 16KB 页对齐,Android 15 装不上- 每台机器各自生成 debug keystore,换环境无法覆盖安装
这些坑写进规范,AI 动手前读一遍,比事后返工便宜得多。
结构
采用**渐进披露**:入口文件只保留 52 行,常驻上下文不占地方;细则按场景拆分,用到哪份读哪份。
dev-conventions/
├── SKILL.md 入口:触发条件 + 场景路由表 + 十条最高频硬约束
├── references/
│ ├── component-and-ui.md 组件六原则 / 深色适配 / UI 设计规范十节
│ ├── build-and-env.md 构建验证 / 16KB 页对齐 / 工具链架构匹配 / 脚本自检
│ ├── code-and-runtime.md 外部 IO 容错 / Kotlin 协程 / 内存泄漏 / 列表性能
│ ├── release-and-security.md 签名 / 混淆发版 / 密钥管控 / Git 规范
│ └── workflow-and-docs.md 开发记录 / 架构图 / 崩溃日志 / Skill-MCP 管理
├── README.md
└── LICENSE
| 文件 | 行数 | 什么时候会读到 |
|---|---|---|
SKILL.md |
52 | 总是(决定要不要触发、去哪找细则) |
component-and-ui.md |
117 | 改布局 / 样式 / 颜色 / 间距 / 主题 |
build-and-env.md |
68 | 跑构建 / 装工具链 / 打 .so / 改依赖 |
code-and-runtime.md |
40 | 写业务逻辑 / 协程 / 文件 IO / 列表 |
release-and-security.md |
36 | 配签名 / 开混淆 / 打 release / 提交代码 |
workflow-and-docs.md |
47 | 改完留痕 / 开新项目 / 接崩溃采集 |
安装
三种方式任选一种。共同点是:最后放进技能目录的必须是 `SKILL.md` 与 `references/` 的**同级结构**,外层多套一层目录会导致加载不到。
方式一:下载 zip(不需要 git)
从 [Releases](https://github.com/Ray01207/dev-conventions/releases/latest) 下载 `dev-conventions-vX.Y.Z.zip`,解压后把 `dev-conventions` 整个目录放进技能目录:
# 文件名以实际下载的版本为准,下面以 v1.0.1 为例
# macOS / Linux
unzip dev-conventions-v1.0.1.zip -d ~/.workbuddy/skills/
# Windows PowerShell
Expand-Ar
Related Skills
React Expert
Implement React changes using detected versions and framework, react.dev guidance, codebase conventions, acces
UI Pro Magic
Claude Code skill combining ui-ux-pro-max (design strategy: 50+ styles, 97 palettes, 57 fonts, 99 UX rules) wi
Claudemd Design Adopt
Generate a thin, fact-based DESIGN.md from a UI project's real design-token sources and wire it into project C
Coding Conventions
Enforces client coding conventions. Use when writing, reviewing, or modifying React/TypeScript code in the cli
API Design
RESTful API design with best practices and conventions
Terminal Dx
You are designing or improving a terminal-facing UI for the Syn137 project. Follow these patterns exactly. The
Related Agents
Compose Executor
Generates Jetpack Compose Material 3 composables (Kotlin) from one plan task plus the canonical token-bridge,
Android App Dev
Développeur Android des applications coptes (KatamerosCopte, LivreAGPIA). À utiliser pour les écrans Kotlin (v
Android Dev
Builds the Android app (phones and tablets) from product-designer's design and the API contract, test first -