Install
$ agentstack add skill-leonardocandiani-keepwright-keepwright ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →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
- 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.
- Deterministic engine (
scripts/, run withbun) — 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.
- 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.
- Author: leonardocandiani
- Source: leonardocandiani/keepwright
- License: MIT
- Homepage: https://github.com/leonardocandiani/setup-projeto-qualidade
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.