Project conventions

From sequenzia/agent-alchemy · View interactive version

Project conventions is an AI agent skill from the GitHub repository sequenzia/agent-alchemy. Guides discovery and application of project-specific conventions including code patterns, naming, structure, and team practices. Use when exploring a codebase or implementing features to match existing patterns.

How to use this skill

Skill file

Project Conventions

This skill guides you in discovering and applying project-specific conventions. Every codebase has its own patterns and practices -- your job is to find them and follow them.


Convention Discovery Process

Step 1: Project Configuration

Check these files for explicit conventions:

Code Style:

Project Structure:

Documentation:

Step 2: Existing Code Patterns

Study the codebase to find implicit conventions:

File Organization:

Naming Patterns:

Import Patterns:

Step 3: Similar Features

Find features similar to what you're building:

  1. Search for similar functionality:
  1. Study the implementation:
  1. Note the patterns:

Common Convention Areas

Naming Conventions

Discover by example:

Common patterns:

File Structure

Discover the pattern:

Common patterns:

Flat structure:

components/
  Button.tsx
  Button.test.tsx
  Button.styles.ts

Folder per component:

components/
  Button/
    index.ts
    Button.tsx
    Button.test.tsx
    Button.module.css

Feature-based:

features/
  auth/
    components/
    hooks/
    api.ts
    types.ts

Error Handling

Discover the pattern:

Apply what you find:

Testing Patterns

Discover the pattern:

Match the patterns:

API Patterns

Discover the pattern:

Match the patterns:


Convention Application Checklist

When implementing a feature, verify you're following conventions for:

Code Style

Structure

Patterns

Testing

Documentation


When Conventions Conflict

Sometimes you'll find inconsistent patterns:

  1. Prefer newer code - Recent files often reflect current team preferences
  2. Prefer maintained code - Active parts of the codebase reflect current practices
  3. Prefer documented conventions - Explicit rules in configs override implicit patterns
  4. Ask if unclear - When in doubt, ask the user which pattern to follow

Red Flags

Watch for these signs that you might be breaking conventions:

When you notice these, stop and investigate the existing conventions more carefully.


Integration Notes

What this component does: Provides a systematic methodology for discovering and applying project-specific conventions -- from configuration files and existing code patterns to testing approaches and API styles.

Capabilities needed: File reading, file searching (by name pattern and content) for convention discovery

Adaptation guidance: This is a methodology guide, not a tool-specific workflow. The discovery steps describe what to look for; adapt the specific search operations to your platform's file access capabilities.

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.