Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

dsl-tightDSL 紧

Agent Skill

dsl-tight 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,536

周安装

66

GitHub Stars

75

下载量

539
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dsl-tight(DSL 紧)
来源仓库:https://github.com/senpi-ai/senpi-skills
仓库路径:skills/dsl-tight
安装命令:
npx skills add https://github.com/senpi-ai/senpi-skills --skill dsl-tight
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/senpi-ai/senpi-skills --skill dsl-tight

简介

dsl-tight 是 DSL v5 的紧缩版预设,提供更激进的利润保护策略与更少可调参数。

  • 它基于 ROE 自动计算各层级触发点,并加入停滞退出与自动回撤控制逻辑。
  • 适用于追求稳定收益且不愿频繁调整策略的用户群体。
  • 安装时请参考 dsl-v5.py 架构说明,注意状态目录与策略 ID 的组织方式。
  • dsl-tight 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

DSL-Tight — Opinionated Stop-Loss Preset (v5)

A tighter, more opinionated variant of DSL for aggressive profit protection. Uses the same script and architecture as DSL v5 (dsl-v5.py) — strategy-scoped cron, MCP clearinghouse, state under {DSL_STATE_DIR}/{strategyId}/{asset}.json. All tier triggers are ROE-based (PnL / margin × 100); leverage is accounted for automatically.

Key difference from default DSL v5: DSL v5 is the configurable engine with maximum flexibility. DSL-Tight is the "just works" preset — fewer knobs, tighter defaults, per-tier breach counts, stagnation exits, and auto-calculated floors.

Core Concept

All thresholds defined in ROE. The script auto-converts to price levels:

price_floor = entry × (1 ± lockPct / 100 / leverage)

How It Works

Phase 1 — Absolute Floor (Stop-Loss)

  • 5% ROE trailing floor
  • 3 consecutive breaches required
  • Auto-calculated absolute floor from entry/leverage/retrace

Phase 2 — Tiered Profit Lock

4 tiers that lock an increasing percentage of the high-water move:

TierTrigger ROELock % of HW MoveBreaches to Close
110%50%3
220%65%2
340%75%2
475%85%1

Per-tier breach counts tighten as profit grows — at Tier 4 (75% ROE), a single breach closes immediately.

Stagnation Take-Profit

Auto-closes if:

  • ROE ≥ 8% AND
  • High-water mark hasn't improved for 1 hour

Catches winners that stall — takes the profit rather than waiting for a reversal.

Breach Mechanics

  • Hard decay only (breach count resets to 0 on recovery)
  • Per-tier breach requirements (3→2→2→1) replace the global Phase 1/Phase 2 split
  • Floor is always: max(tier_floor, trailing_floor) for LONG, min() for SHORT

State File Schema

State files live in the DSL v5 strategy directory: {DSL_STATE_DIR}/{strategyId}/{asset}.json (main dex) or {DSL_STATE_DIR}/{strategyId}/xyz--SYMBOL.json (xyz dex). See dsl-dynamic-stop-loss references/state-schema.md for path conventions.

{
  "active": true,
  "asset": "HYPE",
  "direction": "LONG",
  "leverage": 10,
  "entryPrice": 28.87,
  "size": 1890.28,
  "wallet": "0xYourStrategyWalletAddress",
  "strategyId": "uuid-of-strategy",
  "phase": 1,
  "phase1": {
    "retraceThreshold": 0.05,
    "consecutiveBreachesRequired": 3
  },
  "phase2TriggerTier": 0,
  "phase2": {
    "retraceThreshold": 0.015,
    "consecutiveBreachesRequired": 2
  },
  "tiers": [
    {"triggerPct": 10, "lockPct": 50, "retrace": 0.015},
    {"triggerPct": 20, "lockPct": 65, "retrace": 0.012},
    {"triggerPct": 40, "lockPct": 75, "retrace": 0.010},
    {"triggerPct": 75, "lockPct": 85, "retrace": 0.006}
  ],
  "breachDecay": "hard",
  "currentTierIndex": -1,
  "tierFloorPrice": null,
  "highWaterPrice": 28.87,
  "floorPrice": 28.78,
  "currentBreachCount": 0,
  "createdAt": "2026-02-23T10:00:00.000Z"
}

