基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/zhizhunbao/ai-dev-config --skill code-standards命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Complete software development lifecycle from requirements to deployment. Use when (1) starting a new project from scratch, (2) need structured end-to-end development process, (3) require comprehensive documentation and quality gates at each phase.
专业的AI Agent(AI Agents)顾问助手,探索 AI Agent 框架和应用。当用户询问以下问题时使用:(1) 技术选型和对比 (2) 使用指南和最佳实践 (3) 问题诊断和解决 (4) 资源推荐 (5) 常见问题解答
Comprehensive CV learning assistant. Use when studying image processing, object detection, segmentation, or any CV tasks. Helps with algorithm understanding, implementation, and model optimization.
| name | code-standards |
| description | 代码规范检查与自动修正。Use when (1) 创建新项目/模块需要规范目录结构, (2) 检查文件命名是否符合规范, (3) 验证代码组织是否合理, (4) 重构现有代码结构 |
project/
├── src/ # Source code
│ ├── core/ # Core business logic
│ ├── api/ # API endpoints
│ ├── models/ # Data models
│ ├── services/ # Business services
│ └── utils/ # Utility functions
├── tests/ # Test files (mirror src structure)
├── scripts/ # Utility scripts
│ ├── scrapers/ # Data collection
│ ├── organizers/ # Data processing
│ └── utils/ # Script utilities
├── docs/ # Documentation
└── pyproject.toml # Dependencies
project/
├── src/
│ ├── components/ # React components (PascalCase)
│ ├── hooks/ # Custom hooks (use*.ts)
│ ├── services/ # API services
│ ├── types/ # TypeScript types
│ ├── utils/ # Utility functions
│ └── pages/ # Page components
├── public/ # Static assets
└── package.json
snake_case.pyPascalCasesnake_caseUPPER_SNAKE_CASE_leading_underscorekebab-case.ts or PascalCase.tsx (components)PascalCasecamelCaseUPPER_SNAKE_CASEPascalCaselowercase or kebab-case.eslintrc.js, pyproject.toml)UPPERCASE.md (README, CHANGELOG) or kebab-case.md# Verify standard directories exist
required_dirs = ["src", "tests", "docs"]
optional_dirs = ["scripts", "config", "data"]
# Check for anti-patterns
bad_patterns = [
"utils/utils.py", # Redundant naming
"helpers/helper.py", # Vague naming
"misc/", "temp/", "old/" # Unclear purpose
]
test_*.py or *.test.ts)utils.py, helpers.py, common.py)# Good: Clear dependency hierarchy
from src.core.models import User
from src.services.auth import AuthService
# Bad: Circular imports, unclear boundaries
from src.utils import everything
When violations are found:
Example output:
❌ backend/scripts/helpers.py
Issue: Generic filename in wrong location
Fix: Move to backend/scripts/utils/file_helpers.py
❌ frontend/src/components/button.tsx
Issue: Component file should use PascalCase
Fix: Rename to Button.tsx
✓ Apply all fixes? (y/n)
# Before: services.py (800 lines)
# After:
services/
├── __init__.py
├── auth_service.py
├── user_service.py
└── email_service.py
# Before: Mixed in main module
# After:
utils/
├── validators.py # Input validation
├── formatters.py # Data formatting
└── converters.py # Type conversion
# Feature-based (preferred for large projects)
features/
├── auth/
│ ├── models.py
│ ├── services.py
│ └── api.py
└── users/
├── models.py
├── services.py
└── api.py
Check for project-specific conventions in:
.kiro/steering/naming-conventions.mddocs/development-principles.mddocs/dependency-rules.mdLoad these files first to understand project context.
Before completing:
Trigger this skill when:
For detailed naming rules: See project docs in docs/naming-conventions.md
For dependency guidelines: See docs/dependency-rules.md
m