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/source-register-lifecycle.rb
View on GitHub#!/usr/bin/env ruby
# frozen_string_literal: true
# Emits the source-register lifecycle advisory. This helper never chooses the
# checker exit code; its caller deliberately treats the report as advisory.
require "date"
register = ARGV.fetch(0)
today = Date.today
supersedes = 0
revalidate_when = 0
revalidate_by = 0
overdue = 0
skipped = false
begin
File.foreach(register) do |line|
next unless line.match?(/^\s*\|/)
next if line.match?(/^\s*\|\s*:?-{3,}:?\s*\|/)
supersedes += line.scan(/supersedes:/).length
revalidate_when += line.scan(/revalidate-when:/).length
line.scan(/revalidate-by:\s*(\d{4}-\d{2}-\d{2})(?![\dT:-])/) do |match|
date = begin
Date.strptime(match[0], "%Y-%m-%d")
rescue StandardError
nil
end
next unless date
revalidate_by += 1
next unless date < today
warn "revalidate_overdue: source-register has revalidate-by #{match[0]} (before #{today}) — re-check that externally-anchored rule (advisory, not blocking)"
overdue += 1
end
end
rescue StandardError => e
skipped = true
warn "revalidate_check_skipped: #{e.class}: #{e.message}"
end
unless skipped
puts "source_register_lifecycle_advisory: supersedes=#{supersedes} revalidate_when=#{revalidate_when} revalidate_by=#{revalidate_by} overdue=#{overdue}"
if overdue.zero?
puts "revalidate_check_ok"
else
puts "revalidate_check_advisory: #{overdue} overdue marker(s) above (advisory — not blocking)"
end
end
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 |