Skip to content
Agent Memory
Skill

/skillhone-auto-optimization

Mandatory interception workflow for a reproducible defect encountered while any Agent is using a skill. Invoke this before editing implementation files or installing dependencies when a referenced script is missing, a documented command or repository test fails, or another

From plugin
skillhone
1973 skills

Claude Code

$ npx -y skills add Tencent/SkillHone --skill skillhone-auto-optimization --agent claude-code

SKILL.md

skillhone-auto-optimization.SKILL.md
name: skillhone-auto-optimization
description: >
  Mandatory interception workflow for a reproducible defect encountered while
  any Agent is using a skill. Invoke this before editing implementation files or
  installing dependencies when a referenced script is missing, a documented
  command or repository test fails, or another target-skill defect is confirmed.
  First create or reuse a sanitized local Issue, then let SkillHone dispatch the
  repair into a tested Git-backed pull request. This applies regardless of the
  Agent, current working directory, or the user's original task. No eval repo or
  benchmark data is required.

SkillHone Auto Optimization

This skill owns the automatic runtime-defect workflow. A normal Agent task remains the entry point: when the selected skill fails for a reproducible reason, dispatch here instead of folding maintenance logic into the task skill itself.

Mandatory interception boundary

Once normal work establishes a reproducible target-skill defect, stop the primary task and invoke this workflow **before** doing any of the following:

  • creating or editing the missing implementation file;
  • installing, upgrading, or changing a runtime dependency;
  • changing the Skill's documented behavior to avoid the failure;
  • committing directly on the default branch;
  • falling back to an ad-hoc repair merely to finish the user's original task.

The only pre-Issue write allowed is the smallest focused reproduction under `.test/` when the repository does not already contain one. If an existing test already reproduces the defect, reuse it unchanged.

This boundary applies to Codex, Claude Code, Cursor, ZCode, Pi, DeepSeek Harness, and any other CLI-capable Agent. It also applies when the Agent's current working directory is the SkillHone source repository but the failing target is elsewhere. A path under `~/.skillhone/skills/<name>/` is an explicit managed-Skill signal: never repair such a repository directly on `main`.

Do not reinterpret this workflow as optional because the user's primary request was to run the broken Skill. Recording and repairing the defect through SkillHone is the way to unblock that request. For new homes, the default auto executor selects native: it prepares work for the current Agent without a DSH installation or new model credential. A missing optional DSH installation blocks only an explicitly selected DSH repair; do not switch executors or providers silently.

The local Git repository must be the repository containing the target skill. One Skill maps to exactly one repository:

skill folder: web-search
Git repository: /path/to/web-search

Do not create repositories named `*-e2e`, `*-test`, or with timestamps for this workflow. Reproduction tests belong inside the affected skill, preferably under its hidden `.test/` directory when they should not affect runtime discovery or normal skill behavior.

An explicit target path is authoritative. When the user names a Skill directory or the Agent is already working inside its Git repository, run every status, duplicate, Issue, test, dispatch, PR, and Wiki command with `skillhone --repo <that-repository>`. Do not redirect the observation to a catalog entry merely because another repository has the same Skill name or identical files. Use `--skill <name>` only when no repository path was supplied and the user selected the cataloged Skill by name.

Workflow

1. Pause the user's primary task as soon as the reproducible defect is confirmed. 2. Reproduce the observation from public target-skill state. 3. Reject provider outages, rate limits, machine-specific state, user config errors, private-only evidence, and non-actionable observations. 4. Select the exact target repository as described above, run `skillhone --repo <target-repository> status`, and search that repository's open and closed local Issues for the same root cause. 5. Create the smallest focused reproduction under `.test/`, then run `skillhone --repo <target-repository> issue create` with sanitized evidence and attach the test in the same command with `--test-path` and `--test-command`. SkillHone creates or reuses one Issue in the local project database. An uncommitted linked test is allowed into the repair branch; any unrelated working-tree change still blocks optimization. 6. Inspect the executor policy. `auto` resolves to `native`, using the current Agent; `dsh` requires an explicit choice. The saved trigger controls when work is prepared, not which model or provider to switch to. If Issue reporting or dispatch already returned a native assignment, reuse it instead of creating a duplicate. For a queued Issue, call the dispatcher or optimize the selected Issue; no extra repair approval is needed. Existing settings without an executor field preserve DSH compatibility; choose `config set --executor auto` explicitly to migrate. 7. For native execution, retain the assignment's `run_id`, `worktree`, `branch`, `base_commit`, tests, and `completion_args` (an argv vector, not a shell command). `awaiting_agent` means prepared and waiting for the current Agent; it is neither running nor failed. Use the current runtime's tools or independent repair role to reproduce, repair, test, and commit in the assigned path. Preserve the current model, account, and provider. Do not install or start DSH for this path. 8. Give the repair role only the safe reproduction and assigned workspace. It must not call SkillHone, modify host audit/state files, alter registered reproduction tests, dispatch another repair, merge, or push. It returns an exact commit SHA, changed files, test commands/results, and remaining limits. 9. The host reviews the actual candidate and independently reruns its checks, then calls `execution complete <run-id> --commit <exact-commit-sha>` in the same repository. The CLI verifies the branch/base/test contract and runs the test gate before

Read more
@tencent
Ships withskillhone

Continually improve your Agent Skills — and keep what was learned.

Stars on GitHub

Momentum

stars in total
197
Star history of Tencent/SkillHone on GitHub, a chart by star-history.com

Other skills on skillhone.

skillhone

skillhone

Local Issue, pull-request, and Wiki workbench for agent skills. Use when a user asks what skill problems, Issues, PRs, repair…

@tencent@tencentInstall Skill

More skills from other plugins.

agent-cost-report

agent-cost-report

Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…

@thedotmack@thedotmackInstall Skill
bot-handoff

bot-handoff

Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…

@vectorize-io@vectorize-ioInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@mempalace@mempalaceInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@milla-jovovich@milla-jovovichInstall Skill

Questions about skillhone-auto-optimization.

Which coding agents can use skillhone-auto-optimization?
skillhone-auto-optimization installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.