# KOReader Dev Plugin

A Claude Code plugin to help with KOReader plugin development.

## Features

- **Skill**: KOReader plugin development knowledge (APIs, widgets, patterns)
- **Hooks**: Automatic Lua linting on file save, task completion notifications
- **Commands**: Scaffold new plugins, run linting manually

## Prerequisites

- `luacheck` - Lua linter
  ```bash
  # macOS
  brew install luacheck

  # or via luarocks
  luarocks install luacheck
  ```

## Installation

```bash
# Test locally
claude --plugin-dir "/Users/uttamkumar/Desktop/Code Projects/koreader-dev"

# Or copy to project
cp -r koreader-dev /path/to/your/project/.claude-plugin/
```

## Usage

### Skill (Auto-activates)
The KOReader development skill activates when you ask about:
- KOReader plugin structure
- Lua widgets and UI components
- Settings persistence
- Menu integration

### Commands
- `/koreader-dev:scaffold` - Create new KOReader plugin boilerplate
- `/koreader-dev:lint` - Run luacheck on Lua files

### Hooks (Automatic)
- **PostToolUse**: Runs luacheck after editing `.lua` files
- **Stop**: macOS notification when tasks complete

## KOReader Resources

- [KOReader GitHub](https://github.com/koreader/koreader)
- [Plugin Development Docs](https://github.com/koreader/koreader/wiki/Plugin-system)
- [Lua 5.1 Reference](https://www.lua.org/manual/5.1/)
