Green Computing Finops
Skill Profile
(Select at least one profile to enable specific modules)
Overview
Sustainable AI & Green Computing extends beyond traditional FinOps (Skill 126) to environmental impact management. By 2026, global organizations won't just look at "financial costs" (Cloud Cost) but will also consider "environmental costs" (Carbon Footprint).
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
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: green-computing-finops3description: Sustainable AI & Green Computing extends beyond traditional FinOps (Skill Use when this capability is needed.4---56# Green Computing Finops78## 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## Overview17Sustainable AI & Green Computing extends beyond traditional FinOps (Skill 126) to environmental impact management. By 2026, global organizations won't just look at "financial costs" (Cloud Cost) but will also consider "environmental costs" (Carbon Footprint).1819---2021## Why This Matters22- **<Benefit>**: <short explanation>23- **<Benefit>**: <short explanation>24- **<Benefit>**: <short explanation>2526## Core Concepts & Rules2728### 1. Core Principles29- Follow established patterns and conventions30- Maintain consistency across codebase31- Document decisions and trade-offs3233### 2. Implementation Guidelines34- Start with the simplest viable solution35- Iterate based on feedback and requirements36- Test thoroughly before deployment373839## Inputs / Outputs / Contracts40* **Inputs**:41 - <e.g., env vars, request payload, file paths, schema>42* **Entry Conditions**:43 - <Pre-requisites: e.g., Repo initialized, DB running, specific branch checked out>44* **Outputs**:45 - <e.g., artifacts (PR diff, docs, tests, dashboard JSON)>46* **Artifacts Required (Deliverables)**:47 - <e.g., Code Diff, Unit Tests, Migration Script, API Docs>48* **Acceptance Evidence**:49 - <e.g., Test Report (screenshot/log), Benchmark Result, Security Scan Report>50* **Success Criteria**:51 - <e.g., p95 < 300ms, coverage ≥ 80%>5253## Skill Composition54* **Depends on**: None55* **Compatible with**: None56* **Conflicts with**: None57* **Related Skills**: None5859## Quick Start / Implementation Example60611. Review requirements and constraints622. Set up development environment633. Implement core functionality following patterns644. Write tests for critical paths655. Run tests and fix issues666. Document any deviations or decisions6768```python69# Example implementation following best practices70def example_function():71 # Your implementation here72 pass73```747576## Assumptions / Constraints / Non-goals7778* **Assumptions**:79 - Development environment is properly configured80 - Required dependencies are available81 - Team has basic understanding of domain82* **Constraints**:83 - Must follow existing codebase conventions84 - Time and resource limitations85 - Compatibility requirements86* **Non-goals**:87 - This skill does not cover edge cases outside scope88 - Not a replacement for formal training899091## 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 Matrix (QA Strategy)110111| Type | Focus Area | Required Scenarios / Mocks |112| :--- | :--- | :--- |113| **Unit** | Core Logic | Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |114| **Integration** | DB / API | All external API calls or database connections must be mocked during unit tests |115| **E2E** | User Journey | Critical user flows to test |116| **Performance** | Latency / Load | Benchmark requirements |117| **Security** | Vuln / Auth | SAST/DAST or dependency audit |118| **Frontend** | UX / A11y | Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |119120121## 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 Directives & Error Recovery149*(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)*150151- **Thinking Process**: Analyze root cause before fixing. Do not brute-force.152- **Fallback Strategy**: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.153- **Self-Review**: Check against Guardrails & Anti-patterns before finalizing.154- **Output Constraints**: Output ONLY the modified code block. Do not explain unless asked.155156157## Definition of Done (DoD) Checklist158159- [ ] Tests passed + coverage met160- [ ] Lint/Typecheck passed161- [ ] Logging/Metrics/Trace implemented162- [ ] Security checks passed163- [ ] Documentation/Changelog updated164- [ ] Accessibility/Performance requirements met (if frontend)165166167## Anti-patterns168#169170## Reference Links & Examples171172* Internal documentation and examples173* Official documentation and best practices174* Community resources and discussions175176177## Versioning & Changelog178179* **Version**: 1.0.0180* **Changelog**:181 - 2026-02-22: Initial version with complete template structure182183---184> Converted and distributed by [TomeVault](https://tomevault.io/claim/amnadtaowsoam) — claim your Tome and manage your conversions.185<!-- tomevault:4.0:skill_md:2026-04-13 -->