AI SummaryCocode provides GitHub Copilot users with comprehensive coding standards and best practices guidance, covering type hints, Pydantic models, documentation, and error handling to enforce consistent code quality across teams.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "cocode — Copilot Instructions" prompt rules to my project. Repository: https://github.com/Pipelex/cocode Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Cocode is the friend of your code, it is a powerful command-line tool for analyzing and processing code repositories. It converts repository structures and contents into text formats, extracts code interfaces, and performs software engineering analysis using AI-powered pipelines using Pipelex.
Usage
Structures are meant to indicate what class to use for a particular Concept. In general they use the same name as the concept. Structure classes defined within pipelex_libraries/pipelines/ are automatically loaded into the class_registry when setting up Pipelex, no need to do it manually.
Coding Standards & Best Practices
This document outlines the core coding standards, best practices, and quality control procedures for the codebase.
Type Hints
• Always Use Type Hints • Every function parameter must be typed • Every function return must be typed • Use type hints for all variables where type is not obvious • Use types with Uppercase first letter (Dict[], List[], etc.) • StrEnum • Import from pipelex.types: `python from pipelex.types import StrEnum `
BaseModel Standards
• Respect Pydantic v2 standards • Keep models focused and single-purpose • Use descriptive field names • Use type hints for all fields • Document complex validations • Use Optional[] for nullable fields • Use Field(default_factory=...) for mutable defaults
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts