A collection of development guidelines and setup instructions for AI coding agents across multiple programming languages and frameworks.
This repository provides standardized guidelines that help AI coding agents write high-quality, maintainable code. The guidelines emphasize simplicity, type safety, proper tooling, and comprehensive validation.
- AGENT_GUIDELINES_BASE.md: Core principles applicable to all languages
- Simplicity and maintainability
- Functional and procedural programming preferences
- Linting and formatting requirements
- Post-implementation validation workflows
- Runtime data validation strategies
-
AGENT_GUIDELINES_TS.md: TypeScript development standards
- Strict type safety configuration
- JSDoc documentation requirements
- Testing with Jest/Vitest
- React patterns and best practices
- Runtime validation with Zod
-
AGENT_GUIDELINES_PYTHON.md: Python development standards
- Type hints and mypy/pyright usage
- PEP 8 compliance
- Testing with pytest
- Data validation with Pydantic
- Async/concurrency patterns
-
AGENT_GUIDELINES_RUST.md: Rust development standards
- Memory safety and ownership
- Error handling with Result types
- Clippy linting configuration
- Documentation standards
- Unsafe code guidelines
- SETUP_PROMPT_TS.md: TypeScript project setup
- Complete tooling configuration (TypeScript, ESLint, Prettier)
- Strict compiler settings
- Required npm scripts
- JSDoc enforcement
All guidelines share these fundamental principles:
- Simplicity First: Use the simplest solution that solves the problem
- Type Safety: Leverage static type systems to catch errors early
- Validation: Validate data at system boundaries using appropriate libraries
- Testing: Write tests alongside implementation
- Documentation: Document all public APIs with examples
- Linting: Run linters frequently and fix all issues before committing
- No Escape Hatches: Avoid language features that bypass safety checks (
any,unsafe,type: ignore, etc.)
After making code changes, agents should always:
- Format: Run the language-specific formatter
- Lint: Check and fix linting errors
- Type Check: Verify type correctness
- Test: Run the test suite
- Build: Ensure the project builds successfully
These guidelines are designed to be:
- Referenced: By AI coding agents during development sessions
- Extended: Teams can build upon these with project-specific requirements
- Adapted: Modified to fit specific project needs while maintaining core principles
| Language | Formatter | Linter | Type Checker | Test Framework |
|---|---|---|---|---|
| TypeScript | Prettier | ESLint | tsc | Jest/Vitest |
| Python | Black | Ruff/Pylint | mypy/pyright | pytest |
| Rust | rustfmt | clippy | cargo check | cargo test |
These guidelines are meant to evolve. Contributions that improve clarity, add missing best practices, or cover additional languages are welcome.
These guidelines are provided as-is for use in AI-assisted development workflows.