You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are the orchestrator of a parallelized security audit of a Substrate runtime and/or its pallets.
10
10
11
+
## Codex compatibility
12
+
13
+
This skill is shared across agent environments. If you are running in Codex, map the Claude-oriented tool names as follows:
14
+
15
+
-`Read` -> `sed`, `rg`, or other file-read commands.
16
+
-`Glob` -> `rg --files` or `find`.
17
+
-`Grep` -> `rg`.
18
+
-`Bash` -> `exec_command`.
19
+
-`WebFetch` -> the web tool, or `curl` only when shell network access is available.
20
+
-`Agent` -> Codex sub-agents, following the active Codex environment policy for agent spawning. If sub-agents are unavailable or disallowed in the current environment, run a reduced local review or ask the user how to proceed.
21
+
22
+
The banner and four-turn orchestration apply only when the user requests an audit run. They do not apply when the user asks to inspect, update, or explain this skill.
@@ -18,7 +31,7 @@ You are the orchestrator of a parallelized security audit of a Substrate runtime
18
31
**Flags:**
19
32
20
33
-`--pr <ref>`: Audit a specific pull request. `<ref>` can be a PR number or a full GitHub PR URL. Do NOT use `gh` — fetch PR data via `WebFetch` against the GitHub API (`https://api.github.com/repos/{owner}/{repo}/pulls/{number}/files`). Parse the response for changed `.rs` files.
21
-
-`--file-output` (off by default): also write the report to a markdown file (path per `{resolved_path}/report-formatting.md`). Never write a report file unless explicitly passed.
34
+
-`--file-output` (off by default): also write the report to a markdown file at the path specified by `{resolved_path}/report-formatting.md`. Never write a report file unless explicitly passed.
22
35
23
36
## Orchestration
24
37
@@ -29,7 +42,7 @@ a. Discover in-scope `.rs` files per mode selection:
29
42
-**With `--pr`:** Use `WebFetch` to call `https://api.github.com/repos/{owner}/{repo}/pulls/{number}/files` (extract owner/repo from the git remote or the provided URL). Parse the JSON response for changed `.rs` files, then split them into production vs test/bench/mock lists using the same patterns. Do NOT use `gh`.
30
43
b. Glob for `**/references/attack-vectors/substrate-attack-vectors.md` — extract the `references/` directory (two levels up) as `{resolved_path}`
31
44
c. Read the local `VERSION` file from the same directory as this skill
32
-
d. Bash `curl -sf https://raw.githubusercontent.com/galacticcouncil/hydration-node/main/.claude/skills/hydration_cl0wdit/VERSION`
45
+
d. Fetch `https://raw.githubusercontent.com/galacticcouncil/hydration-node/main/ai_skills/hydration_cl0wdit/VERSION` (`Bash curl -sf` in Claude; web tool in Codex when shell network is restricted)
33
46
e. Bash `mktemp -d /tmp/audit-XXXXXX` → store as `{bundle_dir}`
34
47
35
48
If the remote VERSION fetch succeeds and differs from local, print `⚠ hydration_cl0wdit v{local} is outdated — a newer version is available in the repo`. If it fails, skip silently.
@@ -59,7 +72,7 @@ Every hacking agent (1–10) receives the full production codebase via `source.m
59
72
60
73
Print line counts for every bundle and `source.md`. Do NOT inline file content into agent prompts.
61
74
62
-
**Turn 3 — Spawn.** In one message, spawn all 11 agents as parallel foreground Agent calls. Prompt template (substitute real values):
75
+
**Turn 3 — Spawn.** In one message, spawn all 11 agents as parallel audit workers (Claude: foreground Agent calls; Codex: sub-agents). Prompt template (substitute real values):
63
76
64
77
```
65
78
Your bundle file is {bundle_dir}/agent-N-bundle.md (XXXX lines).
0 commit comments