Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计通过

agentsmd-generatorAgentMD 生成器

Agent Skill

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

总安装

1,236

周安装

50

GitHub Stars

3

下载量

388
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:agentsmd-generator(AgentMD 生成器)
来源仓库:https://github.com/asteroid-belt-llc/skills
仓库路径:skills/agentsmd-generator
安装命令:
npx skills add https://github.com/asteroid-belt-llc/skills --skill agentsmd-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/asteroid-belt-llc/skills --skill agentsmd-generator

简介

用于自动生成符合标准的 AGENTS.md 项目上下文文件。

  • 自动扫描仓库结构、捕获 .gitignore 忽略项和自动化任务入口。
  • 按约定章节顺序输出内容,包括编码规范、测试期望和提交惯例。
  • 嵌入总结任务,确保 README 更新和变更摘要符合 Conventional Commits。
  • agentsmd-generator 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Agent Context Generator

What You'll Do

  • 🔍 Inventory the repository's structure, capture a .gitignore-aware tree output, and record automation entry points (preferring just/make tasks when available)
  • 🧭 Capture coding conventions, directory ownership, testing expectations, and review workflows so future agents can navigate confidently
  • 🧩 Produce an AGENTS.md file following the opinionated section order below, honoring scope rules for nested directories
  • ✅ Embed universal wrap-up tasks: ensure the README is updated after significant code changes and summarize changes per conventional commits while resolving any open questions with the developer

Phase 1 · Understand the Repository

  1. Check for existing AGENTS.md

- Use find alternative (glob or repo tree) to discover current files. Determine scope inheritance so you can update or extend instead of duplicating.

  1. Read Core Docs

- Skim README.md, CONTRIBUTING.md, and other onboarding docs for project philosophy, setup, and workflows. - If docs/ or documentation/ exists, scan for architectural or process references worth surfacing.

  1. Survey Project Layout

- Note primary directories, languages, build targets, and ownership (e.g., "src/ui maintained by Frontend team"). - Check for plans/, docs/, or other knowledge directories. Flag must-read files (ADR indexes, architecture overviews, runbooks) to reference later in AGENTS.md.

  1. Build a Git-aware Tree

- Use the tree command with the --gitignore flag (tree ≥ 2.0) so ignored paths stay hidden: tree --gitignore -a -L 3 > tmp/tree.txt. - If your tree build lacks --gitignore, run tree -a -L 3 --prune and manually prune any ignored directories noted in .gitignore, or install an updated version via your package manager. - Capture or trim the output before placing it in AGENTS.md (focus on the top 2–3 levels, and note when you omitted details for brevity).

  1. Identify Automation Runners

- If Justfile exists, run just --list (or just --list --unsorted for extra notes). - If Makefile exists (and just does not), run make help or inspect phony targets for canonical tasks. - Record which commands are recommended for linting, testing, building, syncing data, etc. Link the definitive task names you surface in your notes for inclusion later.

  1. Catalog Tooling & Environment

- List required runtimes, package managers, env vars, secrets handling, and local services. - Note down any .env.example, config/, or secrets documentation that agents must review.

  1. Clarify Testing & Quality Gates

- Identify test suites, coverage expectations, linting, formatting, and CI workflows.

  1. Resolve Ambiguities Early

- Whenever conventions, ownership, or workflows seem unclear, prompt the developer with focused questions before drafting the guide. - Ask explicitly whether existing plans/ or documentation directories are authoritative or stale, and clarify what canon to reference.

Outcome: A structured notes list describing layout, tooling, commands, testing, release process, documentation references, pending questions, and update expectations.

Phase 2 · Plan the AGENTS.md Structure

Follow this opinionated order to keep files consistent and scannable:

  1. Header — Title + short purpose statement.
  2. Quick Facts — Table or bullet summary (languages, package manager, key scripts, CI).
  3. Repository Tour — High-level directory map with responsibilities and ownership hints.
  4. Tooling & Setup — Required runtimes, package managers, environment variables, secrets.
  5. Common Tasks — Lint/test/build/deploy commands. Prefer listing just recipes first, then make targets, then raw commands.
  6. Testing & Quality — When and how to run tests, linting, formatting, coverage, and CI expectations.
  7. Workflow Expectations — Branching model, review norms, feature flagging, deployment cadence.
  8. Documentation Duties — When to update README.md, architecture diagrams, or other docs.
  9. Finish the Task — Mandatory wrap-up checklist for every agent task.

