tego / rules
Cursor rule1.1k starsChanged 12 months agoApache-2.0View on GitHub
After modifying any code file, must use read_lints tool to check for lint errors. 每次修改代码文件后,必须使用 read_lints 工具检查 lint 错误。 After modifying files, should execute: 修改文件后应该执行: After completing any code modifications, you must perform the following checks: 每次完成代码修改后,必须执行以下检查: Example / 示例: When adding or modifying translation keys, you must: 当添加或修改翻译键时,必须: Workflow / 工作流程: 1. Add/modify translation key in one language file (usually en-US.json or zh-CN.json) / 在一个语言文件中添加/修改翻译键(通常是 en-US.json 或 zh-CN.json) 2. Immediately add the same key to all other language files…
We split this lint-check.md into the rules it gives an agent
16 rules. About 0 are common, 14 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
After modifying any code file, must use read_lints tool to check for lint errors.
- Distinctive: line 13
If errors found, fix them immediately / 如果发现错误,立即修复
- Distinctive: line 14
After fixing, check again to confirm no errors / 修复后再次检查,确认无错误
- Distinctive: line 25
After modifying files, should execute: 修改文件后应该执行:
- Distinctive: line 35
After completing any code modifications, you must perform the following checks:
- Distinctive: line 42
Remove any imports that are not used in the code / 删除代码中未使用的导入
- Distinctive: line 43
Remove any exports that are not referenced elsewhere / 删除在其他地方未引用的导出
- Distinctive: line 44
Use tools or manual review to identify unused code / 使用工具或手动审查来识别未使用的代码
- Distinctive: line 58
When adding or modifying translation keys, you must:
- Distinctive: line 64
Ensure all translation keys are in the same order across all files / 确保所有文件中的翻译键顺序一致
- Distinctive: line 65
Use appropriate translations for each language / 为每种语言使用适当的翻译
- Very specific: line 68
Add/modify translation key in one language file (usually en-US.json or zh-CN.json) / 在一个语言文件中添加/修改翻译键(通常是 en-US.json 或 zh-CN.json)
- Distinctive: line 71
Verify JSON syntax is correct in all files / 验证所有文件的 JSON 语法正确
- Distinctive: line 101
If lint errors are found, must fix them immediately, cannot ignore / 如果发现 lint 错误,必须立即修复,不能忽略
- Distinctive: line 102
Always check for unused imports/exports before completing code changes / 在完成代码更改之前,始终检查未使用的导入/导出
- Distinctive: line 103
Always synchronize translations across all language files / 始终在所有语言文件之间同步翻译
≈ “Common” is an estimate: at least 1 in 5 of the 6,350 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lint Error Check Rules / Lint 错误检查规则
Mandatory Rule / 必须规则
After modifying any code file, must use read_lints tool to check for lint errors.
每次修改代码文件后,必须使用 read_lints 工具检查 lint 错误。
Check Workflow / 检查流程
- Modify code files / 修改代码文件
- Immediately check lint errors (using read_lints tool) / 立即检查 lint 错误(使用 read_lints 工具)
- If errors found, fix them immediately / 如果发现错误,立即修复
- After fixing, check again to confirm no errors / 修复后再次检查,确认无错误
- Confirm no errors before continuing other operations / 确认无错误后再继续其他操作
Check Scope / 检查范围
- All modified files / 修改过的所有文件
- Especially TypeScript/JavaScript files (.ts, .tsx, .js, .jsx, .mjs) / 特别是 TypeScript/JavaScript 文件(.ts, .tsx, .js, .jsx, .mjs)
- Workflow configuration files (.yaml, .yml) / 工作流配置文件(.yaml, .yml)
Example / 示例
After modifying files, should execute: 修改文件后应该执行:
read_lints({ paths: ['modified/file/path'] })
read_lints({ paths: ['修改的文件路径'] })Code Completion Checklist / 代码完成检查清单
After completing any code modifications, you must perform the following checks:
每次完成代码修改后,必须执行以下检查:
1. Remove Unused Imports and Exports / 删除不必要的导入导出
- Check all modified files for unused imports and exports / 检查所有修改的文件中未使用的导入和导出
- Remove any imports that are not used in the code / 删除代码中未使用的导入
- Remove any exports that are not referenced elsewhere / 删除在其他地方未引用的导出
- Use tools or manual review to identify unused code / 使用工具或手动审查来识别未使用的代码
Example / 示例:
// ❌ Bad: Unused import / 不好的:未使用的导入
import { useState, useEffect, useMemo } from 'react'
// Only useState is used / 只使用了 useState
// ✅ Good: Only import what's needed / 好的:只导入需要的
import { useState } from 'react'2. Synchronize All Translation Files / 同步所有翻译文件
When adding or modifying translation keys, you must:
当添加或修改翻译键时,必须:
- Add the translation key to ALL language files in the locale directory / 在所有语言文件中添加翻译键
- Common language files include:
en-US.json,zh-CN.json,es-ES.json,fr-FR.json,ja-JP.json,ko_KR.json,pt-BR.json,ru-RU.json,tr-TR.json/ 常见语言文件包括:en-US.json,zh-CN.json,es-ES.json,fr-FR.json,ja-JP.json,ko_KR.json,pt-BR.json,ru-RU.json,tr-TR.json - Ensure all translation keys are in the same order across all files / 确保所有文件中的翻译键顺序一致
- Use appropriate translations for each language / 为每种语言使用适当的翻译
Workflow / 工作流程:
- Add/modify translation key in one language file (usually
en-US.jsonorzh-CN.json) / 在一个语言文件中添加/修改翻译键(通常是en-US.json或zh-CN.json) - Immediately add the same key to all other language files / 立即在所有其他语言文件中添加相同的键
- Provide appropriate translations for each language / 为每种语言提供适当的翻译
- Verify JSON syntax is correct in all files / 验证所有文件的 JSON 语法正确
Example / 示例:
// en-US.json
{
"Failed to create execution": "Failed to create execution",
"Test execution failed": "Test execution failed"
}
// zh-CN.json (must also add) / 必须也添加
{
"Failed to create execution": "创建执行记录失败",
"Test execution failed": "测试执行失败"
}
// es-ES.json (must also add) / 必须也添加
{
"Failed to create execution": "Error al crear la ejecución",
"Test execution failed": "Error en la ejecución de prueba"
}
// ... and so on for all language files / ... 对所有语言文件都如此Important Notes / 重要提示
- Do not commit code with lint errors / 不能提交有 lint 错误的代码
- Do not commit code with unused imports/exports / 不能提交带有未使用导入/导出的代码
- Do not commit incomplete translations / 不能提交不完整的翻译
- Actively run lint checks after completing code modifications, don't wait for user reminders / 在完成代码修改后,应该主动运行 lint 检查,而不是等待用户提醒
- If lint errors are found, must fix them immediately, cannot ignore / 如果发现 lint 错误,必须立即修复,不能忽略
- Always check for unused imports/exports before completing code changes / 在完成代码更改之前,始终检查未使用的导入/导出
- Always synchronize translations across all language files / 始终在所有语言文件之间同步翻译
Trending
Quiet this year.about the whole repository
Who's talking about tegojs/tego
- tegojs/tego-standard“feat: core update”GitHub · Nov 24, 2025
- tegojs/docs“chore: sync plugins-list.md from tegojs/tego repo”GitHub · Jul 26, 2025
- tegojs/docs“chore: sync plugins-list.md from tegojs/tego repo”GitHub · Jul 25, 2025
- tegojs/docs“chore: sync plugins-list.md from tegojs/tego repo”GitHub · Jul 25, 2025
- tegojs/docs“chore: sync plugins-list.md from tegojs/tego repo”GitHub · Jul 25, 2025
The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 40
Talked about on GitHub (40 times).
On GitHub · 40
- Nov 24, 2025feat: core update — tegojs/tego-standard0 reactions · 31 comments
- Jul 26, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 25, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 25, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 25, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
35 more on GitHub
- Jul 25, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 25, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 24, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 24, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 24, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 24, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 24, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 24, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 23, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 23, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 23, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 23, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 22, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 22, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 21, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 18, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 18, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 17, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 17, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 17, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 17, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 17, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 17, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 16, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 16, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 16, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 16, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 15, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 15, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 14, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 14, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 14, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 11, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 11, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
- Jul 10, 2025chore: sync plugins-list.md from tegojs/tego repo — tegojs/docs0 reactions · 1 comment
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 3,978 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository12 other files it gives its agents.
- .cursor/rules/ai-assistant.mdCursor rule
- .cursor/rules/backend-guidelines.mdCursor rule
- .cursor/rules/code-style.mdCursor rule
- .cursor/rules/database-patterns.mdCursor rule
- .cursor/rules/development.mdCursor rule
- .cursor/rules/frontend-guidelines.mdCursor rule
- .cursor/rules/index.mdCursor rule
- .cursor/rules/performance.mdCursor rule
- .cursor/rules/project.mdCursor rule
- .cursor/rules/quick-reference.mdCursor rule
- .cursor/rules/security.mdCursor rule
- .cursor/rules/testing.mdCursor rule
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

