Destynova2/cli-code-skills / cli-audit-data
cli-audit-data
VerifiedAudit PostgreSQL database safety in Rust/SQLx applications. Use for schemas, migrations, constraints, indexes, transactions, repositories, state transitions, idempotency, concurrency, queues, multi-tenancy, soft deletion, ledgers, auditability, repair, database incidents, or whenever SQLx and PostgreSQL changes could violate business invariants under retries, failures, mixed versions, or concurrent execution.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 18.9 KB |
| references/order-reservation-review.md | markdown | 5.9 KB |
| references/review-templates.md | markdown | 2.6 KB |
references/review-templates.md
View on GitHub# Data safety review templates / Canevas de travail
## Contents
- A. Décision de conception
- B. Matrice d'invariants
- C. Interleaving
- D. Machine à états
- E. Compatibilité de migration
- F. Pré-mortem
- G. Revue de code
- H. Homéostasie
- I. Rapport final
---
## A. Décision de conception
```markdown
# Database decision — <sujet>
## Verdict provisoire
SAFE | SAFE WITH CONDITIONS | UNSAFE
## Objectif
## Hors périmètre
## Entités, propriétaires et cardinalités
## Sources de vérité
## Sémantique de NULL
## Temps et cycle de vie
## Tenant, autorisation et confidentialité
## Suppression, rétention et restauration
## Accès dominants et volumes
## Hypothèses
```
## B. Matrice d'invariants
```markdown
| ID | Invariant | Portée | Toujours/éventuel | Garantie principale | Défense secondaire | Détection | Réparation | Preuve |
|---|---|---|---|---|---|---|---|---|
| I1 | | | | | | | | |
```
## C. Interleaving
```markdown
### Scénario C1 — <nom>
Invariant menacé : I...
| Temps | Acteur A | Acteur B | État PostgreSQL | Observation |
|---|---|---|---|---|
| T0 | | | | |
Mécanisme choisi :
Pourquoi il ferme la course :
Résultat si retry :
Test PostgreSQL :
```
## D. Machine à états
```markdown
| Commande | Source | Préconditions | Cible | Écritures | Effet externe | Idempotence |
|---|---|---|---|---|---|---|
```
## E. Compatibilité de migration
```markdown
| Application | Schéma | Lecture | Écriture | Verdict |
|---|---|---|---|---|
| ancienne | ancien | | | baseline |
| ancienne | nouveau | | | |
| nouvelle | ancien | | | |
| nouvelle | nouveau | | | |
| mixte | nouveau | | | |
```
## F. Pré-mortem
```markdown
| Mode de panne | Invariant | Cause | Prévention | Détection | Confinement | Réparation | Test |
|---|---|---|---|---|---|---|---|
```
## G. Revue de code
```markdown
### <BLOCKER|HIGH|MEDIUM|LOW> — <titre>
Emplacement :
Invariant :
Interleaving ou scénario :
Conséquence :
Correction minimale :
Correction structurelle :
Test de non-régression :
```
## H. Homéostasie
```markdown
| Invariant | Requête d'audit | Fréquence | Métrique/seuil | Alerte | Réparation | Dry-run | Replay |
|---|---|---|---|---|---|---|---|
```
## I. Rapport final
```markdown
# Verdict
# Décision de base de données
# Sources de vérité
# Matrice des invariants
# Lois de conservation
# Machine à états
# Concurrence et idempotence
# Garanties PostgreSQL
# Implémentation SQLx
# Plan de migration
# Tests de preuve
# Homéostasie
# Pré-mortem
# Points non prouvés
- À PROUVER SUR POSTGRESQL RÉEL — ...
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |