AI & Integration v0.4.1

repo-agent-brief

Generate concise, safety-aware repository orientation briefs with @builtbyecho/repo-agent-brief/agent-brief before...

builtbyecho 更新于 2026-05-28 1 浏览
下载 SKILL

技能说明

Generate concise, safety-aware repository orientation briefs with @builtbyecho/repo-agent-brief/agent-brief before coding-agent work, reviews, handoffs, PR analysis, unfamiliar repo edits, diff-aware branch handoffs, or when an agent needs stack/commands/context/risk signals before changing files.

使用场景

Use @builtbyecho/repo-agent-brief to orient an agent before it edits or reviews a repository. It finds high-signal context files, infers stack/commands, builds a compact repo map, and flags obvious secret/risky-instruction patterns.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/repo-agent-brief
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 20 kB
SKILL.md text/markdown
---
name: repo-agent-brief
description: Generate concise, safety-aware repository orientation briefs with @builtbyecho/repo-agent-brief/agent-brief before coding-agent work, reviews, handoffs, PR analysis, unfamiliar repo edits, diff-aware branch handoffs, or when an agent needs stack/commands/context/risk signals before changing files.
---

# Repo Agent Brief Skill

Use `@builtbyecho/repo-agent-brief` to orient an agent before it edits or reviews a repository. It finds high-signal context files, infers stack/commands, builds a compact repo map, and flags obvious secret/risky-instruction patterns.

## Default workflow

From the repository root:

```bash
npx @builtbyecho/repo-agent-brief . > AGENT_BRIEF.md
sed -n '1,220p' AGENT_BRIEF.md
```

For in-progress branches:

```bash
npx @builtbyecho/repo-agent-brief . --diff origin/main > AGENT_HANDOFF.md
sed -n '1,260p' AGENT_HANDOFF.md
```

For machine-readable automation:

```bash
npx @builtbyecho/repo-agent-brief . --format json > agent-brief.json
```

For durable handoffs:

```bash
npx @builtbyecho/repo-agent-brief . --diff HEAD --bundle
sed -n '1,220p' .agent-brief/brief.md
sed -n '1,160p' .agent-brief/verification.md
```

## When to use

- First pass in an unfamiliar repo.
- Before delegating to a coding agent.
- PR/branch handoff where changed files matter.
- Safety preflight before touching CI, migrations, deploy scripts, auth, or config.

## Safety

- This is not a full secret scanner. Use Gitleaks/TruffleHog for full audits.
- If high-risk patterns are found, inspect before proceeding.
- Use `--fail-on-high-risk` in CI or strict agent workflows.
- Generated briefs may include snippets from repo context files; avoid posting publicly without review.

## Useful commands

```bash
npx @builtbyecho/repo-agent-brief .
npx @builtbyecho/repo-agent-brief . --diff HEAD
npx @builtbyecho/repo-agent-brief . --diff HEAD --bundle
npx @builtbyecho/repo-agent-brief . --diff origin/main --fail-on-high-risk
npx @builtbyecho/repo-agent-brief . --no-snippets
```

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。