This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Claude Code plugin marketplace providing commit workflows, code quality hooks, and platform skills for Oxidian projects. Contains three plugins: ox (base plugin), oxgh (GitHub workflows), and oxgl (GitLab workflows).
make setup # Install dependencies and pre-commit hooks
make dev # Run Claude Code with local plugins loaded
make format # Auto-format code
make check # Run this instead of pytest directly - includes formatting, linting, type checking, and tests
make bump # Bump plugin versions
make bump-check # Check version bump without applyingUses uv as the package manager. Python 3.14+.
plugins/
├── ox/ # Base plugin
│ ├── skills/ # Skill definitions (SKILL.md with YAML frontmatter)
│ ├── hooks/ # Hook definitions (hooks.json)
│ ├── scripts/ # Python hook implementations
│ └── .claude-plugin/ # Plugin metadata (plugin.json)
├── oxgh/ # GitHub workflow plugin
│ ├── skills/ # PR, issue, triage, merge skills
│ ├── scripts/ # Workflow automation scripts
│ └── .claude-plugin/ # Plugin metadata
└── oxgl/ # GitLab workflow plugin
├── skills/ # MR, issue, merge skills
├── scripts/ # Workflow automation scripts
└── .claude-plugin/ # Plugin metadata
Skills are markdown files (SKILL.md) in named subdirectories under skills/, with YAML frontmatter specifying allowed-tools and description. The body contains context templates and task instructions.
Three hook types orchestrated by Python scripts in plugins/ox/scripts/:
- PreToolUse — Quality guards that block bad patterns (redundant cd, debug scripts, lint suppressions)
- PostToolUse — Auto-formats files after Write/Edit/MultiEdit operations
- Stop — Runs check commands before Claude stops
Hooks are configured per-project via .claude/ox-hooks.json:
{
"checks": [
{
"fast": "make format",
"slow": "make check"
}
]
}For monorepos, use directory to scope commands to subdirectories.
- Bugfixes use TDD: write/update the failing test first (red), then fix the code (green). Run
make checkafter each phase to confirm.
.claude/settings.json— Permissions, environment variables, MCP server config.claude/ox-hooks.json— Hook configuration for this project.claude-plugin/marketplace.json— Marketplace metadata defining available plugins