Git Guardrails Claude Code
fossasia/eventyay-interpretation
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute.
A skill your agent uses when we want to turn a just-finished Formax workflow (e.g.
$ npx skills add yusifeng/formax --skill formax-skill-capture -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install yusifeng/formax formax-skill-capture --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/yusifeng/formax.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/formax-skill-capture .claude/skills/formax-skill-capture && 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 "formax-skill-capture" agent skill from https://github.com/yusifeng/formax/tree/main/.codex/skills/formax-skill-capture into .claude/skills/formax-skill-capture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "formax-skill-capture", 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/yusifeng/formax/tree/main/.codex/skills/formax-skill-captureType 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 yusifeng/formax --skill formax-skill-capture -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install yusifeng/formax formax-skill-capture --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yusifeng/formax.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.codex/skills/formax-skill-capture .agents/skills/formax-skill-capture && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "formax-skill-capture" agent skill from https://github.com/yusifeng/formax/tree/main/.codex/skills/formax-skill-capture into .agents/skills/formax-skill-capture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "formax-skill-capture", 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 yusifeng/formax --skill formax-skill-capture -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install yusifeng/formax formax-skill-capture --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yusifeng/formax.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.codex/skills/formax-skill-capture .cursor/skills/formax-skill-capture && 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 "formax-skill-capture" agent skill from https://github.com/yusifeng/formax/tree/main/.codex/skills/formax-skill-capture into .cursor/skills/formax-skill-capture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "formax-skill-capture", 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/yusifeng/formax.git --path .codex/skills/formax-skill-capture--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 yusifeng/formax --skill formax-skill-capture -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install yusifeng/formax formax-skill-capture --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yusifeng/formax.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.codex/skills/formax-skill-capture .gemini/skills/formax-skill-capture && 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 "formax-skill-capture" agent skill from https://github.com/yusifeng/formax/tree/main/.codex/skills/formax-skill-capture into .gemini/skills/formax-skill-capture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "formax-skill-capture", 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 yusifeng/formax formax-skill-captureInstalls 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 yusifeng/formax --skill formax-skill-capture -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/yusifeng/formax.git skills-src && mkdir -p .github/skills && cp -r skills-src/.codex/skills/formax-skill-capture .github/skills/formax-skill-capture && 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 "formax-skill-capture" agent skill from https://github.com/yusifeng/formax/tree/main/.codex/skills/formax-skill-capture into .github/skills/formax-skill-capture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "formax-skill-capture", 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 yusifeng/formax --skill formax-skill-capture -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install yusifeng/formax formax-skill-capture --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yusifeng/formax.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.codex/skills/formax-skill-capture .opencode/skills/formax-skill-capture && 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 "formax-skill-capture" agent skill from https://github.com/yusifeng/formax/tree/main/.codex/skills/formax-skill-capture into .opencode/skills/formax-skill-capture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "formax-skill-capture", 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.
formax-skill-captureA skill your agent uses when we want to turn a just-finished Formax workflow (e.g.
Formax Skill Capture is an agent skill from yusifeng/formax. Use when we want to turn a just-finished Formax workflow (e.g. commands, overlays, tools, hooks, permissions, UI parity) into a reusable Codex Skill under .codex/skills, including scaffolding, guardrails, and the minimum test checklist.
Its SKILL.md is about 530 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/new-skill.sh`).
It sits in AI & LLM Engineering, covering Project scaffolding and LLM guardrails. The repository describes itself as: Terminal-first AI assistant for software engineering tasks (inspired by Claude Code v2.0.67). The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 1b0c3f3. 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/ (Shell), which the agent can run.
Shell commands in SKILL.md call:
bashFrom 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.
Formax Skill Capture loads about 530 tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 228 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 yusifeng/formax at commit 1b0c3f3, republished under its MIT licence (© yusifeng). 228 words, ~530 tokens.
.claude/skills/formax-skill-capture/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.This skill is a Formax-specific wrapper around skill authoring: it helps us reliably convert “we just figured out how to do X” into a repo-local skill under .codex/skills/<skill-name>/.
It complements the built-in skill-creator (system skill) by adding Formax conventions:
Trigger this when the user says:
formax-slash-command-workflowThe resulting skill must include:
Avoid long prose; prefer checklists.
Use the scaffold script:
bash .codex/skills/formax-skill-capture/scripts/new-skill.sh <skill-name> "<description>"Then fill SKILL.md body with the content above.
When a skill is created from a workflow we already shipped:
© yusifeng, 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 (scripts) in .codex/skills/formax-skill-capture of yusifeng/formax.
Open the folder on GitHubat commit 1b0c3f3
Formax Skill Capture 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 |
|---|---|---|---|---|---|---|
| Formax Skill Capture this skillyusifeng/formax | 195 | — | ~530 | Automated safety check: Pass | MIT | |
| Git Guardrails Claude Codefossasia/eventyay-interpretation | 1.6k | 12 repos | ~578 | Automated safety check: Pass | Apache-2.0 | |
| Git Guardrails Claude Codevinvcn/mattpocock-skills-zh-CN | 4.7k | — | ~461 | Automated safety check: Pass | MIT | |
| Aisafetyhotwuyoscar/AISafetyHot-Hub | 641 | — | ~1.4k | Automated safety check: Pass | Custom licence | |
| Google Agents CLI Adk Codepifferologo/cloud-agents-cli | 129 | 1 repos | ~768 | Automated safety check: Pass | Apache-2.0 | |
| Fable Modemrtooher/fable-mode | 872 | — | ~1k | Automated safety check: Pass | None |
fossasia/eventyay-interpretation
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute.
vinvcn/mattpocock-skills-zh-CN
设置 Claude Code hooks,在危险 git commands(push、reset --hard、clean、branch -D 等)执行前阻止它们。适用于用户想防止破坏性 git 操作、添加 git safety hooks,或在 Claude Code 中阻止 git push/reset 时。
wuyoscar/AISafetyHot-Hub
Query AI Safety HOT news, research papers, incidents, hot topics, and daily/weekly/monthly reports through its public read-only MCP service.
pifferologo/cloud-agents-cli
This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management", or needs ADK (Agent…
mrtooher/fable-mode
Enforces staged execution discipline on large tasks: a written stage plan, delegation to named fable agents where the runtime supports it, a failable verification check at each stage, and a…
ucsandman/DashClaw
Contribute to the DashClaw codebase — architecture, scaffolding, tests, CI
yusifeng/formax
A skill your agent uses when preparing a Formax code handoff: selecting files, generating repomix bundles, and writing a high-quality prompt for WebGPT or another coding agent with clear constraints…
yusifeng/formax
A skill your agent uses when a Formax repository task is non-trivial and you should analyze goals, non-goals, boundaries, data/type/interface impact, contract impact, test strategy, and whether an…
yusifeng/formax
A skill your agent uses when working on Formax code changes and you need a disciplined dev loop: keep a single mainline task, avoid scope drift, run only targeted tests (no coverage), avoid partial…
yusifeng/formax
Implement or refactor Formax tool transcript UI using the Tool UI Blocks (C-lite) pattern (ToolUiBlocks renderer + blocks presenters) to avoid touching many tool presenter files; use when adjusting…
yusifeng/formax
A skill your agent uses when implementing or modifying behavior that must stay consistent across TUI and Web (mode/input/tool/replay/order).
yusifeng/formax
A skill your agent uses when designing, refactoring, or debugging Formax system prompt assembly, system-reminder injection, or skills/deferred-tool prompt exposure semantics; mandatory for any…
A skill your agent uses when we want to turn a just-finished Formax workflow (e.g. Formax Skill Capture is an agent skill from yusifeng/formax.g.
Formax Skill Capture fits situations like: we want to turn a just-finished Formax workflow (e.g; tasks that involve Project scaffolding; tasks that involve LLM guardrails.
Run `npx skills add yusifeng/formax --skill formax-skill-capture -a claude-code`. Or copy the skill folder (.codex/skills/formax-skill-capture in yusifeng/formax) into .claude/skills/formax-skill-capture in your project. Claude Code loads it when a task matches its description.
Run `npx skills add yusifeng/formax --skill formax-skill-capture -a codex`. Or copy the skill folder (.codex/skills/formax-skill-capture in yusifeng/formax) into .agents/skills/formax-skill-capture 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 yusifeng/formax --skill formax-skill-capture -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/formax-skill-capture, .gemini/skills/formax-skill-capture, .github/skills/formax-skill-capture and .opencode/skills/formax-skill-capture in your project.
Going by SKILL.md and its folder, Formax Skill Capture needs a shell for the scripts in its folder and the command-line tools its instructions call (bash). Our summary lists: A Bash shell.
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.
Formax Skill Capture is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 530 tokens (SKILL.md is roughly 2.1k 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 Formax Skill Capture: Git Guardrails Claude Code (fossasia/eventyay-interpretation, 1.6k stars), Git Guardrails Claude Code (vinvcn/mattpocock-skills-zh-CN, 4.7k stars), Aisafetyhot (wuyoscar/AISafetyHot-Hub, 641 stars) and Google Agents CLI Adk Code (pifferologo/cloud-agents-cli, 129 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
yusifeng (a GitHub user) maintains it in yusifeng/formax, which has 195 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on July 24, 2026.
Source: yusifeng/formax on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.