AGENT SKILL

delegate-security-audit

暂无简介

License 许可
MIT
所属仓库
joewalnes/skills
最近更新
2026-09-09
Stars
★ 3
Forks
3

03 SKILL.md 正文

Delegate: security analysis (GLM 5.3)

For authorized security work on the user's own code: audits, vulnerability hunting, and fixing what's found. GLM runs through pi, using the user's OpenRouter key — never ask for or echo API keys.

Zero data retention (ZDR): the user's OpenRouter account rejects non-ZDR endpoints. If a model 404s with "No endpoints available matching your … data policy," that's the account's ZDR-only policy working as intended — don't suggest loosening it, pick a different model.

Running it

cd <repo-root> && pi -p --provider openrouter --model z-ai/glm-5.3 \
  --thinking high --session-id delegate-sec "<brief>"
  • This is a full coding agent with read/bash/edit/write tools in the repo — it can apply fixes, not just report.
  • Brief it with scope and deliverable, e.g.: "Audit the auth and session-handling code in src/ for vulnerabilities (injection, authz bypass, secrets handling, SSRF). Fix what you find, and summarize each issue, severity, and fix."
  • Long audits can run many minutes: use run_in_background and report when it finishes.
  • Afterward, run git diff and review its changes yourself before presenting them — you own the final quality bar.

Continuity

Always pass --session-id delegate-sec. The first call warns "creating a new session" — that's normal. Follow-up delegations continue with full memory of prior exchanges. Use a new id (delegate-sec-2) to start fresh.

Reporting back

  • Lead with GLM's findings, clearly attributed ("GLM found 3 issues: …").
  • These delegations cost real money — don't loop them unattended without the user asking.

04 同仓库更多 Skills