DC stock-push
A股股票定时推送系统。管理盘前推荐(09:20)、收盘复盘(15:05)、次日关注(20:00)三个推送任务,每交易日晚自动发送持仓股行情到微信。当用户提到:股票推送、持仓监控、定时提醒、A股行情,或者需要查询持仓盈亏、复盘信息、次日建议时触发。also triggers when user says "推送" or "股票" or asks to check their holdings.
As a process C 59/100 · Has gaps — weak spots: result and completion, inputs and preconditions, failures and branches
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.
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.
- 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 · 9
-
high Dangerous commands
cmd-persistencereferences/troubleshooting.md:55Persistence mechanism (cron / launchd / scheduled task / autorun registry)cat /etc/cron.d/stock-monitor
-
high Dangerous commands
cmd-persistenceskill-card.md:21Persistence mechanism (cron / launchd / scheduled task / autorun registry)Mitigation: Review the installer before use, prefer a user-level scheduler or dedicated non-root account where possible, and know how to remove /etc/cron.d/stock-monitor and /etc/logrotate.d/stock-mon
Medium and low: 7
-
medium Dangerous commands
cmd-pipe-to-shellinstall.sh:4Downloads and executes remote code from an unrecognised host (pipe to shell) (code comment)# 用法: bash <(curl -sL <url-to-this-script>)
comment -
medium Dangerous commands
cmd-persistenceinstall.sh:10Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)CRON_FILE="/etc/cron.d/stock-monitor"
code literal -
medium Dangerous commands
cmd-persistencescripts/install.py:12Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)CRON_CONF = "/etc/cron.d/stock-monitor"
code literal -
medium Dangerous commands
cmd-eval-dynamicscripts/install.py:87Dynamic code execution from decoded/untrusted inputr = os.system(f"python3 -m py_compile {path}") -
low Secrets in code
secret-high-entropy-tokenscripts/stock_after.py:7High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)USER_ID = "o9…@….wechat"
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/stock_next.py:7High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)USER_ID = "o9…@….wechat"
quoted -
low Secrets in code
secret-high-entropy-tokenscripts/stock_pre.py:7High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)USER_ID = "o9…@….wechat"
quoted
Files scanned: 10. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
✓ No remarks against the Agent Skills spec
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
- 0Failures and branches. Linear process with no failure handling
- 30Running it twice. 3 mutating operations with no state check
- 70When it triggers. States when to use, but not when not to
- 100Tools and files. No external tools needed
- 100Steps. 11 steps
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 534 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
- -31 of 4 scripts are never mentioned in SKILL.md
- +1No license
- +2Single-language instructions
- +3Description length 197: enough signal without eating the budget
- +4Structure: 10 headings
- +3Step-by-step instructions: 11 items
- +4Has examples (5 code blocks)
- +4Reference files are cited in the instructions (3 of 3)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 85.