Platform Product Design
Skill Profile
(Select at least one profile to enable specific modules)
Overview
Platform Product Design enables creation of multi-tenant, extensible platforms that support third-party developers, partners, and ecosystem growth. This capability is essential for SaaS platforms, marketplaces, and any product requiring extensibility and scalability.
Why This Matters
Strategic Necessity:
- Multi-Tenancy: Support multiple customers efficiently
- Extensibility: Enable third-party integrations and extensions
- Scalability: Handle growth across customers and users
- Ecosystem Growth: Foster partner and developer ecosystem
- Revenue Diversity: Multiple revenue streams (subscriptions, marketplace, etc.)
Product Thinking:
Solves critical problem of "single-tenant architecture" where each customer requires separate deployment, leading to high operational costs and slow feature delivery. Platform Product Design provides systematic approach to creating shared multi-tenant platforms that enable efficient resource utilization while maintaining proper isolation between tenants.
Core Concepts & Rules
1. Core Principles
- Follow established patterns and conventions
- Maintain consistency across codebase
- Document decisions and trade-offs
2. Implementation Guidelines
- Start with the simplest viable solution
- Iterate based on feedback and requirements
- Test thoroughly before deployment
Inputs / Outputs / Contracts
- Inputs:
- <e.g., env vars, request payload, file paths, schema>
- Entry Conditions:
- <Pre-requisites: e.g., Repo initialized, DB running, specific branch checked out>
- Outputs:
- <e.g., artifacts (PR diff, docs, tests, dashboard JSON)>
- Artifacts Required (Deliverables):
- <e.g., Code Diff, Unit Tests, Migration Script, API Docs>
- Acceptance Evidence:
- <e.g., Test Report (screenshot/log), Benchmark Result, Security Scan Report>
- Success Criteria:
- <e.g., p95 < 300ms, coverage ≥ 80%>
Skill Composition
- Depends on: None
- Compatible with: None
- Conflicts with: None
- Related Skills: None
Quick Start / Implementation Example
- Review requirements and constraints
- Set up development environment
- Implement core functionality following patterns
- Write tests for critical paths
- Run tests and fix issues
- Document any deviations or decisions
# Example implementation following best practices
def example_function():
# Your implementation here
pass
Assumptions
- Tenant requirements are well-defined
- Infrastructure supports multi-tenancy
- Third-party developers will use platform APIs
- Sufficient resources for scaling
- Billing and payment systems available
Compatibility & Prerequisites
- Supported Versions:
- Python 3.8+
- Node.js 16+
- Modern browsers (Chrome, Firefox, Safari, Edge)
- Required AI Tools:
- Code editor (VS Code recommended)
- Testing framework appropriate for language
- Version control (Git)
- Dependencies:
- Language-specific package manager
- Build tools
- Testing libraries
- Environment Setup:
.env.example keys: API_KEY, DATABASE_URL (no values)
Test Scenario Matrix
| Scenario |
Description |
Expected Outcome |
| Tenant Provisioning |
Provision new tenant |
Tenant with isolated resources |
| Database Isolation |
Test database isolation |
Proper tenant data isolation |
| API Access |
Test third-party API access |
Working API with proper auth |
| Resource Quotas |
Test resource limits |
Quotas enforced correctly |
| Tenant Termination |
Terminate tenant |
Resources cleaned up properly |
| Scaling |
Test horizontal scaling |
Platform scales with load |
Technical Guardrails & Security Threat Model
1. Security & Privacy (Threat Model)
- Top Threats: Injection attacks, authentication bypass, data exposure
2. Performance & Resources
3. Architecture & Scalability
4. Observability & Reliability
Agent Directives
- Isolation Phase: Always implement proper tenant isolation
- Provisioning Phase: Always validate tenant configuration
- Integration Phase: Always setup SSO and API keys
- Monitoring Phase: Always monitor tenant performance
- Security Phase: Always implement security at all layers
Definition of Done (DoD) Checklist
Anti-patterns / Pitfalls
- ⛔ Don't: Log PII, catch-all exception, N+1 queries
- ⚠️ Watch out for: Common symptoms and quick fixes
- 💡 Instead: Use proper error handling, pagination, and logging
Reference Links & Examples
- Internal documentation and examples
- Official documentation and best practices
- Community resources and discussions
Versioning & Changelog
- Version: 1.0.0
- Changelog:
- 2026-02-22: Initial version with complete template structure
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: platform-product-design3description: Platform Product Design enables creation of multi-tenant, extensible Use when this capability is needed.4---56# Platform Product Design78## Skill Profile9*(Select at least one profile to enable specific modules)*10- [ ] **DevOps**11- [x] **Backend**12- [ ] **Frontend**13- [ ] **AI-RAG**14- [ ] **Security Critical**1516## Overview17Platform Product Design enables creation of multi-tenant, extensible platforms that support third-party developers, partners, and ecosystem growth. This capability is essential for SaaS platforms, marketplaces, and any product requiring extensibility and scalability.1819## Why This Matters20**Strategic Necessity:**2122- **Multi-Tenancy**: Support multiple customers efficiently23- **Extensibility**: Enable third-party integrations and extensions24- **Scalability**: Handle growth across customers and users25- **Ecosystem Growth**: Foster partner and developer ecosystem26- **Revenue Diversity**: Multiple revenue streams (subscriptions, marketplace, etc.)2728**Product Thinking:**2930Solves critical problem of "single-tenant architecture" where each customer requires separate deployment, leading to high operational costs and slow feature delivery. Platform Product Design provides systematic approach to creating shared multi-tenant platforms that enable efficient resource utilization while maintaining proper isolation between tenants.3132---3334## Core Concepts & Rules3536### 1. Core Principles37- Follow established patterns and conventions38- Maintain consistency across codebase39- Document decisions and trade-offs4041### 2. Implementation Guidelines42- Start with the simplest viable solution43- Iterate based on feedback and requirements44- Test thoroughly before deployment454647## Inputs / Outputs / Contracts48* **Inputs**:49 - <e.g., env vars, request payload, file paths, schema>50* **Entry Conditions**:51 - <Pre-requisites: e.g., Repo initialized, DB running, specific branch checked out>52* **Outputs**:53 - <e.g., artifacts (PR diff, docs, tests, dashboard JSON)>54* **Artifacts Required (Deliverables)**:55 - <e.g., Code Diff, Unit Tests, Migration Script, API Docs>56* **Acceptance Evidence**:57 - <e.g., Test Report (screenshot/log), Benchmark Result, Security Scan Report>58* **Success Criteria**:59 - <e.g., p95 < 300ms, coverage ≥ 80%>6061## Skill Composition62* **Depends on**: None63* **Compatible with**: None64* **Conflicts with**: None65* **Related Skills**: None6667## Quick Start / Implementation Example68691. Review requirements and constraints702. Set up development environment713. Implement core functionality following patterns724. Write tests for critical paths735. Run tests and fix issues746. Document any deviations or decisions7576```python77# Example implementation following best practices78def example_function():79 # Your implementation here80 pass81```828384## Assumptions85- Tenant requirements are well-defined86- Infrastructure supports multi-tenancy87- Third-party developers will use platform APIs88- Sufficient resources for scaling89- Billing and payment systems available9091## Compatibility & Prerequisites9293* **Supported Versions**:94 - Python 3.8+95 - Node.js 16+96 - Modern browsers (Chrome, Firefox, Safari, Edge)97* **Required AI Tools**:98 - Code editor (VS Code recommended)99 - Testing framework appropriate for language100 - Version control (Git)101* **Dependencies**:102 - Language-specific package manager103 - Build tools104 - Testing libraries105* **Environment Setup**:106 - `.env.example` keys: `API_KEY`, `DATABASE_URL` (no values)107108109## Test Scenario Matrix110| Scenario | Description | Expected Outcome |111|----------|-------------|------------------|112| Tenant Provisioning | Provision new tenant | Tenant with isolated resources |113| Database Isolation | Test database isolation | Proper tenant data isolation |114| API Access | Test third-party API access | Working API with proper auth |115| Resource Quotas | Test resource limits | Quotas enforced correctly |116| Tenant Termination | Terminate tenant | Resources cleaned up properly |117| Scaling | Test horizontal scaling | Platform scales with load |118119---120121## Technical Guardrails & Security Threat Model122123### 1. Security & Privacy (Threat Model)124* **Top Threats**: Injection attacks, authentication bypass, data exposure125- [ ] **Data Handling**: Sanitize all user inputs to prevent Injection attacks. Never log raw PII126- [ ] **Secrets Management**: No hardcoded API keys. Use Env Vars/Secrets Manager127- [ ] **Authorization**: Validate user permissions before state changes128129### 2. Performance & Resources130- [ ] **Execution Efficiency**: Consider time complexity for algorithms131- [ ] **Memory Management**: Use streams/pagination for large data132- [ ] **Resource Cleanup**: Close DB connections/file handlers in finally blocks133134### 3. Architecture & Scalability135- [ ] **Design Pattern**: Follow SOLID principles, use Dependency Injection136- [ ] **Modularity**: Decouple logic from UI/Frameworks137138### 4. Observability & Reliability139- [ ] **Logging Standards**: Structured JSON, include trace IDs `request_id`140- [ ] **Metrics**: Track `error_rate`, `latency`, `queue_depth`141- [ ] **Error Handling**: Standardized error codes, no bare except142- [ ] **Observability Artifacts**:143 - **Log Fields**: timestamp, level, message, request_id144 - **Metrics**: request_count, error_count, response_time145 - **Dashboards/Alerts**: High Error Rate > 5%146147148## Agent Directives1491. **Isolation Phase**: Always implement proper tenant isolation1502. **Provisioning Phase**: Always validate tenant configuration1513. **Integration Phase**: Always setup SSO and API keys1524. **Monitoring Phase**: Always monitor tenant performance1535. **Security Phase**: Always implement security at all layers154155## Definition of Done (DoD) Checklist156157- [ ] Tests passed + coverage met158- [ ] Lint/Typecheck passed159- [ ] Logging/Metrics/Trace implemented160- [ ] Security checks passed161- [ ] Documentation/Changelog updated162- [ ] Accessibility/Performance requirements met (if frontend)163164165## Anti-patterns / Pitfalls166167* ⛔ **Don't**: Log PII, catch-all exception, N+1 queries168* ⚠️ **Watch out for**: Common symptoms and quick fixes169* 💡 **Instead**: Use proper error handling, pagination, and logging170171172## Reference Links & Examples173174* Internal documentation and examples175* Official documentation and best practices176* Community resources and discussions177178179## Versioning & Changelog180181* **Version**: 1.0.0182* **Changelog**:183 - 2026-02-22: Initial version with complete template structure184185---186> Converted and distributed by [TomeVault](https://tomevault.io/claim/amnadtaowsoam) — claim your Tome and manage your conversions.187<!-- tomevault:4.0:skill_md:2026-04-13 -->