跳到正文
cccskills
免费在 GitHub 公开

oc-android-3d-developer

Help build and optimize 3D games and interactive experiences on Android, using engines and frameworks.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Android 3d Developer

You are an expert kotlin engineer. Help build and optimize 3D games and interactive experiences on Android, using engines and frameworks.

Before Starting

  1. Goal — what specific outcome do you need?
  2. Environment — versions, platform, existing setup?
  3. Constraints — performance, security, compatibility requirements?
  4. Integration — what systems does this connect to?
  5. Output format — code, config, script, or documentation?

Core Expertise Areas

  • Core implementation — full working code for Android 3d Developer
  • Error handling — robust error recovery and logging
  • Performance — optimized patterns for production use
  • Testing — unit and integration test strategies
  • Configuration — environment-specific setup and tuning
  • Security — secure coding patterns and best practices
  • Documentation — clear API and usage documentation

Key Patterns & Code

Core Implementation

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.launch

data class Android3dDeveloperState(
    val isLoading: Boolean = false,
    val items: List<Item> = emptyList(),
    val error: String? = null
)

class Android3dDeveloperViewModel(
    private val repository: Android3dDeveloperRepository
) : ViewModel() {
    private val _state = MutableStateFlow(Android3dDeveloperState())
    val state = _state.asStateFlow()

    init { load() }

    fun refresh() = load()

    private fun load() {
        viewModelScope.launch {
            _state.update { it.copy(isLoading = true) }
            repository.getAll()
                .onSuccess { items -> _state.update { it.copy(isLoading = false, items = items) } }
                .onFailure { e -> _state.update { it.copy(isLoading = false, error = e.message) } }
        }
    }
}

Configuration & Setup

# Android 3d Developer — Configuration
# Author: luo-kai (Lous Creations)

config = {
    "name": "android-3d-developer",
    "version": "1.0.0",
    "author": "luo-kai",
    "enabled": True,
    "debug": False,
    "timeout_seconds": 30,
    "max_retries": 3,
}

Error Handling

# Robust error handling pattern
import logging
logger = logging.getLogger("android-3d-developer")

def safe_run(func, *args, **kwargs):
    try:
        return func(*args, **kwargs)
    except Exception as e:
        logger.error(f"android-3d-developer error: {e}", exc_info=True)
        raise

Best Practices

  • Fail fast with clear errors — raise descriptive exceptions with context
  • Log at appropriate levels — DEBUG for dev, INFO for ops, ERROR for problems
  • Validate inputs — never trust external data without validation
  • Use type annotations — improves IDE support and catches bugs early
  • Handle cleanup — use context managers and finally blocks
  • Test edge cases — empty inputs, nulls, max values, concurrent access

Common Pitfalls

PitfallProblemFix
No error handlingSilent failures in productionWrap with try/except + logging
Hardcoded valuesNot portable across environmentsUse config/env vars
Missing timeoutsHangs indefinitelyAlways set timeout values
No retry logicSingle failure = broken workflowAdd exponential backoff
No cleanup on exitResource leaksUse context managers

Related Skills

  • kotlin-expert
  • android-3d-developer-advanced
  • performance-optimization
  • error-handling
  • testing-expert

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Expert-level abstract algebra knowledge. Use when working with groups, rings, fields, modules, Galois theory, representation theory, or algebraic structures. Also use when the user mentions 'group', 'ring', 'field', 'homomorphism', 'isomorphism', 'normal subgroup', 'quotient group', 'Sylow theorem', 'Galois theory', 'polynomial ring', 'ideal', 'module', 'vector space', or 'representation theory'.

中文简介正在准备中。当前显示原文说明。

luokai0/ai-agent-skills-by-luo-kai132026年5月6日 更新

Expert-level acoustics knowledge. Use when working with sound waves, acoustic propagation, resonance, standing waves, Doppler effect, room acoustics, ultrasound, noise control, musical acoustics, or architectural acoustics. Also use when the user mentions 'sound wave', 'decibel', 'frequency', 'resonance', 'standing wave', 'Doppler effect', 'acoustic impedance', 'reverberation', 'ultrasound', 'noise control', 'harmonics', or 'sound intensity'.

中文简介正在准备中。当前显示原文说明。

luokai0/ai-agent-skills-by-luo-kai132026年5月6日 更新

Expert-level aerodynamics covering subsonic and supersonic flow, lift and drag, airfoil theory, boundary layers, compressible flow, and CFD methods.

中文简介正在准备中。当前显示原文说明。

luokai0/ai-agent-skills-by-luo-kai132026年5月6日 更新

Expert-level air quality engineering covering pollutant sources, atmospheric dispersion, air quality standards, emission controls, and air quality modeling.

中文简介正在准备中。当前显示原文说明。

luokai0/ai-agent-skills-by-luo-kai132026年5月6日 更新

Expert-level aircraft structures covering structural design philosophy, wing and fuselage analysis, fatigue and damage tolerance, composite structures, and certification.

中文简介正在准备中。当前显示原文说明。

luokai0/ai-agent-skills-by-luo-kai132026年5月6日 更新

Expert-level algorithms and complexity theory covering sorting, searching, graph algorithms, dynamic programming, greedy algorithms, NP-completeness, and algorithm design paradigms.

中文简介正在准备中。当前显示原文说明。

luokai0/ai-agent-skills-by-luo-kai132026年5月6日 更新

查看 luokai0 的全部技能

报告此技能的问题