> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/solana-foundation/anchor/llms.txt
> Use this file to discover all available pages before exploring further.

# Contributing to Anchor

> Learn how to contribute to the Anchor framework

Thank you for your interest in contributing to Anchor! All contributions are welcome.

## Ways to contribute

* Report bugs and request features via [GitHub Issues](https://github.com/solana-foundation/anchor/issues)
* Improve documentation
* Fix bugs
* Add features
* Write tests
* Share examples

## Getting started

### Find an issue

Check out issues labeled:

* [good first issue](https://github.com/solana-foundation/anchor/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)
* [help wanted](https://github.com/solana-foundation/anchor/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22)

### Claim an issue

Comment on the issue to claim it, then fork and open a PR.

## Development guidelines

### Before coding

* Choose a descriptive branch name
* Enable [commit signing](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits)

### While coding

* Submit a draft PR early
* Only change code relevant to your PR
* Keep comments under 80 characters per line
* Write adversarial tests (test failure cases, not just success)

### After coding

* Build docs with `cargo doc --open` and fix broken links
* Update CLI templates if needed
* Add new test folders to [CI](./.github/workflows/tests.yaml)

## Code of conduct

Be respectful and constructive. See [CODE\_OF\_CONDUCT.md](https://github.com/solana-foundation/anchor/blob/master/CODE_OF_CONDUCT.md).

## Development setup

```bash theme={null}
# Clone repository
git clone https://github.com/solana-foundation/anchor
cd anchor

# Install dependencies (Rust, Solana CLI, Node.js)
# See installation guide

# Build Anchor
cargo build

# Run tests
cargo test
```

## Project structure

* `lang/` - Core Anchor framework
* `cli/` - Anchor CLI implementation
* `client/` - Rust client library
* `ts/` - TypeScript client library
* `spl/` - SPL program integrations
* `tests/` - Integration tests and examples

## Submitting PRs

1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Add tests
5. Update documentation
6. Submit PR with clear description

### PR review process

* Maintainers will review your PR
* Address any feedback
* Once approved, PR will be merged

## Communication

* [Discord](https://discord.gg/NHHGSXAnXk) - Ask questions and discuss features
* [GitHub Discussions](https://github.com/solana-foundation/anchor/discussions) - Longer-form discussions
* [GitHub Issues](https://github.com/solana-foundation/anchor/issues) - Bug reports and feature requests

## License

Contributions are licensed under [Apache 2.0](https://github.com/solana-foundation/anchor/blob/master/LICENSE).

## Recognition

Contributors are recognized in the [README](https://github.com/solana-foundation/anchor#thanks-).

Thank you for helping make Anchor better! 🙏
