This example is a Standard-tier .clinerules/ setup for a typical professional Python project.
It includes:
documentation.mdfor Google-style docstrings, coverage expectations, and README guidance.git.mdfor Conventional Commits, feature-branch workflow, and issue linking.coding.mdfor PEP 8 style, naming, type hints, error handling, logging, and complexity limits.
-
Copy this example's
.clinerules/directory into the root of your Python project. -
Ensure your project now has files like:
.clinerules/documentation.md .clinerules/git.md .clinerules/coding.md -
Instruct Cline to follow the rules in your
.clinerules/directory. -
Adjust the copied rules to match team preferences and domain requirements.
This example is based on these Standard templates:
To use a different strictness level, replace one or more files with the corresponding template:
../../clinerules-templates/documentation/basic.mdor../../clinerules-templates/documentation/strict.md../../clinerules-templates/git/basic.mdor../../clinerules-templates/git/strict.md../../clinerules-templates/coding/basic.mdor../../clinerules-templates/coding/strict.md