CtrlK
BlogDocsLog inGet started
Tessl Logo

jbaruch/coding-policy

General-purpose coding policy for Baruch's AI agents

90

1.30x
Quality

91%

Does it follow best practices?

Impact

90%

1.30x

Average score across 18 eval scenarios

SecuritybySnyk

Advisory

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

jbaruch/coding-policy

tessl

Coding policy tile for Baruch's AI agents. Language-agnostic code quality rules plus Tessl-specific plugin authoring standards — covering commits, testing, error handling, skill structure, script delegation, and eval quality.

What's New

  • 20 steering rules — 13 always-on, 7 conditional (scoped via applyTo: to the files where the rule's prescriptions actually fire). Breakdown: 8 covering code quality, 8 covering plugin authoring, 1 covering author-model declaration, 1 covering concurrency, 1 covering review discipline, 1 covering external-repo action scope
  • release skill — structured PR + merge workflow with Copilot review and paired-reviewer cross-family enforcement
  • eval-authoring skill — generate, review, and curate eval scenarios with score-driven iteration
  • install-reviewer skill — scaffold the paired gh-aw PR review workflows (OpenAI + Anthropic) into a consumer repo
  • adopt-fork-pr skill — bring a fork PR's branch into the base repo as a same-repo PR the fork-guarded reviewer can run on
  • 0.3.0 added install-reviewer upgrade mode (--override) — refreshes scaffolded reviewer files in place instead of requiring a manual git rm-and-rerun
  • 0.2.0 lifted with-context attainment from 93 to 98 (3× avg, lift +17 → +22) by tuning skill prose against eval log analysis
  • Language-agnostic: works with any stack, no Python/JS assumptions

See CHANGELOG.md for full version history.

Installation

tessl install jbaruch/coding-policy

What's Included

CategoryRuleSummary
Gitcommit-conventionsImperative mood, one change per commit, PR hygiene
Testingtesting-standardsOutcome-based, deterministic, no binary fixtures
Errorserror-handlingSpecific exceptions (with outer-boundary process-contract carve-out), actionable messages, structured logging
Depsdependency-managementStdlib-first, pinned versions, lock files
Filesfile-hygieneProper .gitignore, no generated files committed
CIci-safetyNever skip tests, never modify CI without asking
Secretsno-secretsNo credentials in code, env vars or secrets manager
Stylecode-formattingUse project's formatter, don't mix style with logic
Authoringcontext-artifactsPlugin structure, rule format, review iteration, surface sync, consistency checks
Authoringcontext-writing-styleProse discipline for rules, skills, and READMEs — what to cut, what to keep, structural format. CHANGELOG entries follow looser archive discipline
Authoringrule-frontmatterFrontmatter conventions for rule files — passthrough model, per-agent field map, when to path-scope
Authoringskill-authoringSKILL.md structure, step numbering, typed calls, plugin.json reference
Authoringscript-delegationDeterministic → script, reasoning → LLM, the regex trap
Authoringscript-as-black-boxSkills reference the script's contract (inputs/outputs/exit codes), not its internal logic — thresholds and predicates live in the script
Authoringplugin-evalsNo bleeding, no leaking, persistent eval coverage
Authoringstateful-artifactsCross-invocation state: schema, owner skill, schema_version, hints-not-authority, migration
Reviewauthor-model-declarationPRs declare author model; paired reviewers pick the cross-family one
Concurrencyagent-worktree-isolationMandatory git worktrees for concurrent agent work; cleanup; read-only exception
Disciplineboy-scoutLeave it better than you found it; "pre-existing" is not a valid concept; in-scope cleanups bundle, out-of-scope ones get filed
Scopeexternal-repo-contributionsDefault deny on issues, PRs, comments, reactions, and discussions in repos the operator does not own; explicit permission required per repo and action type

Skills

SkillDescription
releasePR creation, Copilot review, merge + cleanup workflow
eval-authoringGenerate, review, iterate on eval scenarios with score-driven feedback
eval-curationPrune an existing eval suite — run, compute per-scenario lift, diagnose weak scenarios, retire / fix / rewrite, verify the curated suite still pulls weight
install-reviewerScaffold the paired gh-aw PR review workflows (OpenAI + Anthropic) into a consumer repo — reviews every PR against the latest published jbaruch/coding-policy with cross-family enforcement. Documents the reviewer CI secrets in a merged .env.example. Supports --override for in-place upgrades.
adopt-fork-prClassify a PR by number. Same-repo PRs pass through to the reviewer; fork PRs (skipped by the reviewer's fork-guard) get adopted into the base repo as a same-repo PR, preserving the contributor's commits.

Philosophy

  • Language-agnostic code rules. The code quality rules (commits through formatting) apply to Python, TypeScript, Go, Rust, Java — any language. No framework-specific assumptions.
  • Tessl-specific authoring rules. The Authoring-category rules in the table above are specific to the Tessl plugin workflow. They codify how to build, test, and ship tiles.
  • One concern per rule. Each file covers one topic. Easy to read, easy to reference, easy to override if a project needs an exception.
  • Opinionated but practical. These rules reflect real patterns found across 17+ repositories and the Tessl plugin authoring workflow. They solve problems that actually come up when agents write and ship code.
  • Loaded by default; scoped by intent. Universal rules are alwaysApply: true. Rules whose prescriptions only fire in specific files are alwaysApply: false with applyTo: declaring the scope — the agent's model reads the frontmatter and narrows when to act. See rules/rule-frontmatter.md.
Workspace
jbaruch
Visibility
Public
Created
Last updated
Publish Source
GitHub
Badge
jbaruch/coding-policy badge