用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/keep-starknet-strange/starknet-skills --skill audit-local命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Routes Cairo/Starknet coding and audit tasks to the smallest relevant module for focused, high-quality execution.
Cairo smart-contract authoring on Starknet. Trigger on "write a contract", "create a contract", "implement this in Cairo", "add storage/events/interface", "compose components". Guides structure, security patterns, and component wiring.
Improves Cairo performance after correctness is established. Trigger on "optimize", "gas usage", "reduce steps", "profile", "BoundedInt", "storage packing", "benchmark". Guides profiling, arithmetic optimization, and bounded-int hardening.
基于 SOC 职业分类
正在显示 SKILL.md
| name | audit-local |
| description | Run a local security audit on a Cairo repository |
| allowed-tools | Bash, Read, Grep, Glob, Python |
| argument-hint | <path-to-cairo-repo> |
Validate and sanitize the target repo path:
REPO="$ARGUMENTS"
[ -n "$REPO" ] || { echo "ERROR: repo path is required" >&2; exit 1; }
echo "$REPO" | grep -qE '^[A-Za-z0-9_./ -]+$' || {
echo "ERROR: repo path contains unsafe characters" >&2
exit 1
}
if echo "$REPO" | grep -qE '(^|/)\.\.(/|$)'; then
echo "ERROR: repo path traversal is not allowed" >&2
exit 1
fi
[ -f scripts/quality/audit_local_repo.py ] || {
echo "ERROR: scripts/quality/audit_local_repo.py not found from current working directory" >&2
exit 1
}
[ -d "$REPO" ] || { echo "ERROR: '$REPO' is not a directory" >&2; exit 1; }
Run the local deterministic audit:
python3 scripts/quality/audit_local_repo.py --repo-root "$REPO" --scan-id "local-$(date +%s)"
Report findings grouped by severity (Critical > High > Medium > Low > Info) with title, location, and fix.
Summarize totals and top-3 highest-severity findings.
Follow the full workflow: Audit Local Workflow
.json, .md, optional findings JSONL) for triage.