基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/bj112233/governor-edr --skill windows-shell命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Update docs/ARCHITECTURE.md (and conceptual_repo/ARCHITECTURE.md if it references the same facts) after a significant commit, then commit atomically as docs(arch)
Create a git commit following the project's conventional-commit format, then auto-trigger the arch-update skill for the separate atomic docs(arch) commit when the change is significant. Enforces AGENTS.md §4 (atomic docs commit, never bundled into code).
Capture a new lesson in tasks/lessons.md after a user correction or a mistake discovered, following the established entry format
| name | windows-shell |
| description | כללי עבודה ב-PowerShell/Windows עבור tactical_bot — מונע שגיאות `&&`, נתיבים, ושימוש ב-venv |
| triggers | ["user","model"] |
הסביבה היא Windows + PowerShell 5 ו-Python 3.12.2 ב-venv. פקודות bash/POSIX נכשלות כאן. השתמש בכללים הבאים תמיד כשאתה מריץ פקודות ב-exec.
| bash | PowerShell | הערה |
|---|---|---|
cmd1 && cmd2 | cmd1 ; cmd2 | אין && ב-PowerShell 5. השתמש ב-;. להרצה מותנית: cmd1 ; if ($?) { cmd2 } |
cmd1 || cmd2 | if (-not $?) { cmd2 } | אין || ישיר |
cd /path | cd path או Set-Location | backslash, לא forward slash (בנתיבים מקומיים) |
test -f file | Test-Path file | |
mkdir -p a/b | New-Item -ItemType Directory a/b -Force | |
rm -rf x | Remove-Item x -Recurse -Force | |
cp a b | Copy-Item a b | (יש alias cp אבל התחביר שונה) |
mv a b | Move-Item a b | |
cat file | Get-Content file | (יש alias cat) |
ls -la | ls או Get-ChildItem | ls מחזיר טבלה; לשמות בלבד: ls -Name |
$VAR | $env:VAR | משתני סביבה |
echo $? | $LASTEXITCODE | exit code של תוכנית חיצונית |
export VAR=x | $env:VAR = "x" | |
source venv/bin/activate | .\.venv\Scripts\Activate.ps1 | הפעלת venv ב-Windows |
&& — השתמש ב-; בין פקודות. אם צריך מותנה, ; if ($?) { ... }.C:\Users\<user>\tactical_bot\.... ה-exec tool מקבל גם forward slash בחלק מהמקרים, אבל backslash עדיף לנתיבים מקומיים.cd "C:\My Folder".ls מחזיר טבלה ארוכה — אם רוצה רק שמות: ls -Name, או Get-ChildItem -Name.$LASTEXITCODE או $?..\.venv\Scripts\python.exe (Python 3.12.2).python, python.exe, py -3, py -3.14, system Python. py launcher מביא ל-Python 3.14 חסר תלויות..\.venv\Scripts\python.exe -m pytest, .\.venv\Scripts\python.exe bin\lint-gate.py, וכו'..\.venv\Scripts\Activate.ps1 ואז $env:VIRTUAL_ENV מתמלא..devin/hooks.v1.json → bin/enforce-venv-hook.ps1) חוסם exec שעוקף venv. אל תעקוף.Get-ChildItem -Force .venv\Scripts\python.exe. find_by_name/glob מכבדים .gitignore ומדלגים על .venv — לא להסיק "אין venv" מהם.# רע: python -m pytest && python bin/lint-gate.py
# טוב:
.\.venv\Scripts\python.exe -m pytest ; if ($?) { .\.venv\Scripts\python.exe bin\lint-gate.py }
# בדיקת קיום + יצירה
if (-not (Test-Path .devin\skills)) { New-Item -ItemType Directory .devin\skills -Force }
# הפעלת venv ובדיקה
.\.venv\Scripts\Activate.ps1 ; $env:VIRTUAL_ENV ; & .\.venv\Scripts\python.exe --version
python/pytest עצמן — עדיין צריך להשתמש ב-venv הנכון, אבל התחביר פנימי שלהן לא PowerShell.python -m — הם לא PowerShell.אם פקודה נכשלת עם "The token '&&' is not a valid statement separator" — זה הסימן שעברת על הכלל הזה. תקן מייד.
אם פקודה נכשלת עם ModuleNotFoundError / ImportError — כנראה השתמשת ב-system Python במקום venv. תקן מייד.