@faircopy/plugin
v1.14.0
Published
Claude Code plugin for faircopy — stop hook + faircopy skill
Maintainers
Readme
@faircopy/plugin
Claude Code plugin for faircopy. Installs a stop hook that blocks a turn if lint errors are found, and a skill that teaches Claude to run faircopy when editing marketing copy.
Install
In Claude Code:
/plugin marketplace add github.com/omniaura/faircopy
/plugin install faircopyOr load locally during development:
claude --plugin-dir ./node_modules/@faircopy/pluginWhat's included
Stop hook
Fires when Claude finishes a turn. If any .astro files were modified and faircopy finds errors, it blocks the turn and returns the full diagnostic output so Claude can fix the issues before ending.
Requires a faircopy.config.ts in the project root. If no config is found, the hook exits cleanly.
Skill: /faircopy:faircopy
Loaded automatically when Claude is working on Astro files or marketing copy. Instructs Claude to:
- Run
npx faircopy lintafter writing or editing prose - Fix all reported errors before marking the task complete
Manual hook setup
If you prefer to configure the hook without the plugin:
// .claude/settings.json
{
"hooks": {
"Stop": [{ "command": "npx faircopy hook-stop" }]
}
}Requirements
faircopy.config.tsin the project rootfaircopyand@faircopy/astroinstalled in the project
