Jabran's ground rules for every project — how to work (clarify first, stay scoped, report real results) plus default stack (Cloudflare, Tailwind v4), TypeScript, testing, git/PR, gh, CI, security and docs conventions, and the cloud-session rules (git identity, plan-only main agent, model choices). Load at the start of any coding, repo, review, commit, PR or GitHub Actions task, and whenever a repo's AGENTS.md points to it or is silent on a convention.
Ships in jabraf-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
jabraf-ground-rulesThe common baseline for every project and the single source of truth for it.
A repo's own AGENTS.md / CLAUDE.md / .github/agents/* / docs/agents/* is
more specific and wins on conflict; local machine rules (e.g.
~/.agents/rules/) add account- and host-specific detail. These rules fill
every gap they leave.
Section 1 applies to every task, chats included. Sections 2–10 apply when the task touches a codebase. Section 11 applies in cloud sessions.
--help output. When something is unclear, say so and ask.Read the environment before writing code; it is the source of truth.
AGENTS.md, CLAUDE.md, then the guide relevant to the task.package.json scripts, lockfile (package-lock.json → npm, pnpm-lock.yaml
→ pnpm), Node pin (.node-version, engines.node; legacy volta key or
.nvmrc), mise.toml, default branch.eslint.config.*, .prettierrc*, tsconfig*.json,
vitest.config.*, playwright.config.*, .github/workflows/.Done when you can name the repo's gate commands, package manager, Node version and default branch.
mise is the preferred tool manager; Volta is legacy. Pick the runner for
Node-based commands in this order:
mise is on PATH (command -v mise), run commands through
it: mise exec -- npm test. This applies even when the repo also has a
volta key.package.json has a volta key and volta
is on PATH, use volta run npm test.npm test.Repos still on Volta (a volta key and no .node-version) get
"migrate Volta → mise" in your follow-ups list; leave the migration itself for
an explicit ask.
Runners are an execution detail only: write plain commands (npm test) in every
instruction, doc, README, AGENTS.md, PR and commit message you produce, with no
mise exec or volta run prefix.
.node-version + engines.node.node-version holds the exact Node pin (e.g. 24.11.1). It is the one
source of truth for the version, read by mise, CI and other managers.package.json engines.node states the supported minimum as a range from
that pin (e.g. ">=24.11.1").mise.toml carries no node entry; mise reads .node-version as an
idiomatic version file. That reading is off by default since mise 2025.10, so
it needs idiomatic_version_file_enable_tools = ["node"] (global, or under
[settings] in the repo's mise.toml). Check with mise exec -- node -v: if
it doesn't match .node-version, report the mismatch rather than changing the
user's global mise config..node-version, engines.node and
any CI node-version input together, in one change..node-version or engines.node, or
where they disagree, gets a follow-up entry; add or fix them only when asked.Strict TypeScript. Type precisely; reach for unknown plus narrowing when a
type is genuinely open. Fix type errors at the source rather than with any,
as casts or @ts-ignore; if one is truly unavoidable, leave a one-line reason.
import type { … } for type-only imports. ESM throughout.
interface for object shapes, type for unions and aliases.
Named exports, except where a framework requires a default
(route modules, config files, the top-level App).
Naming: kebab-case for every file and folder (person-node.tsx exports
PersonNode; hooks are useThing in use-thing.ts). PascalCase types and
components, camelCase values.
Comments: /** … */ for every multi-line comment block; // for a single
line only.
/**
* Cut at the last separator that fits so words stay whole.
*/
// single-line note
Tooling: lint, format and TS configs come from @jabraf/dev; use them as
configured. To add or set them up, use the jabraf-dev-setup skill (or the
granular jabraf-* skills).
Dependencies: prefer the standard library and existing helpers. A new
runtime dependency needs a one-line justification in the PR. Install with the
package manager CLI (npm install <pkg> [-w <workspace>]) so the lockfile stays
consistent; leave dependency lists in package.json to the tool.
Config-driven: environment values via @jabraf/app-config getConfig().
Ship every new user-facing feature behind a flag: on in dev, off in
production until intentionally launched. In React apps, mount
FeatureFlagsPanel once at the root so flags can be toggled in-app (any env,
incl. mobile) via ?ffs=1.
Shared, single source: types and validation schemas (e.g. Zod) live once in a shared module and are imported by client, server and DB.
New projects default to the Cloudflare stack, Workers first. Existing projects keep their platform; suggest a move only as a follow-up.
wrangler with a committed wrangler.jsonc; types
from wrangler types; local dev via wrangler dev.@import "tailwindcss"; in the main
stylesheet, tokens in @theme, custom utilities via @utility, and no
tailwind.config.js. Wire it with @tailwindcss/vite (Vite projects) or
@tailwindcss/postcss. Repos on Tailwind v3 get "migrate Tailwind v3 → v4"
in your follow-ups list; leave the migration itself for an explicit ask.prefers-reduced-motion. Content pages work without JavaScript;
JS enhances.vi.mock / vi.mocked / vi.stubGlobal; reach for vi.doMock only
when hoisted mocking genuinely can't express the case.*.test.ts(x);
Playwright functional/e2e → *.spec.ts. Test files sit beside their source and
mirror its name.Run the repo's equivalents of, and report each result:
npm run lint && npm run format:check && npm run typecheck && npm test && npm run build
Add functional/e2e suites when UI or API flows changed, and any repo-specific checks (migrations, VR snapshots) its agent docs list. Run them through the tool manager chosen in section 2.
feat/…, fix/…, docs/…, chore/….
All commits land on the feature branch.type(scope): subject with types feat, fix,
docs, style, refactor, perf, test, build, ci, chore. Imperative
subject under ~72 chars; the why goes in the body; breaking changes use ! or
a BREAKING CHANGE: footer. Versioning tools parse these, so the format is
load-bearing.Fixes #NN, and
screenshots for UI changes. Use the repo's PR template when it has one.gh CLI for GitHub repos, issues, PRs and links in the user's own
repos, rather than fetching the web page. Cloud sessions without gh use
the platform's GitHub tools (section 11).github.com / api.github.com for every gh and API call, even when a
git remote uses an SSH host alias..worktrees/, then run the install
(npm i) in the new worktree.jabranr/workflows reusable workflows where one fits; the
jabraf-workflows-* skills set them up.uses: actions/checkout@<40-char-sha> # v4.2.2. Resolve the SHA from the
action's tagged release rather than writing one from memory.actions/setup-node reads the version from the repo:
node-version-file: .node-version.fetch-depth: 0 on checkouts that run conventional-commit or versioning tools.HUSKY: 0 on steps that run npm version / lerna version.@secureci/cli (secureci, via
npx @secureci/cli when not installed). Set it up with the
secureci skill
(npx skills add secure-ci/cli --skill secureci):
secureci validate .github/workflows/*.yml — syntax, template injection,
token permissions, risky triggers; keep workflows passing it.secureci run <workflow> --dry-run (or a real local run) to try a workflow
before pushing.secureci inventory to lock actions in a committed secureci.lock;
secureci inventory --check in CI to fail on tag drift.secureci pin to rewrite action tags to commit SHAs (keeps the # vX
comment).actionlint. Use secureci validate. Repos still running
actionlint (incl. the jabranr/workflows actionlint action) get "replace
actionlint with secureci" in your follow-ups list; swap it only when asked..env*, generated artifacts and local state out of commits; check
git status before committing.ai-docs/)ai-docs/ in the current
repo unless the user names another location.ai-docs/ only when the user asks, and only for that request.[done]- are finished; read them only when explicitly asked.ai-docs/ is fully implemented, rename it with the [done]-
prefix.ai-docs/ out of everything else: commits, PRs, issues and files outside
that folder. Where a reference is unavoidable, use a relative path.README.md /
DOCS.md; internal design, tooling or workflow → AGENTS.md and its linked
guides.AGENTS.md is canonical and opens with the
pointer to this skill (below); CLAUDE.md is a thin @AGENTS.md import;
.github/copilot-instructions.md is a short pointer; depth lives in
.github/agents/*.md or docs/agents/*.md, one topic per file. Each repo doc
records only what is specific to that repo, and links here for the rest.AGENTS.md## Baseline rules
Follow the [`jabraf-ground-rules`](https://github.com/jabranr/skills/blob/main/skills/jabraf-ground-rules/SKILL.md)
skill (install: `npx skills add jabranr/skills -g --skill jabraf-ground-rules`).
This file lists only what is specific to this repo and wins where the two differ.
Applies when the session runs in a remote, ephemeral agent container. Treat the session as a cloud session when either variable is set:
AGENT_CLOUD_SESSION=1, set by the environment's setup script (any agent).CLAUDE_CODE_REMOTE=true, set by Claude Code on the web.Local sessions skip this section.
Check these four variables before the first commit. Set each one that is unset or empty to the value below, and leave any that already has a value as it is.
export GIT_AUTHOR_NAME="${GIT_AUTHOR_NAME:-Jabran Rafique}"
export GIT_AUTHOR_EMAIL="${GIT_AUTHOR_EMAIL:[email protected]}"
export GIT_COMMITTER_NAME="${GIT_COMMITTER_NAME:-Jabran Rafique}"
export GIT_COMMITTER_EMAIL="${GIT_COMMITTER_EMAIL:[email protected]}"
Shell state often does not carry from one command to the next, so make the
values reach every git commit: persist them where the session's shell loads
them, or run the exports in the same command as the commit. Leave
git config user.* alone.
The container is discarded when the session ends, so unpushed work is lost. These two points replace their section 6 counterparts in a cloud session:
gh when it is installed. When it is not, use the
GitHub tools the platform provides.The setup script may set these variables. Use the value when one is set and the default when it is not.
| Variable | Role | Default |
|---|---|---|
AGENT_MAIN_MODEL | Main agent | claude-fable-5-2 |
AGENT_MAIN_FALLBACK_MODEL | Main agent, when the first is down | claude-opus-5-5 |
AGENT_SUBAGENT_MODEL | Every subagent | claude-opus-5-5 |
AGENT_SUBAGENT_FALLBACK_MODEL | Subagents, when the first is down | claude-haiku-5-5 |
AGENT_MAIN_* variables only record what the setup script intended;
the setup script is what applies them, by mapping them onto the harness's own
model setting. Check which model is serving the session where the harness
lets you. If it is neither the main model nor its fallback, say so in your
first reply and carry on.The main agent plans and coordinates, and subagents implement.
The one exception: a small ask that needs no questions. Do the work yourself only when both hold:
Open your reply by saying you are doing it yourself, with any assumptions you are making, so the user can stop you. Then implement, run the gate, commit, push and report. The exception ends the moment a question for the user comes up or the change grows past 50 lines: stop implementing, say so, and take the ask through the steps below.
For every other ask:
A subagent starts with none of the conversation, so the brief is all it knows. Write it to stand alone, and leave the conversation itself out. Every brief has, in this order:
When the plan is too large or too interlinked for briefs to carry without
losing decisions, save it to a file in ai-docs/ (section 9) and point each
brief at that file, keeping the role, the task's own files and its done
criteria in the brief. This is the one case where a plan is written to and read
from ai-docs/ without the user asking.
ai-docs/ references staged.What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/jabraf-app-config-setupSet up `@jabraf/app-config` end-to-end in a project — install the runtime dep, scaffold `config/make-config.ts`, augment the `FeatureMap`, gitignore the generated artifact, add `prebuild`/`predev` scripts, wire the bootstrap `setConfig` call, and (React apps) mount the in-app `FeatureFlagsPanel` toggle UI. Load when the user asks to add app config, set up feature flags, configure `@jabraf/app-config`, wire `jabraf-config build`, or add a feature flags toggle panel / floating button./jabraf-commitlintSet up commitlint in a project using `@jabraf/dev`'s shared base (conventional commits). Load when the user asks to add commitlint, enforce conventional commits, configure `commitlint.config.js`, or wire up `@jabraf/dev` commitlint specifically. Do not load for general commit-message-quality questions unrelated to `@jabraf/dev`./jabraf-Other plugins' skills for the same job
/jabraf-skills:jabraf-ground-rulesfrom jabraf-skills
npx claudepluginhub jabranr/skills --plugin jabraf-skills