跳到正文
Skillpedia
通用编程40k · #7140

create-llms

它能做什么

创建一个名为 `llms.txt` 的文件,帮助计算机程序(语言模型)理解一个项目。它会列出最重要的文件,并说明每个文件的作用。

适用场景

  • ✓当你希望 AI 程序快速了解一个代码项目是做什么的时候。
  • ✓开始一个新项目,想为 AI 整理文档的时候。
  • ✓方便自动化工具浏览大型项目。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“为这个项目创建一个 llms.txt 文件。”

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

工作原理

AI 会先理解 llms.txt 文件的结构规则。然后检查你项目里的所有文件,判断哪些最重要,再创建 llms.txt 文件,列出这些文件并附上说明。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Create LLMs.txt File from Repository Structure

Create a new llms.txt file from scratch in the root of the repository following the official llms.txt specification at https://llmstxt.org/. 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

Create a comprehensive llms.txt file that serves as an entry point for LLMs to understand and navigate the repository effectively. The file must comply with the llms.txt specification and be optimized for LLM consumption while remaining human-readable.

Analysis and Planning Phase

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

Step 1: Review llms.txt Specification

  • Review the official specification at https://llmstxt.org/ to ensure full compliance
  • Understand the required format structure and guidelines
  • Note the specific markdown structure requirements

Step 2: Repository Structure Analysis

  • Examine the complete repository structure using appropriate tools
  • Identify the primary purpose and scope of the repository
  • Catalog all important directories and their purposes
  • List key files that would be valuable for LLM understanding

Step 3: Content Discovery

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

Step 4: Create Implementation Plan

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

  • Repository purpose and scope summary
  • Priority-ordered list of essential files for LLM understanding
  • Secondary files that provide additional context
  • Organizational structure for the llms.txt file

Implementation Requirements

Format Compliance

The llms.txt file must follow 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: Repository Analysis

  1. Examine the repository structure completely
  2. Read the main README.md to understand the project
  3. Identify all documentation directories and files
  4. Catalog specification files and their purposes
  5. Find example files and configuration files

Step 2: Content Planning

  1. Determine the primary purpose statement
  2. Write a concise summary for the blockquote
  3. Group identified files into logical categories
  4. Prioritize files by importance for LLM understanding
  5. Create descriptions for each file link

Step 3: File Creation

  1. Create the llms.txt file in the repository root
  2. Follow the exact format specification
  3. Include all required sections

…

常见问题

什么是 llms.txt 文件?

它是一个文本文件,相当于 AI 程序的地图,告诉它在哪里可以找到代码项目的重要信息。

我为什么需要它?

它能帮助 AI 更快地理解你项目的用途和结构,让交互更加高效。

llms.txt 文件是给我看的,还是给 AI 看的?

它的写法既方便人类阅读,也方便 AI 程序读取,但主要目的是引导 AI。

详情

作者的原始描述

Create an llms.txt file from scratch based on repository structure following the llms.txt specification at https://llmstxt.org/

repo: github/awesome-copilot

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能