How this skill is triggered — by the user, by Claude, or both
Slash command
/harness:syncThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
ローカルにインストールされているスキルと `~/.config/harness/manifest.json` の内容を比較し、manifest に未登録のスキルをユーザーに提示して追加を提案する。
ローカルにインストールされているスキルと ~/.config/harness/manifest.json の内容を比較し、manifest に未登録のスキルをユーザーに提示して追加を提案する。
以下のコマンドを実行してインストール済みスキルの一覧を取得する:
npx skills ls --json
npx skills ls -g --json
両コマンドの結果をマージしてインストール済みスキルの完全なリストを作成する。
~/.config/harness/manifest.json を読み込む。
ファイルが存在しない場合:
{
"skills": {},
"profiles": {}
}
インストール済みスキルのリストと manifest の skills セクションを比較し、manifest に登録されていないスキルを特定する。
未登録スキルが存在しない場合:
未登録スキルごとに以下を行う:
SKILL.md を読み込んで description を確認する各未登録スキルについて以下の情報を提示し、manifest への追加を確認する:
以下のスキルが manifest に登録されていません。追加しますか?
1. <name>
- source: <source>
- description: <description>
- 推奨 condition: <condition>
追加する / スキップ / condition を変更する
ユーザーが「condition を変更する」を選択した場合は、新しい condition の入力を求める。
ユーザーが追加を確認したスキルを manifest の skills セクションに追加する。
追加形式:
"<name>": {
"source": "<source>",
"condition": "<condition>"
}
更新後の manifest を ~/.config/harness/manifest.json に書き込む。
処理結果をまとめて表示する:
## sync 完了
追加したスキル (<追加数> 件):
- <name> (condition: <condition>)
スキップしたスキル (<スキップ数> 件):
- <name>
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub myuon/harness --plugin harness