General-purpose coding policy for Baruch's AI agents
91
93%
Does it follow best practices?
Impact
91%
1.15xAverage score across 12 eval scenarios
Advisory
Suggest reviewing before use
Scaffold the gh-aw PR policy reviewer into a consumer repository. Steps are sequential — complete each before moving to the next.
.tessl/tiles/jbaruch/coding-policy/skills/install-reviewer/preflight.shRuns every precondition (git worktree, GitHub CLI install + auth, gh-aw extension, tile template, origin remote, local + remote branch clear) and returns one JSON object. Exit 0 with {"ok": true, "failures": []} means all checks passed; exit 1 with a populated failures array means at least one precondition is missing. Each failure carries a concrete recovery command for the user. If exit non-zero, report every failure's reason verbatim and stop. If exit zero, proceed immediately to Step 2.
If either .github/workflows/review.md or .github/workflows/review.lock.yml already exists in the repo, stop and report that prior review setup is present. Do not overwrite either file — the lock alone (source removed) or the source alone (mid-authoring) both indicate deliberate in-progress configuration that the skill would destroy by compiling over it. If neither file exists, proceed immediately to Step 3.
git checkout -b feat/add-coding-policy-review from the repo's default branch. Proceed immediately to Step 4.
.tessl/tiles/jbaruch/coding-policy/skills/install-reviewer/scaffold.shCreates .github/workflows/ if missing, copies the packaged template into review.md, compiles it via gh aw compile review to produce review.lock.yml, and ensures .gitattributes marks the lock file as generated (linguist-generated=true, merge=ours) per rules/file-hygiene.md. Emits a JSON summary on success; exits non-zero with a stderr diagnostic and rolls back every artifact it touched (including restoring actions-lock.json from a snapshot) on compile failure. Proceed immediately to Step 5.
.tessl/tiles/jbaruch/coding-policy/skills/install-reviewer/commit.shStages the four scaffolded files (review.md, review.lock.yml, actions-lock.json, .gitattributes) and commits with the canonical message ci(review): add jbaruch/coding-policy PR review workflow. Idempotent: emits {"state": "no-op", …} on re-run when the working tree already matches a prior successful run. If a pre-commit hook rejects the commit, the script exits non-zero — fix the hook's finding and re-run; do not --no-verify. Proceed immediately to Step 6.
.tessl/tiles/jbaruch/coding-policy/skills/install-reviewer/push.shPushes feat/add-coding-policy-review to origin with upstream tracking. Idempotent: emits {"state": "up-to-date", …} if origin already matches local HEAD. Proceed immediately to Step 7.
gh pr create with title ci(review): add jbaruch/coding-policy PR review workflow and a body that:
jbaruch/coding-policy at run time and reviews every PR against itOPENAI_API_KEY (OpenAI billing account for Codex) and TESSL_TOKEN (created at https://tessl.io/account/api-keys)Return the PR URL. Finish here — the user validates the secrets and merges.