بنقرة واحدة
review
Repository-specific guidance for the AI code review agent reviewing this repo
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Repository-specific guidance for the AI code review agent reviewing this repo
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | review |
| description | Repository-specific guidance for the AI code review agent reviewing this repo |
| user-invocable | true |
| disable-model-invocation | true |
This is Traefik Proxy (Go), a cloud-native reverse proxy and load balancer. The reviewer already fixes the
role, the tools, the severity definitions, the finding mechanics and the output format; this guidance
is additive and must not restate them. Record findings only with the severities the reviewer
accepts: CRITICAL, IMPORTANT, MINOR, QUESTION.
Review in this priority order, and keep the bar high at every level.
fmt.Errorf in gerund form, e.g. fmt.Errorf("unmarshalling data: %w", err), and never silently dropped with _.context.Context must be the first argument of every function that accepts one, named ctx.context.Background() in request paths — propagate the context from the caller.type myKey struct{}), never bare strings or integers.pkg/config/dynamic type has a mirror in the Kubernetes CRD types under pkg/provider/kubernetes/crd/traefikio/v1alpha1; the new field must be added there and wired through the CRD-to-dynamic conversion in pkg/provider/kubernetes/crd/kubernetes.go. A dynamic option that is not exposed on the duplicated CRD struct is a bug.traefik.io/v1alpha1.-er suffix, declared at the usage site.slices, maps, cmp) over premature abstraction or third-party helpers, grouped import ordering, exported items with a doc comment starting with the item name.testify/assert and testify/require; use require for preconditions that must stop the test, assert for independent checks. Tests must be table-driven with t.Parallel(). Blackbox testing (package x_test) is preferred. Do not add verbose message arguments to assert/require calls — the test name provides the context.zz_generated*.go, everything under pkg/provider/kubernetes/crd/generated/, and webui/static/.mock_*.go or *_mock.go.//nolint: directives — they are intentional.integration/fixtures/ — Docker-dependent behaviour cannot be verified statically.Before claiming a change is unsafe, check how the changed functions are used elsewhere in the repository: the call sites decide.