بنقرة واحدة
skill-improve
Analyze decision traces and propose skill mutations based on accumulated feedback patterns.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Analyze decision traces and propose skill mutations based on accumulated feedback patterns.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Autonomous code refactoring agent that rewrites messy functions, splits large files, removes duplication, improves naming, enforces structure, and preserves behavior.
Interact with Anytype's local REST API to manage spaces, objects, types, properties, tags, lists, and search.
Generate API integration test suites from Harnessy regression artifacts using a QA profile plus optional delivery-profile adapters.
Generate browser integration suites from Harnessy regression artifacts using a QA profile plus optional delivery-profile adapters for fixtures, routes, and helper imports.
End-to-end product development orchestrator with human-in-the-loop reviews.
Safe repo pull/push workflow that targets the repository integration branch, uses deterministic planning, and keeps PRs moving with a bounded autonomous resolution loop.
| name | skill-improve |
| description | Analyze decision traces and propose skill mutations based on accumulated feedback patterns. |
| disable-model-invocation | true |
| allowed-tools | Read, Write, Bash, Grep, Glob |
| argument-hint | <skill-name> |
Analyze accumulated decision traces for a skill and propose concrete, evidence-backed edits to SKILL.md, command docs, or scripts. This is the long loop of the skill evolution system.
The short loop (trace consultation during execution) gives immediate benefit by reading past feedback. This skill creates durable improvement by changing the skill's instructions so future runs don't repeat the same mistakes.
skill-name — the skill to improveTemplate paths are resolved from ${AGENTS_SKILLS_ROOT}/skill-improve/.
Run the trace analysis:
python3 "${AGENTS_SKILLS_ROOT}/_shared/trace_query.py" stats --skill "<skill-name>"
python3 "${AGENTS_SKILLS_ROOT}/_shared/trace_query.py" patterns --skill "<skill-name>"
If no traces exist, report "No decision traces found for <skill-name>. Run the skill with trace capture enabled to accumulate feedback before improving." and stop.
If traces exist but all gates have avg refinement_loops < 0.5, report "Traces exist but feedback signal is weak — most gates pass on first try. No improvements needed yet." and stop.
From the stats and patterns output, identify:
gate.type: "retrospective"Rank by impact: gates with more traces and higher avg loops get priority.
If ~/.agents/traces/<skill-name>/component_index.json exists, read it as supporting descriptive evidence:
The component index may help rank and explain proposals, but trace evidence remains primary.
Read the skill's SKILL.md, command docs (commands/*.md), and any script files that the feedback targets. Understand the current rules, constraints, and phase logic.
The skill files live at:
${AGENTS_SKILLS_ROOT}/<skill-name>/SKILL.md${AGENTS_SKILLS_ROOT}/<skill-name>/commands/*.md${AGENTS_SKILLS_ROOT}/<skill-name>/scripts/*For each high-friction gate or recurring pattern, propose a specific, minimal edit to the skill:
Each proposal must:
Present each proposal as a numbered list with:
Proposal 1: [title]
Evidence: [N] traces show [pattern] at gate [gate_name] (avg [X] refinement loops)
File: [path]
Change:
OLD: [exact text being replaced]
NEW: [exact replacement text]
Expected impact: [what changes for future runs]
Ask the user: "Which proposals do you want to apply? (all / numbers / none)"
Improvements are applied to the installed copy at ${AGENTS_SKILLS_ROOT}/<skill-name>/ (~/.agents/skills/<skill-name>/). This is the copy agents read at runtime, so improvements take effect immediately.
The source of truth in the Harnessy shared source tree (tools/flow-install/skills/<skill-name>/) is NOT modified. When the improvement is proven stable, promote it back through the normal contribution path.
For each accepted proposal:
${AGENTS_SKILLS_ROOT}/<skill-name>/.manifest.yaml (e.g., 0.8.0 → 0.8.1).~/.agents/traces/<skill-name>/improvements.ndjson:
{
"improvement_id": "imp_<YYYYMMDD>_<NNN>",
"timestamp": "<ISO 8601>",
"skill": "<skill-name>",
"from_version": "<old>",
"to_version": "<new>",
"trace_ids_consumed": ["<trace_id>", ...],
"changes": [
{
"file": "<relative path>",
"section": "<section name>",
"type": "<added_constraint|modified_criteria|new_check|template_change|script_change>",
"summary": "<one-line description>"
}
],
"accepted_by": "<user>"
}
After applying improvements:
python3 "${AGENTS_SKILLS_ROOT}/_shared/trace_query.py" summarize --skill "<skill-name>"
After applying improvements, check if the skill has unpromoted improvements relative to the shared source tree:
python3 "${AGENTS_SKILLS_ROOT}/_shared/promote_check.py" check \
--skill "<skill-name>" \
--installed-root "${AGENTS_SKILLS_ROOT}" \
--source-root "<flow-repo>/tools/flow-install/skills"
Use the Harnessy repo root from the current working directory if tools/flow-install/skills/ exists, otherwise fall back to $HOME/.cache/harnessy/tools/flow-install/skills.
Summarize:
/skill-validate <skill-name> to verify the updated skill"/skill-promote <skill-name> to push them to the shared source tree."/skill-improveThis skill participates in the skill evolution system by capturing decision traces at gate resolutions and consulting accumulated feedback.
Before executing any step with a quality or human gate, query accumulated decision traces:
python3 "${AGENTS_SKILLS_ROOT}/_shared/trace_query.py" recent \
--skill "skill-improve" --gate "<gate_name>" --limit 5 --min-loops 1
If patterns or recent feedback exist, incorporate them as additional constraints. Do not cite traces to the user unless asked.
After every gate resolves, capture a decision trace:
python3 "${AGENTS_SKILLS_ROOT}/_shared/trace_capture.py" capture \
--skill "skill-improve" \
--gate "<gate_name>" --gate-type "<human|quality>" \
--outcome "<approved|rejected|passed|failed>" \
--refinement-loops <N> \
[--feedback "<user's feedback text>"] \
[--category <CATEGORY>]
After completion, ask: "Any feedback on this skill-improve run? (skip to finish)" If provided, capture via trace_capture.py with gate "run_retrospective" and gate-type "retrospective".
improvements.ndjsonindex.md summary