Agent Skills › letta-ai/letta-code › letta-guide

letta-guide

GitHub

规范在Letta环境中获取官方文档的正确流程,通过专用脚本和ETag校验确保内容实时准确,避免使用失效缓存或猜测URL,适用于解答产品、API及SDK相关问题。

src/skills/builtin/letta-guide/SKILL.md letta-ai/letta-code

Trigger Scenarios

查询Letta产品功能或配置 查找Letta API或Agent SDK参考 用户询问关于当前Agent的状态或工具

Install

npx skills add letta-ai/letta-code --skill letta-guide -g -y
More Options

Non-standard path

npx skills add https://github.com/letta-ai/letta-code/tree/main/src/skills/builtin/letta-guide -g -y

Use without installing

npx skills use letta-ai/letta-code@letta-guide

指定 Agent (Claude Code)

npx skills add letta-ai/letta-code --skill letta-guide -a claude-code -g -y

安装 repo 全部 skill

npx skills add letta-ai/letta-code --all -g -y

预览 repo 内 skill

npx skills add letta-ai/letta-code --list

SKILL.md

Frontmatter
{
    "name": "letta-guide",
    "description": "Read the official Letta documentation (docs.letta.com) through its cached, ETag-checked fetch route. Load before ANY docs.letta.com retrieval — answering how Letta works, what Letta (or you) can do, and looking up Letta API, Agent SDK, or Letta Code reference."
}

Letta Guide

Do not use fetch_webpage or web_search on docs.letta.com; this skill's helper is the docs route.

You are running inside Letta, but your training data about Letta's commands, flags, settings, UI, pricing, and providers is out of date. Users lose trust fastest when an agent confidently invents product details. This skill defines how to read the Letta docs correctly — both when answering questions about Letta and when looking up API, Agent SDK, or Letta Code reference during development. Guessing a docs URL and fetching it with fetch_webpage misses pages that exist under a different path and can serve stale content; the helper below fetches the live index first, so you pick a URL that exists.

Source route (in order)

  1. Self-inspection first for questions about THIS agent. "What model are you using?", "what tools do you have?", "what's in your memory?" are questions about the running session, not the docs. Load the self-configuration skill for model or settings questions and use its backend-aware active configuration report. Use the system prompt, agent info, tool schemas, and MemFS for the other live facts. Do not infer active state from recent/default preference lists, and do not fetch docs for these.

  2. Fetch the docs index directly. For product questions, run:

    node <SKILL_DIR>/scripts/fetch-letta-docs.mjs
    

    The helper retrieves https://docs.letta.com/llms.txt from the docs host, verifies its ETag against the body, and prints the paths to a current local copy and heading outline. Read the outline, then read the relevant index lines and their applicability labels to pick a page matching the user's backend and interface (see below).

  3. Fetch the specific page directly. Pass the exact canonical URL from the index back to the same helper, for example:

    node <SKILL_DIR>/scripts/fetch-letta-docs.mjs \
      --docs-url "https://docs.letta.com/configuration/models/index.md"
    

    Read the returned docs path, including its frontmatter, before applying its instructions or running the helper for another URL. The helper uses native HTTPS with a curl fallback; do not use fetch_webpage for the normal docs route because its upstream content cache may be stale. Cite the public doc URL so the user can go deeper.

  4. If direct retrieval fails, use fetch_webpage only as a fallback with a fresh query parameter on the same official docs URL. Disclose that the fallback may be stale. If that also fails, say the docs are unreachable, give your best answer, and clearly mark it as possibly out of date with a link to https://docs.letta.com. Never silently fall back to memory.

Match documentation to the user's setup

Read each page's applies_to frontmatter before using its instructions:

applies_to:
  backends: [cloud, local]
  interfaces: [web, desktop, cli, sdk]
  • Backends describe agent state, not the computer running tools. cloud means Letta Cloud; local means a user-managed backend.
  • Interfaces refer to the user's current interface: chat.letta.com (web, cloud-only), CLI, Desktop, or SDK.
  • Do NOT use context from files marked status: legacy unless providing historical context.

