platform-patterns

Document and centralize project coding patterns with examples and workflows.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/sncollective/snc-platform --skill platform-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: platform-patterns
Source: https://github.com/sncollective/snc-platform/tree/main/.claude/skills/platform-patterns
Command: npx skills add https://github.com/sncollective/snc-platform --skill platform-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a centralized, human-readable reference for the project's coding patterns and conventions so implementers, reviewers, and designers avoid duplication, inconsistencies, and subtle bugs introduced by ad-hoc solutions.

Core Features & Use Cases

  • Comprehensive pattern definitions covering API design, auth, storage, frontend routing, pagination, uploads, testing, and error handling.
  • Concrete examples and file references that show where and how patterns are implemented in the repository for quick onboarding and code review.
  • Use cases include implementing new routes following "thin handlers, fat services", writing tests that mock Drizzle chains, applying content access gating rules, and standardizing upload replace workflows.

Quick Start

Show the content-access-gate pattern and explain how to apply it to a route handler to return correct 401 versus 403 responses.

Frequently Asked Questions about platform-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize API design and coding patterns across a development team?

You enforce consistent code reviews by applying centralized pattern definitions covering API design, auth, storage, and testing, ensuring reviewers check implementations against documented examples and prescriptive workflows.

What is the content-access-gate pattern for API route handlers?

The thin handlers, fat services pattern structures API routes by keeping handler logic minimal and delegating business logic to service layers, ensuring backend maintainability and testability across the codebase.

How do I write tests that mock Drizzle ORM chains?

Write tests mocking Drizzle chains by following documented testing patterns that provide concrete examples for setting up mock database interactions, ensuring consistent and reliable integration testing workflows.

Does this coding patterns reference cover frontend routing and upload workflows?

Yes, the coding patterns reference covers frontend routing, pagination, and standardized upload replace workflows, providing file references that show exactly where and how these patterns are implemented.