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

agentskillAgent 技能

Agent Skill

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

总安装

4,178

周安装

169

GitHub Stars

1

下载量

1,311
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install agentskill

简介

agentskill 用于查找、检索和筛选相关信息,适合在 OpenClaw 中快速定位候选结果。

  • 适用于基于关键词、任务场景或来源线索的信息检索与筛选需求。
  • 通过 clawhub 安装,结合来源仓库和 README 文档核验具体用法。
  • 安装前需确认权限范围、维护状态及是否涉及联网、命令执行或文件读写。
  • agentskill 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
agentskill
description
Analyze a code repository and synthesize an AGENTS.md.

SKILL.md — agentskill

Operational spec for agentskill. This file governs _when_ to invoke, _what_ to run, and _in what order_. For _how_ to generate AGENTS.md, read SYSTEM.md — it is the behavioral bible. These two files are complementary. Neither is sufficient alone.

Purpose

Analyze one or more code repositories. Extract exact coding conventions. Synthesize a precise, forensic AGENTS.md that allows any agent to produce code indistinguishable from the existing codebase.


Trigger Phrases

Invoke this skill when the user says any of the following — or a close paraphrase:

  • _"Generate an AGENTS.md"_
  • _"Extract my coding style"_
  • _"Analyze my repo for conventions"_
  • _"Create a style guide from my code"_
  • _"Update my AGENTS.md"_
  • _"My agent doesn't write code the way I do — fix it"_

Do not invoke this skill for general code review, refactoring, or style advice not tied to generating AGENTS.md.


File Ecosystem

FileRole
SKILL.md _(this file)_Operational spec: workflow, scripts, fallbacks, uncertainty handling
SYSTEM.mdBehavioral spec: what to generate, section by section, and how to evaluate it
references/GOTCHAS.mdExtraction errors to avoid; update this file whenever a new failure mode is discovered
examples/Reference AGENTS.md files; consult when handling an unfamiliar repo shape
Maintenance rule: If SYSTEM.md and SKILL.md ever contradict each other, SYSTEM.md wins. Fix SKILL.md to match.
Availability rule: If this skill was downloaded from ClawHub, or if examples/ is unavailable locally, do not consult examples/; skip it to avoid execution errors.

Workflow

Execute these steps in order. Do not skip steps. Do not reorder steps.


Step 1 — Collect

Ask the user for repo path(s). Accept one or more. Confirm before proceeding.

Provide the path(s) to your repository or repositories.
One path per repo. Multiple repos are supported.

If the user provides a monorepo, note this explicitly — steps 3 and 4 of SYSTEM.md apply.


Step 2 — Scan

Run the scan script to get the directory tree and source file inventory.

python scripts/scan.py <repo>

Outputs: annotated directory tree, source files grouped by language with line counts.

Use the output to decide what to read — largest files first, entry points and core modules before tests.

If the script fails: Manually walk the directory tree using available file tools. Note in your working context that the scan was manual — this affects reliability of the file inventory for large repos.

Step 3 — Measure

Run the measurement script to get exact formatting metrics.

python scripts/measure.py <repo>
python scripts/measure.py <repo> --lang python   # single language

Outputs: per-language indentation unit and size, line length percentiles (p95 and p99), blank line distributions between top-level definitions and between methods, trailing newline convention.

If the script fails: Proceed without exact measurements. Mark all formatting measurements in the generated AGENTS.md as [tentative] and note that manual inspection was used. Do not estimate percentiles — state the observable range instead.

Step 4 — Config

Run the config script to detect formatters, linters, and their exact settings.

python scripts/config.py <repo>

Outputs: per-language tool detection with relevant config excerpts — [tool.black], [tool.ruff], [tool.mypy], tsconfig.json, .prettierrc, .editorconfig, and equivalents.

If the script fails: Read config files directly from disk. Prioritize: pyproject.toml, package.json, .editorconfig, any .*rc files at the repo root. Do not guess what a formatter enforces — only document what you can read from config.

Step 5 — Read SYSTEM.md

Read SYSTEM.md fully before writing a single line of AGENTS.md.

Do not rely on memory of previous runs. Read it fresh every time.


Step 6 — Read Source Files

Read actual source files directly. Use the file inventory from Step 2 to choose what to read.

Minimum per language before drafting any section:

PriorityWhat to read
1stEntry point and CLI files
2ndCore logic modules (largest non-test files)
3rdAt least one test file
4thPackage manifest (pyproject.toml, Cargo.toml, package.json, etc.)
5thAt least one utility or helper module

Minimum count: 3–5 files per language. For monorepos, 3–5 files per service.

Do not begin drafting until this step is complete.


Step 7 — Check GOTCHAS.md

Read references/GOTCHAS.md before drafting.

This file contains extraction and synthesis errors discovered from previous agentskill runs — false patterns, formatter assumption traps, monorepo boundary mistakes, and section omissions.


Step 8 — Consult Examples

Read the relevant file in examples/ if you are handling an unfamiliar repo shape.

If this skill was downloaded from ClawHub, or if examples/ is unavailable locally, skip this step to avoid execution errors.

ScenarioFile to consult
Standard single-language repoexamples/SINGLE_LANGUAGE.md
Monorepo with multiple servicesexamples/MONOREPO.md
Multi-language single repoexamples/MULTI_LANGUAGE.md
If no relevant example exists: Proceed without one. Do not consult an example from a different repo shape — it will introduce structural assumptions that don't apply.

