AGENT SKILL

onboard-new-repo

Composite skill — first-touch workflow for an unfamiliar repo. Chains adt-repo-intake (understand) → audit-deep (health check) → config-drift-detect (gate audit) → init (CLAUDE.md if missing) → fewer-permission-prompts (prune permission noise). Use when entering a new repo for the first time, taking over from another developer, or after a major repo restructure. Use post repo clone, right after you clone a repo.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 1
Forks
1

01 前言 Front Matter

name
onboard-new-repo
triggers
[ "onboard-new-repo", "first-touch-on-unknown-repo", "post-repo-clone" ]
description
Composite skill — first-touch workflow for an unfamiliar repo. Chains adt-repo-intake (understand) → audit-deep (health check) → config-drift-detect (gate audit) → init (CLAUDE.md if missing) → fewer-permission-prompts (prune permission noise). Use when entering a new repo for the first time, taking over from another developer, or after a major repo restructure. Use post repo clone, right after you clone a repo.

02 资源文件 1

03 SKILL.md 正文

Onboard New Repo

The "I just cloned this, what is it" workflow. Replaces 30 minutes of poking around with one chained pass that builds the full picture and surfaces issues before you make changes.

Auto-invocation triggers

  • User says "I just cloned X", "let's look at this repo", "what is this codebase"
  • Working in a repo with no CLAUDE.md, .claude/ directory, or recent session history
  • After a git clone from a fresh shell

Workflow

Phase 1 — Understand (always)

Invoke adt-repo-intake for the structural picture:

  • Languages + frameworks detected
  • Entry points (CLI, server, lib)
  • Test runner + framework
  • Build / dev / test commands
  • Workspace layout (monorepo? single?)

Phase 2 — Health check (always)

Invoke audit-deep for the across-the-board state:

  • Test count vs proportionality
  • Coverage vs threshold
  • Security audit (deps, secrets, OWASP)
  • Hook effectiveness if .claude/ present
  • MCP usage
  • Plugin usage

This catches "this repo is in rough shape" up front so you don't merge into it blind.

Phase 3 — Gate audit (always)

Invoke config-drift-detect to surface gates that conflict with sane defaults:

  • Coverage thresholds incompatible with proportionality
  • TypeScript strictness vs codebase reality
  • Husky pre-commit running too much
  • Branch protection vs solo-dev workflow

Output: ranked list of gate adjustments with effort estimates.

Phase 4 — Bootstrap CLAUDE.md (if missing)

If no CLAUDE.md at repo root:

  • Invoke init to generate one from the codebase
  • Include: build commands, test commands, key conventions, project structure
  • Stage but don't commit (let user review first)

Phase 5 — Permission prune (if .claude/settings.json exists)

Invoke fewer-permission-prompts to scan recent transcripts and propose an allowlist of routine tool calls (Bash patterns, MCP tools) that should auto-allow. Reduces friction in the first day of work.

Phase 6 — Save the briefing

  • Write a memory note ~/.claude/projects/<slug>/memory/repo_briefing.md with the Phase 1-3 summary so future sessions in this repo bootstrap faster
  • Update MEMORY.md index

Reconciliation

Single onboarding brief:

ONBOARDING — <repo> @ <branch>

Stack:           <languages, frameworks>
Layout:          <monorepo / single / workspace>
Build:           <command>
Test:            <command, framework>
Entry points:    <list>

Health (audit-deep):
  Tests:         X (target Y-Z)
  Coverage:      X% (threshold Y%)
  Security:      <N findings>
  Hooks:         <state>

Gate conflicts (config-drift):
  CRITICAL: <list>
  HIGH:     <list>

CLAUDE.md:       <created / present / patched>
Permissions:     <X auto-allows proposed>

Recommended first move:
  <specific action with skill suggestion>

Outputs / Evidence

  • Onboarding brief (1 page)
  • Memory file repo_briefing.md for next-session pickup
  • Optional new CLAUDE.md staged
  • Optional permission allowlist staged

Failure / Stop Conditions

  • Repo is not a git repo → minimal brief, recommend git init first
  • Repo build fails on Phase 1 detection → mark as PARTIAL, surface the build error for fix before continuing
  • Never make changes (commits, file edits) without explicit user OK — onboarding is read-only by default

Memory Hooks

  • Read existing repo memory if present (skip Phase 1 if briefing exists and is recent)
  • Write the briefing as the primary output

04 同仓库更多 Skills

LucasSantana-Dev
LucasSantana-Dev/forgekit

token-audit

Audit historical Claude Code token usage from JSONL session files — shows total spend, cache hit rates, top costly sessions, weekly trends, and where tokens are going. Run after heavy sessions or weekly to measure optimization impact. Answers how many tokens a session used, how expensive was that session, session cost, and token usage report.

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

smart-model-route

Auto-classify prompt complexity via Haiku (with heuristic fallback) and inject model routing hints for Agent tool calls. Wired as a UserPromptSubmit hook — fires on every prompt, routes low tasks to Haiku, standard to Sonnet, complex to Sonnet with thorough reasoning, and critical (security/arch/migrations) to Opus. Handles model selection, for example choose model by task complexity.

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

smart-commands

Decision guide for when to proactively use Claude Code slash commands — /think, /model, /compact, /clear. Use when choosing whether to invoke a command before or during a task, or when a complexity-classifier hook has flagged a task as high or critical. Pairs with the complexity-classifier UserPromptSubmit hook. Answers when to compact, should I switch models, and whether to use extended thinking. Use to pick the right /model command and switch model.

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

spec-ship

暂无简介

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

spec-new

Create a committed per-feature spec under `docs/specs/YYYY-MM-DD-<slug>/{spec,tasks}.md` with frontmatter (status, created, owner, pr, tags). Promotes an ephemeral `.claude/plans/<name>.md` into a persistent, searchable artifact. Use when starting a feature that's larger than a one-shot PR.

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

roadmap-refresh

Regenerate `docs/roadmap.md` for a repo from all specs under `docs/specs/` + their frontmatter (status, tags, pr). Produces Now/Next/Recently-shipped sections. Run after creating / shipping a spec, or at the start of a new session for orientation.

★ 1