Skip to content
Qiita·Indexed by this site · Originally published· Tools →

The division of roles among "instructions, Skills and Hooks" in coding agents

コーディングエージェントの「指示書・Skill・Hooks」役割分担

AI summary

Based on official documentation dated October 15, 2026 (Claude Code v2.1.300, Codex CLI v0.162.1), the author lays out the division of roles among three mechanisms in coding agents: instructions, Skills and Hooks. Instructions carry policies that must be followed in every session, Skills load steps and materials by task, and Hooks are executed by programs at fixed points to perform checks and blocking. The article gives selection criteria: operations that must be prevented from being violated and that a script can detect go to Hooks, knowledge needed for every task goes into instructions, and steps for specific jobs go into Skills; it also uses a PreToolUse Hook that blocks direct pushes and force pushes to main/master as an example, giving configuration syntax for both tools.

Read originalqiita.com