Skip to content

Latest commit

 

History

57 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Exocore Organization

🚀 TypeScript Coding Standards (2026) — Safe, Modern, No Legacy

Production-ready TypeScript standards designed for AI agents and human developers. Leverages modern 2026 TypeScript idioms with zero legacy patterns.

🤖 For AI Agents

Tell your AI agent to load the standards before coding:

Load All Skills Simultaneously (Recommended)

/ts-all build a user authentication module
/ts-all refactor this function  
/ts-all review this PR

Note: /ts-all now loads all skill folders simultaneously to maintain complete context with large AI windows.

Load Individual Skills

/ts-philosophy explain why any is banned
/ts-patterns show me branded types
/ts-jsdocs add JSDoc to this file
/ts-config-tooling generate a tsconfig
/ts-ai-behavior review my code
/ts-modern-practices demonstrate async/await best practices
/mcp explain Model Context Protocol integration

📦 Available Skills

Skill Purpose Trigger
/ts-all Load all skills simultaneously for complete context ts-all
/ts-philosophy Core TypeScript philosophy: no any, no var, modern idioms ts-philosophy
/ts-patterns Code patterns: branded types, discriminated unions, satisfies, as const ts-patterns
/ts-jsdocs JSDoc standards: @param, @returns, @throws, @example on every export ts-jsdocs
/ts-config-tooling TypeScript configuration, tooling, and project structure ts-config-tooling
/ts-ai-behavior AI agent behavior rules: requires async/await, enforces type safety ts-ai-behavior
/ts-modern-practices 2026 TypeScript practices: async/await, adapter pattern, LSP-driven development ts-modern-practices
/mcp Model Context Protocol: connecting to external tools, servers, and data sources mcp

🔧 Quick Start

npm install
npx tsx src/main.ts     # run
npx tsc --noEmit        # type-check

📚 Stack

Layer Tool
Runtime tsx (ESM)
Compiler TypeScript tsctarget: esnext, strict: true
Types @types/node
Module ESM

🏛️ Philosophy

  • No any — every type is known at compile time.
  • No varconst / let only.
  • No legacy patterns — class-based OOP is out; pure functions, discriminated unions, and branded types are in.
  • JSDoc on every export — AI agents and humans alike rely on clear docstrings.
  • 2026 idiomsusing, namespace-free, satisfies, as const everywhere.
  • Modern async — Prefer async/await over .then/.catch for cleaner asynchronous code.
  • Adapter pattern — Use adapter pattern for clean integration with external APIs.
  • LSP-driven — Leverage Language Server Protocol for real-time type checking and refactoring.

💡 Why These Standards?

  1. AI-Optimized: Designed specifically for AI agents to understand and follow
  2. Type-Safe: Maximum type safety with zero any usage
  3. Modern: Uses latest TypeScript 2026 features and patterns
  4. Maintainable: Clean, readable code with excellent documentation
  5. Extensible: Easy to add new skills as TypeScript evolves

🤝 Contributing

Standards live in .agents/skills/ — each skill is a standalone module. To add a new skill:

  1. Create a folder in .agents/skills/[skill-name]/
  2. Add SKILL.md with YAML frontmatter: name, description, trigger
  3. Document the skill's purpose, rules, and examples
  4. The /ts-all skill will automatically include it

Built with ❤️ by Exocore Organization. Standards evolve with TypeScript — last updated July 2026.

About

TypeScript coding standards (2026) — no any, no var, no legacy

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors