Skip to content
Skills Library
Programming · Building & coding

contributing

/contributing

Guides the developer workflow for contributing to Race Condition. Use when setting up pre-commit hooks, running tests before a PR, understanding code style requirements, or preparing a contribution.

Licence
Apache-2.0
Last repository change
26.07.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.07.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Guides the developer workflow for contributing to Race Condition. Use when setting up pre-commit hooks, running tests before a PR, understanding code style requirements, or preparing a contribution.

Original author description

Guides the developer workflow for contributing to Race Condition. Use when setting up pre-commit hooks, running tests before a PR, understanding code style requirements, or preparing a contribution.

How it works

  1. First-Time Setup
  2. Before Every PR
  3. Code Style
  4. PR Process
  5. Test Architecture
  6. Quick Reference
Original SKILL.md headings · 136 lines, 591 words
SKILL.md preview
---
name: contributing
description: >
  Guides the developer workflow for contributing to Race Condition. Use when
  setting up pre-commit hooks, running tests before a PR, understanding code
  style requirements, or preparing a contribution.
---

# Contributing to Race Condition

## First-Time Setup

### Install pre-commit hooks

```bash
pip install pre-commit
pre-commit install
```

This installs hooks that run automatically on `git commit`:
- License header checks (Apache 2.0)
- YAML and JSON syntax validation
- Go vet
- Trailing whitespace and EOF fixes

### Verify your environment

```bash
make check-prereqs   # Verify Go, Python, uv, Node.js, Docker
make build           # Build Go services (runs proto generation first)
make test            # Run all tests
```

## Before Every PR

Run these checks. They match what CI runs on GitHub Actions.

### 1. Format code

```bash
make fmt
```

This runs `gofmt -w .` for Go and `uv run ruff format agents/` for Python.

### 2. Lint

```bash
make lint
```

Runs all linters:
- `golangci-lint run ./...` (Go)
- `uv run ruff check agents/` (Python)
- `npx --yes pyright@latest agents/` (Python type checking)
- Pre-commit hooks for YAML and JSON syntax validation

### 3. Run tests

```bash
make test
```

Runs Go tests, Python tests (excluding slow/eval), and web UI tests. Python
tests run without real GCP credentials; `conftest.py` mocks them.

### 4. Check coverage

```bash
make coverage
```

Generates Go and Python coverage reports. Python has a 60% minimum threshold.

## Code Style

### Go

- Format with `gofmt` (enforced by `make fmt`)
- Lint with `golangci-lint`
- Tests use `testify` for assertions and `miniredis` for Redis mocking
- Integration tests are tagged with `Integration` or `Relay` in test names

### Python

- Format with `ruff format`
- Lint with `ruff check`
- Type check with `pyright`
- Tests use `pytest` with `pytest-asyncio` for async tests
- Agent entry point must be `root_agent` in `agent.py`
- Use `google-genai` SDK (not the deprecated `google-generativeai`)

### License headers

All source files must have Apache 2.0 license headers (year 2026, Google LLC).
The pre-commit hook checks this. If missing, add:

```python
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# ...
```

## PR Process

1. Fork the repo on GitHub.
2. Branch from `main` with a descriptive name.
3. Make your changes following the code style above.
4. Run `make test` and `make lint`. Fix any failures.
5. Commit with clear messages describing what changed and why.
6. Push and open a PR against `main`.
7. Sign the CLA when prompted (first-time contributors only).

PRs are squash-merged. Write a clear PR title and description.

## Test Architecture

| Command | What it runs | Needs infra? |
|---|---|---|
| `make test-go` | `go test ./... -count=1` | No (uses miniredis) |
| `make test-py` | `uv run pytest agents/ -x -q -m "not slow and not integration"` | No (mocks GCP) |
| `make test-web` | `npm test` in admin-dash + tester | No |
| `make eval` | Agent evaluations with real Gemini API | Yes (costs money) |
| `make verify` | lint + unit tests + coverage | No |
| `make verify-full` | verify + integration tests | Yes (needs Redis/Docker) |

## Quick Reference

| Task | Command |
|---|---|
| Format all code | `make fmt` |
| Lint all code | `make lint` |
| Run all tests | `make test` |
| Run only Go tests | `make test-go` |
| Run only Python tests | `make test-py` |
| Generate coverage | `make coverage` |
| Build everything | `make build` |
| Regenerate protobuf | `make proto` |

See [CONTRIBUTING.md](../../../CONTRIBUTING.md) for the full contributing
guide including the CLA process.

Versions

RepositoryScoreLicence
This page · googlecloudplatform/race-condition100Apache-2.0
butterbase-ai/butterbase-skills100MIT
cloudflare/cloudflare-docs100CC-BY-4.0
blaizzy/mlx-vlm100MIT
emmgeede/gridselect100MIT
Jeff-Kazzee/github-skills100MIT
Dqz00116/skill-lib100MIT
iowarp/clio-core84BSD-3-Clause

Identical content appears in 1 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version ecae062f8d44 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100getting-started
    Guides setup of the Race Condition project from clone to running simulation. Use when the developer wants to get the project running locally, install dependencies, configure GCP credentials, or troubleshoot startup issues.
  • 100exploring-the-codebase
    Explains the Race Condition architecture, the design decisions behind it, and where to read code first. Use when the developer asks how something works, wants a tour, or wants to understand the system before changing it.
  • 95agents-contributing-setup-repo
    Set up a repository to receive help from AI agents under the AGENTS-CONTRIBUTING spec. Use when a repository owner asks to accept agent contributions, add AGENTS-CONTRIBUTING.md, or open their repo to donated AI capacity.
  • 85hexiso-contributing
    Code style, workflow, commit and pull-request conventions for HEXISO. Use when preparing changes for review.
  • 100contributing-to-major-open-source-projects
    Use this skill when navigating developer contribution guidelines, signed CLAs/DCOs, and governance in large open-source projects.
  • 100contributing-guide-creator
    Create contributing guide creator operations. Auto-activating skill for Technical Documentation. Triggers on: contributing guide creator, contributing guide creator Part of the Technical Documentation skill category. Use when working with contributing guide creator…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.