Token导航 LogoToken导航

Agent Skill · 研究检索

tune-repo(调 repo)

tune-repo 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

tune-repo 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 69,087。

总安装 220周安装 9GitHub Stars 8下载 71核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tune-repo(调 repo)
来源仓库:https://github.com/phrazzld/claude-config
仓库路径:skills/tune-repo
安装命令:
npx skills add https://github.com/phrazzld/claude-config --skill tune-repo
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/phrazzld/claude-config --skill tune-repo

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

tune-repo 用于查找、检索和筛选相关信息,支持基于关键词快速定位结果。适用于 Codex、Claude、Cursor、Gemini CLI 中的信息检索场景。通过 GitHub 仓库安装,建议查阅原始 README 了解具体用法。使用前需确认权限、维护状态及是否触发联网或文件操作。

当前分类为研究检索,功能细节以仓库文档为准。

来源仓库内路径:skills/tune-repo

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/phrazzld/claude-config --skill tune-repo;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

tune-repo 怎么安装?

在终端执行 npx skills add https://github.com/phrazzld/claude-config --skill tune-repo。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

tune-repo 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

tune-repo 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

tune-repo 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

tune-repo 用的人多吗?

公开数据是累计安装 220 次,近一周安装 9 次,下载 71 次,GitHub 8 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

tune-repo 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
tune-repo

调 repo · 本页

2208需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

/tune-repo

Make agents deeply effective in this repository.

Role

Staff engineer onboarding a new team member who happens to be an AI. Build the complete context an agent needs to work autonomously: what the project is, how it's built, what to watch out for, and how to ship.

Objective

Transform a repository from "generic Claude Code target" to "finely tuned agent workspace" where autonomous skills (/build, /autopilot, /pr-fix) operate with full project awareness.

Philosophy

  • CLAUDE.md is the constitution, not the encyclopedia. Keep it token-cheap.
  • Policy in tracked files. State in memory. Procedures in skills.
  • Granular summaries (Glance) feed system-level understanding (Cartographer).
  • Document invariants, not obvious mechanics.
  • Every gotcha captured now saves 10 agent iterations later.

Preconditions

Verify the repo is ready:

git rev-parse --is-inside-work-tree  # Must be a git repo
git remote get-url origin            # Need remote context

Read what already exists — don't overwrite good work:

# Check for existing docs
ls CLAUDE.md AGENTS.md docs/CODEBASE_MAP.md docs/adr/ 2>/dev/null || true

Workflow

Phase 1: Glance Scan (Fast, Cheap)

Generate bottom-up per-directory summaries. This gives agents granular navigation context.

# Check if glance is available
which glance

# Run glance on the repo root
glance

Glance produces .glance.md in each directory. These are cheap to generate (uses Gemini Flash) and provide fine-grained "what's in this folder" context. Glance skips directories that already have a .glance.md by default — intelligent regeneration is built in, so never pass -force.

If glance is not installed: Skip this phase. Cartographer works without it — just slower and more expensive since Sonnet subagents read raw files.

Phase 2: Cartographer (Comprehensive, Top-Down)

Invoke /cartographer to produce docs/CODEBASE_MAP.md.

Cartographer's Sonnet subagents will naturally discover and leverage the glance.md files from Phase 1, reducing the raw code they need to parse.

If docs/CODEBASE_MAP.md exists and is recent: Run Cartographer in update mode (it detects changes since last_mapped and only re-scans modified modules).

Output: System overview, architecture diagrams, module guide, data flow, conventions, gotchas, navigation guide.

Phase 3: CLAUDE.md Audit + Update

Read the current CLAUDE.md (if any). Read the Cartographer output. Synthesize.

CLAUDE.md must cover — and ONLY cover — these sections:

  1. What This Is — 2-3 sentences. Purpose, users, business context.
  2. Essential Commands — dev, build, test, lint, deploy. Copy-pasteable.
  3. Architecture — High-level module diagram or description. Link to CODEBASE_MAP.md for details.
  4. Tech Stack — Languages, frameworks, databases, key dependencies with versions.
  5. Quality Gates — What CI enforces: coverage thresholds, lint rules, type strictness. The exact commands.
  6. Gotchas — Things that trip agents up. Earned-by-pain knowledge. Be specific.
  7. Environment — Required env vars, secrets, external services.
  8. Deployment — How code gets to production.

Hard constraint: 200 lines max. Every line must earn its place. Link to docs/ for details. If CLAUDE.md exceeds 200 lines, you're writing an encyclopedia, not a constitution.

Preserve existing content that's accurate. Don't rewrite good prose — merge new findings.

Phase 4: AGENTS.md Scaffold

AGENTS.md is the operational playbook for AI agents. It covers what CLAUDE.md doesn't: how to work here.

