SKILL·BE6A7E

tune

Necmttn
更新于 6 days ago
2 次查看
116
15
116
在 GitHub 上查看
其他general

关于

The `tune` skill performs a session retrospective to propose environment improvements like hooks, checks, and tool access, filing each as a triageable proposal. It analyzes the raw session log and uses `ax` as its ledger system. Developers trigger it via specific phrases like "environment retro" or the `/ax:tune` command to optimize their setup for future sessions.

快速安装

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 是一个 Claude Skill,作者为 Necmttn。Skill 将 Claude 按需加载的说明和资源打包,让 Claude 无需额外提示即可执行与 tune 相关的任务。

如何安装 tune?

使用本页的安装命令:将 tune 作为插件添加到 Claude Code,或将其仓库克隆到 skills 目录,然后重启 Claude 以加载该 Skill。

tune 属于哪个分类?

tune 属于其他分类。

tune 可以免费使用吗?

可以。tune 已收录在 AIMCP,可免费安装。

相关推荐技能

sports-betting-analyzer
其他

该Skill为开发者提供体育博彩数据分析工具,可分析盘口、大小球和特殊投注,识别价值投注机会。它整合历史数据和情景统计,生成包含时间戳的结构化Markdown报告。适用于需要快速获取博彩市场洞察的娱乐或教育类应用开发。

查看技能
llamaguard
其他

LlamaGuard是Meta推出的7-8B参数内容审核模型,专门用于过滤LLM的输入和输出内容。它能检测六大安全风险类别(暴力/仇恨、性内容、武器、违禁品、自残、犯罪计划),准确率达94-95%。开发者可通过HuggingFace、vLLM或Sagemaker快速部署,并能与NeMo Guardrails集成实现自动化安全防护。

查看技能
cost-optimization
其他

这个Claude Skill帮助开发者优化云成本,通过资源调整、标记策略和预留实例来降低AWS、Azure和GCP的开支。它适用于减少云支出、分析基础设施成本或实施成本治理策略的场景。关键功能包括提供成本可视化、资源规模调整指导和定价模型优化建议。

查看技能
quantizing-models-bitsandbytes
其他

这个Skill使用bitsandbytes库量化大语言模型,能在GPU内存有限时通过8位或4位量化减少50-75%内存占用,同时保持精度损失最小。它支持INT8、NF4、FP4等多种量化格式,可与HuggingFace Transformers无缝集成,适用于需要部署更大模型或加速推理的场景。还提供QLoRA训练和8位优化器支持,让开发者能轻松实现高效模型压缩。

查看技能