Inspect or change your model from the CLI

  • letta model list [--byok | --hosted] lists available models.
  • letta model set [model_handle] [--reasoning <reasoning-option>] [--default] overrides the current conversation's model or reasoning; --default overrides the agent's default instead.
  • letta model get [--default] gets the current model configuration; --default gets the agent's default configuration.

Hard rules

  • Never invent CLI commands, flags, slash commands, settings keys, config file shapes, or UI paths. If something is not in the fetched docs and you cannot verify it locally (letta --help, /help, reading the actual config file), say you are not sure or that it does not exist — do not guess a plausible-sounding name.
  • Distinguish surfaces. The CLI, the desktop app, the web app (chat.letta.com), and the API/SDK have different affordances. Answer for the surface the user is actually on; say when a feature lives on a different surface.
  • Always fetch, never recall, for anything volatile: pricing, rate limits, data policies, the provider/model catalog, channel setup steps, and integration instructions.
  • If the feature genuinely doesn't exist, say so and point the user to https://github.com/letta-ai/letta-code/issues to request it.

Support escalation

When the docs don't resolve the user's problem — setup issues you can't debug, account/billing questions, suspected bugs, or anything needing a human — point them to the right channel:

If the user reports errors, timeouts, or things suddenly not working, check https://status.letta.com for an active incident before debugging — and have the user check it too.

Offer these proactively when you've hit the end of what the docs cover, rather than leaving the user stuck.

Caching

The helper owns the cache. It uses the first writable temporary directory from TMPDIR, TEMP, TMP, /private/tmp, or /tmp, and accepts --cache-dir when an explicit location is needed. Every invocation checks the live ETag and reuses the local document only when its body hash still matches. Do not create or manage a second cache yourself.

Version History

  • 13aad83 Current 2026-09-22 06:45

    新增根据文档适用性元数据(applies_to)匹配用户后端和界面的逻辑,优化自配置触发范围。

  • 4d5cd9c 2026-09-03 02:47

    新增强制路由规则,要求所有 docs.letta.com 的读取必须通过 letta-guide 技能处理,禁止直接使用 fetch_webpage 或 web_search,以防止获取过时或错误内容。

  • 23446a1 2026-07-23 06:14

Same Skill Collection

.skills/adding-models/SKILL.md
.skills/capturing-tui-visual-proof/SKILL.md
src/skills/builtin/acquiring-skills/SKILL.md
src/skills/builtin/browser-use/SKILL.md
src/skills/builtin/context-doctor/SKILL.md
src/skills/builtin/converting-mcps-to-skills/SKILL.md
src/skills/builtin/creating-mods/SKILL.md
src/skills/builtin/creating-skills/SKILL.md
src/skills/builtin/customizing-commands/SKILL.md
src/skills/builtin/customizing-statusline/SKILL.md
src/skills/builtin/dispatching-coding-agents/SKILL.md
src/skills/builtin/editing-letta-code-desktop-preferences/SKILL.md
src/skills/builtin/finding-agents/SKILL.md
src/skills/builtin/generating-mod-envs/SKILL.md
src/skills/builtin/image-generation/SKILL.md
src/skills/builtin/initializing-memory/SKILL.md
src/skills/builtin/managing-shared-memory/SKILL.md
src/skills/builtin/messaging-agents/SKILL.md
src/skills/builtin/migrating-memory/SKILL.md
src/skills/builtin/modifying-the-harness/SKILL.md
src/skills/builtin/scheduling-tasks/SKILL.md
src/skills/builtin/self-configuration/SKILL.md
src/skills/builtin/submitting-feedback/SKILL.md
src/skills/builtin/syncing-memory-filesystem/SKILL.md
src/skills/builtin/teleporting-between-environments/SKILL.md
src/skills/builtin/using-cloud-mcp/SKILL.md
src/skills/builtin/using-mcp-tools/SKILL.md
src/skills/builtin/workflow-authoring/SKILL.md
src/skills/builtin/working-across-computers/SKILL.md

Metadata

Files
0
Version
1cab1b7
Hash
ee8de9c7
Indexed
2026-07-23 06:14

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-01 04:28
浙ICP备14020137号-1