Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

optimize-agents-md优化 AgentMD

Agent Skill

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

总安装

737

周安装

31

GitHub Stars

1

下载量

258
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/plaited/development-skills --skill optimize-agents-md

简介

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

  • 它支持通过关键词、任务场景或来源仓库进行信息检索与筛选,帮助 Agent 快速获取相关资源。
  • 可通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Optimize AGENTS.md

Apply Boris Cherny's compression principles to AGENTS.md and rules files.

Target: ~2.5k tokens (most are 10k+ unnecessarily)

When to Use

  • User wants to improve their AGENTS.md or CLAUDE.md
  • Agent instructions feel verbose or redundant
  • Rules exist but lack verification patterns
  • Setting up a new project's agent configuration

Anti-Patterns to Fix

Anti-PatternProblemFix
Context stuffingRepeating info agents already knowDelete obvious instructions
Static memoryNo learnings sectionAdd ## Learnings with dates
Format driftInconsistent structureUse consistent headers
Missing verificationNo way to check workAdd *Verify:* patterns to rules
Verbose rulesParagraphs instead of patternsCompress to pattern + verify + fix

Workflow

Phase 1: Analyze Current State

# Count tokens (rough estimate: words × 1.3)
wc -w AGENTS.md

# Find redundancy with project files
grep -l "bun test" AGENTS.md package.json

Look for:

  • Instructions duplicating package.json scripts
  • Explanations of common tools (git, npm, bun)
  • Verbose descriptions that could be tables
  • Rules without verification patterns

Phase 2: Compress AGENTS.md

Structure target:

# AGENTS.md

## Overview
[1-2 sentences: what this project is]

## Capabilities
[Bullet list of key features/commands]

## Structure
[Brief file tree of key paths]

## Commands
[Essential commands only - not everything in package.json]

## Verification
[How to check work is correct]

## Workflow
[Key constraints: plan first, verify incrementally]

## Rules
[Links to rule files or inline compressed rules]

## Learnings
[Dated entries from actual issues encountered]

Compression techniques:

  • Tables over paragraphs
  • Bullets over sentences
  • Delete anything in package.json
  • Delete tool explanations (agents know git, npm, bun)
  • Merge related sections

Phase 3: Optimize Rules

Transform verbose rules into verification patterns:

Before (verbose):

## Type Aliases Over Interfaces

In this codebase, we prefer using TypeScript type aliases
instead of interfaces. This provides better consistency
and flexibility when working with unions and intersections.

Example:
// Good
type User = { name: string }

// Bad
interface User { name: string }

After (compressed with verification):

**Type over interface** - `type User = {` instead of `interface User {`
*Verify:* `grep 'interface [A-Z]' src/`
*Fix:* Replace `interface X {` with `type X = {`

Pattern format:

**Rule name** - Brief description with example
*Verify:* Command or tool to check compliance
*Fix:* How to resolve violations

Phase 4: Add Living Document Features

Learnings section:

## Learnings
- 2024-01-15: Skills use CLI tools, never duplicate logic
- 2024-01-20: Rules need verification patterns for self-checking

Update trigger: Add learnings when:

  • A mistake required correction
  • A pattern was discovered
  • A constraint was clarified

Verification

After optimization:

  1. Token count: wc -w AGENTS.md × 1.3 ≈ tokens (target: <2.5k)
  2. No redundancy: grep for duplicated info in package.json
  3. Rules have patterns: Each rule has *Verify:* line
  4. Learnings exist: ## Learnings section present

Example Transformations

Commands Section

Before (340 words):

## Development Commands

To install dependencies, run the following command...
[lengthy explanation of bun install]

To run tests, you can use...
[explanation of test runner]

After (40 words):

## Commands

bun install # Setup bun run check # Lint/format bun test # Unit tests

Capability Description

Before:

This package provides TypeScript Language Server Protocol
integration that allows you to get type information, find
symbols across your workspace, locate references to symbols,
and perform batch analysis of files.

After:

**LSP** (`lsp-*`): Type-aware hover, symbol search, references, batch analysis

Related Skills

  • scaffold-rules - Install optimized rules with verification patterns
  • validate-skill - Validate skill structure

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.63%
按下载量换算95

Claude

28.02%
按下载量换算72

Cursor

17.66%
按下载量换算46

Gemini CLI

9.11%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills