ccoalm/ccl-skills / skills/skill-extraction-workflow
skill-extraction-workflow
Flagged复盘 / 沉淀 / 总结经验 / 补进技能 / 技能缺陷 / 流程优化 / would other teammates hit this / will we forget next time / teamwide recurrence / extract skill / post-mortem / 深度 review·审计技能仓库 / 对标外部技能包找 gap(benchmark superpowers·gstack 等) / 核查全局安装点(~/.config/opencode 等)旧快照是否遮蔽本仓技能 / 本仓(ccl-skills 等共享技能仓)OpenCode 项目配置·命令治理 → turn reusable lessons into durable CCL skills.
scripts/extraction_review_gate.sh
View on GitHub#!/usr/bin/env bash
# Extraction-owned review wrapper: every call is one single-shot pass.
#
# A non-wording extraction owes one review and one challenge, plus a delta pass
# per fixed P0/P1 (references/dual-track-review-gate.md). None of them is bound
# to another pass or to one candidate hash, so this wrapper fixes the controller
# options that make a pass single-shot and refuses the options that would open a
# tracked review chain. The generic controller keeps its chain mode for other
# callers; this lane does not use it.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)"
CONTROLLER="$SCRIPT_DIR/../../code-review/scripts/review_gate.sh"
fail() {
echo "extraction_review_gate_error: $*" >&2
exit 2
}
mode=""
expect_mode=0
for arg in "$@"; do
if [[ "$expect_mode" == 1 ]]; then
mode="$arg"
expect_mode=0
continue
fi
case "$arg" in
--mode) expect_mode=1 ;;
--mode=*) mode="${arg#--mode=}" ;;
# Prefixes cover the controller's unambiguous abbreviations as well as the
# full spellings, so a shortened flag cannot reopen a chain.
--challenge-b*|--challenge-i*)
fail "the extraction lane fixes the challenge budget and index; do not pass $arg" ;;
--review-c*|--review-l*|--au*|--prio*|--pre*|--com*)
fail "the extraction lane is single-shot; review-chain option $arg is not accepted" ;;
esac
done
case "$mode" in
review) fixed=(--challenge-budget 0) ;;
challenge) fixed=(--challenge-budget 1 --challenge-index 1) ;;
"") fail "pass --mode review or --mode challenge" ;;
*) fail "the extraction lane runs only --mode review or --mode challenge, not $mode" ;;
esac
if [[ ! -x "$CONTROLLER" ]]; then
fail "code-review controller is unavailable"
fi
exec bash "$CONTROLLER" --review-lane extraction "${fixed[@]}" "$@"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 471k | Updated | Claude CodeCodex | Verified | Install |
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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 available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |