probo / rules
Cursor rule1.5k starsChanged 20 days agoMITView on GitHub
GraphQL resolvers return gqlx errors, never a plain error
Trending
More talk lately.about the whole repository
Who's talking about getprobo/probo
- A Hacker News story“Show HN: Fed up with compliance tools? Help us make SOC-2 OSS”Hacker News · Jan 15, 2025 · 30 points
- A Hacker News story“SOC2 without the usual paywall – it is free and open source”Hacker News · Feb 19, 2025 · 7 points
- A Hacker News story“Open-source database of vendor compliance information (SoC 2/ISO 27001)”Hacker News · May 2, 2025 · 3 points
- @pydubreucq.bsky.social“Naissance d'une nouvelle plateforme d'accompagnement à la compliance type ISO27001, SOC2 et autres en …”Bluesky · Feb 7, 2025 · 2 likes
- @yug1224.com“SOC2やISO27001などの認証取得を効率化できるオープンソースのGRCプラットフォームらしい セキュリティ管理や監査の自動化をセルフホストで試したいときに使えそうかな yug1224 starred …”Bluesky · Sep 26, 2026 · 1 likes
The biggest 5 of 56 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 56
Talked about on GitHub, Hacker News and Bluesky (56 times).
On GitHub · 50
- Aug 26, 2025SOC2 preparation - initial goals and tools survey — mgagp/ezkey1 reaction
- Jul 23, 2025[✨ feature] Templates — zane-ops/docs1 reaction · 1 comment
- Nov 14, 2026agent-plugins.github.getprobo.probo: db17af9 → 11755d1 — sudosubin/agents.nix0 reactions
- Nov 14, 2026claude-code-plugins.github.getprobo.probo: db17af9 → 11755d1 — sudosubin/agents.nix0 reactions
- Nov 14, 2026codex-marketplaces.github.getprobo.probo: aea83ba → eba95b5 — sudosubin/agents.nix0 reactions
45 more on GitHub
- Nov 13, 2026claude-code-marketplaces.github.getprobo.probo: 1b16a88 → eba95b5 — sudosubin/agents.nix0 reactions
- Nov 13, 2026codex-marketplaces.github.getprobo.probo: a3302c5 → aea83ba — sudosubin/agents.nix0 reactions
- Nov 13, 2026codex-plugins.github.getprobo.probo: 0-unstable-2026-11-12 → 0-unstable-2026-11-13 — sudosubin/agents.nix0 reactions
- Nov 13, 2026claude-code-marketplaces.github.getprobo.probo: 0-unstable-2026-11-12 → 0-unstable-2026-11-13 — sudosubin/agents.nix0 reactions
- Nov 13, 2026agent-plugins.github.getprobo.probo: 0-unstable-2026-11-12 → 0-unstable-2026-11-13 — sudosubin/agents.nix0 reactions
- Nov 13, 2026claude-code-plugins.github.getprobo.probo: 0-unstable-2026-11-12 → 0-unstable-2026-11-13 — sudosubin/agents.nix0 reactions
- Nov 13, 2026codex-marketplaces.github.getprobo.probo: 0-unstable-2026-11-12 → 0-unstable-2026-11-13 — sudosubin/agents.nix0 reactions
- Nov 13, 2026codex-plugins.github.getprobo.probo: f497ace → 79e0540 — sudosubin/agents.nix0 reactions
- Nov 12, 2026claude-code-marketplaces.github.getprobo.probo: b4b8033 → 79e0540 — sudosubin/agents.nix0 reactions
- Nov 12, 2026agent-plugins.github.getprobo.probo: b4b8033 → 79e0540 — sudosubin/agents.nix0 reactions
- Nov 12, 2026claude-code-plugins.github.getprobo.probo: 0-unstable-2026-11-11 → 0-unstable-2026-11-12 — sudosubin/agents.nix0 reactions
- Nov 12, 2026codex-marketplaces.github.getprobo.probo: 0-unstable-2026-11-11 → 0-unstable-2026-11-12 — sudosubin/agents.nix0 reactions
- Nov 12, 2026codex-plugins.github.getprobo.probo: 0-unstable-2026-11-11 → 0-unstable-2026-11-12 — sudosubin/agents.nix0 reactions
- Nov 12, 2026claude-code-marketplaces.github.getprobo.probo: 0-unstable-2026-11-11 → 0-unstable-2026-11-12 — sudosubin/agents.nix0 reactions
- Nov 12, 2026agent-plugins.github.getprobo.probo: 0-unstable-2026-11-11 → 0-unstable-2026-11-12 — sudosubin/agents.nix0 reactions
- Nov 12, 2026claude-code-marketplaces.github.getprobo.probo: 0-unstable-2026-11-10 → 0-unstable-2026-11-11 — sudosubin/agents.nix0 reactions
- Nov 12, 2026agent-plugins.github.getprobo.probo: 0-unstable-2026-11-10 → 0-unstable-2026-11-11 — sudosubin/agents.nix0 reactions
- Nov 12, 2026claude-code-plugins.github.getprobo.probo: 0-unstable-2026-11-10 → 0-unstable-2026-11-11 — sudosubin/agents.nix0 reactions
- Nov 11, 2026codex-marketplaces.github.getprobo.probo: 0-unstable-2026-11-10 → 0-unstable-2026-11-11 — sudosubin/agents.nix0 reactions
- Nov 11, 2026codex-plugins.github.getprobo.probo: 0-unstable-2026-11-10 → 0-unstable-2026-11-11 — sudosubin/agents.nix0 reactions
- Nov 11, 2026codex-marketplaces.github.getprobo.probo: b667ea0 → 52527ec — sudosubin/agents.nix0 reactions
- Nov 11, 2026codex-plugins.github.getprobo.probo: 0-unstable-2026-11-05 → 0-unstable-2026-11-10 — sudosubin/agents.nix0 reactions
- Nov 10, 2026claude-code-marketplaces.github.getprobo.probo: ab6c81c → 52527ec — sudosubin/agents.nix0 reactions
- Nov 10, 2026claude-code-plugins.github.getprobo.probo: a1a3dda → 52527ec — sudosubin/agents.nix0 reactions
- Nov 10, 2026agent-plugins.github.getprobo.probo: a1a3dda → 52527ec — sudosubin/agents.nix0 reactions
- Nov 10, 2026claude-code-marketplaces.github.getprobo.probo: 0-unstable-2026-11-09 → 0-unstable-2026-11-10 — sudosubin/agents.nix0 reactions
- Nov 10, 2026agent-plugins.github.getprobo.probo: 0-unstable-2026-11-05 → 0-unstable-2026-11-10 — sudosubin/agents.nix0 reactions
- Nov 10, 2026claude-code-plugins.github.getprobo.probo: 0-unstable-2026-11-05 → 0-unstable-2026-11-10 — sudosubin/agents.nix0 reactions
- Nov 10, 2026codex-marketplaces.github.getprobo.probo: 0-unstable-2026-11-09 → 0-unstable-2026-11-10 — sudosubin/agents.nix0 reactions
- Nov 9, 2026claude-code-marketplaces.github.getprobo.probo: 6cdf184 → 7bbe06a — sudosubin/agents.nix0 reactions
- Nov 9, 2026codex-marketplaces.github.getprobo.probo: 6cdf184 → 7bbe06a — sudosubin/agents.nix0 reactions
- Nov 9, 2026claude-code-marketplaces.github.getprobo.probo: 0-unstable-2026-11-06 → 0-unstable-2026-11-09 — sudosubin/agents.nix0 reactions
- Nov 9, 2026codex-marketplaces.github.getprobo.probo: 0-unstable-2026-11-06 → 0-unstable-2026-11-09 — sudosubin/agents.nix0 reactions
- Nov 7, 2026claude-code-marketplaces.github.getprobo.probo: 0-unstable-2026-11-05 → 0-unstable-2026-11-06 — sudosubin/agents.nix0 reactions
- Nov 6, 2026codex-marketplaces.github.getprobo.probo: 0-unstable-2026-11-05 → 0-unstable-2026-11-06 — sudosubin/agents.nix0 reactions
- Nov 6, 2026claude-code-marketplaces.github.getprobo.probo: c9b3ca6 → 90dce44 — sudosubin/agents.nix0 reactions
- Nov 5, 2026codex-marketplaces.github.getprobo.probo: c9b3ca6 → 90dce44 — sudosubin/agents.nix0 reactions
- Nov 5, 2026codex-marketplaces.github.getprobo.probo: 0-unstable-2026-11-04 → 0-unstable-2026-11-05 — sudosubin/agents.nix0 reactions
- Nov 5, 2026codex-plugins.github.getprobo.probo: 0-unstable-2026-11-04 → 0-unstable-2026-11-05 — sudosubin/agents.nix0 reactions
- Nov 5, 2026agent-plugins.github.getprobo.probo: 0-unstable-2026-11-04 → 0-unstable-2026-11-05 — sudosubin/agents.nix0 reactions
- Nov 5, 2026claude-code-plugins.github.getprobo.probo: 0-unstable-2026-11-04 → 0-unstable-2026-11-05 — sudosubin/agents.nix0 reactions
- Nov 5, 2026claude-code-marketplaces.github.getprobo.probo: 0-unstable-2026-11-04 → 0-unstable-2026-11-05 — sudosubin/agents.nix0 reactions
- Nov 4, 2026codex-plugins.github.getprobo.probo: b538929 → 7db610d — sudosubin/agents.nix0 reactions
- Nov 4, 2026codex-marketplaces.github.getprobo.probo: 591cfb2 → b231c74 — sudosubin/agents.nix0 reactions
- Nov 4, 2026claude-code-plugins.github.getprobo.probo: b538929 → 7db610d — sudosubin/agents.nix0 reactions
On Hacker News · 4
- Jan 15, 2025Show HN: Fed up with compliance tools? Help us make SOC-2 OSS30 points · 2 comments
- Feb 19, 2025SOC2 without the usual paywall – it is free and open source7 points · 3 comments
- May 2, 2025Open-source database of vendor compliance information (SoC 2/ISO 27001)3 points
- Sep 12, 2026Open Source GRC Platform1 point
On Bluesky · 2
- Feb 7, 2025Naissance d'une nouvelle plateforme d'accompagnement à la compliance type ISO27001, SOC2 et autres en #opensource github.com/getprobo/probo… — @pydubreucq.bsky.social2 likes and reposts
- Sep 26, 2026SOC2やISO27001などの認証取得を効率化できるオープンソースのGRCプラットフォームらしい セキュリティ管理や監査の自動化をセルフホストで試したいときに使えそうかな yug1224 starred getprobo/probo… — @yug1224.com1 likes and repost
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/code-comments.mdcCursor rule
- .cursor/rules/config-propagation.mdcCursor rule
- .cursor/rules/coredata-migrations.mdcCursor rule
- .cursor/rules/cursor-pagination.mdcCursor rule
- .cursor/rules/detail-page-back-link.mdcCursor rule
- .cursor/rules/git-commit-signing.mdcCursor rule
- .cursor/rules/git-commit-style.mdcCursor rule
- .cursor/rules/go-authorize-scope.mdcCursor rule
- .cursor/rules/go-coredata-load-naming.mdcCursor rule
- .cursor/rules/go-declarations.mdcCursor rule
- .cursor/rules/go-delete-no-rows-check.mdcCursor rule
- .cursor/rules/go-enum-array-valuer.mdcCursor rule
- .cursor/rules/go-error-handling.mdcCursor rule
- .cursor/rules/go-imports.mdcCursor rule
- .cursor/rules/go-logging.mdcCursor rule
- .cursor/rules/go-multiline-params.mdcCursor rule
- .cursor/rules/go-naming-conventions.mdcCursor rule
- .cursor/rules/go-pg-constraint-check.mdcCursor rule
- .cursor/rules/go-upsert-returning-id.mdcCursor rule
- .cursor/rules/go-url-construction.mdcCursor rule
- .cursor/rules/list-filtering.mdcCursor rule
- .cursor/rules/no-outlet-context-data.mdcCursor rule
- .cursor/rules/prompt-style.mdcCursor rule
- .cursor/rules/react-named-exports-lazy-entry.mdcCursor rule
- .cursor/rules/relay-connection-item-components.mdcCursor rule
- .cursor/rules/relay-fragments-not-data-props.mdcCursor rule
- .cursor/rules/relay-required-directive.mdcCursor rule
- .cursor/rules/skeleton-width-sync.mdcCursor rule
- .cursor/rules/template-files.mdcCursor rule
- .cursor/rules/v2-color-scale.mdcCursor rule
The file
Files
---
description: GraphQL resolvers return gqlx errors, never a plain error
globs: "pkg/server/api/console/**/*resolver*.go,pkg/server/api/connect/**/*resolver*.go,pkg/server/api/complianceportal/**/*resolver*.go,pkg/server/gqlx/**/*.go"
alwaysApply: false
---
# GraphQL resolver errors
A GraphQL resolver must not return a plain `error`. gqlgen publishes
`fmt.Errorf`, `errors.New`, and `graphql.ErrorOnPath` with no
`extensions.code`. The tracing logger then records the operation as
`UNKNOWN` at error level.
Return a helper from `pkg/server/gqlx`. Do not build `&gqlerror.Error` by
hand. A hand-built error can set `extensions.code`, but it skips the
helpers that set the path and the message.
`r.authorize` already returns a coded error. Return that error unchanged.
## Which code
- The row the field was supposed to load is missing: `gqlx.NotFound`, or
`gqlx.MapError` when the same call can also fail for another reason.
`MapError` maps `coredata.ErrResourceNotFound` to `NOT_FOUND` and
`validator.ValidationErrors` to `INVALID`. Anything else is logged and
returned as `INTERNAL`.
- The load failed and not-found is already handled: log with
`r.logger.ErrorCtx` and return `gqlx.Internal(ctx)`. Do not put
`err.Error()` in the response.
- The client sent a value the server refuses: `gqlx.Invalid` /
`Invalidf`, `Unauthenticated` / `Unauthenticatedf`, `Forbidden` /
`Forbiddenf`, `Conflict`, or another named helper in
`pkg/server/gqlx/errors.go`.
- The schema already models absence as null (no alias, no generated
document): return `nil, nil`. That is not an error.
A new resolver-owned code needs a helper in `pkg/server/gqlx/errors.go`
and an entry in `safeGraphQLErrorCodes` in `pkg/server/gqlx/tracing.go`.
A gqlgen protocol code such as `GRAPHQL_PARSE_FAILED` or
`COMPLEXITY_LIMIT_EXCEEDED` is not returned by a resolver; it only needs
the allowlist entry. A code missing from that list is logged as `UNKNOWN`
at error level. `INTERNAL` stays at error. Every other allowlisted code
logs at info.
```go
// GOOD — missing row or store failure. MapError sends err.Error() for
// NOT_FOUND. Wrap the sentinel only with client-safe text, or return
// NotFoundf(ctx, "resource not found") when the prefix must stay private.
doc, err := r.probo.Documents.Get(ctx, scope, documentID)
if err != nil {
return nil, gqlx.MapError(ctx, r.logger, "cannot get document", err)
}
// GOOD — not-found already returned; the rest is internal.
// NotFound shows err.Error() too; use NotFoundf when that text is not client-safe.
owner, err := loaders.Profile.Load(ctx, ownerID)
if errors.Is(err, coredata.ErrResourceNotFound) {
return nil, gqlx.NotFound(ctx, err)
}
if err != nil {
r.logger.ErrorCtx(ctx, "cannot get owner", log.Error(err))
return nil, gqlx.Internal(ctx)
}
// BAD — no code; logged as UNKNOWN and the store error reaches the client
if err != nil {
return nil, fmt.Errorf("cannot get document: %w", err)
}
```
This does not apply to MCP resolvers. See
[`contrib/claude/graphql.md`](../../contrib/claude/graphql.md) and
[`contrib/claude/api-surface.md`](../../contrib/claude/api-surface.md).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

