AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Keepwright

skill-leonardocandiani-keepwright-keepwright · by leonardocandiani

Set up and continuously keep engineering quality and architecture true in any git repo. Implants a constitution (CLAUDE.md), structured rules, GitHub Actions with AI PR review wired to OAuth, portable validators, and git hooks; then audits and enforces them over time. Detects the stack and adapts. Use when a repo needs a solid quality architecture, a PR flow with AI review, living rules, or an au…

No reviews yet
0 installs
29 views
0.0% view→install

Install

$ agentstack add skill-leonardocandiani-keepwright-keepwright

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-leonardocandiani-keepwright-keepwright)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Keepwright? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

keepwright

keepwright sets up and continuously keeps a high-quality engineering architecture in any git repo — new or existing, any stack. It is both a scaffolder (installs the architecture) and a maintainer (audits it and keeps it enforced). The craft of building the standard, and the keep that guards it.

How it works — three layers

  1. Wizard command (commands/) — you drive it; it asks the user the genuine

choices via AskUserQuestion and orchestrates the rest. This is the "type it and configure" surface.

  1. Deterministic engine (scripts/, run with bun) — does the mechanical

work: detect.ts proposes a config from the repo, apply.ts copies templates and substitutes placeholders idempotently (anti-secret scan first), audit.ts reports integration coverage. No LLM guesswork in the mechanical path.

  1. Orchestration workflows (workflows/*.js, the Workflow tool) — parallel

multi-agent analysis, used situationally because it costs tokens: map-brownfield (enrich the config from a large repo), derive-patterns (mine the repo's design + writing voice → rules + validators), verify-setup (adversarial parallel verification).

The split is deliberate: mechanical → script, judgment → LLM/workflow.

Commands

  • /keepwright:setup — interactive wizard: detect → (optional brownfield map)

→ configure via questions → apply → auth → (optional derive + verify) → smoke. Accepts --mode setup|audit|maintain.

  • /keepwright:audit — reports whether the repo is fully integrated

(CLAUDE.md, .claude/rules, workflows, validators, hooks) with a coverage verdict. --deep escalates to the adversarial verify workflow.

  • /keepwright:review — reviews the current state against the repo's own

derived patterns + the keepwright invariants; escalates to /code-review ultra / /security-review for depth.

Config — keepwright.config.json

Produced by detection + the wizard, consumed by apply.ts. Conforms to schema/keepwright.config.schema.json: project, repo, maintainer, language, mode, stack, layers[], deploy, runner, auth, criticalFiles[], customValidators[], derivedPatterns{design[],voice[]}. Versioned in the repo — the setup becomes reproducible and reviewable.

What gets installed (the architecture)

  • CLAUDE.md — the constitution: an index pointing to every rule plus the

load-bearing invariants inline. Rule with no pointer = invisible rule; a validator fails CI on desync (equalization).

  • .claude/rules/ — invariants, pipeline equalization, epistemic hierarchy

(P1–P5), PR flow, lesson cataloging, parallel workstreams, safe merge, and any derived rules mined from the repo itself (design + voice).

  • GitHub Actions — CI (typecheck/lint/validators), AI PR auto-review (calls

the versioned /pr-review skill, advisory + deterministic publish + retry + fallback), @claude mention, safe auto-merge (Tier-S only), and a stack-picked deploy workflow. Self-hosted runner option keeps CI minutes at zero.

  • Validators (scripts/validators/) — anti-secrets, CLAUDE.md equalization,

epistemic hierarchy, webhook-active, empirical-proof, plus project-specific ones.

  • Hooks (lefthook) + portable generators.

Auth (Claude ↔ GitHub) — OAuth first

Run /install-github-app in the target repo and choose subscription / OAuth: it installs the GitHub App and sets the CLAUDE_CODE_OAUTH_TOKEN secret in one step. This replaces the old manual ritual and avoids the malformed-secret class of bugs. OAuth keeps the AI review/mention on the subscription (no metered API cost). Fallback for re-setting the secret by hand: bash scripts/setup-oauth-secret.sh /. ANTHROPIC_API_KEY is a documented, pay-per-use alternative — not the default.

Derived patterns (the repo teaches itself)

derive-patterns reads how the repo actually writes code and prose, codifies the strong/recurring conventions into rules, and — where mechanically checkable — into validators. Those feed the AI review too, so the standard the repo is held to is its own, not a generic ideal.

Principles

  • Epistemic hierarchy P1–P5 — a reported symptom (P1) outranks prod logs (P2),

DB state (P3), code (P4), abstract analysis (P5). P5 never refutes P1.

  • Equalization — every rule has a CLAUDE.md pointer; a validator enforces it.
  • Safe merge — double gate; Tier-S inert changes auto-merge, everything else

is human. AI review is advisory, never a hard gate (it can 401 on workflow- touching PRs by design); the real gates are validators + typecheck + CODEOWNERS.

  • Empirical proof before "done" — runtime evidence, not inference.
  • No AI attribution in commits; the maintainer is the author.

i18n

The plugin itself is English. Generated artifacts (CLAUDE.md prose, rule docs, messages) follow the user's language — read from ~/.claude settings into config.language — so the constitution lands in the maintainer's language while the tooling stays universal. English when unset.

How to operate this skill

Read this file, then drive /keepwright:setup. Be decisive on technical defaults; only ask the user about genuine choices. The apply step is idempotent — safe to re-run; it reports what it skipped. Never cross the apply step (it touches git) without explicit confirmation.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.