Files
hello_js_reverse_skill/AGENTS.md
T
2026-09-11 22:05:11 +08:00

21 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 项目核心规范与提示词约束
## Python 环境与依赖管理规范(唯一强制)
1. **依赖声明(唯一支持)**:
- 依赖声明**仅支持 `pyproject.toml`**。
- **严禁使用 `requirements.txt` 或 setup.py 等其他格式**。
2. **依赖安装与管理(唯一允许)**:
- 安装/添加依赖**必须且只能使用 `uv add <package>`**(移除依赖使用 `uv remove <package>`)。
- **严禁使用 `pip`、`pip3`、`uv pip install` 等任何其他安装方式**。
3. **虚拟环境运行规范**:
- 所有 Python 脚本、测试、打标训练、采集与逆向分析代码必须在当前项目的 **`.venv`** 虚拟环境中运行。
- 执行 Python 命令必须通过 `uv run python ...` 或显式调用 `.venv/bin/python ...`。
4. **红线禁令**:
- **严禁直接调用系统 Python**(包括但不限于 `/usr/bin/python3`、全局 `python`、`python3` 等)。
- **严禁使用除 `pyproject.toml` 以外的任何依赖声明文件**。
- **严禁使用除 `uv add` 以外的任何依赖安装命令**。