update-llms
它能做什么
这个工具用来更新一个名为 `llms.txt` 的特殊文件。这个文件可以帮助人工智能理解一个编程项目的结构和内容。
适用场景
- ✓当编程项目的内容发生变化时。
- ✓为了确保 AI 知道去哪里找到重要信息。
- ✓当添加或删除重要的项目文件时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/update-llms/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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.txtfile 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 (
.mdfiles 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:
- H1 Header: Single line with repository/project name (required)
- Blockquote Summary: Brief description in blockquote format (optional but recommended)
- Additional Details: Zero or more markdown sections without headings for context
- 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
- Read the existing
llms.txtfile thoroughly - Examine the current repository structure completely
- Compare existing file references with actual repository content
- Identify outdated, missing, or incorrect references
- Note any structural issues with the current file
Step 2: Content Planning
- Determine if the primary purpose statement needs updates
- Review and update the summary blockquote if needed
- Plan additions for new files and directories
- Plan removals for outdated or moved content
- 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
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。