Skip to content

Add llms.txt file for LLM guidance#38

Draft
Copilot wants to merge 3 commits intomasterfrom
copilot/fix-37
Draft

Add llms.txt file for LLM guidance#38
Copilot wants to merge 3 commits intomasterfrom
copilot/fix-37

Conversation

Copy link
Contributor

Copilot AI commented Jul 24, 2025

This PR adds an llms.txt file to provide guidance for Large Language Models about the website's content and structure, following the specification at https://llmstxt.org/.

Changes Made

1. Created llms.txt file

Added a comprehensive llms.txt file in the root directory that includes:

  • Overview: Description of the website as a personal learning/documentation site
  • Content Guidelines: Explanation that content is based on personal experience and learning
  • Site Structure: Directory-by-directory breakdown of content organization
  • Usage Guidelines: Instructions for LLMs on how to properly reference and cite content
  • Contact Information: Links to GitHub profile and website

2. Updated Build Configuration

Modified _config.ts to include the new file in the build output:

site.copy("LICENSE");
site.copy("humans.txt");
site.copy("llms.txt");  // Added this line
site.copy("404.html");

This follows the same pattern as the existing humans.txt file, ensuring the llms.txt file will be accessible at /llms.txt when the site is deployed.

3. Code Formatting

Applied proper code formatting using deno fmt to maintain consistency with project standards.

Implementation Notes

The llms.txt file provides essential context about:

  • The personal and educational nature of the content
  • Different content types across various directories (/dive-into/, /java/, /python/, etc.)
  • Appropriate attribution and verification guidelines for LLMs
  • The experimental nature of the site as a Lume/Deno learning project

This will help LLMs better understand the context and appropriate usage of the website's content.

Fixes #37.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • canonical-bos01.cdn.snapcraftcontent.com
  • cdn.jsdelivr.net
    • Triggering command: deno check _config.ts (dns block)
  • dl.deno.land
    • Triggering command: curl -s REDACTED (dns block)
    • Triggering command: deno run --allow-all --unsafely-ignore-certificate-errors REDACTED (dns block)
  • esm.sh
    • Triggering command: deno check _config.ts (dns block)
  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https (dns block)
  • example.com
    • Triggering command: curl -s REDACTED (dns block)
  • https://api.github.com/repos/llmstxt/spec
    • Triggering command: curl -s REDACTED (http block)
  • jsr.io
    • Triggering command: deno run --allow-all --unsafely-ignore-certificate-errors REDACTED (dns block)
    • Triggering command: deno check _config.ts (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@netlify
Copy link

netlify bot commented Jul 24, 2025

Deploy Preview for weakish ready!

Name Link
🔨 Latest commit cf84cd0
🔍 Latest deploy log https://app.netlify.com/projects/weakish/deploys/68824247b4648c0008a2752f
😎 Deploy Preview https://deploy-preview-38--weakish.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 99
Accessibility: 100
Best Practices: 100
SEO: 88
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI and others added 2 commits July 24, 2025 14:23
Co-authored-by: weakish <114114+weakish@users.noreply.github.com>
Co-authored-by: weakish <114114+weakish@users.noreply.github.com>
Copilot AI changed the title [WIP] add llms.txt Add llms.txt file for LLM guidance Jul 24, 2025
Copilot AI requested a review from weakish July 24, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add llms.txt

2 participants