Chuyển đến nội dung
Skillpedia
Lập trình chung40k · #7140

create-llms

Skill này làm gì

Tạo một file tên `llms.txt` giúp các chương trình máy tính (mô hình ngôn ngữ) hiểu một dự án. File liệt kê các tệp quan trọng nhất và giải thích chúng làm gì.

Khi nào nên dùng

  • ✓Khi bạn muốn một chương trình AI hiểu nhanh một dự án code làm gì.
  • ✓Khi bạn bắt đầu một dự án mới và muốn sắp xếp tài liệu cho AI.
  • ✓Khi bạn muốn các công cụ tự động dễ điều hướng trong dự án lớn.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/create-llms/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy tạo file llms.txt cho dự án này.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Trước hết AI hiểu các quy tắc về cấu trúc của file llms.txt. Sau đó, nó xem xét tất cả các file trong dự án, quyết định file nào quan trọng nhất và tạo file llms.txt liệt kê chúng kèm mô tả.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

…

Câu hỏi thường gặp

File llms.txt là gì?

Đó là một file văn bản đóng vai trò như bản đồ cho các chương trình AI, chỉ ra nơi tìm thông tin quan trọng về một dự án code.

Tại sao tôi cần file này?

Nó giúp AI hiểu mục đích và cấu trúc dự án nhanh hơn, làm việc với AI hiệu quả hơn.

File llms.txt dành cho tôi hay cho AI?

Nó được viết để cả con người lẫn chương trình AI đều đọc được, nhưng mục đích chính là hướng dẫn AI.

Chi tiết

Mô tả gốc của tác giả

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

repo: github/awesome-copilot

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7140
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự