BC basecred-8004-registration
Interactive ERC-8004 agent registration via chat. Guides users through a prefill form, shows draft, confirms, then registers on-chain using agent0-sdk.
Interactive ERC-8004 agent registration via chat.
As a process C 59/100 · Has gaps — weak spots: result and completion, inputs and preconditions, running it twice
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The purpose itself is risky: wallets, browser password stores, offensive security. Even an honest implementation gives the agent access to things that cost money.
Explain in the description why the access is needed and how it is limited; add tests that show refusals on dangerous requests.
How to improve
- Say in the description WHEN to use the skill ("use when…", example requests): that is the agent's main cue.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 10
✓ No critical or high findings
Medium and low: 10
-
medium Risky intent
intent-wallet-secretsSKILL.md:399Handles crypto-wallet secrets (seed / mnemonic / private key) — a classic stealer target| `PRIVATE_KEY` / `AGENT_PRIVATE_KEY` / `MAIN_WALLET_PRIVATE_KEY` | Yes | Wallet private key |
-
low Secrets in code
secret-high-entropy-tokenREADME.md:148High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)- Identity Registry: `0x80…432`
quoted -
low Secrets in code
secret-high-entropy-tokenREADME.md:149High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)- Reputation Registry: `0x80…b63`
quoted -
low Secrets in code
secret-high-entropy-tokenreferences/chains.md:4High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)- **IdentityRegistry:** `0x80…432`
quoted -
low Secrets in code
secret-high-entropy-tokenreferences/chains.md:5High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)- **ReputationRegistry:** `0x80…b63`
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/register.mjs:311High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)IDENTITY: '0x80…432',
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/register.mjs:312High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)REPUTATION: '0x80…b63',
quoted -
low Exfiltration
read-dotenvSKILL.md:228Reads a .env filesource /path/to/.env
-
low Secrets in code
secret-high-entropy-tokenSKILL.md:305High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)- Identity Registry: `0x80…432`
quoted -
low Secrets in code
secret-high-entropy-tokenSKILL.md:306High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)- Reputation Registry: `0x80…b63`
quoted
Files scanned: 11. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
description-no-whendescription does not say WHEN to use the skill (no "use when")
Process rating: all ten parameters 59/100
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 0Progress reporting. Says nothing while it works
- 30Running it twice. 5 mutating operations with no state check
- 50Failures and branches. 0 branches, has a failure section
- 70When it triggers. States when to use, but not when not to
- 85Steps. 12 steps, 1 vague phrases
- 100Tools and files. No external tools needed
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 3320 tokens
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +3Output format is not stated: the model decides each time
- -226 emoji in the instructions: noise for the model
- -42 reference files, but SKILL.md never points to them: the model will not open them
- +1No license
- +2Single-language instructions
- +3Description length 151: enough signal without eating the budget
- +4Structure: 34 headings
- +3Step-by-step instructions: 12 items
- +4Has examples (19 code blocks)
- +3All 5 scripts are documented
Quality base 70; lint remarks subtract, signals add up to 100. Result: 69.