# Skill and hooks for agents

Teach a coding agent to use the Feedzzie CLI with its skill, or show your board at the start of every session with hooks.

AI coding agents that can run commands work well with the [CLI](https://docs.feedzzie.com/cli/cli/) directly. Two optional helpers make them aware of it. Install the [CLI](https://docs.feedzzie.com/cli/cli/#install) globally first.

## The skill

The CLI package includes a skill that explains to an agent when and how to use `feedzzie`. The agent loads it only when it needs it. Install it with the [`skills`](https://www.npmjs.com/package/skills) tool:

```bash
npx skills add "$(npm root -g)/@feedzzie/cli" --skill feedzzie -g
```

`-g` installs it for your user, for the agents `skills` detects, such as Claude Code and Codex. The tool asks before installing; add `-y` to skip its questions.

## Session hooks

Hooks show your board's newest ideas at the start of every Claude Code, Codex or OpenCode session. They need version 0.1.1 or later (`feedzzie --version`); `npm install -g @feedzzie/cli` updates it. Install them with:

```bash
feedzzie setup hooks
```

Add `--project` to install them only for the current directory. Then:

```bash
feedzzie setup    # which hooks are installed
feedzzie setup remove-hooks
```

For Codex, setting up hooks also turns on `[features] hooks = true` in `~/.codex/config.toml`; removing the hooks leaves that setting.

The hook makes no request when there is no saved key, and it reminds the agent that idea titles are written by your users.
