Skip to content
Back to skills

Build Status Cache

ASecurity

Skip Phase 7 rebuild when no code changed since Phase 5 build passed. Compares git diff hash against stored hash from last successful build validation. Triggers on: entering Phase 7, checking build status, before final build validation. Returns BUILD_CACHE_HIT to skip or BUILD_CACHE_MISS to re-run build-validator.

  • 123 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 26, 2026
devopsbashgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add closedloop-ai/claude-plugins --skill build-status-cache --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build Status Cache?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build Status Cache
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/closedloop-ai-build-status-cache/badge)](https://www.skillsdirectory.com/skills/closedloop-ai-build-status-cache)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: build-status-cache
description: |
  Skip Phase 7 rebuild when no code changed since Phase 5 build passed.
  Compares git diff hash against stored hash from last successful build validation.
  Triggers on: entering Phase 7, checking build status, before final build validation.
  Returns BUILD_CACHE_HIT to skip or BUILD_CACHE_MISS to re-run build-validator.
context: fork
allowed-tools: Bash
---

# Build Status Cache

Check whether a Phase 7 build-validator launch can be skipped because no code has changed since Phase 5 build validation passed.

## When to Use

1. **After Phase 5 build passes:** Stamp the cache
2. **At Phase 7 build check:** Check the cache before launching build-validator

## Usage

### Stamp (after Phase 5 build passes)

```bash
bash ${CLAUDE_SKILL_DIR}/scripts/check_build_cache.sh <WORKDIR> stamp
```

Output: `BUILD_CACHE_STAMPED`

### Check (before Phase 7 build)

```bash
bash ${CLAUDE_SKILL_DIR}/scripts/check_build_cache.sh <WORKDIR>
```

## Interpreting Output

### Cache Hit

```
BUILD_CACHE_HIT
```

**Action:** Skip the Phase 7 build-validator launch. Build was already validated and no code changed.

### Cache Miss

```
BUILD_CACHE_MISS
reason: <why the cache is stale or missing>
```

**Action:** Run build-validator as normal.

## How It Works

The script hashes `git diff HEAD` output (all uncommitted changes). After Phase 5 passes, this hash is stored. Before Phase 7 runs, the current hash is compared. If Phase 6 (visual QA) made code fixes, the hash changes and build-validator re-runs. If Phase 6 was skipped or made no code changes, the hash matches and build-validator is skipped.

Files in this skill

  • SKILL.md1.6 KB
  • scripts/check_build_cache.sh1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.