跳到正文
Skillpedia
写作40k · #7464

update-llms

它能做什么

这个工具用来更新一个名为 `llms.txt` 的特殊文件。这个文件可以帮助人工智能理解一个编程项目的结构和内容。

适用场景

  • ✓当编程项目的内容发生变化时。
  • ✓为了确保 AI 知道去哪里找到重要信息。
  • ✓当添加或删除重要的项目文件时。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/update-llms/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/update-llms/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“更新 llms.txt 文件,使其反映新的文档文件夹。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会把当前的 `llms.txt` 文件与项目中的文件进行比对。它会检查文件中的信息是否正确、是否为最新,并确保格式符合特定的规范。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Update LLMs.txt File

Update the existing llms.txt file in the root of the repository to reflect changes in documentation, specifications, or repository structure. This file provides high-level guidance to large language models (LLMs) on where to find relevant content for understanding the repository's purpose and specifications.

Primary Directive

Update the existing llms.txt file to maintain accuracy and compliance with the llms.txt specification while reflecting current repository structure and content. The file must remain optimized for LLM consumption while staying human-readable.

Analysis and Planning Phase

Before updating the llms.txt file, you must complete a thorough analysis:

Step 1: Review Current File and Specification

  • Read the existing llms.txt file to understand current structure
  • Review the official specification at https://llmstxt.org/ to ensure continued compliance
  • Identify areas that may need updates based on repository changes

Step 2: Repository Structure Analysis

  • Examine the current repository structure using appropriate tools
  • Compare current structure with what's documented in existing llms.txt
  • Identify new directories, files, or documentation that should be included
  • Note any removed or relocated files that need to be updated

Step 3: Content Discovery and Change Detection

  • Identify new README files and their locations
  • Find new documentation files (.md files in /docs/, /spec/, etc.)
  • Locate new specification files and their purposes
  • Discover new configuration files and their relevance
  • Find new example files and code samples
  • Identify any changes to existing documentation structure

Step 4: Create Update Plan

Based on your analysis, create a structured plan that includes:

  • Changes needed to maintain accuracy
  • New files to be added to the llms.txt
  • Outdated references to be removed or updated
  • Organizational improvements to maintain clarity

Implementation Requirements

Format Compliance

The updated llms.txt file must maintain this exact structure per the specification:

  1. H1 Header: Single line with repository/project name (required)
  2. Blockquote Summary: Brief description in blockquote format (optional but recommended)
  3. Additional Details: Zero or more markdown sections without headings for context
  4. File List Sections: Zero or more H2 sections containing markdown lists of links

Content Requirements

Required Elements

  • Project Name: Clear, descriptive title as H1
  • Summary: Concise blockquote explaining the repository's purpose
  • Key Files: Essential files organized by category (H2 sections)

File Link Format

Each file link must follow: [descriptive-name](relative-url): optional description

Section Organization

Organize files into logical H2 sections such as:

  • Documentation: Core documentation files
  • Specifications: Technical specifications and requirements
  • Examples: Sample code and usage examples
  • Configuration: Setup and configuration files
  • Optional: Secondary files (special meaning - can be skipped for shorter context)

Content Guidelines

Language and Style

  • Use concise, clear, unambiguous language
  • Avoid jargon without explanation
  • Write for both human and LLM readers
  • Be specific and informative in descriptions

File Selection Criteria

Include files that:

  • Explain the repository's purpose and scope
  • Provide essential technical documentation
  • Show usage examples and patterns
  • Define interfaces and specifications
  • Contain configuration and setup instructions

Exclude files that:

  • Are purely implementation details
  • Contain redundant information
  • Are build artifacts or generated content
  • Are not relevant to understanding the project

Execution Steps

Step 1: Current State Analysis

  1. Read the existing llms.txt file thoroughly
  2. Examine the current repository structure completely
  3. Compare existing file references with actual repository content
  4. Identify outdated, missing, or incorrect references
  5. Note any structural issues with the current file

Step 2: Content Planning

  1. Determine if the primary purpose statement needs updates
  2. Review and update the summary blockquote if needed
  3. Plan additions for new files and directories
  4. Plan removals for outdated or moved content
  5. Reorganize sections if needed for better clarity

Step 3: File Updates

…

常见问题

`llms.txt` 文件是什么?

它是一个文本文件,相当于人工智能的指南,告诉它去哪里找到关于项目的重要信息。

为什么需要更新 `llms.txt` 文件?

这样人工智能总能拿到项目的最新信息,避免产生困惑或错误。

llmstxt.org 上规定的格式有什么重要性?

这种格式能确保人工智能以一致且高效的方式读取和理解 `llms.txt` 文件中的信息。

详情

作者的原始描述

Update the llms.txt file in the root folder to reflect changes in documentation or specifications following the llms.txt specification at https://llmstxt.org/

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7464
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能