Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Xinyuzjj Risk Guard

ASecurity

下单前风险护栏:1) plan —— 按固定风险百分比计算仓位大小(资金/风险%/入场价/止损价 → 数量、名义值、保证金、强平距离估算与警告);2) check —— 查 CEX 当前敞口(资产快照、 挂单、订单跟踪)。任何真实下单(现货买/合约开仓)之前必须先跑本技能。 触发词:仓位、该买多少、下单前检查、风控、position sizing、risk check。

76 stars
0 votes
0 copies
0 views
Added 9/22/2026
developmentapi

Works with

api

Security Analysis

A100/100

Scanned 9/22/2026

Install to Claude Code

$npx -y skills add jiayaoqijia/cryptoskill --skill xinyuzjj-risk-guard --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Xinyuzjj Risk Guard?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Xinyuzjj Risk Guard
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiayaoqijia-xinyuzjj-risk-guard/badge)](https://www.skillsdirectory.com/skills/jiayaoqijia-xinyuzjj-risk-guard)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: risk-guard
description: |
  下单前风险护栏:1) plan —— 按固定风险百分比计算仓位大小(资金/风险%/入场价/止损价 →
  数量、名义值、保证金、强平距离估算与警告);2) check —— 查 CEX 当前敞口(资产快照、
  挂单、订单跟踪)。任何真实下单(现货买/合约开仓)之前必须先跑本技能。
  触发词:仓位、该买多少、下单前检查、风控、position sizing、risk check。
metadata:
  author: bazz-agent
  version: "1.0"
---

# Risk Guard Skill(下单前护栏)

## 命令

| 命令 | 说明 |
|---|---|
| `plan <capitalUsd> <riskPct> <entry> <stop> [lev=1]` | 固定风险仓位计算:数量 / 名义值 / 保证金 / 强平距离估算 / 警告 |
| `check [symbol]` | CEX 当前敞口:资产快照 + 挂单 + 订单跟踪(未连接 CEX 时给出提示) |

示例:

```
run_skill risk-guard "plan 1000 1 0.42 0.38"        # $1000 资金,单笔风险 1%,0.42 进 0.38 止损
run_skill risk-guard "plan 1000 2 0.42 0.38 5"      # 5 倍杠杆版本
run_skill risk-guard "check WLDUSDT"
```

## plan 的数学

- 风险金额 `risk_usd = capital × riskPct / 100`
- 止损距离 `stop_dist_pct = |entry − stop| / entry × 100`
- 数量 `qty = risk_usd / |entry − stop|`;名义 `notional = qty × entry`
- 保证金(lev>1)`margin = notional / lev`
- 强平估算 `liq_est ≈ 100 / lev %`(单向线性近似,仅参考)—— **若 stop_dist_pct ≥ liq_est,说明止损先于强平被打穿前可能已触发强平风险,会输出警告**

## 下单前 Checklist(agent 必须逐条过)

1. `plan` 算仓 —— 风险百分比默认 ≤1%,激进 ≤2%,禁止更高
2. `market-data bundle` —— 资金费率是否极端拥挤、OI 是否异常放大
3. `query-token-audit`(链上币)—— 合约安全检查
4. `check` —— 当前敞口 + 挂单是否冲突
5. 明确失效条件(作废价)后再 `propose_trade`,并把止损价写进订单

## Agent 使用约定

- 用户催促"直接买"也必须先跑 `plan` + `check`,用一行说明为什么(合规风控)。
- `check` 返回的资产/持仓仅作参考快照,不作为唯一依据。

Attribution

jiayaoqijiajiayaoqijia
View sourceMore from jiayaoqijia →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

284072 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2192 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →