Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

skill-refiner技能精炼者

Agent Skill

skill-refiner 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

247

周安装

10

GitHub Stars

3

下载量

78
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:skill-refiner(技能精炼者)
来源仓库:https://github.com/iuliandita/skills
仓库路径:skills/skill-refiner
安装命令:
npx skills add https://github.com/iuliandita/skills --skill skill-refiner
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/iuliandita/skills --skill skill-refiner

简介

skill-refiner 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx 命令从 GitHub 安装,需确认权限范围和是否触发文件读写操作。
  • 建议结合原始 README 核验具体用法,并关注维护状态与联网行为。
  • 使用前请评估是否会执行命令或修改文件,避免意外影响项目结构。

SKILL.md

Skill Refiner: Iterative Self-Improvement Loop

Adaptive evaluation loop for AI skill collections, inspired by Karpathy's AutoResearch. Orchestrates repeated score-improve-verify cycles using skill-creator as the engine and mandatory peer review as an adversarial check (cross-model when a secondary harness is available, fresh-context self-review as the minimum fallback).

When to use

  • Batch-improving the entire skill collection after a period of manual edits
  • Running quality sweeps before a release or publish
  • Triggering a self-improvement cycle where skills bootstrap each other
  • After adding several new skills that need polish and consistency alignment
  • When cross-model perspective would catch single-model blind spots
  • Periodic maintenance: scheduled improvement runs to keep skills current

When NOT to use

  • Single skill review or improvement - use skill-creator (Mode 2)
  • Creating a new skill from scratch - use skill-creator (Mode 1)
  • One-off collection audit without iteration - use skill-creator (Mode 3)
  • Full codebase review (code, not skills) - use full-review
  • Style/slop audit on application code - use anti-slop

Configuration

skill-refiner [--iterations N] [--mode MODE] [--secondary HARNESS] [--threshold N] [--plateau N]
FlagDefaultDescription
--iterations10Maximum iterations for phase 1
--modecircuit-breakerauto, circuit-breaker, or step
--secondaryauto-detectSecondary harness for cross-model review, or none
--threshold85Focus threshold - skip skills scoring above this (user can override max)
--plateau2Minimum score delta to keep iterating

Environment override: SKILL_REFINER_SECONDARY=<harness> (CLI flag takes precedence)

Checkpoint Modes

circuit-breaker (default): runs autonomously, auto-pauses on score regression, contested major flags, or plateau. Always pauses before phase 2.

auto: fully autonomous through phase 1. Still pauses before phase 2 and on contested major flags (non-configurable).

step: pauses after every iteration for manual review. Best for first run or learning.


Performance

  • Batch similar edits and validations to reduce repeated full-collection scans.
  • Prioritize low-scoring or recently changed skills before polishing already-healthy ones.
  • Use focused diffs and line-count checks after each batch to avoid late cleanup churn.

Best Practices

  • Snapshot evaluation criteria before editing the skills that define the criteria.
  • Revert changes that add complexity without improving behavior.
  • Keep run history factual and free of unverifiable score inflation.

Workflow

Phase 0: Setup

  1. Create feature branch: skill-refiner/YYYY-MM-DD-HHMMSS from current HEAD. Preserve dirty worktrees; branching isolates the run, it does not imply cleanup. If already on a run branch for this sweep, record it instead of nesting another branch.
  2. Load run history: read .refiner-runs.json from the collection root (if it exists). Use previous run data for: baseline score comparison (detect regressions from external changes), model/harness change detection (flag if the primary or secondary model changed since last run - new model = new baseline, not a comparable delta), and skip analysis (don't re-attempt improvements that were already tried and reverted in a recent run).
  3. Build skill inventory: list all skills, exclude phase-2 targets (skill-creator, skill-refiner) from the improvement pool
  4. Detect primary harness: check environment to identify which AI CLI is running this session
  5. Probe for secondary harness: run three-step validation (PATH check, config check, smoke test) per references/harness-detection.md. Announce result.
  6. If no secondary found: always fall back to self-review. Spawn a fresh agent on the current harness with the review prompt template from references/harness-detection.md. Label as "same-model fresh-context review" in scoring, weight at 3% instead of 5% (composite becomes gate/40/55/3, renormalize the missing 2% proportionally to AI Self-Check and Behavioral). This catches confirmation bias but shares the primary model's blind spots. Skipping review entirely is not an option - a fresh-context self-review is the minimum bar. If the harness doesn't support subagents, run the review prompt as a separate CLI invocation (claude -p, codex exec, etc.).

Phase 1: Regular Iterations

  1. Iteration 1 - full sweep: score every skill in the pool using the four-component model from references/evaluation-criteria.md

- Structural: run lint-skills.sh + validate-spec.sh - AI Self-Check: invoke skill-creator review mode on each skill - Behavioral: run test prompts from references/test-cases.md. For skills without pre-written test cases, auto-generate 2-3 test prompts from the skill's "When to use" section and quality signals from its AI Self-Check. Log a warning that generated tests are lower quality than hand-written ones. Optionally save generated tests to a test-cases-local.md file alongside test-cases.md so they accumulate across runs. - Cross-model: skip on first iteration (no diff to review yet)

  1. Log baseline scores: record per-skill and aggregate scores
  2. Iteration 2+: enter adaptive focus mode
  3. Select targets: identify skills scoring below the focus threshold
  4. For each targeted skill, run the improvement cycle: a. Read current SKILL.md and all reference files b. Invoke skill-creator review mode - collect findings c. Run behavioral test - score current output quality d. Propose targeted improvements based on findings (not random changes) e. Apply changes to SKILL.md (and references if needed) f. Re-score: run lint + AI Self-Check + behavioral test g. Karpathy gate: if score improved, keep. If not, revert. No exceptions. h. If cross-model review available, send the diff to secondary harness i. Process flags per references/harness-detection.md verification protocol j. If secondary flags major issue and primary agrees: revert k. If secondary flags major issue and primary disagrees: escalate to circuit breaker
  5. Commit iteration: one commit with all improvements from this iteration Format: refactor(skill-refiner): iteration N - skill1(+X), skill2(+Y)
  6. Log iteration summary: --- iteration N / max ------------------------------------------- improved: skill1 (72 > 80 | G:pass A:76 B:78 X:90), skill2 (68 > 73 | G:pass A:70 B:72 X:100) gated: skillZ (lint/spec failed - excluded from scoring) skipped: M skills above threshold reverted: skill3 (proposed change scored -2, rolled back | G:pass A:74 B:69 X:100) contested: skill4 (secondary flagged major, primary disagreed) plateau: yes/no (max delta: +X) -----------------------------------------------------------------
  7. Check termination conditions (phase 1 always flows into phase 2 on termination, except on circuit-breaker pauses which wait for user input first):

- Plateau detected (max delta < plateau threshold)? Terminate phase 1. - All skills above focus threshold? Bump threshold by 5 and continue. If threshold is already at max (95) and all skills still clear it, terminate phase 1. - Iteration cap reached? Terminate phase 1. - Circuit breaker triggered? Pause for user input.

  1. Repeat from step 9 until terminated

Phase 2: Meta-Improvement

  1. Announce: "Entering phase 2 - meta-improvement. This always requires human review."
  2. Snapshot evaluation criteria:

- Copy skill-creator's AI Self-Check section to a temp location - Copy references/evaluation-criteria.md to a temp location - Copy skill-creator's conventions.md reference to a temp location These snapshots are the evaluation baseline for phase 2.

  1. Improve skill-creator: run the improvement cycle (steps 10a-10k) using the snapshot as the evaluation criteria, not skill-creator's live version
  2. Improve skill-refiner: same process, using the snapshot
  3. Improve lint scripts (lint-skills.sh, validate-spec.sh):

- Capture baseline: run both scripts, save full output - Propose improvements - Apply changes - Run regression: compare output to baseline - If false positives or false negatives introduced: revert - If clean: keep

  1. Commit phase 2: one commit per target Format: refactor(skill-refiner): meta - improve <target> (+N)
  2. Pause for human review: display phase 2 changes, wait for approval. This checkpoint is non-configurable - it fires even in --mode auto. A direct user approval such as "continue" or "proceed" counts as approval to resume.

Phase 3: Summary

  1. Final report: write a human-readable report first, then machine-readable run history. Include branch, pool, config, every changed skill, score before/after, delta, files changed, verification commands, peer-review flags, reverted changes, private-skill handling, and skipped checks. Do not output only JSON. === skill-refiner run complete =================================== Branch: skill-refiner/YYYY-MM-DD-HHMMSS Primary: <harness> <version> (<model>, effort: <level>) Secondary: <harness> <version> (<model>, effort: <level>) | none Pool: N skills (skill-creator, skill-refiner excluded) Config: iterations=M, threshold=T, mode=MODE, plateau=P Iterations: N (of max M) Terminated: plateau / threshold / cap / user Score changes: skill1: 62 > 88 (+26) [G:pass A:84 B:86 X:90] skill2: 71 > 85 (+14) [G:pass A:82 B:79 X:100]... skill-creator: 80 > 84 (+4) [G:pass A:82 B:81 X:100] [meta] skill-refiner: 78 > 83 (+5) [G:pass A:80 B:79 X:100] [meta] Aggregate: avg X.X | min X.X | max X.X Reverted: X changes across Y iterations Contested: Z flags escalated to human =================================================================
  2. Write run history: append this run's metadata to .refiner-runs.json in the collection root. Include: run_id, branch, date, primary/secondary harness+model+effort, config, pool size, termination reason, cross-model flag counts, before/after per-skill scores (component breakdown + composite, or clearly labeled estimates if the run used a targeted manual rubric instead of the full automated sweep), and a changes summary. Commit with the phase 3 summary.
  3. Announce branch: remind user to review and merge when ready

AI Self-Check

Before committing any skill modification, verify:

  • Lint passes: lint-skills.sh exits 0 for the modified skill
  • Spec valid: validate-spec.sh exits 0 for the modified skill
  • Score improved: composite score is strictly higher than before the change
  • No content regression: change does not remove critical sections, warnings, or cross-references without replacement
  • Simplicity maintained: change does not add unnecessary complexity for marginal gains
  • Cross-references intact: all skill names in bold still resolve to existing skills
  • Target ~500 lines: modified SKILL.md stays near 500 lines. Hard max 600
  • ASCII only: no non-ASCII characters introduced (except allowed emoji indicators)
  • Immutability respected: no phase-1 modification to evaluation criteria, test cases, lint scripts, skill-creator, or skill-refiner
  • Current source checked: dated versions, CLI flags, API names, and support windows are verified against primary docs before repeating them
  • Hidden state identified: local config, credentials, caches, contexts, branches, cluster targets, or previous runs are made explicit before acting
  • Verification is real: final checks exercise the actual runtime, parser, service, or integration point instead of only linting prose or happy paths
  • Score discipline kept: changes are kept only when they improve measured quality or fix a verified defect
  • Local-only scope respected: public and private skills are separated before commits or release notes

Rules

  1. Immutability in phase 1: never modify references/evaluation-criteria.md, references/test-cases.md, lint-skills.sh, validate-spec.sh, skill-creator, or skill-refiner during phase 1. Violation = abort the run.
  2. Karpathy gate: only directional improvements survive. If a change does not improve the composite score, revert it. No exceptions, no "it looks better."
  3. Verify flags: never take cross-model flags at face value. Primary reviews every flag independently. Disagreements on major flags go to human.
  4. Snapshot before meta: always snapshot evaluation criteria before phase 2. Evaluate against the snapshot, never the live version being modified.
  5. Phase 2 always pauses: even in --mode auto. Non-configurable.
  6. Contested major flags always pause: even in --mode auto. Non-configurable.
  7. Simplicity criterion: all else being equal, simpler is better. Deletions that maintain score are preferred over additions that marginally improve it.
  8. One commit per iteration: bundle improvements, include score deltas in message.
  9. Branch isolation: all work on a feature branch. Never modify main directly.
  10. Human-readable report required: every run ends with a report that names changes, before/after scores, verification, peer-review flags, skipped checks, and next action.
  11. Read before edit: always read the full skill before proposing changes. Never edit from memory or assumption.

Related Skills

  • skill-creator - the evaluation and improvement engine. skill-refiner invokes skill-creator's review mode (Mode 2) for scoring and its improve mode for generating changes. skill-creator handles individual skill quality; skill-refiner handles iteration, prioritization, and orchestration. Primary dependency.
  • full-review - one-off collection audit across code-review, anti-slop, security-audit, and update-docs. Use full-review for a single pass over application code; use skill-refiner for iterative improvement of skill files.
  • anti-slop - code quality patterns. skill-refiner may invoke anti-slop principles through skill-creator during improvement, but does not call anti-slop directly. Different domain: anti-slop audits application code, skill-refiner audits skill files.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.72%
按下载量换算29

Claude

27.39%
按下载量换算21

Cursor

19.01%
按下载量换算15

Gemini CLI

8.88%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/iuliandita/skills --skill skill-refiner 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills