Agent Runtime Lifecycle Hooks
lobehub/lobehub
Registers lifecycle hooks on an agent run to observe, mock or intervene at each step, dispatching them in the order they were registered.
在短视频正文完成后,检查并生成前五秒开头,让开场更抓人、可信,并与正文承诺一致。用户要求优化视频开头、降低开头流失、写口播 Hook 或增强第一句话时使用。
$ npx skills add StopDisTrain/sdt-skills --skill sdt-hook -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install StopDisTrain/sdt-skills sdt-hook --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/StopDisTrain/sdt-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/sdt-hook .claude/skills/sdt-hook && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sdt-hook" agent skill from https://github.com/StopDisTrain/sdt-skills/tree/main/skills/sdt-hook into .claude/skills/sdt-hook/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sdt-hook", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/StopDisTrain/sdt-skills/tree/main/skills/sdt-hookType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add StopDisTrain/sdt-skills --skill sdt-hook -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install StopDisTrain/sdt-skills sdt-hook --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/StopDisTrain/sdt-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/sdt-hook .agents/skills/sdt-hook && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sdt-hook" agent skill from https://github.com/StopDisTrain/sdt-skills/tree/main/skills/sdt-hook into .agents/skills/sdt-hook/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sdt-hook", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add StopDisTrain/sdt-skills --skill sdt-hook -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install StopDisTrain/sdt-skills sdt-hook --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/StopDisTrain/sdt-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/sdt-hook .cursor/skills/sdt-hook && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sdt-hook" agent skill from https://github.com/StopDisTrain/sdt-skills/tree/main/skills/sdt-hook into .cursor/skills/sdt-hook/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sdt-hook", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/StopDisTrain/sdt-skills.git --path skills/sdt-hook--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add StopDisTrain/sdt-skills --skill sdt-hook -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install StopDisTrain/sdt-skills sdt-hook --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/StopDisTrain/sdt-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/sdt-hook .gemini/skills/sdt-hook && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sdt-hook" agent skill from https://github.com/StopDisTrain/sdt-skills/tree/main/skills/sdt-hook into .gemini/skills/sdt-hook/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sdt-hook", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install StopDisTrain/sdt-skills sdt-hookInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add StopDisTrain/sdt-skills --skill sdt-hook -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/StopDisTrain/sdt-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/sdt-hook .github/skills/sdt-hook && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sdt-hook" agent skill from https://github.com/StopDisTrain/sdt-skills/tree/main/skills/sdt-hook into .github/skills/sdt-hook/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sdt-hook", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add StopDisTrain/sdt-skills --skill sdt-hook -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install StopDisTrain/sdt-skills sdt-hook --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/StopDisTrain/sdt-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/sdt-hook .opencode/skills/sdt-hook && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sdt-hook" agent skill from https://github.com/StopDisTrain/sdt-skills/tree/main/skills/sdt-hook into .opencode/skills/sdt-hook/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sdt-hook", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sdt-hook在短视频正文完成后,检查并生成前五秒开头,让开场更抓人、可信,并与正文承诺一致。用户要求优化视频开头、降低开头流失、写口播 Hook 或增强第一句话时使用。
Sdt Hook is an agent skill from StopDisTrain/sdt-skills. 在短视频正文完成后,检查并生成前五秒开头,让开场更抓人、可信,并与正文承诺一致。用户要求优化视频开头、降低开头流失、写口播 Hook 或增强第一句话时使用。 English: Diagnose and write the first five seconds of a short video after the main script is ready, making the opening engaging, credible, and consistent with the video's promise. Use to improve retention, create a spoken hook, or strengthen the first line.
Its SKILL.md is about 220 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).
The repository describes itself as: SDT content research, creation and quality-control skills for Codex. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 0678cd0. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sdt Hook loads about 224 tokens when it runs. Until then it costs about 86 tokens; SKILL.md has 36 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from StopDisTrain/sdt-skills at commit 0678cd0, republished under its MIT licence (© StopDisTrain). 36 words, ~224 tokens.
.claude/skills/sdt-hook/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.先做正文质量、素材丰富度和当前开头诊断;通过后再生成开头并嵌入 SDT 成稿。
必须有完整正文或完整结构。只有选题和标题时停止生成,先回到 sdt-content。
开头至少包含两项:
优先结构:具体反差 + 未完成问题;真实结果 + 反转;痛点场景 + 新解释。避免连续自问自答和空泛命令句。
© StopDisTrain, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in skills/sdt-hook of StopDisTrain/sdt-skills.
Open the folder on GitHubat commit 0678cd0
Sdt Hook next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sdt Hook this skillStopDisTrain/sdt-skills | 309 | — | ~224 | Automated safety check: Pass | MIT | |
| Agent Runtime Lifecycle Hookslobehub/lobehub | 83k | — | ~2.8k | Automated safety check: Pass | Custom licence | |
| Agentmemory Capture Hooksrohitg00/agentmemory | 29k | — | ~444 | Automated safety check: Pass | Apache-2.0 | |
| Crush Hook Writercharmbracelet/crush | 29k | — | ~1.8k | Automated safety check: Pass | Custom licence | |
| Hook Development for Claude Code Pluginsanthropics/claude-plugins-official | 38k | 11 repos | ~4.1k | Automated safety check: Notes | Apache-2.0 | |
| Hooksparcadei/Continuous-Claude-v3 | 3.9k | 2 repos | ~344 | Automated safety check: Pass | MIT |
lobehub/lobehub
Registers lifecycle hooks on an agent run to observe, mock or intervene at each step, dispatching them in the order they were registered.
rohitg00/agentmemory
Describes the lifecycle hooks in the agentmemory Claude Code plugin that record observations automatically, and what to check when observations go missing.
charmbracelet/crush
Helps write, debug and configure Crush hooks in crush.json that block, approve or rewrite tool calls before they run.
anthropics/claude-plugins-official
Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.
parcadei/Continuous-Claude-v3
Hook Development Rules
supabase/supabase
Correct React Hook Form usage anywhere in the monorepo — data flow, subscriptions, reset, dirty state, number inputs, and controlled-input rules.
StopDisTrain/sdt-skills
把已验证的传播机制转成适合目标账号的内容选题,并完成生成、迁移、评分和筛选,让选题自然连接人设、产品或门店。用户要从低粉爆款、垂直样本、邻近受众或跨赛道内容中寻找新选题时使用。
StopDisTrain/sdt-skills
SDT 内容生产工具箱的总入口:根据当前任务选择最合适的 sdt- 模块,既能完成标题、开头等单一步骤,也能组织从账号研究到发布的完整流程。用户不知道该用哪个 SDT Skill,或希望一站式完成内容生产时使用。
StopDisTrain/sdt-skills
只读检索小红书公开内容,并把账号数据、标题、封面、互动量、作者近期内容和低粉爆款整理成可追溯证据。用户要求查公开账号或笔记数据时使用;不得点赞、收藏、评论、发布、删除或导出登录凭证。
StopDisTrain/sdt-skills
把已经完成并通过质检的 Markdown 内容转换成可粘贴到微信公众号后台的 HTML,并支持选择样式、生成预览和检查粘贴兼容性。用户要制作公众号排版稿或微信发布版本时使用。
StopDisTrain/sdt-skills
根据主题、正文或已有标题生成并筛选小红书标题,提供改写和 A/B 方案,同时检查账号调性、真实性以及正文能否兑现标题承诺。用户要起标题、改标题、套用标题模式或检查标题时使用。
StopDisTrain/sdt-skills
把账号链接、主页截图、产品说明和历史内容整理成可复用的账号档案,明确调性、人设、受众、产品连接和表达边界。用户要求分析账号定位、建立账号资料,或开始完整内容生产流程时使用。
在短视频正文完成后,检查并生成前五秒开头,让开场更抓人、可信,并与正文承诺一致。用户要求优化视频开头、降低开头流失、写口播 Hook 或增强第一句话时使用。. Sdt Hook is an agent skill from StopDisTrain/sdt-skills. 在短视频正文完成后,检查并生成前五秒开头,让开场更抓人、可信,并与正文承诺一致。用户要求优化视频开头、降低开头流失、写口播 Hook 或增强第一句话时使用。 English: Diagnose and write the first five seconds of a short video after the main script is ready, making the opening engaging, credible, and consistent with the video's promise.
Sdt Hook fits situations like: improve retention; create a spoken hook; strengthen the first line.
Run `npx skills add StopDisTrain/sdt-skills --skill sdt-hook -a claude-code`. Or copy the skill folder (skills/sdt-hook in StopDisTrain/sdt-skills) into .claude/skills/sdt-hook in your project. Claude Code loads it when a task matches its description.
Run `npx skills add StopDisTrain/sdt-skills --skill sdt-hook -a codex`. Or copy the skill folder (skills/sdt-hook in StopDisTrain/sdt-skills) into .agents/skills/sdt-hook in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add StopDisTrain/sdt-skills --skill sdt-hook -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sdt-hook, .gemini/skills/sdt-hook, .github/skills/sdt-hook and .opencode/skills/sdt-hook in your project.
SKILL.md names no scripts, command-line tools or credentials: Sdt Hook is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Sdt Hook is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 224 tokens (SKILL.md is roughly 896 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sdt Hook: Agent Runtime Lifecycle Hooks (lobehub/lobehub, 83k stars), Agentmemory Capture Hooks (rohitg00/agentmemory, 29k stars), Crush Hook Writer (charmbracelet/crush, 29k stars) and Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
StopDisTrain (a GitHub user) maintains it in StopDisTrain/sdt-skills, which has 309 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on August 25, 2026.
Source: StopDisTrain/sdt-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.