Sections:

  1. Commit Conventions — Message format, scope, conventional commits style.
  2. Testing Guidelines — Framework, patterns, coverage targets, test location conventions.
  3. PR Guidelines — Required sections, review expectations, merge strategy.
  4. Coding Style — Beyond linting: naming patterns, module boundaries, abstraction philosophy.
  5. Issue Workflow — Labels, status transitions, how to pick work.
  6. Definition of Done — What "complete" means for an issue in this repo.
  7. Security Boundaries — What agents must never touch without human approval.

If AGENTS.md already exists: Audit it against current reality. Fill gaps, correct drift.

If it doesn't exist: Create it. Pull conventions from git history (commit messages, PR descriptions) and existing CI config.

Phase 5: ADR Inventory

Scan for undocumented architectural decisions:

# Check existing ADRs
ls docs/adr/ 2>/dev/null || mkdir -p docs/adr

# Look for decision signals in git history
git log --oneline --all --grep="decision\|migrate\|replace\|switch\|deprecat" | head -20

# Look for decision signals in code
# (framework choices, database selection, auth strategy, API design)

For each significant decision found without an existing ADR:

# docs/adr/NNN-title.md

# NNN. Decision Title

Date: YYYY-MM-DD

## Status
Accepted

## Context
[Why was this decision needed?]

## Decision
[What was decided?]

## Consequences
[What are the implications — good and bad?]

Focus on decisions that would confuse a new agent:

  • Why this framework/library over alternatives?
  • Why this data model shape?
  • Why this deployment strategy?
  • Why this testing approach?

Limit: 5 ADRs max per tune-repo run. Don't boil the ocean. Capture the most impactful decisions.

Phase 6: Memory Seeding

Extract project-specific gotchas into the auto-memory file:

~/.claude/projects/<escaped-repo-path>/memory/MEMORY.md

Good memory entries:

  • CLI quirks specific to this project's toolchain
  • API/service gotchas discovered in git history or issue tracker
  • Flaky tests and their root causes
  • Environment setup footguns
  • Things that look wrong but are intentional

Bad memory entries:

  • Anything already in CLAUDE.md (don't duplicate)
  • Generic language/framework knowledge
  • Temporary state (current branch, active PR)

Phase 7.5: Guardrail Discovery

Analyze Cartographer output and codebase for architectural invariants worth enforcing as lint rules. Look for:

  • Import boundaries — Are there modules that should only be accessed through a facade? (e.g., DB through repository, API through client)
  • Auth patterns — Do handlers/routes consistently call an auth check? Any that don't?
  • Data access layers — Is there a clear separation (controller → service → repository)? Violations?
  • API conventions — Consistent route prefixes, response shapes, error formats?
  • Deprecated patterns — Old imports, legacy APIs, patterns being migrated away from?
  • Naming conventions — Beyond basic linting: domain-specific naming rules?

For each pattern found, output a recommendation:

Guardrail candidates:
- /guardrail "all DB access must go through repository layer" (3 violations found)
- /guardrail "API routes must use /api/v1 prefix" (0 violations — already clean, protect it)
- /guardrail "no direct fetch() — use apiClient wrapper" (7 violations found)

Do NOT generate rules here. /guardrail owns rule generation. This phase only discovers and recommends.

Phase 8: Skill Gap Analysis

Assess whether this repo needs project-specific skills:

  • Does it have a unique build/deploy pipeline that /build doesn't cover?
  • Does it use a CLI tool that agents invoke frequently? (e.g., Cerberus uses opencode)
  • Are there repetitive multi-step workflows specific to this domain?

If yes: document the gap as a recommendation. Don't build the skill in this run — that's a separate task.

# Report recommendation
echo "Skill gap: This repo could benefit from a custom /deploy-$REPO skill for [reason]"

Anti-Patterns

  • Writing CLAUDE.md as a novel (>200 lines = too long)
  • Overwriting accurate existing docs with generated prose
  • Creating ADRs for obvious decisions ("we use TypeScript because the project is TypeScript")
  • Seeding memory with speculative information (verify against actual code/tests)
  • Running Cartographer on a repo that was just mapped with no changes
  • Generating AGENTS.md conventions that contradict what git history shows

Output

Report:

  • Glance: directories scanned, summaries generated
  • Cartographer: CODEBASE_MAP.md created/updated
  • CLAUDE.md: sections added/updated, final line count
  • AGENTS.md: created or audited, sections covered
  • ADRs: new ADRs created (list titles)
  • Memory: entries seeded (list topics)
  • Guardrail candidates: patterns recommended for /guardrail
  • Skill gaps: recommendations (if any)

平台分布

Codex

34.61%
按下载量换算25

Claude

32.06%
按下载量换算23

Cursor

17.61%
按下载量换算13

Gemini CLI

10.4%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills