modular-code by parcadei/continuous-claude-v3
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill modular-code编写模块化的 Python 代码,文件大小应便于维护和 AI 辅助开发。
| 行数 | 状态 | 建议操作 |
|---|---|---|
| 150-500 | 最佳 | AI 代码编辑器和人类理解的最佳范围 |
| 500-1000 | 较大 | 寻找自然的分割点 |
| 1000-2000 | 过大 | 重构为专注的模块 |
| 2000+ | 严重 | 必须分割 - 会导致工具问题和认知超载 |
当出现以下任何情况时进行分割:
auth.py → , , 广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
auth/login.pyauth/tokens.pyauth/permissions.pyfeature/
├── __init__.py # 保持最小化,仅用于导出
├── core.py # 主要逻辑(少于 500 行)
├── models.py # 数据结构
├── handlers.py # I/O 和副作用
└── utils.py # 纯辅助函数
data_storage.py,而不是 utils2.py)__init__.py 文件最小化或为空分割现有大型文件时:
超过 2000 行需要关注的文件:
每周安装量
206
代码仓库
GitHub 星标数
3.6K
首次出现
2026 年 1 月 22 日
安全审计
安装于
opencode199
codex196
cursor196
gemini-cli195
github-copilot190
amp185
Write modular Python code with files sized for maintainability and AI-assisted development.
| Lines | Status | Action |
|---|---|---|
| 150-500 | Optimal | Sweet spot for AI code editors and human comprehension |
| 500-1000 | Large | Look for natural split points |
| 1000-2000 | Too large | Refactor into focused modules |
| 2000+ | Critical | Must split - causes tooling issues and cognitive overload |
Split when ANY of these apply:
auth.py → auth/login.py, auth/tokens.py, auth/permissions.pyfeature/
├── __init__.py # Keep minimal, just exports
├── core.py # Main logic (under 500 lines)
├── models.py # Data structures
├── handlers.py # I/O and side effects
└── utils.py # Pure helper functions
data_storage.py not utils2.py)__init__.py files minimal or emptyWhen splitting an existing large file:
Files over 2000 lines that need attention:
Weekly Installs
206
Repository
GitHub Stars
3.6K
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode199
codex196
cursor196
gemini-cli195
github-copilot190
amp185
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
150,000 周安装