DC crypto-executor-optimizer
Autonomous optimizer skill for Wesley — reads Binance trading performance every 6 hours, analyzes win rate and strategy metrics, then safely tunes executor.py parameters (OBI thresholds, Kelly factor, strategy mix) via backup → modify → validate → restart.
As a process C 50/100 · Has gaps — weak spots: result and completion, when it triggers, inputs and preconditions
What is at stake
The skill contains fragments that, in the wrong hands, cost money or data. Below: what the installer risks and what the author should do.
The skill contains commands that delete files, rewrite disks or execute code fetched from the network. The agent may run them without asking if it believes the instructions require it.
Replace destructive commands with safe equivalents that ask for confirmation, scope them to one folder, and stop piping curl into a shell: pin a version and a checksum.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The instructions or scripts send data out: environment variables, keys, file contents, chat history. You may never notice, because the agent performs the upload as "part of the task".
If the upload is not needed for the task, remove it: catalogs flag such skills and delist them. If it is needed, name the destination explicitly, say what leaves the machine, and give the user a switch.
How to improve
- Address the high-severity findings: each costs 18 safety points. If one is a false positive, add the rule id to guard.allow in spec.yaml.
- 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 · 14
-
high Dangerous commands
cmd-persistenceinstall_cron.sh:48Persistence mechanism (cron / launchd / scheduled task / autorun registry)(crontab -l 2>/dev/null | grep -v crypto-executor-optimizer; echo "# Wesley Optimizer") | crontab -
-
high Dangerous commands
cmd-persistenceinstall_cron.sh:49Persistence mechanism (cron / launchd / scheduled task / autorun registry)(crontab -l 2>/dev/null; echo "$CRON_LINE") | crontab -
Medium and low: 12
-
medium Exfiltration
net-credential-useapply_optimization.sh:195Credential used in a network call (verify the destination is the intended service)curl -s -X POST "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" \
-
medium Exfiltration
net-credential-useapply_optimization.sh:254Credential used in a network call (verify the destination is the intended service)curl -s -X POST "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" \
-
medium Exfiltration
exfil-webhook-urlSKILL.md:56Webhook / callback URL commonly used for exfiltration (verify the destination) (detector / deny-list definition)- "https://api.telegram.org/bot*"
detector -
low Exfiltration
exfil-webhook-urlapply_optimization.sh:195Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)curl -s -X POST "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" \
placeholder -
low Dangerous commands
cmd-background-processapply_optimization.sh:218Starts a background / autostarted processnohup python3 "$EXECUTOR_PATH" >> /workspace/logs/binance_bot.log 2>&1 &
-
low Exfiltration
exfil-webhook-urlapply_optimization.sh:254Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)curl -s -X POST "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" \
placeholder -
low Dangerous commands
cmd-cron-mentioninstall_cron.sh:48Mentions editing / listing crontab(crontab -l 2>/dev/null | grep -v crypto-executor-optimizer; echo "# Wesley Optimizer") | crontab -
-
low Dangerous commands
cmd-cron-mentioninstall_cron.sh:49Mentions editing / listing crontab(crontab -l 2>/dev/null; echo "$CRON_LINE") | crontab -
-
low Dangerous commands
cmd-background-processsetup_binance_20euros.sh:183Starts a background / autostarted processnohup python3 "$EXECUTOR_PATH" > /workspace/logs/binance_bot.log 2>&1 &
-
low Exfiltration
exfil-webhook-urlskill-card.md:35Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)- [Telegram Bot API endpoint pattern](https://api.telegram.org/bot*) <br>
placeholder -
low Dangerous commands
cmd-cron-mentionSKILL.md:162Mentions editing / listing crontab (documentation table row)| `crontab -e` | Installer le job récurrent (fallback system cron) |
table -
low Dangerous commands
cmd-cron-mentionSKILL.md:295Mentions editing / listing crontabcrontab -e # supprimer la ligne crypto-executor-optimizer
Files scanned: 6. 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 50/100
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 20When it triggers. No condition that starts the skill
- 30Running it twice. 4 mutating operations with no state check
- 50Failures and branches. 0 branches, has a failure section
- 60Tools and files. Uses tools (bash, python) that frontmatter does not declare
- 100Steps. 43 steps
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 2213 tokens
- 100Progress reporting. Reports progress
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
- -222 emoji in the instructions: noise for the model
- +2Single-language instructions
- +3Description length 256: enough signal without eating the budget
- +4Structure: 20 headings
- +3Step-by-step instructions: 43 items
- +4Has examples (11 code blocks)
- +1License stated
Quality base 70; lint remarks subtract, signals add up to 100. Result: 71.