Safety Guard
affaan-m/ECC
Guard against destructive operations with three modes: Careful intercepts dangerous commands (rm -rf, git push --force, DROP TABLE) for confirmation, Freeze locks writes to one directory, and Guard…
Inspect and manage guarded Codex App-native or launchd heartbeats for Codex main control threads.
$ npx skills add huangruiteng/CS-Notes --skill codex-thread-heartbeat -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install huangruiteng/CS-Notes codex-thread-heartbeat --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/huangruiteng/CS-Notes.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/codex-thread-heartbeat .claude/skills/codex-thread-heartbeat && 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 "codex-thread-heartbeat" agent skill from https://github.com/huangruiteng/CS-Notes/tree/master/.codex/skills/codex-thread-heartbeat into .claude/skills/codex-thread-heartbeat/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codex-thread-heartbeat", 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/huangruiteng/CS-Notes/tree/master/.codex/skills/codex-thread-heartbeatType 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 huangruiteng/CS-Notes --skill codex-thread-heartbeat -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install huangruiteng/CS-Notes codex-thread-heartbeat --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/huangruiteng/CS-Notes.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.codex/skills/codex-thread-heartbeat .agents/skills/codex-thread-heartbeat && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "codex-thread-heartbeat" agent skill from https://github.com/huangruiteng/CS-Notes/tree/master/.codex/skills/codex-thread-heartbeat into .agents/skills/codex-thread-heartbeat/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codex-thread-heartbeat", 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 huangruiteng/CS-Notes --skill codex-thread-heartbeat -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install huangruiteng/CS-Notes codex-thread-heartbeat --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/huangruiteng/CS-Notes.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.codex/skills/codex-thread-heartbeat .cursor/skills/codex-thread-heartbeat && 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 "codex-thread-heartbeat" agent skill from https://github.com/huangruiteng/CS-Notes/tree/master/.codex/skills/codex-thread-heartbeat into .cursor/skills/codex-thread-heartbeat/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codex-thread-heartbeat", 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/huangruiteng/CS-Notes.git --path .codex/skills/codex-thread-heartbeat--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 huangruiteng/CS-Notes --skill codex-thread-heartbeat -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install huangruiteng/CS-Notes codex-thread-heartbeat --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/huangruiteng/CS-Notes.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.codex/skills/codex-thread-heartbeat .gemini/skills/codex-thread-heartbeat && 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 "codex-thread-heartbeat" agent skill from https://github.com/huangruiteng/CS-Notes/tree/master/.codex/skills/codex-thread-heartbeat into .gemini/skills/codex-thread-heartbeat/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codex-thread-heartbeat", 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 huangruiteng/CS-Notes codex-thread-heartbeatInstalls 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 huangruiteng/CS-Notes --skill codex-thread-heartbeat -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/huangruiteng/CS-Notes.git skills-src && mkdir -p .github/skills && cp -r skills-src/.codex/skills/codex-thread-heartbeat .github/skills/codex-thread-heartbeat && 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 "codex-thread-heartbeat" agent skill from https://github.com/huangruiteng/CS-Notes/tree/master/.codex/skills/codex-thread-heartbeat into .github/skills/codex-thread-heartbeat/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codex-thread-heartbeat", 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 huangruiteng/CS-Notes --skill codex-thread-heartbeat -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install huangruiteng/CS-Notes codex-thread-heartbeat --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/huangruiteng/CS-Notes.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.codex/skills/codex-thread-heartbeat .opencode/skills/codex-thread-heartbeat && 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 "codex-thread-heartbeat" agent skill from https://github.com/huangruiteng/CS-Notes/tree/master/.codex/skills/codex-thread-heartbeat into .opencode/skills/codex-thread-heartbeat/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codex-thread-heartbeat", 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.
codex-thread-heartbeatInspect and manage guarded Codex App-native or launchd heartbeats for Codex main control threads.
Codex Thread Heartbeat is an agent skill from huangruiteng/CS-Notes. Inspect and manage guarded Codex App-native or launchd heartbeats for Codex main control threads. Use when the user wants Codex to periodically continue a specific thread only when it is idle, avoid interrupting active work, keep App-visible interactions, inspect thread status, or enable/disable project autopilot heartbeats.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts (for example `agents/openai.yaml` and `scripts/codex-thread-queue.py`).
The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit f7b4e92. 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.
Ships 1 file in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
codexFrom 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.
Codex Thread Heartbeat loads about 1.5k tokens when it runs. Until then it costs about 87 tokens; SKILL.md has 638 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); the scripts in this folder are not scanned.
The full file from huangruiteng/CS-Notes at commit f7b4e92, republished under its MIT licence (© huangruiteng). 638 words, ~1,474 tokens.
.claude/skills/codex-thread-heartbeat/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Use this skill to set up or inspect local heartbeats that periodically nudge a specific Codex thread, but only after an idle guard passes.
The pain it solves:
codex exec resume can race with the App if the target thread is still active.The bundled script reads Codex local thread metadata from ~/.codex/state_5.sqlite, checks the target rollout JSONL for recent final_answer, unresolved tool calls, and cooldown, then sends a heartbeat with codex exec resume <thread_id> only when it is safe. This is useful as a fallback, but App-native heartbeats are preferred when the user needs the interaction to show up in the Codex App UI.
Important limitation: codex exec resume is a headless fallback. It writes to the correct rollout and can complete the turn, but the currently open Codex App view may not refresh because the turn did not originate from that renderer. Do not leave long-running launchd heartbeats enabled if the user expects in-App visibility; prefer Codex App's built-in heartbeat automation or an App/server transport once a working control socket is available.
Prefer this order:
$CODEX_HOME/automations/.turn/start.waiting_on_user_input, waiting_on_approval, active_with_flags, and recent non-terminal rollout events, so it should not inject a heartbeat while the target thread is still running.thread/resume then turn/start over the same notification stream the App can render.codex exec resume as a headless fallback.For user-visible controller threads, prefer the Codex App automation card or automation_update tool. Do not edit $CODEX_HOME/automations/*.toml directly unless you are only inspecting/debugging.
Known local App-native heartbeat records:
cs-notes-autopilot: CS-Notes controller thread, every 120 minutes.agent-harness-heartbeat: Agent Harness controller thread.Use App-native heartbeat when the user says they want:
target_thread_id;Run from any repo:
~/.codex/skills/codex-thread-heartbeat/scripts/codex-thread-queue.py heartbeat-presetsInstall built-in presets:
~/.codex/skills/codex-thread-heartbeat/scripts/codex-thread-queue.py install-preset agent-harness
~/.codex/skills/codex-thread-heartbeat/scripts/codex-thread-queue.py install-preset cs-notesEnable / disable:
~/.codex/skills/codex-thread-heartbeat/scripts/codex-thread-queue.py heartbeat-disable agent-harness
~/.codex/skills/codex-thread-heartbeat/scripts/codex-thread-queue.py heartbeat-enable agent-harnessInspect:
~/.codex/skills/codex-thread-heartbeat/scripts/codex-thread-queue.py heartbeat-status agent-harness
~/.codex/skills/codex-thread-heartbeat/scripts/codex-thread-queue.py --title "agent-harness 主控" --cwd /path/to/repo statusOne-off delivery test:
~/.codex/skills/codex-thread-heartbeat/scripts/codex-thread-queue.py install-preset cs-notes-testcs-notes-test runs every 30 seconds and disables itself after the first successful delivery.
status or dry-run heartbeat before enabling an automation.codex exec resume automation without idle checks.cli-resume heartbeats as headless. Confirm the user accepts log-based visibility, desktop notifications, or manual App reload before enabling them for expensive project work.turn/start; until then, codex exec resume is the practical fallback.When packaging this skill publicly, describe it as a guarded local productivity automation for Codex power users, not as an official Codex API. Be explicit that it uses local Codex state files and conservative rollout inspection, so users should treat it as best-effort and version-sensitive.
© huangruiteng, 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 2 other files (scripts) in .codex/skills/codex-thread-heartbeat of huangruiteng/CS-Notes.
Open the folder on GitHubat commit f7b4e92
Codex Thread Heartbeat 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 |
|---|---|---|---|---|---|---|
| Codex Thread Heartbeat this skillhuangruiteng/CS-Notes | 4k | — | ~1.5k | Automated safety check: Pass | MIT | |
| Safety Guardaffaan-m/ECC | 276k | 2 repos | ~554 | Automated safety check: Notes | MIT | |
| Node Inspect Debuggeropenclaw/openclaw | 392k | 1 repos | ~894 | Automated safety check: Pass | MIT | |
| Guard Modegarrytan/gstack | 136k | — | ~1k | Automated safety check: Notes | MIT | |
| Safety Guardaffaan-m/ECC | 276k | — | ~323 | Automated safety check: Notes | MIT | |
| Safety Guardaffaan-m/ECC | 276k | — | ~255 | Automated safety check: Notes | MIT |
affaan-m/ECC
Guard against destructive operations with three modes: Careful intercepts dangerous commands (rm -rf, git push --force, DROP TABLE) for confirmation, Freeze locks writes to one directory, and Guard…
openclaw/openclaw
Debug Node.js with node inspect, --inspect, breakpoints, CDP, heap, and CPU profiles.
garrytan/gstack
Switches on full safety by combining warnings before destructive commands with a block on edits outside one directory you choose, for work on production or live systems.
affaan-m/ECC
本番システムでの作業時や、エージェントを自律的に実行する際に破壊的な操作を防ぐためにこのスキルを使用してください. An agent skill from affaan-m/ECC.
affaan-m/ECC
使用此技能可防止在生产系统上工作或自主运行代理时进行破坏性操作。
sickn33/agentic-awesome-skills
Turn a long idea, transcript, article or draft into a Twitter/X thread where every tweet stands alone.
huangruiteng/CS-Notes
Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script.
huangruiteng/CS-Notes
A skill your agent uses when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
huangruiteng/CS-Notes
Locate and read a Codex thread by a codex thread link, thread id, or rollout path across all local CODEXHOME directories (~/.codex, ~/.codex-gpt, ...).
huangruiteng/CS-Notes
A skill your agent uses when the user asks Codex to research, find learning materials, process "素材:" links, "请你读" / "精读" a material, build a material radar, or use SenSight-like broad information…
huangruiteng/CS-Notes
Interact with GitHub using the gh CLI. An agent skill from huangruiteng/CS-Notes.
huangruiteng/CS-Notes
Track and synthesize current AI hotspots into a bilingual HTML daily report.
Inspect and manage guarded Codex App-native or launchd heartbeats for Codex main control threads. Codex Thread Heartbeat is an agent skill from huangruiteng/CS-Notes. Inspect and manage guarded Codex App-native or launchd heartbeats for Codex main control threads.
Codex Thread Heartbeat fits situations like: the user wants Codex to periodically continue a specific thread only when it is idle; avoid interrupting active work; keep App-visible interactions; inspect thread status.
Run `npx skills add huangruiteng/CS-Notes --skill codex-thread-heartbeat -a claude-code`. Or copy the skill folder (.codex/skills/codex-thread-heartbeat in huangruiteng/CS-Notes) into .claude/skills/codex-thread-heartbeat in your project. Claude Code loads it when a task matches its description.
Run `npx skills add huangruiteng/CS-Notes --skill codex-thread-heartbeat -a codex`. Or copy the skill folder (.codex/skills/codex-thread-heartbeat in huangruiteng/CS-Notes) into .agents/skills/codex-thread-heartbeat 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 huangruiteng/CS-Notes --skill codex-thread-heartbeat -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codex-thread-heartbeat, .gemini/skills/codex-thread-heartbeat, .github/skills/codex-thread-heartbeat and .opencode/skills/codex-thread-heartbeat in your project.
Going by SKILL.md and its folder, Codex Thread Heartbeat needs Python for the scripts in its folder and the command-line tools its instructions call (codex). Our summary lists: Python 3.
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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Codex Thread Heartbeat is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 5.9k 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 Codex Thread Heartbeat: Safety Guard (affaan-m/ECC, 276k stars), Node Inspect Debugger (openclaw/openclaw, 392k stars), Guard Mode (garrytan/gstack, 136k stars) and Safety Guard (affaan-m/ECC, 276k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
huangruiteng (a GitHub user) maintains it in huangruiteng/CS-Notes, which has 4,000 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on October 8, 2026.
Source: huangruiteng/CS-Notes on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.