用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/trueorc/claudevn --skill claudevn-patterns命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | claudevn-patterns |
| description | Coding patterns extracted from ClaudeVN AI agent orchestration platform |
| version | 1.0.0 |
| source | local-git-analysis |
| analyzed_commits | 200 |
This project uses conventional commits with issue references:
| Prefix | Usage |
|---|---|
feat: | New features (59% of commits) |
fix: | Bug fixes (20% of commits) |
docs: | Documentation updates (9%) |
test: | Test-related changes (8%) |
refactor: | Code restructuring (2%) |
chore: | Maintenance tasks (2%) |
Commit message format:
feat: Short description of feature (#issue-number)
fix: Brief bug fix description (#issue-number)
docs: Documentation update description
73% of commits reference GitHub issues - always link commits to issues.
Branch naming convention:
{type}/issue-{number}-{short-description}
Examples:
feat/issue-155-shutdown-handlerfix/issue-102-failing-unit-testsdocs/issue-149-goal-api-endpointsserving/ # Central coordination hub (FastAPI, Python 3.10+)
├── api/ # API route handlers (one file per domain)
├── models/ # Pydantic data models
├── services/ # Business logic services
├── git/ # Git infrastructure (SSH, hooks, PR management)
├── mcp/ # MCP server for compute communication
│ └── tools/ # MCP tool implementations
├── tests/ # Unit and integration tests
└── frontend/ # React UI with TailwindCSS
└── src/
├── api/ # API client functions
├── components/ # React components by domain
├── hooks/ # Custom React hooks
└── pages/ # Page-level components
marketplace/ # Skill marketplace service (separate from Serving)
├── skills/ # Skill definitions (YAML)
│ └── system/ # System-provided skills
├── personas/ # Persona bundles (YAML)
│ └── system/ # System personas
├── services/ # Business logic
└── tests/ # Test files
compute/ # Claude Code compute infrastructure
├── api/ # API endpoints
├── services/ # Service layer
└── tests/ # Test files
| Type | Pattern | Example |
|---|---|---|
| API routes | {domain}.py | serving/api/work_map.py |
| Models | {domain}.py | serving/models/compute.py |
| Services | {domain}_service.py | serving/services/work_map_service.py |
| Tests | test_{module}.py | serving/tests/test_work_map_service.py |
| React components | {ComponentName}.jsx | WorkMapGraph.jsx |
| React hooks | use{HookName}.js | useWorkMap.js |
| API clients | {domain}.js | api/workmap.js |
| Skills | {skill-name}.yaml | skills/system/code-writer.yaml |
serving/app.py - Main FastAPI applicationserving/services/work_map_service.py - Work coordination logicserving/models/work_map.py - Work map data modelsCLAUDE.md - Project instructions for Claude Codemarketplace/api.py - Marketplace API routesserving/models/{domain}.pyserving/services/{domain}_service.pyserving/api/{domain}.pyserving/app.pyserving/tests/test_{domain}_{feature}.pymarketplace/skills/system/{skill-name}.yamlmarketplace/tests/test_skill_registry.pyserving/mcp/tools/{tool_name}.pyserving/mcp/tools/__init__.pyserving/mcp/models.pyserving/mcp/server.pyserving/tests/test_mcp_{tool_name}.pyserving/frontend/src/components/{domain}/{ComponentName}.css alongside componentserving/frontend/src/hooks/use{Feature}.jsserving/frontend/src/api/{domain}.jsserving/frontend/src/pages/{Page}Page.jsxserving/frontend/src/App.jsx if new page"""Tests for {module}."""
import pytest
from unittest.mock import AsyncMock, MagicMock, patch
# Fixtures
@pytest.fixture
def mock_redis():
"""Create mock Redis client."""
redis = MagicMock()
redis._redis = MagicMock()
redis._redis.hset = AsyncMock()
return redis
@pytest.fixture
def service():
"""Create service for testing."""
return MyService(redis_client=None)
# Test Classes grouped by functionality
class TestServiceInit:
"""Test service initialization."""
def test_init_without_deps(self):
"""Test initialization without dependencies."""
pass
@pytest.mark.asyncio
async def test_async_operation(self):
"""Test async operations."""
pass
{component}/tests/test_{module}.pytests/test_{integration_type}.pyscripts/run_unit_tests.shscripts/run_integration_tests.shtest_{module_name}.pyTest{FeatureName} (e.g., TestWorkMapServiceInit)test_{action}_{scenario} (e.g., test_init_without_redis)model_config (not deprecated class Config)datetime.now(timezone.utc) (not deprecated datetime.utcnow()){type}/issue-{number}-{description}feat: Description (#123){type}/issue-{number}-...)