Implementation standards

From attilaszasz/sdd-pilot · View interactive version

Implementation standards is an AI agent skill from the GitHub repository attilaszasz/sdd-pilot. Reference material with coding standards (defensive coding, error handling, testing patterns). Loaded on demand by the Developer sub-agent (`.github/agents/_developer.md`); not directly invokable.

How to use this skill

Skill file

Implementation Standards

Core Coding Principles

1. Defensive Coding

2. Error Handling

3. Testing Mocks

Common Patterns

Repository Pattern (Data Access)

interface UserRepository {
  findById(id: string): Promise<User | null>
  save(user: User): Promise<User>
}

Service Layer (Business Logic)

Contains all domain rules. Never access DB directly from Controller.

class UserService {
  constructor(repo: UserRepository)
  
  async register(email: string) {
    if (await this.repo.findByEmail(email)) {
      throw new DuplicateEmailError()
    }
    // ... logic
  }
}

Context-Window Efficiency

When context budget is tight (late in long implementation runs):

Review Checklist for Agents

Before confirming task "Complete":

  1. Compiles/runs? (No syntax errors)
  2. Imports clean? (No unused imports)
  3. Types explicit? (No any or var if avoidable)
  4. Comments helpful? (Explain "Why", not "What")
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.