MCP HubMCP Hub
SKILL·BE6A7E

tune

Necmttn
更新日 7 days ago
2 閲覧
116
15
116
GitHubで表示
その他general

について

`tune`スキルは、セッションの振り返りを行い、フック、チェック、ツールアクセスなどの環境改善を提案し、それぞれをトリアージ可能な提案として記録します。生のセッションログを分析し、`ax`を台帳システムとして使用します。開発者は「environment retro」のような特定のフレーズや`/ax:tune`コマンドでこれを起動し、将来のセッションに向けて自身の設定を最適化できます。

クイックインストール

Claude Code

推奨
メイン
npx skills add Necmttn/ax -a claude-code
プラグインコマンド代替
/plugin add https://github.com/Necmttn/ax
Git クローン代替
git clone https://github.com/Necmttn/ax.git ~/.claude/skills/tune

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

ax:tune - what to change in the rig after one session

The user has asked to tune the rig. You read what one session actually did, name the changes to the agent's environment (hooks, checks, steering files, tools, access) that would make the next run cheaper or safer, and file every candidate in ax so it is triageable later. The session log is the primary source; ax is the ledger.

Steps

  1. Call the Skill tool with writing-for-agents for the writing style.

  2. Locate the session. Default is the current one: the id is $CLAUDE_CODE_SESSION_ID and the log is ~/.claude/projects/<cwd-slug>/<id>.jsonl. If the user names another session, take its key. Done when you hold a path that exists.

  3. Make it reviewable in ax, scoped. Run ax ingest here in the background (the bare ax ingest walks every transcript on the machine). Watch its RSS; stop it at 4 GB and record that as a Tool economy finding against ax itself. Continue on the raw log while it runs.

  4. Build the ledger. Run python3 -I scripts/turns.py <log> (add --full to see each command). It prints one line per tool call with ERR, DENY, RETRY, AGENT, BIG flags and a summary of calls, flags and tokens. When ax has the session, add ax sessions show session:<id> --turns --json for timings. Done when every flagged line has a cause you can state.

  5. Hunt candidates in these categories, each with evidence from the ledger (turn, tool calls spent, bytes or tokens wasted) and a fix that names a file.

    • Navigation: the agent took long to find a file or fact. Fix: a pointer in auto-memory or the repo's CLAUDE.md, never a paragraph.
    • Automated checks: a mistake a linter, type check, test or filesystem check would have caught. Read the repo's own check command first (package.json scripts, CI workflow); an existing check that is unwired or broken is the finding. A repo with no pre-commit hook and no CI check is itself a finding.
    • Coding standards: classify the violation first. A mechanical one (banned API, import shape, file-location rule, a command shape) gets a deterministic check: a lint rule, a pre-commit hook, a PreToolUse hook that rewrites and allows rather than denies. Reserve prose rules for judgement calls no check can substitute for, and give them to the reviewer agent, which has the least context pressure.
    • Global AGENTS.md / CLAUDE.md: always-loaded lines that did not bear on this session. Candidates for a pointer and a doc, or deletion.
    • Tool economy: expensive calls. A BIG result, an alias or pager writing ANSI to a pipe, a denial that forced a verbatim resend, a search over the wrong tree. Fix: a rewrite hook, a tty guard, a scoped command.
    • No-ops: steering lines the model already obeys by default. Delete the sentence, not words from it.
    • Information access: a fact the agent needed and could not reach (a session id, a dev-server log, a third-party dashboard). Fix: an env var, a tee, read-only access.

    Done when each candidate has category, evidence, fix, and the file the fix lands in.

  6. Present the candidates to the user in order of severity: cost in this session first, then likelihood of recurrence. One paragraph each. End with which ones are mechanical (a check) and which need judgement (a rule).

  7. File in ax. Read PROPOSALS.md for the payload shapes. Then:

    ax retro brief --session=session:<id>          # writes .ax/tasks/retro/<id>.md
    ax retro emit --session=session:<id> --source=manual --from-file=<json>
    

    The JSON holds tried, worked, failed, next, and one proposals[] entry per candidate, shaped by its form. Set the brief's frontmatter status: completed. Done when ax improve list shows the new proposals.

  8. Apply only when asked. If the user says fix them, apply in severity order, one commit per repo, and re-run the ledger on the next session to confirm the flag class is gone.

Reference

Implementation vs review

Work goes through two stages. The implementation agent explores, writes and debugs under the most context pressure. The review agent receives a diff and has the least. Standards belong to the reviewer; the implementer gets checks and pointers.

Files

  • CLAUDE.md / AGENTS.md: loaded every turn in that repo. Navigation pointers only.
  • CODING_STANDARDS.md: read at review time. Judgement rules.
  • ~/.claude/hooks/*.sh: PreToolUse guards. Prefer permissionDecision: allow with updatedInput over deny.
  • ~/.claude/projects/<slug>/memory/: auto-memory. Pointers and machine-local facts.
  • Skills: docs whose description is a context pointer, or user-invoked commands.

GitHub リポジトリ

Necmttn/ax
パス: skills/tune
0
agent-memoryagent-observabilityai-agentsbunclaude-codecodex
FAQ

よくある質問

tune Skillとは何ですか?

tune はNecmttn が作成した Claude Skillです。Skillは、Claudeが必要に応じて読み込む指示とリソースをまとめ、追加の指示なしで tune に関連するタスクを実行できるようにします。

tune をインストールするには?

このページのインストールコマンドを使用してください。tune をプラグインとして Claude Code に追加するか、リポジトリを skills ディレクトリにクローンし、Claudeを再起動してSkillを読み込みます。

tune はどのカテゴリに属しますか?

tune は その他 カテゴリに属します。

tune は無料で利用できますか?

はい。tune は AIMCP に掲載されており、無料でインストールできます。

関連スキル

sports-betting-analyzer
その他

このClaudeスキルは、スポーツベッティング市場(スプレッド、オーバー/アンダー、プロップベットなど)を分析し、過去の傾向や状況統計を検証することでバリューベットを特定します。教育目的のための実践的な提案を構造化されたマークダウン形式で出力します。開発者はスポーツベッティング分析ツールとして本機能を活用できますが、娯楽および教育目的に限定されている点に留意してください。

スキルを見る
llamaguard
その他

LlamaGuardは、暴力やヘイトスピーチなど6つの安全性カテゴリーにおいて、LLMの入力と出力をモデレートするMetaの70-80億パラメータモデルです。94〜95%の精度を提供し、vLLM、Hugging Face、Amazon SageMakerを使用してデプロイ可能です。このスキルを使用して、AIアプリケーションにコンテンツフィルタリングと安全策を簡単に統合できます。

スキルを見る
cost-optimization
その他

このClaudeスキルは、リソースの適正サイジング、タグ付け戦略、支出分析を通じて、開発者がクラウドコストを最適化することを支援します。AWS、Azure、GCPにわたるクラウド支出の削減とコストガバナンスの実施のためのフレームワークを提供します。インフラコストの分析、リソースの適正サイジング、または予算制約への対応が必要な際にご利用ください。

スキルを見る
quantizing-models-bitsandbytes
その他

このスキルは、bitsandbytesを使用してLLMを8ビットまたは4ビット精度に量子化し、精度の低下を最小限に抑えつつ50〜75%のメモリ削減を実現します。限られたGPUメモリでより大規模なモデルを実行したり、推論を高速化するのに理想的で、INT8、NF4、FP4などのフォーマットをサポートしています。HuggingFace Transformersと統合され、QLoRAトレーニングや8ビットオプティマイザーを可能にします。

スキルを見る