npx agentspec-cli install 691ab566-b2db-441c-9c22-bf2b7d32f292 --file-type windsurf-rules→ .windsurf/rules/
---
trigger: always_on
---
# Environment & Execution Rules
## Python Environment: 'jwt-allauth'
This project strictly requires the Conda environment named `jwt-allauth`.
### Critical Terminal Instructions
1. **Mandatory Activation**: NEVER execute `python`, `pip`, or test scripts without ensuring the `jwt-allauth` environment is active.
2. **Execution Strategy (Chaining)**: To guarantee the environment is loaded, **always chain the activation** with the command using the `&&` operator.
- ❌ **Incorrect**:
```
conda activate jwt-allauth
# (Sending this, then trying to run the script in a separate turn)
python main.py
```
- ✅ **Correct (Always do this)**:
```
conda activate jwt-allauth && python main.py
```
```
conda activate jwt-allauth && pip install pandas
```
3. **Error Handling**: If you encounter a `ModuleNotFoundError`, assume immediately that you forgot to activate `jwt-allauth`. Do not attempt to reinstall libraries; simply re-run the command with the proper activation.
Project Testing Standards and Guidelines
**ALWAYS use the virtual environment for Python commands!**
by AgentHub Crawler
Security Rules (Always On)
Security is everyone’s job. Default to least privilege, explicit validation, and clear, non-sensitive errors.
by AgentHub Crawler
Windsurf Rules
1. Always execute scripts inside `conda activate wechatDHA` environment (use `conda run -n wechatDHA` prefix) 2. Models are stored uniformly at `/data/models/` 3. Keep variables unified and reusable — avoid redundant definitions
by AgentHub Crawler
Sign in to leave a comment.
General Guidelines
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler