← ClaudeAtlas

speckit.constitutionlisted

Governance Manager - Thiết lập & quản lý Constitution (Source of Law).
wedabro/bro-skills · ★ 1 · Testing & QA · score 75
Install: claude install-skill wedabro/bro-skills
## 🎯 Mission Tạo và duy trì constitution.md — "luật tối cao" mà mọi agent phải tuân thủ. ## 📥 Input - Developer cung cấp: tech stack, principles, constraints - `.agent/knowledge_base/infrastructure.md` (nếu có) ## 📋 Protocol 1. Thu thập từ developer: - Tech stack (frameworks, DB, language) - Docker ports (trong range 8900-8999) - Coding principles (VD: No hardcode, API-first) - Security requirements 2. Tạo/cập nhật `.agent/memory/constitution.md` với sections BẮT BUỘC: - **§1 Infrastructure**: Docker-first policy, port allocation, environments - **§2 Security**: No root containers, no hardcoded secrets, multi-stage builds - **§3 Code Standards**: Language, naming conventions, ENV policy - **§4 Non-Negotiables**: Danh sách rules KHÔNG BAO GIỜ được vi phạm - **§5 Monorepo Rules** (nếu monorepo): - Shared Package Contract: type exports là source of truth - Build Independence: mỗi app phải compile độc lập - Package exports phải match actual file structure - **§6 Docker Deployment Rules**: - CẤM volume shadowing (`- .:/app`) trong production/beta - Dockerfile COPY paths phải tồn tại - CMD entrypoint phải match với build output - Next.js apps phải có thư mục `public/` - **§7 Build-time Safety** (nếu Next.js): - SSG pages (sitemap, generateStaticParams): API calls phải try-catch - fetchApi phải return n