Context and commands for working with CivicLedger, a FedRAMP-compliant document management system with AES-256-GCM encryption, Spring Boot backend, and Next.js frontend
Provides guidance for working with the CivicLedger codebase, a secure document management system built for US Government/Defense compliance.
When working in the CivicLedger repository, you will follow security-first development practices, maintain immutable audit logs, implement proper RBAC controls, and ensure all documentation stays current.
**System:** Secure document management for FedRAMP/NIST 800-53 compliance
**Backend:** Spring Boot 3.3.0 + PostgreSQL
**Frontend:** Next.js 14+ with TypeScript and TailwindCSS
**Security:** AES-256-GCM encryption, SHA-256 hashing, immutable audit logs
**Before any file storage operation:**
**RBAC enforcement:**
**Audit logging:**
**Backend (Spring Boot):**
**Frontend (Next.js):**
**Key entities:**
**Backend:**
```bash
docker-compose up -d
mvn clean install
mvn spring-boot:run
mvn test
mvn test -Dtest=ClassName
mvn test -Dtest=ClassName#methodName
```
**Frontend:**
```bash
cd frontend
npm install
npm run dev
npm run build
npm start
npm run lint
```
**Always create TODO.md files in the `docs/` directory** for any feature or fix work:
**Keep documentation in sync with code changes:**
**Example 1: Implementing file upload**
1. Create TODO.md in `docs/` outlining upload flow steps
2. Implement encryption in service layer with `@Aspect` audit
3. Calculate SHA-256 hash before storage
4. Store encrypted file with IV and hash
5. Update API documentation with new endpoint
6. Write tests for encryption, hashing, and audit logging
**Example 2: Adding new RBAC role**
1. Document role permissions in `docs/`
2. Update security configuration
3. Add role checks to relevant controllers
4. Update audit logging to capture role-based actions
5. Write integration tests for role enforcement
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/civicledger-claudemd-instructions/raw