/fff:git-hooksfrom fff
Installs pre-commit and pre-push hooks that delegate to justfile recipes. Pre-commit runs format/lint/typecheck; pre-push runs level-aware check-all.
Ships in fff. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Catch problems before code leaves the developer's machine. Pre-commit is fast (format/lint/typecheck); pre-push is thorough (tests + level-appropriate audits).
Hooks delegate to justfile recipes — they don't reimplement gates.
Loaded by stack-init when scaffolding a project. Standalone to add hooks to an existing project.
Fast (a few seconds). Run on every commit.
#!/bin/bash
set -e
echo "Running pre-commit checks..."
just format
just lint
just typecheck
echo "Pre-commit checks passed"
Recipes used: format, lint, typecheck. These are baseline at every level.
Thorough. Run on every push (slower, but still local).
#!/bin/bash
set -e
echo "Running pre-push checks..."
just check-all
echo "Pre-push checks passed"
check-all is level-aware (see justfile). At L2+ it includes spec-coverage; at L3 it includes spec-audit. Hooks don't have to know — they just call check-all.
If check-all is too slow for pre-push (large project), document an opt-out: git push --no-verify is the user's escape hatch. Don't make hooks so slow that everyone bypasses them.
mkdir -p .git/hooks
cat > .git/hooks/pre-commit <<'EOF'
#!/bin/bash
set -e
just format
just lint
just typecheck
EOF
chmod +x .git/hooks/pre-commit
cat > .git/hooks/pre-push <<'EOF'
#!/bin/bash
set -e
just check-all
EOF
chmod +x .git/hooks/pre-push
.pre-commit-config.yaml:
repos:
- repo: local
hooks:
- id: ffflow-format
name: just format
entry: just format
language: system
pass_filenames: false
stages: [pre-commit]
- id: ffflow-lint
name: just lint
entry: just lint
language: system
pass_filenames: false
stages: [pre-commit]
- id: ffflow-typecheck
name: just typecheck
entry: just typecheck
language: system
pass_filenames: false
stages: [pre-commit]
- id: ffflow-check-all
name: just check-all
entry: just check-all
language: system
pass_filenames: false
stages: [pre-push]
Install: pre-commit install --hook-type pre-commit --hook-type pre-push.
The framework path is the recommended one for teams — it survives clones and stays in the repo.
Add to the project's justfile:
# Install git hooks
hooks-install:
@if command -v pre-commit >/dev/null; then \
pre-commit install --hook-type pre-commit --hook-type pre-push; \
else \
cp .githooks/pre-commit .git/hooks/pre-commit; \
cp .githooks/pre-push .git/hooks/pre-push; \
chmod +x .git/hooks/*; \
fi
@echo "Hooks installed"
# Remove git hooks
hooks-remove:
@if command -v pre-commit >/dev/null; then \
pre-commit uninstall --hook-type pre-commit --hook-type pre-push; \
else \
rm -f .git/hooks/pre-commit .git/hooks/pre-push; \
fi
@echo "Hooks removed"
check-all mirrors what CI runs.set -e exits on first error.git commit --no-verify and git push --no-verify bypass hooks. The user owns the choice. Reasons that justify the bypass:
Reasons that don't:
check-all.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub zerotechdebt/ffflow --plugin fffOther plugins' skills for the same job
38 skills in this plugin
/adopt-ffflowEnd-to-end onboarding for a new FFFlow project. Runs init-ffflow, stack-init, then hands off to plan-roadmap to phase out the work (greenfield or brownfield — roadmap figures out the right per-phase entry point). Use `--ui` to adopt FFFlow's view-layer-purity structure (the frontend sibling of hexagonal) on an already-adopted project./auditRun the FFFlow keep-honest auditors against this project. Coordinator with per-type cartridges (CLAUDE.md freshness, spec drift, characterization tests, architecture conformance, complexity/refactor signals, and L3 RID traceability). Use --type to target one; --plan to convert findings into work./autopilotMeta-skill that wraps any interactive skill for unattended execution. Reads project context to stand in for the user on routine decisions, with a decision log.