You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve...
适用于 TypeScript、JavaScript、React 和 Node.js 开发的通用编码标准、最佳实践和模式。
Graceful Degradation with Helpful Messages
Index at Creation Time
Environment Triage
Deterministic router for math cognitive stack - maps user intent to exact CLI commands
Guide to the math cognitive stack - what tools exist and when to use each
Create or update continuity ledger for state preservation across clears
Background Agent Pings
Agent Orchestration Rules
Skill Development Rules
Query the memory system for relevant learnings from past sessions
Router-First Architecture
Search Mathlib for lemmas by type signature pattern
AI-powered web search, research, and reasoning via Perplexity
Unit-aware computation with Pint - convert units, dimensional analysis, unit arithmetic
MCP Script Rules
Validation agent that validates plan tech choices against current best practices
Search past reasoning for relevant decisions and approaches
Computational geometry with Shapely - create geometries, boolean operations, measurements, predicates