DavidCho1999/archaiflow-skills / bundles/code-life-safety/skills/code-compliance-review
code-compliance-review
VerifiedAudits a floor plan, schematic set, or program layout across eight egress and accessibility axes: use and occupant load, egress capacity and exit count, common path of travel, travel distance, exit access and door width, exit separation, accessibility, and fire-resistance assemblies. Trigger on "code review", "egress check", "life safety review", "plan check", "check egress", "accessibility check", "exit count", "travel distance", or a pasted plan with a code question. Works in any jurisdiction. The user names the governing code and edition and supplies each limit by typing it, pasting the clause, or naming a file to read. The skill never supplies a limit from memory or from web search. Writes a dated review file and appends to a project index, with every unverified axis counted on the face of the review. Does not replace the Architect of Record or the AHJ.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.5 KB |
| assets/code-review-template.md | markdown | 3.8 KB |
| references/_provenance.md | markdown | 5.9 KB |
| references/code_editions_by_jurisdiction.md | markdown | 4.9 KB |
| references/egress_axes.md | markdown | 14.6 KB |
| references/ibc_egress_quick_ref.md | markdown | 8.2 KB |
| scripts/append_to_index.py | script | 2.4 KB |
| scripts/init_code_review_workspace.py | script | 1.0 KB |
scripts/append_to_index.py
View on GitHub#!/usr/bin/env python3
"""Append a code-review entry to docs/code-reviews/index.md.
Pure-stdlib, mirrors brief-review/scripts/append_to_index.py.
Required columns: Project, Date, Reviewer, Edition, Occupancy,
Construction Type, Status, Path.
"""
import argparse
import sys
from datetime import date
from pathlib import Path
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--project", required=True, help="Project name as it appears on the review file")
parser.add_argument("--date", default=date.today().isoformat())
parser.add_argument("--reviewer", required=True, help="Reviewer name or initials")
parser.add_argument(
"--edition",
required=True,
help="Code edition basis, e.g. 'IBC 2021 / CBC 2022' or 'IBC 2021 / NYC BC 2022'",
)
parser.add_argument(
"--occupancy",
required=True,
help="IBC use group, e.g. B, A-2, R-2, I-2; mixed as 'B + A-3 (separated)'",
)
parser.add_argument(
"--construction-type",
required=True,
help="IBC Table 601 type, e.g. 'II-B', 'I-A', 'V-B sprinklered'",
)
parser.add_argument(
"--status",
required=True,
choices=["draft", "issued", "AHJ-review", "resolved"],
help="Workflow status of the review",
)
parser.add_argument("--slug", required=True, help="Review slug, e.g. 'acme-hq-l3'")
parser.add_argument("--reviews-dir", default="docs/code-reviews")
args = parser.parse_args()
index = Path(args.reviews_dir) / "index.md"
if not index.exists():
sys.exit(f"Index not found: {index}. Run init_code_review_workspace.py first.")
filename = f"{args.date}-{args.slug}-egress.md"
row = (
f"| {args.project} | {args.date} | {args.reviewer} | {args.edition} | "
f"{args.occupancy} | {args.construction_type} | {args.status} | "
f"[{filename}](./{filename}) |"
)
content = index.read_text()
if any(
line.startswith(f"| {args.project} | {args.date} |")
and args.slug in line
for line in content.splitlines()
):
sys.exit(f"Row already exists for {args.project} / {args.date} / {args.slug}.")
if not content.endswith("\n"):
content += "\n"
content += row + "\n"
index.write_text(content)
print(f"Appended: {args.project}/{args.date}/{args.slug} -> {index}")
if __name__ == "__main__":
main()
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: 471k | 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: 471k | 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: 471k | 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 |