Step 9 — Synthesize

Follow SYSTEM.md section by section, in the exact order specified.

Source of truth per data type:

Data typeSource
Line length, indentation, blank line countsScript output from Step 3
Formatter and linter settingsScript output from Step 4
Naming conventionsDirect source file reads (Step 6)
Error handling patternsDirect source file reads (Step 6)
Import orderingDirect source file reads (Step 6)
Comment and docstring styleDirect source file reads (Step 6)
Test patternsDirect source file reads (Step 6)
Directory structureScript output from Step 2
Git conventions.git/ config + commit log inspection

Apply the Mimicry Test from SYSTEM.md to each section before moving to the next. Do not batch-test at the end.


Step 10 — Handle Uncertainty

When you are uncertain about a pattern mid-synthesis, apply this decision tree — do not silently guess:

Is the pattern supported by fewer than 3 examples?
  YES → Mark the rule [tentative] and continue.

Is there genuine inconsistency with no dominant pattern?
  YES → State the inconsistency explicitly. Do not invent a rule.

Is an entire section unmeasurable (e.g. script failed, files unreadable)?
  YES → Surface this to the user before writing that section.
        Ask: "I couldn't reliably extract [section].
        Do you want me to skip it, mark it tentative, or provide the data manually?"

Is the uncertainty minor and isolated to one sub-rule?
  YES → Mark [tentative], continue, note it in the draft summary.

Never silently guess. Never invent a rule. Never omit a section without telling the user.


Step 11 — Write

Write the final AGENTS.md to the repo root.

If this is a new file: Write directly.

If an existing AGENTS.md is present:

  1. Read the existing file first.
  2. Present a diff-style summary of what will change and why.
  3. Ask for confirmation before overwriting.

After writing, output a brief summary:

AGENTS.md written.

Sections completed:    15 / 15
Tentative rules:       [list them, or "none"]
Sections with gaps:    [list them, or "none"]
Recommended follow-up: [e.g. "Run measure.py — line length marked tentative"]

Why Seven Scripts?

The scripts handle exactly and only what an LLM cannot do reliably from reading source files.

ScriptWhy it cannot be skipped
scan.pyLarge repos exceed the context window; without a file inventory the agent reads arbitrarily, missing dominant patterns in unread files
measure.py95th-percentile line length requires counting every line across every file — estimation from reading samples is structurally inaccurate
config.pyFormatter config files are ground truth; inferring what a formatter enforces from its output is unreliable and will drift as config changes
git.pyCommit log and branch history require git log access; source files alone do not reveal prefix conventions or merge strategy
graph.pyImport graph cycle detection and monorepo boundary identification require traversing all files simultaneously, not reading them one by one
symbols.pyCodebase-specific affix detection requires counting patterns across every identifier in the repo — impractical to do by reading samples
tests.pyTest-to-source mapping and framework detection require walking the full file tree; sampling misses coverage gaps and naming inconsistencies

Everything else — error handling patterns, comment style, docstring format, architectural rules — comes from reading source files directly. Do not run scripts for things you can read.


Scripts Quick Reference

All scripts require Python stdlib only. No installation needed beyond pip install -e ..

# Directory tree and file inventory
python scripts/scan.py <repo>

# Formatting metrics (indentation, line length, blank lines, newlines)
python scripts/measure.py <repo>
python scripts/measure.py <repo> --lang python

# Formatter and linter detection with config excerpts
python scripts/config.py <repo>

# Commit log, branch naming, and merge strategy
python scripts/git.py <repo>

# Internal import graph, cycle detection, monorepo boundaries
python scripts/graph.py <repo>

# Symbol name extraction and codebase-specific affix detection
python scripts/symbols.py <repo>

# Test-to-source mapping, framework detection, fixture extraction
python scripts/tests.py <repo>

# Run all seven in parallel and merge output
agentskill analyze <repo> --pretty

All scripts output JSON to stdout. Pass --pretty for human-readable output. Pass --out <file> to write to disk.


Uncertainty Reference

SituationAction
Fewer than 3 examples for a ruleMark [tentative]
Genuine inconsistency, no dominant patternState the inconsistency; do not invent a rule
Script failed, measurement unavailableMark affected measurements [tentative]; note manual inspection was used
Entire section unmeasurableSurface to user; ask before proceeding
Existing AGENTS.md presentDiff and confirm before overwriting
No matching example in examples/Skip Step 8; do not use a mismatched example

Principles

These are reminders, not the full spec. The full spec is in SYSTEM.md.
  • Extract, don't guess. Every rule must be grounded in observed code.
  • Snippets are the spec. Every non-trivial rule needs a real code snippet.
  • 3 examples minimum. Fewer → [tentative]. Inconsistency → state it.
  • Scope every rule. Repo-wide vs. per-language vs. per-service — always explicit.
  • No statistics in output. No counts, percentages, or confidence levels in AGENTS.md.
  • Mimicry test per section. Apply it before moving on, not at the end.
  • Uncertainty surfaces up. Never silently guess. Never silently omit.

_Update references/GOTCHAS.md after every run where a new failure mode is discovered._ _Update this file whenever the workflow changes._ _If this file and SYSTEM.md contradict — SYSTEM.md wins._

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

72.09%
按下载量换算945

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills