Skip to content
moai-lang-unified logo

Moai Lang Unified

moai-lang-unified

Unified enterprise programming language skill covering 25+ languages including Python 3.13, TypeScript 5.9, Go 1.23, Rust 1.91, Java 21, JavaScript ES2025, C++, C#, PHP, Swift, Kotlin, Scala, Elixir, Ruby, R, SQL, Shell, and more with patterns, best practices, and Context7 integration

mattnigh/skills_collection0installs24stars

SKILL.md

Full skill instructions

Quick Reference (30 seconds)

Unified Enterprise Programming Language Expert - 25+ languages with patterns, best practices, and Context7 integration.

Auto-Triggers: Any language-specific code, files, or discussions (.py, .ts, .go, .rs, .java, .js, .cpp, .cs, .php, .swift, .kt, .scala, .ex, .rb, .r, .sql, .sh)

Core Capabilities:

  • 25+ programming languages with latest versions
  • Language-specific patterns and best practices
  • Cross-language concepts and comparisons
  • Context7 integration for latest documentation
  • Progressive disclosure from basics to advanced
  • Enterprise-ready patterns and deployment

Implementation Guide (5 minutes)

Features

  • Multi-language support (Python, TypeScript, JavaScript, Java, C#, etc.)
  • Modern language features and best practices
  • Framework-specific patterns (FastAPI, React, Next.js, Spring, etc.)
  • Type safety and linting standards
  • Testing patterns for each language

When to Use

  • Implementing backend APIs in Python (FastAPI) or TypeScript (Express)
  • Building frontend UIs with React 19, Next.js 15, or Vue 3.5
  • Setting up full-stack applications with type-safe communication
  • Configuring linters and formatters for consistent code style
  • Writing language-specific tests with appropriate frameworks

Core Patterns

Pattern 1: FastAPI Backend (Python)

from fastapi import FastAPI, HTTPException
from pydantic import BaseModel

app = FastAPI()

class Item(BaseModel):
 name: str
 price: float

@app.post("/​items/")
async def create_item(item: Item):
 # Implementation
 return item

Pattern 2: Next.js 15 Frontend (TypeScript)

// app/​page.tsx (App Router)
export default async function Page() {
 const data = await fetch('https://api.example.com/​data');
 return <main>{/​* Render data */​}</​main>;
}

Pattern 3: Type-Safe API Integration

// Shared types between frontend/​backend
export interface User {
 id: string;
 name: string;
 email: string;
}

// Backend endpoint types
export type GetUserResponse = User;
export type CreateUserRequest = Omit<User, 'id'>;

Language Coverage

Scripting & Dynamic Languages

  • Python 3.13 - FastAPI, Django, async patterns, data science
  • JavaScript ES2025 - Node.js 22 LTS, Express, browser development
  • TypeScript 5.9 - React 19, Next.js 16, type safety
  • PHP 8.4 - Laravel, Symfony, composer patterns
  • Ruby 3.3 - Rails, Sinatra, metaprogramming
  • Shell/​Bash - DevOps, scripting, system automation

Systems & Performance Languages

  • Go 1.23 - Concurrency, Fiber, systems programming
  • Rust 1.91 - Memory safety, Tokio, async systems
  • C++ - Systems programming, performance optimization
  • C - Low-level programming, embedded systems

Enterprise & JVM Languages

  • Java 21 LTS - Spring Boot, enterprise patterns
  • Kotlin - Android, server-side, coroutines
  • Scala - Functional programming, big data

Mobile & Platform Languages

  • Swift - iOS development, server-side Swift
  • C# (.NET 8) - Enterprise applications, game development
  • Dart - Flutter, cross-platform development

Data & Domain Languages

  • R - Statistical computing, data analysis
  • SQL - Database queries across PostgreSQL, MySQL, etc.
  • Elixir - Functional programming, Phoenix, BEAM

Quick Reference Examples

Python 3.13+ FastAPI Pattern

from fastapi import FastAPI, Depends
from sqlalchemy.ext.asyncio import AsyncSession

app = FastAPI(title="API", version="1.0.0")

@app.get("/​users/​{user_id}")
async def get_user(user_id: int, db: AsyncSession = Depends(get_db)) -> UserResponse:
 user = await get_user_by_id(db, user_id)
 return UserResponse.model_validate(user)

TypeScript 5.9+ React Pattern

// React 19 Server Component
export default async function UserProfile({ userId }: { userId: string }) {
 const user = await getUser(userId)
 return <div><h1>{user.name}</​h1><p>{user.email}</​p></​div>
}

Go 1.23+ Fiber Pattern

func main() {
 app := fiber.New()
 app.Get("/​users", func(c fiber.Ctx) error {
 return c.JSON(fiber.Map{"users": []string{"John", "Jane"}})
 })
 app.Listen(":3000")
}

Rust 1.91+ Axum Pattern

#[tokio::main]
async fn main() {
 let app = Router::new().route("/​users/:id", get(get_user));
 axum::serve(listener, app).await.unwrap()
}

Java 21 LTS Spring Boot Pattern

@RestController
@RequestMapping("/​api/​users")
public class UserController {
 @GetMapping("/​{id}")
 public ResponseEntity<UserDto> getUser(@PathVariable Long id) {
 return ResponseEntity.ok(userService.findById(id));
 }
}

Cross-Language Patterns

Async Programming Comparison

LanguageSyntaxRuntimeBest For
Pythonasync/​awaitasyncioI/​O-bound, data science
TypeScriptasync/​awaitNode.jsFull-stack, real-time
GogoroutinesGo runtimeConcurrent systems
Rustasync/​awaitTokioPerformance-critical
Javavirtual threadsJVMEnterprise systems

Error Handling Patterns

Python: try/​except with exceptions TypeScript: try/​catch with async/​await Go: Multiple return values (result, err) Rust: Result/​Option types with match or ? Java: Checked exceptions with try/​catch/​finally

Package Management

LanguagePackage ManagerLock FileRegistry
Pythonpip/​poetryrequirements.txt/​poetry.lockPyPI
TypeScriptnpm/​yarnpackage-lock.json/​yarn.locknpm
Gogo modulesgo.sumGo Modules
RustcargoCargo.lockcrates.io
JavaMaven/​Gradlepom.xml/​build.gradleMaven Central

When to Use Each Language

Python 3.13

Use for: Data science, ML/​AI, web APIs, automation Avoid: Real-time performance <1ms, embedded systems

TypeScript 5.9

Use for: Enterprise applications, full-stack, type safety Avoid: Rapid prototyping, simple scripts

Go 1.23

Use for: Microservices, CLI tools, cloud-native apps Avoid: Complex GUI, rapid prototyping

Rust 1.91

Use for: Performance-critical, systems programming Avoid: Rapid prototyping, simple CRUD

Java 21 LTS

Use for: Enterprise apps, large systems, big data Avoid: Lightweight CLI, rapid prototyping


Context7 Integration

Automatically fetches latest documentation for:

Python: FastAPI, Django, Pydantic, SQLAlchemy, pytest TypeScript: React, Next.js, Node.js, tRPC, Zod Go: Gin, Echo, GORM Rust: Tokio, Axum, Serde Java: Spring Boot, Hibernate

Usage example:

docs = await mcp__context7__get_library_docs(
 context7CompatibleLibraryID="/​tiangolo/​fastapi",
 topic="async dependency-injection",
 page=1
)

Works Well With

  • moai-domain-backend — REST API, GraphQL, microservices
  • moai-domain-frontend — React, Vue, Angular, UI components
  • moai-domain-database — SQL, NoSQL, ORM patterns
  • moai-foundation-trust — TRUST 5 quality principles
  • moai-essentials-debug — AI-powered debugging
  • moai-context7-integration — Latest documentation access

Troubleshooting

Python: Check venv, pip list, python -c "import sys" TypeScript: npx tsc --noEmit, npm ls typescript Go: go mod tidy, go mod verify Rust: rustc --version, cargo check, cargo tree Java: java -version, mvn/​gradle build


Advanced Documentation

For comprehensive reference materials:

  • reference.md - Complete language coverage, Context7 library mappings, performance characteristics
  • examples.md - Multi-language code examples, REST API implementations, testing patterns, deployment configurations

Conclusion

This unified language skill replaces all individual moai-lang* skills while maintaining their expertise and functionality. It automatically detects programming context and provides relevant expertise for 25+ languages with Context7 integration and cross-language capabilities.

Last Updated: 2025-11-25 Status: Production Ready (Enterprise v1.0.0) Replaces: All moai-lang-* individual skills

More skills from mattnigh

spring-framework-patterns logo
mattnigh/skills_collection

spring-framework-patterns

Comprehensive Spring Framework and Spring Boot best practices including dependency injection patterns, bean lifecycle and scopes, REST API development, Spring Data JPA, service layer design, Spring Security, testing strategies, caching, AOP, async processing, error handling, and common anti-patte...

24 0
View

TypeScript厳格モードによる型安全性設計を専門とするスキル。 📖 参照書籍: - 『Effective TypeScript』(Dan Vanderkam): 型設計 📚 リソース参照: - `resources/Level1_basics.md`: レベル1の基礎ガイド - `resources/Level2_intermediate.md`: レベル2の実務ガイド - `resources/Level3_advanced.md`: レベル3の応用ガイド - `resources/Level4_expert.md`: レベル4の専門ガイド - `resources/di...

24 0
View
deploying-cloud-k8s logo
mattnigh/skills_collection

deploying-cloud-k8s

Deploys applications to cloud Kubernetes (AKS/GKE/DOKS) with CI/CD pipelines. Use when deploying to production, setting up GitHub Actions, troubleshooting deployments. Covers build-time vs runtime vars, architecture matching, and battle-tested debugging.

24 0
View
moai-alfred-agent-guide logo
mattnigh/skills_collection

moai-alfred-agent-guide

19-agent team structure, decision trees for agent selection, Haiku vs Sonnet model selection, and agent collaboration principles. Use when deciding which sub-agent to invoke, understanding team responsibilities, or learning multi-agent orchestration.

24 0
View
mermaid-diagram-generator logo
mattnigh/skills_collection

mermaid-diagram-generator

Converts architecture descriptions, module specs, or workflow docs into Mermaid diagrams. Use when visualizing brick module relationships, workflows (DDD, investigation), or system architecture. Supports: flowcharts, sequence diagrams, class diagrams, state machines, entity relationship diagrams,...

24 0
View
pre-flight-check logo
mattnigh/skills_collection

pre-flight-check

INVOKE FIRST before any code work. Validates git workflow (branch, issue, worklog) and checks approach. Use at START of every task and END before completing. Prevents skipped steps.

24 0
View
browser-dev-tools logo
mattnigh/skills_collection

browser-dev-tools

This skill should be used when working with browser-rendered artifacts (i.e. Bun, React/React Native) to proactively validate that development work on localhost is being built appropriately and to support debugging browser-rendered content. Use this skill after making frontend changes to verify t...

24 0
View
lead-dev logo
mattnigh/skills_collection

lead-dev

Lead Développeur - Coordination technique opérationnelle, code review, mentoring et livraison. Pair de web-dev-process au niveau OPÉRATIONS.

24 0
View
worker-monitor logo
mattnigh/skills_collection

worker-monitor

Monitor Docker workers, RQ queue health, and auto-scale workers (max 4). Use when: checking job progress, monitoring queue depth, scaling workers up/down, diagnosing slow processing, or waiting for jobs to complete. Referenced by data-quality skill during reprocessing.

24 0
View
quality-advisor logo
mattnigh/skills_collection

quality-advisor

Proactive quality guidance system that monitors artifact creation and provides real-time feedback on documentation quality

24 0
View
bump-version logo
mattnigh/skills_collection

bump-version

This skill should be used when the user wants to bump the version number in the workspace. It updates versions across all pyproject.toml files (root, tde, and tda packages) and the CHANGELOG.md to keep them synchronized.

24 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View