Skip to content

Commit b6b492d

Browse files
committed
refactor: add numeric prefixes to prompt files for workflow order
Renamed prompts to reflect natural workflow sequence: - 01-setup-dev-env.prompt.md (first-time setup) - 02-build-ddbc.prompt.md (build C++ extension) - 03-run-tests.prompt.md (run pytest) - 04-create-pr.prompt.md (submit work) Updated all cross-references between prompts
1 parent 41a11a0 commit b6b492d

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/prompts/setup-dev-env.prompt.md renamed to .github/prompts/01-setup-dev-env.prompt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ echo "✅ Setup complete!"
486486

487487
Once setup is complete, you can:
488488

489-
1. **Build DDBC extensions** → Use `#build-ddbc`
490-
2. **Run tests** → Use `#run-tests`
489+
1. **Build DDBC extensions** → Use `#02-build-ddbc`
490+
2. **Run tests** → Use `#03-run-tests`
491491

492492
> 💡 You typically only need to run this setup prompt **once** per machine or after major changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You are a development assistant helping rebuild the DDBC C++ pybind11 extensions
88
## PREREQUISITES
99

1010
> ⚠️ **This prompt assumes your development environment is already set up.**
11-
> If you haven't set up your environment yet, use `#setup-dev-env` first.
11+
> If you haven't set up your environment yet, use `#01-setup-dev-env` first.
1212
1313
**Quick sanity check:**
1414
```bash
@@ -308,6 +308,6 @@ cd mssql_python/pybind && rm -rf build && ./build.sh && cd ../.. && python -c "f
308308

309309
Once the build succeeds:
310310

311-
1. **Run tests** → Use `#run-tests`
311+
1. **Run tests** → Use `#03-run-tests`
312312
2. **Test manually** with a connection to SQL Server
313-
3. **Create a PR** with your C++ changes → Use `#create-pr`
313+
3. **Create a PR** with your C++ changes → Use `#04-create-pr`
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ pip install -e .
251251
# Check venv is active
252252
echo $VIRTUAL_ENV
253253

254-
# If empty, activate it (run `#setup-dev-env`)
254+
# If empty, activate it (run `#01-setup-dev-env`)
255255
# If active, install pytest
256256
pip install pytest pytest-cov
257257
```
@@ -302,7 +302,7 @@ python -m pytest tests/test_000_dependencies.py tests/test_001_globals.py tests/
302302
**Cause:** C++ extension not built or Python version mismatch
303303

304304
**Fix:**
305-
Use `#build-ddbc` to rebuild the extension:
305+
Use `#02-build-ddbc` to rebuild the extension:
306306
```bash
307307
cd mssql_python/pybind && ./build.sh && cd ../..
308308
python -c "from mssql_python import connect; print('OK')"
@@ -397,9 +397,9 @@ addopts = -m "not stress"
397397

398398
Based on test results:
399399

400-
1. **All passed** → Ready to create/update PR → Use `#create-pr`
400+
1. **All passed** → Ready to create/update PR → Use `#04-create-pr`
401401
2. **Some failed** → Review failures, fix issues, re-run
402402
3. **Coverage decreased** → Add tests for new code paths
403403
4. **Need to debug** → Use `-s` flag to see print output, or `--pdb` to drop into debugger
404404

405-
> 💡 **Tip:** If you made C++ changes, ensure you've rebuilt using `#build-ddbc` first!
405+
> 💡 **Tip:** If you made C++ changes, ensure you've rebuilt using `#02-build-ddbc` first!
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ You are a development assistant helping create a pull request for the mssql-pyth
88
## PREREQUISITES
99

1010
Before creating a PR, ensure:
11-
1. ✅ All tests pass (use `#run-tests`)
11+
1. ✅ All tests pass (use `#03-run-tests`)
1212
2. ✅ Code changes are complete and working
13-
3. ✅ If C++ changes, extension is rebuilt (use `#build-ddbc`)
13+
3. ✅ If C++ changes, extension is rebuilt (use `#02-build-ddbc`)
1414

1515
---
1616

0 commit comments

Comments
 (0)