Skip to content

complexity-gate: harness package (Pi extension, Claude plugin, Codex skill, installer) #87

Description

@ElbertePlinio

Goal: @pickforge/complexity-gate package that installs the complexity-gate binary (github.com/pickforge/complexity-gate) and wires it into Claude Code, Codex, and Pi, mirroring packages/review-tutor.

Agent plan

Checklist:

  • packages/complexity-gate: postinstall downloads the matching release binary (checksum-verified) into the package; bin forwards to it; COMPLEXITY_GATE_BIN override for local builds
  • extensions/complexity-gate.ts (Pi): after edit/write tools → check <file> feedback; at turn end → check --changed, block/re-prompt while FAIL
  • claude-plugin/ with hooks/hooks.json (PostToolUse Edit|Write|MultiEdit, Stop → complexity-gate hook claude) + skill; marketplace entry
  • codex-skill/complexity-gate/SKILL.md + Codex hooks fragment
  • skills/complexity-gate/SKILL.md
  • complexity-gate-install --harness claude,codex,pi | --all | --print (interactive prompt when no flag)
  • Tests: wrapper resolution, hook JSON fragments, extension handlers with a fake exec
  • README
  • PR/review

Validation:

  • bun run typecheck && bun run lint && bun run test && bun run build
  • Manual: install into all three harnesses on the maintainer machine; make a deliberately complex edit; observe block; refactor; observe release.

Current status: In progress
Next action: implementation lane

Binary: pickforge/complexity-gate#1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions