用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rdmptv/AdbAutoPlayer --skill moai-toolkit-essentials命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Base navigation patterns for Android device automation - gestures, waits, and UI interaction
Screen understanding with OCR and template matching for Android device automation
Meta-tool for rapid adb-* skill creation from templates
基于 SOC 职业分类
正在显示 SKILL.md
| name | moai-toolkit-essentials |
| description | AI-powered unified development orchestrator (UV scripts migrated to builder-skill-uvscript) |
| version | 2.1.0 |
| modularized | true |
| scripts_enabled | false |
| scripts_migration | {"date":"2025-11-30T00:00:00.000Z","new_location":"builder-skill-uvscript","reason":"UV script consolidation with unified builder-skill_ prefix"} |
| last_updated | "2025-11-30T00:00:00.000Z" |
| compliance_score | 75 |
| auto_trigger_keywords | ["essentials","testing","toolkit"] |
| color | red |
⚠️ UV Script Migration Notice
All 2 UV CLI scripts have been consolidated into the
builder-skill-uvscriptskill on 2025-11-30.New script locations:
builder-skill_debug_code.py(previously debug_helper.py)builder-skill_analyze_performance.py(previously perf_analyzer.py)- Find all scripts in:
.claude/skills/builder-skill-uvscript/scripts/Usage:
uv run .claude/skills/builder-skill-uvscript/scripts/builder-skill_debug_code.pyThis skill retains its development toolkit knowledge and patterns.
AI-Powered Unified Development Orchestrator
What It Does: Enterprise-grade development assistant that orchestrates debugging, refactoring, performance optimization, code review, testing, and profiling in integrated workflows with AI-powered analysis, Context7 latest patterns, and TRUST 5 quality enforcement.
Core Capabilities:
Unified Development Workflow:
Debug → Refactor → Optimize → Review → Test → Profile
↓ ↓ ↓ ↓ ↓ ↓
AI- AI- AI- AI- AI- AI-
Powered Powered Powered Powered Powered Powered
When to Use:
This skill includes UV CLI scripts for standalone usage following the IndieDevDan pattern.
Purpose: Automated debugging workflow with AI-powered error diagnosis.
Usage:
# Analyze error message
uv run .claude/skills/moai-toolkit-essentials/scripts/debug_helper.py \
--error "AttributeError: 'NoneType' object has no attribute 'name'"
# Analyze stack trace file
uv run .claude/skills/moai-toolkit-essentials/scripts/debug_helper.py \
--stack-trace error.log --language python
# JSON output mode
uv run .claude/skills/moai-toolkit-essentials/scripts/debug_helper.py \
--code src/user_service.py --json
Features:
Purpose: Performance bottleneck detection and optimization suggestions.
Usage:
# Analyze profile data
uv run .claude/skills/moai-toolkit-essentials/scripts/perf_analyzer.py \
--profile output.prof --threshold 1.0
# Analyze code file
uv run .claude/skills/moai-toolkit-essentials/scripts/perf_analyzer.py \
--code src/data_processor.py
# JSON output mode
uv run .claude/skills/moai-toolkit-essentials/scripts/perf_analyzer.py \
--profile output.prof --json
Features:
class UnifiedEssentialsOrchestrator:
"""AI-powered unified development orchestrator."""
def __init__(self):
self.debugger = AIDebugger(context7_enabled=True)
self.refactorer = AIRefactorer(rope_integration=True)
self.profiler = AIProfiler(scalene_enabled=True)
self.reviewer = AIReviewer(trust5_enabled=True)
self.tester = AITester(ci_cd_integration=True)
self.analyzer = AIAnalyzer(context7_client=True)
async def orchestrate_development_workflow(
self, codebase: Codebase, task: DevelopmentTask
) -> WorkflowResult:
"""Orchestrate complete development workflow."""
# Phase 1: Analysis & Planning
analysis = await self.analyzer.analyze_codebase(codebase, task)
# Phase 2: Debug (if issues found)
if analysis.issues_detected:
debug_result = await self.debugger.debug_with_ai(
codebase, analysis.issues
)
# Phase 3: Refactor (based on analysis)
refactor_plan = await self.refactorer.create_refactor_plan(
codebase, analysis.technical_debt
)
# Phase 4: Performance Optimization
perf_analysis = await self.profiler.analyze_performance(codebase)
optimization_plan = self.profiler.create_optimization_plan(perf_analysis)
# Phase 5: Code Review (TRUST 5)
review_result = await self.reviewer.comprehensive_review(
codebase, analysis
)
# Phase 6: Testing Integration
test_plan = await self.tester.create_comprehensive_test_plan(
codebase, task, analysis
)
# Phase 7: Final Profiling
final_profile = await self.profiler.final_profiling(codebase)
return WorkflowResult(
analysis=analysis,
debug_result=debug_result,
refactor_plan=refactor_plan,
optimization_plan=optimization_plan,
review_result=review_result,
test_plan=test_plan,
final_profile=final_profile,
recommendations=self.generate_unified_recommendations()
)
Concept: Combine error pattern recognition with Context7 best practices for rapid issue resolution.
class IntegratedAIDebugger:
"""AI-powered debugging with Context7 integration."""
async def debug_with_context7_patterns(
self, error: Exception, context: CodeContext
) -> DebugAnalysis:
# Get latest debugging patterns from Context7
debugpy_patterns = await self.context7.get_library_docs(
context7_library_id="/microsoft/debugpy",
topic="AI debugging patterns error analysis 2025",
tokens=5000
)
# AI pattern classification and analysis
error_analysis = self.ai_classifier.classify_error(error)
pattern_match = self.match_context7_patterns(error, debugpy_patterns)
# Generate solutions using AI + Context7
solutions = self.generate_solutions(
error_analysis, pattern_match, debugpy_patterns
)
return DebugAnalysis(
error_type=error_analysis.type,
confidence=error_analysis.confidence,
context7_patterns=pattern_match,
solutions=solutions,
prevention_strategies=self.suggest_prevention(error_analysis)
)
Use Case: Debug TypeError in distributed systems with 95% accuracy using AI pattern recognition.
Concept: AI-driven code transformation with technical debt quantification and Context7 best practices.
class AISmartRefactorer:
"""AI-powered refactoring with technical debt management."""
async def refactor_with_intelligence(
self, code: Codebase, debt_analysis: TechnicalDebtAnalysis
) -> RefactorPlan:
# Get Context7 refactoring patterns
rope_patterns = await self.context7.get_library_docs(
context7_library_id="/python-rope/rope",
topic="safe refactoring patterns technical debt 2025",
tokens=4000
)
# AI analysis of refactoring opportunities
refactor_opportunities = self.ai_analyzer.identify_opportunities(
code, debt_analysis
)
# Generate safe refactor plan using Rope + AI
refactor_plan = self.create_safe_refactor_plan(
refactor_opportunities, rope_patterns
)
return RefactorPlan(
opportunities=refactor_opportunities,
transformations=refactor_plan.transformations,
risk_assessment=self.assess_refactor_risks(refactor_plan),
estimated_impact=self.calculate_impact(refactor_plan),
context7_validated=True
)
Use Case: Reduce technical debt by 60% with safe, automated transformations across 25+ languages.
Concept: Real-time performance profiling with Scalene and AI bottleneck detection.
class AIPerformanceOptimizer:
"""AI-powered performance optimization with Scalene integration."""
async def optimize_performance(
self, code: Codebase, performance_requirements: Requirements
) -> OptimizationPlan:
# Get Context7 optimization patterns
perf_patterns = await self.context7.get_library_docs(
context7_library_id="/emeryberger/scalene",
topic="performance profiling optimization GPU 2025",
tokens=5000
)
# Scalene profiling with AI analysis
scalene_profile = await self.scalene_profiler.profile_with_ai(
code, performance_requirements
)
# AI bottleneck detection
bottlenecks = self.ai_detector.detect_bottlenecks(
scalene_profile, perf_patterns
)
# Generate optimization plan
optimization_plan = self.create_optimization_plan(
bottlenecks, scalene_profile, perf_patterns
)
return OptimizationPlan(
bottlenecks=bottlenecks,
optimizations=optimization_plan.optimizations,
expected_improvement=self.calculate_improvement(optimization_plan),
implementation_priority=self.prioritize_optimizations(bottlenecks)
)
Use Case: Achieve 3x performance improvement through AI-driven bottleneck detection and optimization.
Concept: Comprehensive code review with AI quality analysis and TRUST 5 validation.
class AITrust5Reviewer:
"""AI-powered TRUST 5 code review automation."""
async def comprehensive_trust5_review(
self, code: Codebase, context: ReviewContext
) -> Trust5Review:
# Get Context7 security and quality patterns
security_patterns = await self.context7.get_library_docs(
context7_library_id="/owasp/top-ten",
topic="security vulnerability patterns 2025",
tokens=3000
)
# TRUST 5 validation
trust5_analysis = await self.validate_trust5_principles(code)
# AI quality analysis
quality_analysis = self.ai_analyzer.analyze_quality(code)
# Security vulnerability detection
security_analysis = self.detect_security_issues(
code, security_patterns
)
return Trust5Review(
trust5_validation=trust5_analysis,
quality_analysis=quality_analysis,
security_analysis=security_analysis,
recommendations=self.generate_recommendations(
trust5_analysis, quality_analysis, security_analysis
),
approval_status=self.determine_approval_status(trust5_analysis)
)
Use Case: Automate 80% of code review process while maintaining 100% TRUST 5 compliance.
Concept: AI-driven testing strategy with comprehensive test coverage and CI/CD integration.
class AITestingIntegrator:
"""AI-powered comprehensive testing integration."""
async def create_comprehensive_test_strategy(
self, code: Codebase, requirements: TestRequirements
) -> TestStrategy:
# Get Context7 testing patterns
testing_patterns = await self.context7.get_library_docs(
context7_library_id="/pytest-dev/pytest",
topic="testing strategies TDD automation 2025",
tokens=4000
)
# AI test coverage analysis
coverage_analysis = self.ai_analyzer.analyze_test_coverage(code)
# Generate comprehensive test plan
test_plan = self.create_test_plan(
code, requirements, coverage_analysis, testing_patterns
)
# CI/CD integration
ci_cd_config = self.create_ci_cd_integration(test_plan)
return TestStrategy(
test_plan=test_plan,
coverage_analysis=coverage_analysis,
ci_cd_integration=ci_cd_config,
automated_tests=self.generate_automated_tests(test_plan),
expected_coverage=self.calculate_target_coverage(coverage_analysis)
)
Use Case: Achieve 95% test coverage with automated test generation and CI/CD integration.
CONTEXT7_LIBRARY_MAPPINGS = {
# Debugging
"debugpy": "/microsoft/debugpy",
"pdb": "/python/cpython",
"node_inspect": "/nodejs/node",
# Refactoring
"rope": "/python-rope/rope",
"prettier": "/prettier/prettier",
"black": "/psf/black",
# Performance
"scalene": "/emeryberger/scalene",
"v8_optimizer": "/v8/v8",
"go_profiler": "/golang/profiler",
# Security
"owasp": "/owasp/top-ten",
"bandit": "/pyupio/bandit",
"eslint_security": "/nsecurity/eslint-plugin-security",
# Testing
"pytest": "/pytest-dev/pytest",
"jest": "/facebook/jest",
"go_test": "/golang/go",
# Code Quality
"pylint": "/pylint-dev/pylint",
"eslint": "/eslint/eslint",
"golint": "/golang/lint"
}
class UnifiedContext7Integration:
"""Centralized Context7 integration for all essentials components."""
async def get_latest_patterns(
self, component: str, topic: str = "", tokens: int = 3000
) -> Context7Patterns:
"""Get latest patterns for any essential component."""
library_id = CONTEXT7_LIBRARY_MAPPINGS.get(component)
if not library_id:
raise ValueError(f"Unknown component: {component}")
return await self.context7.get_library_docs(
context7_library_id=library_id,
topic=f"{topic} best practices patterns 2025",
tokens=tokens
)
moai-foundation-trust (TRUST 5 quality principles)moai-context7-integration (Latest patterns and best practices)moai-cc-skill-factory (Skill creation and management)moai-core-agent-factory (Agent orchestration)moai-domain-* (Domain-specific patterns)moai-lang-* (Language-specific expertise)moai-security-* (Security best practices)moai-quality-* (Quality assurance frameworks)Agents:
Skills:
Commands:
/moai:1-plan - SPEC generation/moai:2-run - TDD execution/moai:3-sync - Documentation