Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
[P0] 组件类型定义:每个 React 组件的 Props 和 State 是否都有明确的 TypeScript 类型定义?
[P0] API 错误处理:所有与后端或第三方服务的 API 调用是否都包含恰当的错误处理逻辑?
[P0] 输入数据验证:所有接收外部输入的场景(如表单、URL参数)是否都进行了严格验证?
[P0] 模块导出方式:组件和模块是否优先使用命名导出(named exports)?
[P0] Git 提交消息:每次代码提交是否都遵循了项目的 Git commit 消息规范?
📚 详细规范索引
核心开发规范
领域
文件
核心内容
TypeScript
typescript-standards.mdc
类型定义、泛型使用、严格模式
React
react-standards.mdc
组件规范、Hooks 使用、性能优化
项目配置
project-setup.mdc
完整配置示例、目录结构、环境变量
代码质量
code-quality-tools.mdc
ESLint、Prettier、VS Code 配置
命名规范
naming-conventions.mdc
文件、变量、组件命名标准
工程化与流程
领域
文件
核心内容
样式系统
styling-standards.mdc
Tailwind、响应式设计、主题
错误处理
error-handling.mdc
统一错误处理策略、边界处理
性能优化
performance-optimization.mdc
优化技术和监控指标
API 设计
api-design.mdc
RESTful 设计原则、响应格式
测试规范
testing-standards.mdc
测试策略和配置方法
安全标准
security-standards.mdc
输入验证、XSS 防护、认证
协作与管理
领域
文件
核心内容
包管理
install-package.mdc
npm 包安装、Monorepo 管理
模块导出
module-exports.mdc
导出方式、依赖管理
Git 规范
git-commit-message.mdc
提交消息格式、分支管理
文档规范
docs-guide.mdc
Markdown 格式、中英文排版
LLM 协作
llm.mdc
RIPER-5 模式、AI 协作流程
Context7 集成
context7.mdc
第三方库文档获取规范
快速参考
类型
文件
用途
核心索引
core.mdc
本文件,规范导航和概览
Installed into a catalogue, chosen by a router
Install core and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slot
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.