بنقرة واحدة
best-practices
Project-specific best practices - auto-loads based on detected project type
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Project-specific best practices - auto-loads based on detected project type
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
TDD-based feature workflow with 9 phases - loads directly into session (no installation)
Auto-send Slack notifications when TodoWrite tasks complete. Includes task summary, file changes, execution time, and repository context. Supports config file (no env vars needed) and manual `/devnogari:slack-notify` trigger.
Kotlin Coroutines with Spring Boot/WebFlux performance optimization and best practices guidelines
Flutter performance optimization and clean architecture patterns. This skill should be used when writing, reviewing, or refactoring Flutter/Dart code to ensure optimal performance patterns. Triggers on tasks involving Flutter widgets, state management, async patterns, memory management, or architecture design.
Go + Gin performance optimization and idiomatic patterns with mandatory Uber fx DI. Contains 48 rules across 8 categories, prioritized by impact for automated code generation and review.
Kotlin Multiplatform performance optimization and clean architecture patterns. This skill should be used when writing, reviewing, or refactoring KMP code to ensure optimal performance patterns. Triggers on tasks involving Compose Multiplatform, Ktor client, Koin DI, coroutines, or platform-specific code.
| name | best-practices |
| description | Project-specific best practices - auto-loads based on detected project type |
Comprehensive best practices with 40+ rules per framework. Auto-activates based on project type and auto-audits codebase for violations.
This skill activates automatically when:
/feature-dev is invokedTemplates are located at ${CLAUDE_PLUGIN_ROOT}/plugins/best-practices/skills/best-practices/templates/. Each template is a directory containing SKILL.md with the full ruleset.
Base Path: ${CLAUDE_PLUGIN_ROOT}/plugins/best-practices/skills/best-practices/templates
| Project Type | Template Path |
|---|---|
| react-vite | ${CLAUDE_PLUGIN_ROOT}/plugins/best-practices/skills/best-practices/templates/react-vite/SKILL.md |
| nextjs | ${CLAUDE_PLUGIN_ROOT}/plugins/best-practices/skills/best-practices/templates/nextjs/SKILL.md |
| go-gin | ${CLAUDE_PLUGIN_ROOT}/plugins/best-practices/skills/best-practices/templates/go-gin/SKILL.md |
| flutter | ${CLAUDE_PLUGIN_ROOT}/plugins/best-practices/skills/best-practices/templates/flutter/SKILL.md |
| python-fastapi | ${CLAUDE_PLUGIN_ROOT}/plugins/best-practices/skills/best-practices/templates/python-fastapi/SKILL.md |
| kotlin-multiplatform | ${CLAUDE_PLUGIN_ROOT}/plugins/best-practices/skills/best-practices/templates/kotlin-multiplatform/SKILL.md |
| kotlin-spring | ${CLAUDE_PLUGIN_ROOT}/plugins/best-practices/skills/best-practices/templates/kotlin-spring/SKILL.md |
To load rules: Read the appropriate template SKILL.md using the full path above. The ${CLAUDE_PLUGIN_ROOT} variable resolves to the plugin installation directory.
IMPORTANT: After loading rules, you MUST scan the codebase for violations using Grep.
For React/Vite/Next.js projects, scan for these CRITICAL patterns:
# Barrel file imports (CRITICAL)
Grep: pattern="from ['\"']@/components['\"]" glob="*.tsx,*.ts"
# Lodash full import (CRITICAL)
Grep: pattern="from ['\"']lodash['\"]" glob="*.tsx,*.ts"
# Inline style objects (HIGH)
Grep: pattern="style=\{\{" glob="*.tsx"
For Go/Gin projects:
# Ignored errors (CRITICAL)
Grep: pattern="json\.(Unmarshal|Marshal)\([^)]+\)$" glob="*.go"
# Unwrapped error returns (HIGH)
Grep: pattern="return nil, err$" glob="*.go"
For Kotlin Multiplatform projects:
# GlobalScope usage (CRITICAL)
Grep: pattern="GlobalScope\.(launch|async)" glob="*.kt"
# MutableStateFlow without asStateFlow (CRITICAL)
Grep: pattern="val.*MutableStateFlow" glob="*.kt"
# Missing @Immutable/@Stable annotations (HIGH)
Grep: pattern="data class.*\(" glob="*.kt"
For Kotlin Spring (Coroutines + WebFlux) projects:
# GlobalScope usage (CRITICAL)
Grep: pattern="GlobalScope\.(launch|async)" glob="*.kt"
# Blocking calls in suspend functions (CRITICAL)
Grep: pattern="Thread\.sleep" glob="*.kt"
# JDBC instead of R2DBC (CRITICAL)
Grep: pattern="JdbcTemplate|spring-boot-starter-jdbc" glob="*.kt,*.gradle.kts"
# Catching CancellationException (HIGH)
Grep: pattern="catch.*Exception\)" glob="*.kt"
# runBlocking in tests (MEDIUM)
Grep: pattern="runBlocking" glob="*Test.kt"
💡 Fix with: /feature-workflow "fix: best-practice violations"Use --no-audit flag to load rules without scanning.
🔍 Detecting project type...
📁 Found: vite.config.ts
✅ best-practices loaded
Project: react-vite | Rules: 45+
🔎 Scanning codebase...
📂 Scanned: 127 files in 342ms
⚠️ Found 12 violations:
🔴 CRITICAL (2):
❌ [bundle-optimization] Barrel file imports
src/components/index.ts:1
🟠 HIGH (5):
❌ [rerender-prevention] Missing useMemo
src/hooks/useData.ts:23
📋 7 items added to TodoWrite
💡 Fix with: /feature-workflow "fix: best-practice violations"
Use --severity to report only violations at or above a threshold:
/best-practices:best-practices --severity HIGH
| Project Type | Rules | Categories |
|---|---|---|
| react-vite | 45+ | 5 |
| nextjs | 45+ | 5 |
| go-gin | 48 | 8 |
| flutter | 42 | 8 |
| python-fastapi | 48 | 8 |
| kotlin-multiplatform | 44 | 8 |
| kotlin-spring | 48 | 8 |
See "Template Locations" section above for full paths.
Each template includes:
err-wrap, async-block)For React/Next.js projects, best practices extend /vercel-react-best-practices:
/vercel-react-best-practices ← Primary (45 Vercel rules)
↓
best-practices templates ← Framework-specific additions