review-clawhub-profile-proposal
Skill142 starsChanged 2 months agoMITView on GitHub
Use when an OpenClaw maintainer or owner is reviewing a ClawHub malicious-skill profile proposal PR: checking `proposals/<GHSA-ID>/clawscan.yml`, reading the private vulnerability context without leaking it, running the SkillTrustBench Profile Gate or equivalent local benchmark, updating the accepted baseline, and promoting an accepted candidate into `internal/profiles/clawhub/clawscan.yml`.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/autoreview/AGENTS.mdAGENTS.md
- autoreviewSkill
- clawscan-cliSkill
- report-clawhub-malicious-skillSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. About 0 are common, 19 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Use this owner-side workflow for a public PR that proposes a candidate ClawHub profile at proposals/<GHSA-ID>/clawscan.yml after a private …
- Distinctive: line 23
Treat the GitHub private vulnerability report as the source for sensitive malicious skill details.
- Distinctive: line 25
Do not paste live exploit details, private report text, private artifacts, or suspicious skill payloads into public PR comments, public …
- Very specific: line 30
Do not run the suspicious skill.
- Distinctive: line 32
Do not promote a candidate unless the private report, proposal diff, and benchmark proof all line up.
- Distinctive: line 37
Read the current repo and PR state.
- Distinctive: line 39
Check git status --short --branch before editing.
- Distinctive: line 50
Read the private report privately.
- Distinctive: line 52
Use the private vulnerability report only to understand:
- Distinctive: line 59
Keep public comments high-level, such as "validated against the private report" or "needs private-case follow-up".
- Distinctive: line 64
Prefer the manual GitHub Actions workflow when available:
- Very specific: line 80
If running locally, use the same command.
- Distinctive: line 100
Update the accepted baseline summary.
- Distinctive: line 102
Use the repo script so the compact baseline is generated from the full candidate artifact:
- Very specific: line 115
If the PR merges, the newest dated JSON file in benchmarks/skilltrustbench-leaderboard-10pct/ is the latest accepted baseline for the …
- Distinctive: line 125
leave a public PR comment with non-sensitive reasons
- Distinctive: line 126
keep details that identify the malicious payload in the private report
- Distinctive: line 127
do not edit official bundled profile files
- Very specific: line 133
add a dated baseline under benchmarks/skilltrustbench-leaderboard-10pct/ from the candidate artifact in the same PR
- Very specific: line 138
keep prompt/schema changes maintainer-owned.
- Distinctive: line 143
Verify the promoted built-in profile.
- Distinctive: line 163
Use a smaller proof only when explicitly accepted.
- Distinctive: line 170
Keep the PR body/comments free of private exploit details.
- Distinctive: line 171
Add proof with commands, artifact links, and residual risk.
- Very specific: line 191
Do not include private artifacts, malicious payload details, or generated dist/ output in ordinary promotion commits unless the issue …
- Distinctive: line 206
commit SHA or reason no commit was created
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review ClawHub Profile Proposal
Overview
Use this owner-side workflow for a public PR that proposes a candidate ClawHub
profile at proposals/<GHSA-ID>/clawscan.yml after a private vulnerability
report. The goal is to validate the candidate, keep sensitive details private,
and, if accepted, promote the public profile behavior into the bundled
internal/profiles/clawhub/clawscan.yml.
Safety Boundary
- Treat the GitHub private vulnerability report as the source for sensitive malicious skill details.
- Do not paste live exploit details, private report text, private artifacts, or suspicious skill payloads into public PR comments, public docs, commit messages, or committed baseline summaries.
- The public proposal PR should start with only
proposals/<GHSA-ID>/clawscan.yml. Do not trust it until reviewed. - Do not run the suspicious skill. ClawScan scans skill files as data; it should not execute the skill's behavior.
- Do not promote a candidate unless the private report, proposal diff, and benchmark proof all line up.
Review Workflow
Read the current repo and PR state.
- Check
git status --short --branchbefore editing. - Fetch the PR branch and inspect the changed files.
- Confirm the public PR initially contains only
proposals/<GHSA-ID>/clawscan.ymlplus any baseline summary commit produced by the maintainer gate. - Confirm the proposal file defines a
clawhubprofile. - Confirm the proposal does not edit official bundled profile files yet:
internal/profiles/clawhub/clawscan.yml,internal/profiles/clawhub/prompt.md, orinternal/profiles/clawhub/output.schema.json.
- Check
Read the private report privately.
Use the private vulnerability report only to understand:
- what malicious behavior must be caught
- why the current built-in
clawhubprofile misses or under-detects it - what evidence should be preserved privately
- whether any proposal text or config comments leak sensitive details
Keep public comments high-level, such as "validated against the private report" or "needs private-case follow-up"; do not quote private details.
Validate the candidate profile.
Prefer the manual GitHub Actions workflow when available:
SkillTrustBench Profile GateDispatch it with the PR number and proposal path. It should run:
clawscan benchmark SkillTrustBench \ --ids https://huggingface.co/datasets/cuhk-zhuque/SkillTrustBench-results/resolve/main/data/evaluation_subset_10pct.jsonl \ --config proposals/<GHSA-ID>/clawscan.yml \ --profile clawhub \ --output ./artifacts/skilltrustbench-candidate.jsonIf running locally, use the same command. The
--idssource is the public SkillTrustBench leaderboard subset and is mutually exclusive with--limitand--offset.Review the benchmark artifact.
Check:
- the artifact is full JSON and preserved as a workflow artifact or private maintainer artifact
benchmark.idiscuhk-zhuque/SkillTrustBenchbenchmark.splitisbenchmarkbenchmark.idsCountis556benchmark.idsSha256matches the planned subset hash903a036e4b7b16ee28e22d5d9db57a00b3764cfe41e43144acad67921e5196c2- scanner and judge statuses are acceptable
- evaluation metrics are not an unacceptable regression
- the candidate catches the private reported behavior when private proof is available
Update the accepted baseline summary.
Use the repo script so the compact baseline is generated from the full candidate artifact:
go run ./scripts/update-skilltrustbench-baseline \ --artifact ./artifacts/skilltrustbench-candidate.json \ --output benchmarks/skilltrustbench-leaderboard-10pct/<YYYY-MM-DD>.json \ --profile clawhub \ --profile-source proposals/<GHSA-ID>/clawscan.yml \ --subset-case-ids-sha256 903a036e4b7b16ee28e22d5d9db57a00b3764cfe41e43144acad67921e5196c2 \ --workflow-url <workflow-url>If the PR merges, the newest dated JSON file in
benchmarks/skilltrustbench-leaderboard-10pct/is the latest accepted baseline for the bundledclawhubprofile. The script fails if the candidate artifact's selected-ID hash does not match the planned subset. No post-merge rerun is required.Decide.
If rejected:
- leave a public PR comment with non-sensitive reasons
- keep details that identify the malicious payload in the private report
- do not edit official bundled profile files
If accepted:
- promote the accepted public
clawhubprofile behavior intointernal/profiles/clawhub/clawscan.yml - add a dated baseline under
benchmarks/skilltrustbench-leaderboard-10pct/from the candidate artifact in the same PR - preserve or remove
proposals/<GHSA-ID>/clawscan.ymlaccording to the issue/PR instruction; default to preserving it as public proposal trail unless the maintainer explicitly chooses to remove it - keep prompt/schema changes maintainer-owned; edit
internal/profiles/clawhub/prompt.mdorinternal/profiles/clawhub/output.schema.jsononly when that is the accepted change
Verify the promoted built-in profile.
Run at least:
go test -count=1 ./... go vet ./... go run ./cmd/clawscan profiles -v go run ./cmd/clawscan --helpFor benchmark proof after promotion, run:
clawscan benchmark SkillTrustBench \ --ids https://huggingface.co/datasets/cuhk-zhuque/SkillTrustBench-results/resolve/main/data/evaluation_subset_10pct.jsonl \ --profile clawhub \ --output ./artifacts/skilltrustbench-clawhub.jsonUse a smaller proof only when explicitly accepted; the official gate uses the subset ID source above.
Update the PR.
- Push the promotion commit to the PR branch if that is the chosen review path.
- Keep the PR body/comments free of private exploit details.
- Add proof with commands, artifact links, and residual risk.
Promotion Patch Shape
The maintainer promotion commit usually touches:
internal/profiles/clawhub/clawscan.yml
benchmarks/skilltrustbench-leaderboard-10pct/<YYYY-MM-DD>.jsonIt may also touch:
internal/profiles/clawhub/prompt.md
internal/profiles/clawhub/output.schema.json
docs/
testsDo not include private artifacts, malicious payload details, or generated
dist/ output in ordinary promotion commits unless the issue explicitly asks
for them.
Handoff Shape
End with:
- verdict: accepted, rejected, or blocked
- proposal path and PR/ref reviewed
- private report checked, without sensitive details
- benchmark command and artifact location
- baseline summary update status
- bundled profile files changed
- exact verification commands and results
- commit SHA or reason no commit was created
- residual risk and next owner action
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

