بنقرة واحدة
compliance-rgesn
Ensures eco-responsible IT practices and minimizes environmental impact
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Ensures eco-responsible IT practices and minimizes environmental impact
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Guide users through creating custom VS Code agents with specialized capabilities, tool restrictions, and subagent workflows. Use when users want to create agent modes, define specialized workflows with context isolation, or build multi-stage agent systems with different tool access per stage. Provides structured interview process for comprehensive agent development.
Technology-agnostic, referential-agnostic orchestration framework for all compliance standards (RGAA, RGESN, RGS, RGPD, RGI, W3C-WSG)
Ensures digital accessibility for all users (WCAG 2.1 AA compliance, French RGAA 4.1.2 standard)
Ensures system interoperability via open standards, documented APIs, and standardized data exchange
Ensures personal data protection and privacy rights according to GDPR/RGPD
Ensures information security and compliance with French security standards
| name | compliance-rgesn |
| description | Ensures eco-responsible IT practices and minimizes environmental impact |
| category | Sustainability & Green IT |
| keywords | RGESN, green IT, carbon footprint, energy efficiency, sustainability, e-waste, 2024 edition |
| license | MIT |
| version | 2024 |
Règles de Gouvernance Environnementale du Système Numérique (Environmental Governance Rules for Digital Systems)
Le RGESN officiel du gouvernement français structure la gouvernance environnementale autour de 9 thématiques contenant 78 critères spécifiques.
Principle: Minimize scope, prioritize essentials, design for longevity
Criteria:
Implementation Examples:
// ✅ Minimal design: Core features only
interface WorkshopUI {
title: string
description: string
schedule: Date
participants: User[]
// No: auto-saving, animations, real-time sync if not essential
}
// ❌ Feature bloat: Unnecessary complexity
interface WorkshopUI {
title: string
description: string
schedule: Date
richTextEditor: boolean
autoSave: boolean
realtimeSync: boolean
animatedTransitions: boolean
darkMode: boolean
// Too many non-essential features
}
Principle: Design interfaces that guide efficient user actions, minimize energy-intensive interactions
Criteria:
Implementation Examples:
// ✅ Efficient interactions
const SearchForm = () => (
<form>
<input autoFocus placeholder="Search..." /> {/* Avoid unnecessary animations */}
<button type="submit">Search</button>
</form>
)
// ❌ Energy-intensive interactions
const SearchForm = () => (
<form>
<input
onKeyUp={debounce(liveSearch, 300)} {/* Unnecessary polling */}
placeholder="Search..."
/>
<div className="animated-suggestions">
{/* Auto-updating suggestions with animations */}
</div>
</form>
)
Principle: Minimize data transfer and storage requirements
Criteria:
Implementation Examples:
// ✅ Efficient media delivery
<img
src="image.webp"
alt="Workshop"
loading="lazy"
srcSet="image-small.webp 480w, image-large.webp 1920w"
/>
// ❌ Inefficient media
<img
src="image-uncompressed.png"
alt="Workshop"
width="2000px" {/* Full resolution always */}
/>
<img src="thumbnail.jpg" width="2000px" /> {/* Wrong size */}
Principle: Write efficient, optimized code
Criteria:
Implementation Examples:
// ✅ Efficient operations
const USER_BATCH_SIZE = 20
async function paginateUsers(page: number) {
const offset = (page - 1) * USER_BATCH_SIZE
return db.users.findMany({
skip: offset,
take: USER_BATCH_SIZE,
})
}
// ❌ Inefficient operations
async function getAllUsers() {
return db.users.findMany() // Could load millions of records
}
// ✅ Memoized expensive computation
const getUserStats = memoize((userId: string) => {
return calculateComplexStats(userId)
})
// ❌ Recalculate every time
function getUserStats(userId: string) {
return calculateComplexStats(userId)
}
Principle: Use efficient, renewable hosting and operations
Criteria:
Configuration Checklist:
# ✅ Efficient base image
FROM node:20-alpine
# ❌ Bloated base
FROM ubuntu:latest
RUN apt-get install nodejs
Principle: Support long device lifecycles, minimize hardware requirements
Criteria:
Performance Targets:
<= 3MB total page weight (including all assets)<= 1.5MB JavaScript bundle<= 2 seconds on 4G<= 5 secondsPrinciple: Measure environmental impact and performance
Criteria:
Monitoring Example:
// ✅ Track performance metrics
performance.mark('api-call-start')
const users = await fetchUsers()
performance.mark('api-call-end')
performance.measure('api-call', 'api-call-start', 'api-call-end')
// Monitor Core Web Vitals
new PerformanceObserver((list) => {
for (const entry of list.getEntries()) {
console.log('Metric:', entry.name, entry.value)
}
}).observe({
entryTypes: ['largest-contentful-paint', 'first-input', 'layout-shift'],
})
Principle: Establish sustainability practices organizationally
Criteria:
Phase 1 (High Impact, Quick Wins):
Phase 2 (Medium Impact, Medium Effort):
Phase 3 (Strategic, Long-term):
When reviewing code for RGESN compliance, check:
- [ ] **Design**: Is scope minimal and focused?
- [ ] **Dependencies**: Are all npm packages necessary?
- [ ] **Algorithms**: Are algorithms time/space optimal?
- [ ] **Database**: Are queries indexed and paginated?
- [ ] **Assets**: Are images compressed, fonts optimized?
- [ ] **Caching**: Are responses cached appropriately?
- [ ] **Monitoring**: Are performance metrics tracked?
- [ ] **Infrastructure**: Is hosting renewable-energy powered?
RGESN 2024 requires an official Declaration of Ecodesign documenting the environmental measures and commitments made for digital services. This skill auto-generates this declaration.
# Declaration d'Ecoconception - My Project
# Service: [Service Name]
# Date: [YYYY-MM-DD]
# Version: [Service Version]
ecodesign_declaration:
service_info:
name: 'My Project'
version: 'v1.0.0'
organization: 'My Company'
declaration_date: '2026-03-17'
contact: 'support@my-project.com'
responsible_design:
scope_definition: 'MVP-focused with essential features only'
device_support: 'Multi-year support for devices 4GB+ RAM, 2-core CPU+'
no_forced_upgrades: true
accessibility_priority: true
measures:
- 'Feature prioritization process in place'
- 'Minimum viable product scope enforced'
- 'Responsive design (single codebase)'
user_engagement:
form_minimization: 'Only essential fields required'
keyboard_navigation: 'Full keyboard support available'
auto_refresh: false
auto_play: false
animations_essential_only: true
dark_mode_support: true
notification_strategy: 'User-controlled, no auto-push'
measures:
- 'Keyboard-first interaction design'
- 'Minimal form fields enforced in review'
- 'Dark mode CSS implemented'
content_optimization:
image_format: 'WebP primary, JPEG fallback'
image_compression:
target: '≤ 100KB per image'
achievement: 'Achieved via automatic optimization'
responsive_images: true
lazy_loading: true
video_minimization: true
font_optimization: 'Subset characters, 1-2 typefaces max'
page_weight_budget: '≤ 3MB total'
measures:
- 'Automated image optimization pipeline'
- 'Lazy loading on all images'
- 'WebP format with fallbacks'
- 'Font subsetting for Latin characters'
development_practices:
algorithm_optimization: 'O(n) preferred, O(n²) avoided'
memory_management: 'Proper cleanup, garbage collection verified'
dependency_audit: 'Regular npm audit, unused deps removed'
code_splitting: true
tree_shaking: true
minification: true
request_batching: true
caching_strategy: 'HTTP caching + application-level caching'
measures:
- 'Bundle size <1.5MB (gzipped)'
- 'Code splitting per route'
- 'Tree-shaking enabled in build'
- 'Request batching for bulk operations'
- 'Application cache SLAs: 5min-1hr depending on content'
infrastructure:
hosting_provider: 'GCP/AWS with renewable energy commitments'
renewable_energy_percentage: '>= 75%'
auto_scaling: true
containerization: 'Docker + Kubernetes'
connection_pooling: true
circuit_breakers: true
cdn_usage: true
rate_limiting: true
log_archival: 'Archive >30 days to cold storage'
measures:
- 'Hosting on renewable-energy powered infrastructure'
- 'Auto-scaling active, no idle servers'
- 'Redis connection pooling configured'
- 'Circuit breakers for external API calls'
- 'CDN for static assets (75% of requests)'
- 'API rate limiting: 1000 req/min per user'
hardware_lifecycle:
browser_support: 'Last 2 major versions + 1 older version'
bandwidth_optimization: 'Functional on 4G networks'
low_end_device_support: 'Tested on 1GB RAM, 2-core devices'
graceful_degradation: true
offline_support: 'Core features available offline'
hardware_targets: '4GB+ RAM, 2+ cores recommended'
measures:
- 'JavaScript bundle: <1.5MB'
- 'First Contentful Paint: <2s on 4G'
- 'Time to Interactive: <5s on 4G'
- 'Offline-first architecture for core features'
testing_and_monitoring:
core_web_vitals: true
performance_budget:
javascript: '1.5MB gzipped'
css: '150KB gzipped'
images: '2MB total'
page_weight: '3MB total'
monitoring_metrics:
- 'Largest Contentful Paint (LCP): <2.5s'
- 'First Input Delay (FID): <100ms'
- 'Cumulative Layout Shift (CLS): <0.1'
carbon_audits: 'Quarterly'
carbon_footprint_target: '<0.5g CO2 per page load'
tools_used:
- 'Google PageSpeed Insights'
- 'WebsiteCarbon Calculator'
- 'Lighthouse CI'
- 'Performance.now() monitoring'
measures:
- 'Continuous monitoring via Lighthouse CI'
- 'Performance budget enforcement'
- 'Monthly carbon footprint audits'
- 'Real device testing (not just emulation)'
organization_and_governance:
green_it_policy: true
policy_document: 'docs/SUSTAINABILITY.md'
team_training: 'Quarterly RGESN workshops'
code_review_checklist: 'RGESN items included'
sustainability_kpis:
- 'Page weight trend (target: -5% YoY)'
- 'Carbon per request (target: 0.5g CO2)'
- 'Core Web Vitals compliance (target: 90%+)'
audit_frequency: 'Quarterly'
e_waste_procedures: 'Certified recycling partner'
green_hosting_commitment: true
measures:
- 'Documented green IT policy'
- 'Monthly team training sessions'
- 'RGESN checklist in all PRs'
- 'Annual sustainability report'
compliance_summary:
pillars_implemented: 8
criteria_met: '45/48'
compliance_percentage: 94
non_conformities: []
improvement_plan:
q2_2026: 'Add offline PWA capabilities'
q3_2026: 'Carbon reporting dashboard'
q4_2026: 'Hardware lifecycle partnership'
declaration_statement: |
**My Company** déclare par la présente que sa plateforme numérique respecte les critères
d'écoconception définies par les Règles de Gouvernance Environnementale du Système
Numérique (RGESN) 2024.
Cette plateforme a été conçue, développée et déployée selon les principes
d'écoresponsabilité numérique, minimisant l'impact environnemental tout au long
du cycle de vie.
Les mesures énumérées ci-dessus ont été validées et sont régulièrement auditées.
Déclaration officielle signée par: [Nom du responsable]
Date: [Date]
references:
- 'RGESN 2024: https://www.numerique.gouv.fr/publications/rgesn/'
- 'WebsiteCarbon: https://www.websitecarbon.com/'
- 'Lighthouse: https://developers.google.com/web/tools/lighthouse'
- 'EcoGrader: https://ecograder.com/'
Steps to auto-generate your Ecodesign Declaration:
Audit Your Service:
nx run [project]:audit:performance # Performance metrics
nx run [project]:audit:accessibility # WCAG/RGAA compliance
nx run [project]:audit:sustainability # RGESN metrics
Gather Metrics:
npm run lighthouse:report # Core Web Vitals
npm run carbon:audit # Carbon footprint
npm run bundle:analyze # Bundle size
Generate Declaration:
npm run rgesn:generate-declaration \
--service="My Project" \
--version="1.0.0" \
--output="docs/declarations/ecodesign-2026.md"
Sign & Publish:
docs/declarations/ directoryBefore signing the official declaration, verify:
## Pre-Signature Checklist
### Design Pillar
- [ ] MVP scope documented and enforced
- [ ] Feature prioritization process in place
- [ ] Multi-year device support commitment
- [ ] Accessibility built-in, not afterthought
- [ ] No feature bloat observed
### User Experience
- [ ] Keyboard navigation fully functional
- [ ] Form fields minimized to essentials
- [ ] Dark mode option available
- [ ] No auto-playing media
- [ ] Notifications user-controlled
### Content
- [ ] Images: WebP format with fallbacks
- [ ] Page weight: ≤ 3MB verified
- [ ] JavaScript bundle: ≤ 1.5MB gzipped
- [ ] Lazy loading: Implemented on images
- [ ] Fonts: Subsetted, 2 typefaces max
### Code
- [ ] No O(n²) algorithms in hot paths
- [ ] Memory leaks tested and absent
- [ ] Unused dependencies removed
- [ ] Code splitting per route
- [ ] Tree-shaking enabled
### Infrastructure
- [ ] Hosting: Renewable energy powered
- [ ] Auto-scaling: Enabled
- [ ] CDN: Active for static assets
- [ ] Database indexes: Performance verified
- [ ] Rate limiting: Configured
### Hardware Lifecycle
- [ ] Browser support: 2 major + 1 older
- [ ] Low-end devices: Tested <4GB RAM
- [ ] Offline support: Core features work offline
- [ ] Graceful degradation: Verified
### Testing
- [ ] Core Web Vitals: 90%+ compliance
- [ ] Performance budget: Not exceeded
- [ ] Carbon footprint: <0.5g CO2/page
- [ ] Real device testing: Completed
- [ ] Monitoring: Active
### Organization
- [ ] Green IT policy: Documented
- [ ] Team trained: RGESN principles known
- [ ] Audit schedule: Quarterly minimum
- [ ] E-waste procedures: Established
- [ ] KPIs: Tracked
### Signatures
- [ ] Technical Lead: **\*\***\_\_\_\_**\*\***
- [ ] Product Owner: **\*\***\_\_\_\_**\*\***
- [ ] Sustainability Officer: **\*\***\_\_\_\_**\*\***