Skip to content
Back to skills

Ccr Gate Recovery

ASecurity

CCR-specific local gate recovery workflow. Use when asked to fix failing CCR checks, just ci, Rust workspace gates, ccr-ui checks, VS Code extension tests, docs build/audit failures, or noisy aggregate CI output. Applies to Claude Code, Codex, Grok, Kimi, and OMP. Keep existing parallel tests; do not invent a new recovery engine.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 5, 2026
developmenttypescriptrustgoshellgitfrontenddocumentation

Works with

  • claude code
  • vscode
  • cli

Security analysis

A100/100

Scanned November 5, 2026

npx -y skills add bahayonghang/ccr --skill ccr-gate-recovery --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ccr Gate Recovery?

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

Security grade badge for Ccr Gate Recovery
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bahayonghang-ccr-gate-recovery/badge)](https://www.skillsdirectory.com/skills/bahayonghang-ccr-gate-recovery)

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: ccr-gate-recovery
description: CCR-specific local gate recovery workflow. Use when asked to fix failing CCR checks, just ci, Rust workspace gates, ccr-ui checks, VS Code extension tests, docs build/audit failures, or noisy aggregate CI output. Applies to Claude Code, Codex, Grok, Kimi, and OMP. Keep existing parallel tests; do not invent a new recovery engine.
---

# CCR Gate Recovery

Recover local verification gates from the CCR repository root by finding the first real failing step, fixing narrowly, and escalating validation only after the narrow gate is green.

This skill applies to Claude Code, Codex, Grok Build, Kimi Code, and OMP. Use existing repository gates and default test parallelism. Isolate shared environment state in the owning fixture. Keep binding exports in the separate generation gate.

Before implementation approval, inspect and run only authorized checks. After approval, implement and self-fix check roles may edit the approved files. Keep native client, hosted CI, and local test evidence separate.

## Workflow

1. Confirm the current working tree with `git status --short`; preserve unrelated user changes.
2. Reproduce the narrowest failing gate when the user gave one. For aggregate output, identify the first real failure and ignore downstream noise until it is fixed.
3. Inspect only the owning surface:
   - Rust workspace: `crates/**`, `Cargo.toml`, root `justfile`.
   - UI/Tauri: `ccr-ui/src/**`, `ccr-ui/src-tauri/**`, `ccr-ui/tests/**`.
   - VS Code extension: `ccr-vscode/src/**`, `ccr-vscode/package.json`.
   - Docs: `docs/**`, especially `.vitepress/config.mjs` and `scripts/audit-docs.mjs`.
4. Make the smallest behavior-preserving or bug-fixing edit. Do not add dependencies unless explicitly requested.
5. Re-run the same failing gate. When green, run the next broader gate that proves the touched surface.
6. Finish with `git diff --check` and report exact commands run plus any skipped expensive gates.

## Gate Map

### Rust

```powershell
cargo fmt --all --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test --workspace --all-features -- --skip export_bindings
```

Use package-scoped `cargo test -p <crate-name> -- --skip export_bindings` when the failing crate is clear. Independent UI, docs, and extension gates may run in parallel with Rust.

### ccr-ui

```powershell
cd ccr-ui
bun run type-check
bun run lint
bun run test
```

Use root `just ui-check` for the broader UI gate and `just frontend-check` when docs also need to be included.

### VS Code extension

```powershell
cd ccr-vscode
npm run build
npm test
```

Use `npm run lint` or `just ci` inside `ccr-vscode/` when TypeScript config or packaging surfaces changed.

### Docs

```powershell
cd docs
bun run build
bun run audit
```

Fix documentation audits at the source Markdown/config level; do not edit `.vitepress/dist/`.

### Full repository

```powershell
just ci
```

Run this only after narrow gates are green or when the user explicitly asks for the full repo gate.

## Reporting

Keep the final report short:

- failing gate and root cause
- files changed
- validation commands and pass/fail status
- remaining risks or skipped broader gates

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.

Comments

Loading comments…

Newsletter

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