Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

tune-repo调 repo

Agent Skill

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

总安装

220

周安装

9

GitHub Stars

8

下载量

71
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

tune-repo 用于查找、检索和筛选相关信息,支持基于关键词快速定位结果。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中的信息检索场景。
  • 通过 GitHub 仓库安装,建议查阅原始 README 了解具体用法。
  • 使用前需确认权限、维护状态及是否触发联网或文件操作。
  • 当前分类为研究检索,功能细节以仓库文档为准。

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)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

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