Deprecation Notices
Skill Profile
(Select at least one profile to enable specific modules)
Overview
API v1 will be deprecated on 2026-05-15 and removed on 2026-08-15.
Please migrate to API v2 before the sunset date.
Why This Matters
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 / Constraints / Non-goals
- Assumptions:
- Development environment is properly configured
- Required dependencies are available
- Team has basic understanding of domain
- Constraints:
- Must follow existing codebase conventions
- Time and resource limitations
- Compatibility requirements
- Non-goals:
- This skill does not cover edge cases outside scope
- Not a replacement for formal training
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 (QA Strategy)
| Type |
Focus Area |
Required Scenarios / Mocks |
| Unit |
Core Logic |
Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |
| Integration |
DB / API |
All external API calls or database connections must be mocked during unit tests |
| E2E |
User Journey |
Critical user flows to test |
| Performance |
Latency / Load |
Benchmark requirements |
| Security |
Vuln / Auth |
SAST/DAST or dependency audit |
| Frontend |
UX / A11y |
Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |
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 & Error Recovery
(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)
- Thinking Process: Analyze root cause before fixing. Do not brute-force.
- Fallback Strategy: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.
- Self-Review: Check against Guardrails & Anti-patterns before finalizing.
- Output Constraints: Output ONLY the modified code block. Do not explain unless asked.
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: deprecation-notices3description: API v1 will be deprecated on **2026-05-15** and removed on **2026-08-15**. Use when this capability is needed.4---56# Deprecation Notices78## 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## Overview17API v1 will be deprecated on **2026-05-15** and removed on **2026-08-15**. 18Please migrate to API v2 before the sunset date.1920## Why This Matters21- **<Benefit>**: <short explanation>22- **<Benefit>**: <short explanation>23- **<Benefit>**: <short explanation>2425## Core Concepts & Rules2627### 1. Core Principles28- Follow established patterns and conventions29- Maintain consistency across codebase30- Document decisions and trade-offs3132### 2. Implementation Guidelines33- Start with the simplest viable solution34- Iterate based on feedback and requirements35- Test thoroughly before deployment363738## Inputs / Outputs / Contracts39* **Inputs**:40 - <e.g., env vars, request payload, file paths, schema>41* **Entry Conditions**:42 - <Pre-requisites: e.g., Repo initialized, DB running, specific branch checked out>43* **Outputs**:44 - <e.g., artifacts (PR diff, docs, tests, dashboard JSON)>45* **Artifacts Required (Deliverables)**:46 - <e.g., Code Diff, Unit Tests, Migration Script, API Docs>47* **Acceptance Evidence**:48 - <e.g., Test Report (screenshot/log), Benchmark Result, Security Scan Report>49* **Success Criteria**:50 - <e.g., p95 < 300ms, coverage ≥ 80%>5152## Skill Composition53* **Depends on**: None54* **Compatible with**: None55* **Conflicts with**: None56* **Related Skills**: None5758## Quick Start / Implementation Example59601. Review requirements and constraints612. Set up development environment623. Implement core functionality following patterns634. Write tests for critical paths645. Run tests and fix issues656. Document any deviations or decisions6667```python68# Example implementation following best practices69def example_function():70 # Your implementation here71 pass72```737475## Assumptions / Constraints / Non-goals7677* **Assumptions**:78 - Development environment is properly configured79 - Required dependencies are available80 - Team has basic understanding of domain81* **Constraints**:82 - Must follow existing codebase conventions83 - Time and resource limitations84 - Compatibility requirements85* **Non-goals**:86 - This skill does not cover edge cases outside scope87 - Not a replacement for formal training888990## Compatibility & Prerequisites9192* **Supported Versions**:93 - Python 3.8+94 - Node.js 16+95 - Modern browsers (Chrome, Firefox, Safari, Edge)96* **Required AI Tools**:97 - Code editor (VS Code recommended)98 - Testing framework appropriate for language99 - Version control (Git)100* **Dependencies**:101 - Language-specific package manager102 - Build tools103 - Testing libraries104* **Environment Setup**:105 - `.env.example` keys: `API_KEY`, `DATABASE_URL` (no values)106107108## Test Scenario Matrix (QA Strategy)109110| Type | Focus Area | Required Scenarios / Mocks |111| :--- | :--- | :--- |112| **Unit** | Core Logic | Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |113| **Integration** | DB / API | All external API calls or database connections must be mocked during unit tests |114| **E2E** | User Journey | Critical user flows to test |115| **Performance** | Latency / Load | Benchmark requirements |116| **Security** | Vuln / Auth | SAST/DAST or dependency audit |117| **Frontend** | UX / A11y | Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |118119120## Technical Guardrails & Security Threat Model121122### 1. Security & Privacy (Threat Model)123* **Top Threats**: Injection attacks, authentication bypass, data exposure124- [ ] **Data Handling**: Sanitize all user inputs to prevent Injection attacks. Never log raw PII125- [ ] **Secrets Management**: No hardcoded API keys. Use Env Vars/Secrets Manager126- [ ] **Authorization**: Validate user permissions before state changes127128### 2. Performance & Resources129- [ ] **Execution Efficiency**: Consider time complexity for algorithms130- [ ] **Memory Management**: Use streams/pagination for large data131- [ ] **Resource Cleanup**: Close DB connections/file handlers in finally blocks132133### 3. Architecture & Scalability134- [ ] **Design Pattern**: Follow SOLID principles, use Dependency Injection135- [ ] **Modularity**: Decouple logic from UI/Frameworks136137### 4. Observability & Reliability138- [ ] **Logging Standards**: Structured JSON, include trace IDs `request_id`139- [ ] **Metrics**: Track `error_rate`, `latency`, `queue_depth`140- [ ] **Error Handling**: Standardized error codes, no bare except141- [ ] **Observability Artifacts**:142 - **Log Fields**: timestamp, level, message, request_id143 - **Metrics**: request_count, error_count, response_time144 - **Dashboards/Alerts**: High Error Rate > 5%145146147## Agent Directives & Error Recovery148*(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)*149150- **Thinking Process**: Analyze root cause before fixing. Do not brute-force.151- **Fallback Strategy**: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.152- **Self-Review**: Check against Guardrails & Anti-patterns before finalizing.153- **Output Constraints**: Output ONLY the modified code block. Do not explain unless asked.154155156## Definition of Done (DoD) Checklist157158- [ ] Tests passed + coverage met159- [ ] Lint/Typecheck passed160- [ ] Logging/Metrics/Trace implemented161- [ ] Security checks passed162- [ ] Documentation/Changelog updated163- [ ] Accessibility/Performance requirements met (if frontend)164165166## Anti-patterns / Pitfalls167168* ⛔ **Don't**: Log PII, catch-all exception, N+1 queries169* ⚠️ **Watch out for**: Common symptoms and quick fixes170* 💡 **Instead**: Use proper error handling, pagination, and logging171172173## Reference Links & Examples174175* Internal documentation and examples176* Official documentation and best practices177* Community resources and discussions178179180## Versioning & Changelog181182* **Version**: 1.0.0183* **Changelog**:184 - 2026-02-22: Initial version with complete template structure185186---187> Converted and distributed by [TomeVault](https://tomevault.io/claim/amnadtaowsoam) — claim your Tome and manage your conversions.188<!-- tomevault:4.0:skill_md:2026-04-13 -->