Skip to content

MongLong0214/frontier-simplify / skills/frontier-simplify-review

frontier-simplify-review

Unverified

Review a change for concrete defects, check them with a refuter and a reproducer, then check repairs and their regressions against the preserved review. Use for substantial PR reviews or repeated review rounds. Stops automatic review after at most three attempts per PR and names the calling agent's next action; does not guarantee safe merge convergence.

scripts/install-hook.sh

View on GitHub
#!/usr/bin/env bash
# Install from a maintainer-selected skill version. Never update the trusted suite from a candidate commit.
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
exec python3 - "$HERE" "${1:?repository}" "${REVIEW_CONSUMERS_CONFIG:-}" <<'PY'
import os
from pathlib import Path
import shlex
import shutil
import subprocess
import sys
scripts, repo, config = Path(sys.argv[1]), Path(sys.argv[2]).resolve(), sys.argv[3]
try:
    hooks = subprocess.check_output(['git', '-C', str(repo), 'rev-parse', '--git-path', 'hooks']).decode().strip()
    hooks = (repo / hooks).resolve()
    hooks.mkdir(parents=True, exist_ok=True)
    trusted = hooks / 'frontier-simplify-review'
    hook = hooks / 'pre-commit'
    previous = hooks / 'pre-commit.before-review'
    if hook.exists() and not any(marker in hook.read_text() for marker in (
            'frontier-simplify-review installed hook', 'sol-simplify-review installed hook')):
        if previous.exists():
            sys.exit('review-hook: existing hook backup already exists; resolve the two hooks before installing')
        shutil.copy2(hook, previous)
    trusted.mkdir(exist_ok=True)
    # This directory is owned by this installer. Retired code is not part of the selected version.
    if scripts.resolve() != (trusted / 'scripts').resolve():
        if (trusted / 'scripts').exists():
            shutil.rmtree(trusted / 'scripts')
        shutil.copytree(scripts, trusted / 'scripts', ignore=shutil.ignore_patterns('__pycache__'))
    if (scripts.parent / 'SKILL.md').resolve() != (trusted / 'SKILL.md').resolve():
        shutil.copy2(scripts.parent / 'SKILL.md', trusted / 'SKILL.md')
    default = scripts.parents[2] / 'dogfood/consumers.json'
    if config or default.exists():
        source_config = Path(config or default)
        if source_config.resolve() != (trusted / 'consumers.json').resolve():
            shutil.copy2(source_config, trusted / 'consumers.json')
    driver = shlex.quote(str(trusted / 'scripts/lib/commit-check.py'))
    host = shlex.quote(str(trusted))
    before = shlex.quote(str(previous))
    hook.write_text(f'''#!/bin/sh
# frontier-simplify-review installed hook
set -eu
# stdin closed: git leaves it open for the hook, and a suite this spawns then waits on a
# descriptor nobody will write to. Measured: the driver returns in under a second when run
# by hand and never returns when run by git, with no difference but this.
python3 {driver} "$(git rev-parse --show-toplevel)" {host} </dev/null
if [ -x {before} ]; then exec {before} "$@"; fi
''')
    hook.chmod(0o755)
    print(f'review-hook: installed {hook}; tests come from {trusted}')
except (OSError, subprocess.CalledProcessError) as e:
    sys.exit('review-hook: ' + str(e).replace('\n', '; '))
PY
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 470kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall