跳到正文
cccskills
免费在 GitHub 公开

mk-llms

Generate llms.txt files from project docs per the llmstxt.org spec, for AI-friendly documentation indexes and discoverability. Use to create or update llms.txt for AI assistants.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(3)

  • SKILL.md3.8 KB
  • references/llms-txt-spec.md1.5 KB
  • scripts/generate-llms-txt.py10.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

llms.txt Generator

Generate llms.txt files — LLM-friendly markdown indexes of project documentation.

Path convention: Commands below assume cwd is $(git rev-parse --show-toplevel) (project root). Prefix paths with "$(git rev-parse --show-toplevel)/" when invoking from subdirectories.

When to Use

  • Project needs LLM-friendly documentation index
  • User asks for "llms.txt", "LLM documentation", "AI-friendly docs"
  • Publishing docs site and want AI discoverability
  • After major documentation updates (Phase 6 Reflect)

Explicit: the llms skill [path] [--full]

Workflow Integration

Operates in Phase 6 (Reflect) or on-demand. Output supports the documenter agent.

Arguments

FlagEffect
(no args)Scan ./docs directory
pathScan specific directory
--fullAlso generate llms-full.txt with inline content
--output pathCustom output location (default: project root)
--url baseBase URL prefix for links

Scripts

Script-first approach — the Python script handles all deterministic work (scanning, extracting, categorizing, generating). Codex only reviews and improves the output.

# Generate llms.txt (script does the heavy lifting)
.agents/skills/.venv/bin/python3 .agents/skills/llms/scripts/generate-llms-txt.py \
  --source ./docs [--output .] [--base-url https://example.com/docs] [--full]

# Preview metadata first (Codex reviews before generating)
.agents/skills/.venv/bin/python3 .agents/skills/llms/scripts/generate-llms-txt.py \
  --source ./docs --json

Process

  1. Run script — execute generate-llms-txt.py --source <path> --json to preview metadata
  2. Review metadata — check project name, description, file categorization
  3. Generate — run script again without --json to produce llms.txt
  4. Review output — read generated llms.txt, improve descriptions if needed
  5. Validate — check: H1 present, blockquote summary, valid link format, Optional section last
  6. If --full: review llms-full.txt for completeness

Output Format

# {Project Name}

> {Brief project description with essential context.}

## {Section Name}

- [{Doc Title}]({url}): {Brief description}
- [{Another Doc}]({url}): {What this covers}

## Optional

- [{Less Important Doc}]({url}): {Supplementary info}

References

ReferenceWhen to loadContent
llms-txt-spec.mdStep 4 — generatingFull llmstxt.org specification rules

Failure Handling

FailureRecovery
No .md files foundReport "No documentation found in {path}"
No H1 in doc fileUse filename as title, warn user
Output path not writableSuggest alternative path

Constraints

  • Never fabricate documentation content — only index what exists
  • Follow llmstxt.org spec strictly
  • Keep descriptions concise — one sentence per entry

Gotchas

  • Python venv required: run .codex/scripts/bin/setup-workflow once from the project root before invoking this skill. Re-run after upgrading the toolkit.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use this skill to generate well-branded interfaces and assets for MeowKit (AI Agent Toolkit for Claude Code), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

mk-advise

免费

Turn a raw idea into ONE honest recommendation: interview one question at a time until confirmed, then give a verdict with trade-offs and a checklist. Not for options or debate.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Browser automation CLI for agents: navigate, click/fill, screenshot, extract data, test apps, Electron/Slack, cloud browsers. NOT for the user's real Chrome profile/cookies (mk:chrome-profile).

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Detects the right agent and complexity tier at Phase 0 orient; runs first in every workflow. NOT for runtime agent routing inside a single skill.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Angular v20+ patterns: components, signals, services, forms, routing, HTTP, testing, SSR. Auto-activates on .ts files in Angular projects (angular.json detected).

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Design and review durable REST, GraphQL, RPC, or event API contracts: shape, compatibility, pagination, error semantics. Discovers existing consumers first. Not implementation, schema, or release.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

查看 ngocsangyem 的全部技能

报告此技能的问题