For deeper directories (e.g., services/api/), include a "Scope" note at the top clarifying inheritance from parent AGENTS instructions. Always confirm with the developer before drafting new per-directory AGENTS files so you do not duplicate existing guidance or create unnecessary overhead.


Phase 3 · Compose AGENTS.md

Use the template below and adapt each section to the project:

# Project Agent Guide

> Scope: Root project (applies to all subdirectories unless overridden)

## Quick Facts
- **Primary language:**
- **Package manager:**
- **Entrypoints:**
- **CI/CD:**

## Repository Tour
- `path/` — description & owner

## Tooling & Setup
- Install instructions (per OS)
- Required environment variables (with purpose)
- Secrets management notes

## Common Tasks
- `just <task>` — what it does (preferred)
- `make <target>` — what it does
- Raw command fallback when automation missing

## Testing & Quality Gates
- Unit/integration test commands
- Lint/format commands
- Coverage expectations & thresholds
- CI status command or dashboard link

## Workflow Expectations
- Branch naming and review rules
- Feature toggles or release cadence
- Any approval or ticket linkage requirements

## Documentation Duties
- Update `README.md` when features, setup steps, or developer ergonomics change materially
- List other docs to refresh (architecture, ADRs, etc.)

## Finish the Task Checklist
- [ ] Update relevant docs (& `README.md` if significant changes landed)
- [ ] Summarize changes in conventional commit format (e.g., `feat: ...`, `fix: ...`)

Subdirectory Template (Use Only with Developer Approval)

# <Directory Name> Agent Guide

> Scope: ./path/to/directory (inherits root AGENTS.md unless noted)

## Purpose
- What lives here
- Who owns it (team/contact)

## Key Files
- `file_or_folder/` — why it matters

## Common Tasks
- `just <task>` / `make <target>` / command snippets scoped to this directory

## Testing & Quality
- Specific tests, linters, or data fixtures for this directory

## Hand-off Notes
- Docs or runbooks to reference
- Open questions captured during discovery

Only create these per-directory guides after confirming with the developer which areas need dedicated context and what information should be emphasized.

Writing Notes:

  • Keep language direct and actionable. Agents should follow commands verbatim.
  • Mention the preferred order of operations (e.g., "Always run just format before opening a PR").
  • When referencing scripts, include relative paths so agents can jump quickly (e.g., scripts/bootstrap.sh).
  • Incorporate a trimmed tree --gitignore snapshot (or link to the saved artifact) so readers grasp layout quickly.
  • In the Repository Tour, highlight where plans/, docs/, design docs, or ADRs live if present.
  • Call out any unanswered questions as action items, and confirm with the developer before creating any per-directory AGENTS overlays.
  • If the project mixes languages/platforms, add subsections per component but keep global guidance first.

Phase 4 · Validate & Wrap Up

  1. Self-review

- Does the file respect AGENTS scope rules? (Mention inheritance or overrides.) - Are all critical commands documented, especially automation entry points? - Is the README update expectation explicit? - Did you obtain developer approval before adding any per-directory AGENTS files, and is that approval reflected in the write-up? - Does the "Finish the Task" checklist include the conventional commit summary reminder?

  1. Formatting

- Ensure headings use Title Case, commands are wrapped in backticks, and lists are concise. - Keep sections under ~8 bullets unless a table is clearer.

  1. Handoff Summary

- When delivering the AGENTS.md to the user, include: - A short summary of major sections added/updated. - Confirmation that README and conventional commit reminders are present. - Any follow-up suggestions (e.g., missing tests or outdated scripts).

Use this skill whenever a repo lacks AGENTS context or when existing instructions are incomplete or outdated. The goal is to leave future agents with a single, trustworthy map of the project, its tooling, and the expectations for finishing tasks responsibly.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenCode

28.2%
按下载量换算109

Claude Code

23.35%
按下载量换算91

Codex

17.53%
按下载量换算68

windsurf

12.64%
按下载量换算49

Gemini CLI

7.64%
按下载量换算30

github-copilot

3.38%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills