Hook Development for Claude Code Plugins
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.
Scaffold a new bashtools Skill under bashtools/newtools/. An agent skill from opensage-agent/opensage-adk.
$ npx skills add opensage-agent/opensage-adk --skill create-new-tool -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install opensage-agent/opensage-adk create-new-tool --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/opensage-agent/opensage-adk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/opensage/bash_tools/new_tool_creator .claude/skills/create-new-tool && 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 "create-new-tool" agent skill from https://github.com/opensage-agent/opensage-adk/tree/main/src/opensage/bash_tools/new_tool_creator into .claude/skills/create-new-tool/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-new-tool", 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/opensage-agent/opensage-adk/tree/main/src/opensage/bash_tools/new_tool_creatorType 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 opensage-agent/opensage-adk --skill create-new-tool -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install opensage-agent/opensage-adk create-new-tool --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/opensage-agent/opensage-adk.git skills-src && mkdir -p .agents/skills && cp -r skills-src/src/opensage/bash_tools/new_tool_creator .agents/skills/create-new-tool && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "create-new-tool" agent skill from https://github.com/opensage-agent/opensage-adk/tree/main/src/opensage/bash_tools/new_tool_creator into .agents/skills/create-new-tool/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-new-tool", 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 opensage-agent/opensage-adk --skill create-new-tool -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install opensage-agent/opensage-adk create-new-tool --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/opensage-agent/opensage-adk.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/src/opensage/bash_tools/new_tool_creator .cursor/skills/create-new-tool && 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 "create-new-tool" agent skill from https://github.com/opensage-agent/opensage-adk/tree/main/src/opensage/bash_tools/new_tool_creator into .cursor/skills/create-new-tool/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-new-tool", 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/opensage-agent/opensage-adk.git --path src/opensage/bash_tools/new_tool_creator--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 opensage-agent/opensage-adk --skill create-new-tool -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install opensage-agent/opensage-adk create-new-tool --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/opensage-agent/opensage-adk.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/src/opensage/bash_tools/new_tool_creator .gemini/skills/create-new-tool && 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 "create-new-tool" agent skill from https://github.com/opensage-agent/opensage-adk/tree/main/src/opensage/bash_tools/new_tool_creator into .gemini/skills/create-new-tool/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-new-tool", 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 opensage-agent/opensage-adk create-new-toolInstalls 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 opensage-agent/opensage-adk --skill create-new-tool -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/opensage-agent/opensage-adk.git skills-src && mkdir -p .github/skills && cp -r skills-src/src/opensage/bash_tools/new_tool_creator .github/skills/create-new-tool && 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 "create-new-tool" agent skill from https://github.com/opensage-agent/opensage-adk/tree/main/src/opensage/bash_tools/new_tool_creator into .github/skills/create-new-tool/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-new-tool", 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 opensage-agent/opensage-adk --skill create-new-tool -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install opensage-agent/opensage-adk create-new-tool --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/opensage-agent/opensage-adk.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/src/opensage/bash_tools/new_tool_creator .opencode/skills/create-new-tool && 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 "create-new-tool" agent skill from https://github.com/opensage-agent/opensage-adk/tree/main/src/opensage/bash_tools/new_tool_creator into .opencode/skills/create-new-tool/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-new-tool", 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.
create-new-toolScaffold a new bashtools Skill under bashtools/newtools/. An agent skill from opensage-agent/opensage-adk.
Create New Tool is an agent skill from opensage-agent/opensage-adk. Scaffold a new bashtools Skill under bashtools/newtools/.
Its SKILL.md is about 300 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `init_skill.py` and `scripts/create_new_tool.sh`).
It works with Bash. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 54d6470. 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 and Shell), which the agent can run.
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.
Create New Tool loads about 302 tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 74 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 opensage-agent/opensage-adk at commit 54d6470, republished under its Apache-2.0 licence (© opensage-agent). 74 words, ~302 tokens.
.claude/skills/create-new-tool/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Scaffold a new bash_tools Skill.
/bash_tools/new_tool_creator/scripts/create_new_tool.sh my-tool-name --should_run_in_sandbox main --returns_json trueType: str
Tool name (hyphen-case, e.g. my-tool-name).
Type: str
Execution sandbox (e.g. main, fuzz, neo4j, joern).
Type: str
true or false.
Type: str
Subdirectory under bash_tools/new_tools/ (default: general).
Type: str
Dependency sandboxes (comma-separated) or none.
{
"success": true,
"tool_name": "my-tool-name",
"category": "general",
"path": "/path/to/bash_tools/new_tools/general/my-tool-name",
"message": "Tool created successfully"
}none
30 seconds
© opensage-agent, Apache-2.0. 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 src/opensage/bash_tools/new_tool_creator of opensage-agent/opensage-adk.
Open the folder on GitHubat commit 54d6470
Create New Tool 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 |
|---|---|---|---|---|---|---|
| Create New Tool this skillopensage-agent/opensage-adk | 127 | — | ~302 | Automated safety check: Pass | Apache-2.0 | |
| Hook Development for Claude Code Pluginsanthropics/claude-plugins-official | 38k | 11 repos | ~4.1k | Automated safety check: Notes | Apache-2.0 | |
| Plugin Settings Patternanthropics/claude-plugins-official | 38k | 7 repos | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Mole Bug Patternstw93/Mole | 70k | — | ~2k | Automated safety check: Pass | GPL-3.0 | |
| Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills | 21k | — | ~1.9k | Automated safety check: Pass | MIT | |
| E2Ecallstack/react-native-pager-view | 3.4k | 1 repos | ~2.1k | Automated safety check: Pass | MIT |
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.
anthropics/claude-plugins-official
Shows how Claude Code plugins keep per-project settings and state in .claude/plugin-name.local.md files with YAML frontmatter and a markdown body.
tw93/Mole
A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.
KKKKhazix/khazix-skills
Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.
callstack/react-native-pager-view
Agentic end-to-end tests with e2e, the e2e runner. An agent skill from callstack/react-native-pager-view.
automazeio/ccpm
Runs a spec-driven workflow from PRD to epic to GitHub issues to parallel agents, with status, standup and blocked-work reports from bundled scripts.
opensage-agent/opensage-adk
Run a fuzzing campaign using AFL++ with optional seeds; supports --custommutatorpath (you can write your own custom mutator and use this to execute).
opensage-agent/opensage-adk
Run N tasks under a concurrency cap K via a sliding-window worker pool.
opensage-agent/opensage-adk
Extract crash inputs from fuzzing output into a target directory.
opensage-agent/opensage-adk
Get a path in the call graph from a source function to a specified destination function in the codebase.
opensage-agent/opensage-adk
Tool to get the callee of a function in the codebase by function name and file path.
opensage-agent/opensage-adk
Tool to get the caller of a function in the codebase. An agent skill from opensage-agent/opensage-adk.
Works with
Scaffold a new bashtools Skill under bashtools/newtools/. An agent skill from opensage-agent/opensage-adk. Create New Tool is an agent skill from opensage-agent/opensage-adk. Scaffold a new bashtools Skill under bashtools/newtools/.
Run `npx skills add opensage-agent/opensage-adk --skill create-new-tool -a claude-code`. Or copy the skill folder (src/opensage/bash_tools/new_tool_creator in opensage-agent/opensage-adk) into .claude/skills/create-new-tool in your project. Claude Code loads it when a task matches its description.
Run `npx skills add opensage-agent/opensage-adk --skill create-new-tool -a codex`. Or copy the skill folder (src/opensage/bash_tools/new_tool_creator in opensage-agent/opensage-adk) into .agents/skills/create-new-tool 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 opensage-agent/opensage-adk --skill create-new-tool -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-new-tool, .gemini/skills/create-new-tool, .github/skills/create-new-tool and .opencode/skills/create-new-tool in your project.
Going by SKILL.md and its folder, Create New Tool needs Python and a shell for the scripts in its folder. Our summary lists: Python 3; 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.
Create New Tool is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 302 tokens (SKILL.md is roughly 1.2k 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 Create New Tool: Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Plugin Settings Pattern (anthropics/claude-plugins-official, 38k stars), Mole Bug Patterns (tw93/Mole, 70k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
opensage-agent (a GitHub organization) maintains it in opensage-agent/opensage-adk, which has 127 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on August 4, 2026.
Source: opensage-agent/opensage-adk on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.