Skip to content

Snoozer10/synthesize-skills / .agents/skills/repo-standards-engineer

repo-standards-engineer

Verified

Use when extracting codebase standards, response envelopes, and error codes via AST, checking architectural compliance, indexing symbols, shaping specs with rich semantic assertions, or verifying contracts in specs directory

templates/standard_template.md

View on GitHub
# Standard Invariant Template

## 1. Response Envelope
Every API response returned by handlers MUST conform to the standard structure:
```json
{
  "status": "success | error",
  "data": null,
  "error": null,
  "meta": {}
}
```

## 2. Error Code Registry
All application errors MUST map to a declared enum:
- `ERR_INVALID_PAYLOAD`: Validation error on request body.
- `ERR_NOT_FOUND`: Entity does not exist.
- `ERR_UNAUTHORIZED`: Authentication missing or failed.
- `ERR_FORBIDDEN`: Insufficient permissions.
- `ERR_INTERNAL`: Unexpected system exception.

## 3. Database Invariants
- Direct string formatting inside SQL queries is strictly prohibited.
- Parameterized queries must be used at all times.
- Transactions must wrap multi-entity writes.
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 323kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 323kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 323kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 323kUpdated Claude CodeCodexVerifiedInstall