Contributing

From x402-foundation/x402 · View interactive version

Contributing is an AI agent skill from the GitHub repository x402-foundation/x402. Guidelines and conventions for contributing to the x402 codebase. Use when preparing a PR to the upstream x402-foundation/x402 repository such as fixing a bug or Issue, implementing a new feature, adding a mechanism/scheme or extension.

How to use this skill

Skill file

Contributing to x402

Reuse before writing new code

Keep changes minimal

Code style

Comments

AI-assisted contributions

Follow the repository AI-assisted contribution policy in CONTRIBUTING.md. Review all AI-generated output before requesting maintainer review.

Working on an Issue

Bug fixes

Commits and PRs

Per-language

Per commit: format, lint, build, test

Format, lint, build, and run unit tests before each commit.

# TypeScript (from typescript/)
pnpm format && pnpm lint && pnpm build && pnpm test

# Go (from go/)
make fmt && make lint && make build && make test

# Python (from python/x402/)
uvx ruff format && uvx ruff check && uv run pytest

Per PR: changelog

Add a changelog fragment for the SDK you changed.

# TypeScript (from typescript/)
pnpm changeset

# Go (from go/)
make changelog-new

# Python (from python/x402/)
uv run towncrier create --content "Fixed ..." <PR>.bugfix.md

New mechanism or extension

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.