Skip to content

dleerdefi/claude-code-construction / skills/submittal-review

submittal-review

Verified

Expert PE review of a submittal (shop drawings, product data, samples, equipment brochures) against specs, drawings, code questions and trade coordination. Produces findings with both sources, trade routing and a completeness gate. Triggers: 'review submittal', 'review shop drawings'.

scripts/shared.py

View on GitHub
"""Shared utilities for skill output scripts."""

from pathlib import Path


def safe_output_path(output: str) -> Path:
    """Return a non-colliding output path.

    If the target file already exists, appends _v2, _v3, etc. to the stem.
    Skills must never overwrite existing files — this ensures prior work is preserved.
    """
    out = Path(output)
    if out.exists():
        stem, suffix = out.stem, out.suffix
        v = 2
        while out.exists():
            out = out.parent / f"{stem}_v{v}{suffix}"
            v += 1
    return out
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: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated 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: 322kUpdated 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: 322kUpdated Claude CodeCodexVerifiedInstall