Omit phase1.absoluteFloor — dsl-v5 fills it from entry and leverage. Set highWaterPrice to entry price, floorPrice to entry (or the computed absolute floor) for Phase 1 start.

Field Reference

FieldPurpose
phase1.absoluteFloorNot needed — auto-calculated from entry, leverage, retrace
tiers[].breachesRequiredPer-tier breach count (replaces global phase2 setting)
tiers[].retracePer-tier trailing stop tightness
stagnation.enabledEnable stagnation take-profit
stagnation.minRoePctMinimum ROE to trigger stagnation check
stagnation.maxStaleSecMax seconds HW can be stale before auto-close

Cron Setup

Same as DSL v5: one cron per strategy (not per position), every 3–5 minutes. The agent creates it when setting up DSL for a strategy.

Resolving the script path: When setting up the cron, locate the dsl-dynamic-stop-loss skill on disk (e.g. search the workspace, skills directory, or ClawHub install path for a folder named dsl-dynamic-stop-loss containing scripts/dsl-v5.py). Use that resolved path in the cron command — do not assume a fixed relative path. Example once resolved:

DSL_STATE_DIR=/data/workspace/dsl DSL_STRATEGY_ID=strategy-uuid python3 /path/to/dsl-dynamic-stop-loss/scripts/dsl-v5.py

No DSL_ASSET — the script discovers positions from MCP clearinghouse and state files in the strategy dir.

Clock-aligned schedule (OpenClaw): For runs at fixed 3-minute boundaries (e.g.:00,:03,:06…), create the job with a cron expression: "schedule": {"kind": "cron", "expr": "*/3 * * * *", "tz": "UTC"}. See dsl-dynamic-stop-loss SKILL.md Cron Setup and references/explained.md §0.

Agent responsibilities (same as DSL v5): on strategy_inactive remove cron and run strategy cleanup; on closed=true alert user; on pending_close=true alert and retry next tick.

Key Safety Features

  • Same as DSL v5: strategy active check, reconcile state vs clearinghouse, delete state on close
  • Auto-calculated floors eliminate manual math errors
  • Per-tier breach tightening means large profits get maximum protection
  • Stagnation TP prevents stalled winners from reversing

Example Walkthrough

10x LONG entry at $28.87:

  1. Phase 1: Floor auto-calculated ~$28.73. Price rises, HW tracks.
  2. Tier 1 at 10% ROE ($29.16): Floor locks at ~$29.01, 3 breaches to close.
  3. Tier 2 at 20% ROE ($29.45): Floor locks at ~$29.24, now only 2 breaches.
  4. Stagnation: Price stalls at 12% ROE for 65 min → auto-closed with profit.
  5. Tier 4 at 75% ROE ($31.04): Floor at ~$30.71. Single breach = instant close.

Script and Dependencies

Uses dsl-v5.py and dsl-cli.py from the dsl-dynamic-stop-loss skill. Install that skill first. Preferred setup: call dsl-cli.py add-dsl with --configuration @dsl-tight/dsl-profile.json (see "Setup via DSL CLI" above). When setting up cron or running the script, locate the dsl-dynamic-stop-loss skill on disk (search workspace/skills/install path for the folder containing scripts/dsl-v5.py and scripts/dsl-cli.py) and use that path. State files go in {DSL_STATE_DIR}/{strategyId}/{asset}.json (main) or xyz--SYMBOL.json (xyz). For cron setup, path conventions, cleanup on strategy inactive, and output schema, follow the dsl-dynamic-stop-loss skill.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.9%
按下载量换算188

Claude

32.73%
按下载量换算176

Cursor

19.08%
按下载量换算103

Gemini CLI

9.31%
按下载量换算50

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills