Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

amp-code放大器代码

Agent Skill

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

总安装

8,304

周安装

346

GitHub Stars

公开资料未说明

下载量

2,768
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:amp-code(放大器代码)
来源仓库:https://github.com/minerva-care/amp-code
安装命令:
openclaw skills install amp-code
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install amp-code

简介

amp-code 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 将编码任务委托给 Sourcegraph Amp 自主代理,支持多文件更改和测试编写。
  • 通过 clawhub 安装并使用 openclaw skills install amp-code 命令调用。
  • 安装前建议确认权限范围和维护状态,注意可能触发联网或代码执行操作。
  • 可结合 GitHub 仓库和原始 README 文档进一步核验任务分配机制和安全性。

SKILL.md

name
amp-code
description
Delegate coding tasks to Sourcegraph Amp, an autonomous coding agent. Use when: multi-file changes, new features, bug fixes, test writing, or any coding task > ~5 minutes. Amp reads the codebase, plans, edits files, and runs tests autonomously. NOT for: simple single-line edits, read-only questions, tasks needing fine-grained control.
metadata
openclaw
emoji
requires
bins
["amp"]

amp-code — Delegate Coding Tasks to Sourcegraph Amp

Use this skill to hand off coding work to Amp, an autonomous coding agent. Amp can read, write, refactor, and test code across an entire codebase without supervision.


When to delegate to Amp

Delegate when the task involves:

  • Multi-file changes — refactoring, moving modules, updating APIs
  • New features — implementing something that requires creating/editing several files
  • Bug fixes — especially when the root cause requires investigation and code changes
  • Test writing — generating test suites, adding coverage
  • Anything > ~5 min of coding — if you'd need multiple edit calls, let Amp do it

Do NOT delegate:

  • Simple single-line edits (just use edit)
  • Purely diagnostic/read-only questions (just use exec/read)
  • Tasks where you need fine-grained control over each file change

Modes

ModeDescriptionUse when
rushFast, lightweight modelSmall/clear tasks, quick fixes
smartBalanced model (default)Most tasks
deepPowerful model, slower, higher costComplex architecture, hard bugs

How to run a task

Simple one-shot (recommended)

cd /path/to/project && \
  amp \
    --dangerously-allow-all \
    --no-notifications \
    --no-ide \
    -m smart \
    -x "Your task description here"

The -x flag (execute mode) makes amp non-interactive: it runs the task and exits, printing only the agent's final message to stdout.

Using the wrapper script

bash {baseDir}/scripts/amp-task.sh \
  --task "Add pagination to the /invoices endpoint" \
  --dir /path/to/your/project \
  --mode smart

The script handles: cd to project dir, thread creation (for auditability), execute mode, and clean output. It prints the thread ID and final agent response.


Key flags

FlagEffect
--dangerously-allow-allNo confirmation prompts — agent acts autonomously
--no-notificationsSuppress sound/system notifications
--no-ideDon't connect to IDE (safe for headless runs)
-x "message"Execute mode: non-interactive, prints final output
-m rush/smart/deepSelect agent mode (model + system prompt)
-l "label"Tag the thread with a label (repeatable)

Working directory matters

Amp reads the codebase from the current directory. Always cd to the project root first, or pass --dir to the wrapper script. Without the right cwd, Amp won't see the right files.


Checking results

After a run, the wrapper script outputs:

  1. The thread ID — use this to inspect or continue the conversation
  2. The final agent message — summary of what was done

To see the full thread as markdown (all messages, tool calls, etc.):

amp threads markdown <thread-id>

To continue a thread (e.g., to follow up or fix something):

cd /path/to/project && \
  echo "Now also add tests for the pagination logic" | \
  amp threads continue <thread-id> \
    --dangerously-allow-all --no-notifications --no-ide -x

To list recent threads:

amp threads list

Example invocations

One-shot fix

cd /path/to/your/project && \
  amp --dangerously-allow-all --no-notifications --no-ide -x \
  "Fix the TypeError in src/api/invoices.js line 42 — amount is sometimes null"

Feature implementation (via wrapper)

bash {baseDir}/scripts/amp-task.sh \
  --task "Implement CSV export for the invoices list page — add a button in the UI and a /api/invoices/export endpoint" \
  --dir /path/to/your/project \
  --mode smart

Deep refactor

bash {baseDir}/scripts/amp-task.sh \
  --task "Migrate all database calls from raw SQL to Knex query builder. Maintain existing behaviour, add comments." \
  --dir /path/to/your/project \
  --mode deep

Quick test generation

bash {baseDir}/scripts/amp-task.sh \
  --task "Write Jest unit tests for all functions in src/utils/formatting.js" \
  --dir /path/to/your/project \
  --mode rush

Notes

  • Amp commits are tagged with Amp-Thread: trailer in git. Use this to find amp-authored commits.
  • The --dangerously-allow-all flag bypasses all tool permission checks. Only use on trusted projects.
  • Amp may make mistakes. Review the diff after large changes: git diff HEAD~1
  • For very long tasks, amp may time out. Break into smaller sub-tasks if needed.
  • Thread IDs are UUIDs. Save them if you want to audit or continue work later.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

93.3%
按下载量换算2,583

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills