Oss standards

From gridaco/grida · View interactive version

Oss standards is an AI agent skill from the GitHub repository gridaco/grida. Pre-PR discipline for a public-by-default repo. What a reviewer enforces beyond CI: secrets and internal data in diffs or screenshots, docs that name their reader, and the cleaning pass where incomplete or confusing artifacts get dropped. Use before opening any PR against `gridaco/grida` or when fin

How to use this skill

Skill file

oss-standards

Grida is open source. CI checks catch the mechanical failures —

format, lint, typecheck, tests, typos, generated-file freshness. This

skill is the _extra_ bar a reviewer enforces because the repo is

public, the threat model is public, and the audience for every

artifact in a PR includes a stranger who arrived via Google.

The defaults that flip:

commit messages — assume a stranger reads them first. There is no

internal channel; everything is the channel.

even if you delete the commit five minutes later. "I'll redact

before merge" is not a plan; rotation is.

on main, gets indexed, and becomes the example the next

contributor copies. Use draft: true, defer the PR, or just don't

ship — but don't ship half.

Code

Beyond what CI catches and what CLAUDE.md / naming / code-ts /

code-react already enforce:

knows" — private notes published. Either resolve, or rewrite as a

neutral TODO with a tracking issue link.

pre-commit gate — absolute paths, ~/scratch/..., /tmp/..., and

untracked references resolve to nothing for anyone else.

PR; bundled unrelated changes are unreviewable. Split or rebase.

everywhere, but in OSS the cost of adding an exported name today is

the deprecation path you owe tomorrow. Wait for the second caller.

For bug fixes specifically, the CODE0

skill is mandatory — bandaids in main become tribal knowledge that

external contributors have no access to.

Security

The full boundary discipline lives in the

CODE0 skill — GRIDA-SEC-<id> tags, the

mandatory review before commit. Two extra OSS gates on top, both

because _push = publish_:

key, financial-provider identifier, webhook signature, or production-shaped

URL committed has been published the moment the branch is pushed.

Use .env.local (gitignored) and fixture placeholders.

staging hosts, dashboard links, and screenshots that show real org

slugs, account ids, or tenant data leak the same way. A doc PR with

a real org slug visible in the screenshot chrome is a published org

slug.

If a GRIDA-SEC-<id> tag appears anywhere in your diff, the

security skill's review runs first; this skill's cleaning pass is

downstream of that.

Docs and prose

Anything user-facing — README, docs/**, blog post, in-product copy,

the PR description itself — has an audience that doesn't share your

context.

Name the reader before writing. One sentence: "an external

contributor first opening the repo," "a designer evaluating Grida vs

Figma," "an agent grounding before a refactor." If you can't name the

reader, the page doesn't know what it is — and that surfaces as prose

that hedges, repeats, or assumes.

someone else. Explain the fact or link to where it lives.

discussed" — invisible to the reader.

CODE0 skill — local-only or untracked targets

are correctness bugs in OSS, not style.

honest answer when a page isn't useful enough yet; shipping a

half-page because "something is better than nothing" is not. See

CODE0.

The cleaning pass

Final pass before opening the PR. For every file touched, ask

literally:

If a stranger reads this file with no context, does it help them, or

does it leave a question they cannot answer?

Apply the answer:

one comment that explains the non-obvious constraint).

section, the fixture, the screenshot.

The bias is to drop. A confusing artifact in main outlives the PR

and is the first thing the next contributor finds when they grep.

Common removals on this pass:

fixtures, snapshots from a one-off debug run).

true` or delete.

non-obvious _why_ (per the repo-wide rule in CLAUDE.md).

The PR description and commit message

These are public artifacts permanently linked from the diff.

commit message; neither is "updates".

change exists without reading the diff line by line. Bug fix → name

the diagnostic-ladder rung (etiology). Feature → name the audience

and the concrete use case that pulled it in.

The short version

published on push; rotation is the only remedy.

drops. Bias is to drop.

Write them as such.

See also: CODE0,

CODE0, CODE1,

CODE0, CODE1,

CODE0,

CODE0 (when you want a hard critique

before opening the PR).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.