From d9623568523032662930d91036291cf4f77bcead Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Sun, 4 Jan 2026 17:52:07 -0800 Subject: [PATCH] fix: update SKILL.md files to use npx tsx with (#461) Co-authored-by: Letta --- src/skills/builtin/creating-skills/SKILL.md | 6 +++--- src/skills/builtin/finding-agents/SKILL.md | 18 +++++++++--------- src/skills/builtin/migrating-memory/SKILL.md | 14 +++++++------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/skills/builtin/creating-skills/SKILL.md b/src/skills/builtin/creating-skills/SKILL.md index 6153d6d..b584355 100644 --- a/src/skills/builtin/creating-skills/SKILL.md +++ b/src/skills/builtin/creating-skills/SKILL.md @@ -263,7 +263,7 @@ When creating a new skill from scratch, always run the `init-skill.ts` script. T Usage: ```bash -npx ts-node scripts/init-skill.ts --path +npx tsx /scripts/init-skill.ts --path ``` The script: @@ -335,13 +335,13 @@ Write instructions for using the skill and its bundled resources. Once development of the skill is complete, it must be packaged into a distributable .skill file that gets shared with the user. The packaging process automatically validates the skill first to ensure it meets all requirements: ```bash -npx ts-node scripts/package-skill.ts +npx tsx /scripts/package-skill.ts ``` Optional output directory specification: ```bash -npx ts-node scripts/package-skill.ts ./dist +npx tsx /scripts/package-skill.ts ./dist ``` The packaging script will: diff --git a/src/skills/builtin/finding-agents/SKILL.md b/src/skills/builtin/finding-agents/SKILL.md index 6c2aa8f..edb654b 100644 --- a/src/skills/builtin/finding-agents/SKILL.md +++ b/src/skills/builtin/finding-agents/SKILL.md @@ -18,7 +18,7 @@ This skill helps you find other agents on the same Letta server. ## Script Usage ```bash -npx ts-node scripts/find-agents.ts [options] +npx tsx /scripts/find-agents.ts [options] ``` ### Options @@ -39,7 +39,7 @@ npx ts-node scripts/find-agents.ts [options] Agents created by Letta Code are tagged with `origin:letta-code`. To find only Letta Code agents: ```bash -npx ts-node scripts/find-agents.ts --tags "origin:letta-code" +npx tsx /scripts/find-agents.ts --tags "origin:letta-code" ``` This is useful when the user is looking for agents they've worked with in Letta Code CLI sessions. @@ -49,39 +49,39 @@ This is useful when the user is looking for agents they've worked with in Letta If the user has agents created outside Letta Code (via ADE, SDK, etc.), search without the tag filter: ```bash -npx ts-node scripts/find-agents.ts +npx tsx /scripts/find-agents.ts ``` ## Examples **List all agents (up to 20):** ```bash -npx ts-node scripts/find-agents.ts +npx tsx /scripts/find-agents.ts ``` **Find agent by exact name:** ```bash -npx ts-node scripts/find-agents.ts --name "ProjectX-v1" +npx tsx /scripts/find-agents.ts --name "ProjectX-v1" ``` **Search agents by name (fuzzy):** ```bash -npx ts-node scripts/find-agents.ts --query "project" +npx tsx /scripts/find-agents.ts --query "project" ``` **Find only Letta Code agents:** ```bash -npx ts-node scripts/find-agents.ts --tags "origin:letta-code" +npx tsx /scripts/find-agents.ts --tags "origin:letta-code" ``` **Find agents with multiple tags:** ```bash -npx ts-node scripts/find-agents.ts --tags "frontend,production" --match-all-tags +npx tsx /scripts/find-agents.ts --tags "frontend,production" --match-all-tags ``` **Include memory blocks in results:** ```bash -npx ts-node scripts/find-agents.ts --query "project" --include-blocks +npx tsx /scripts/find-agents.ts --query "project" --include-blocks ``` ## Output diff --git a/src/skills/builtin/migrating-memory/SKILL.md b/src/skills/builtin/migrating-memory/SKILL.md index 1ca0d44..adb8085 100644 --- a/src/skills/builtin/migrating-memory/SKILL.md +++ b/src/skills/builtin/migrating-memory/SKILL.md @@ -60,7 +60,7 @@ Example: "What's the ID of the agent you want to migrate memory from?" Inspect what memory blocks the source agent has: ```bash -npx ts-node scripts/get-agent-blocks.ts --agent-id +npx tsx /scripts/get-agent-blocks.ts --agent-id ``` This shows each block's ID, label, description, and value. @@ -71,14 +71,14 @@ For each block you want to migrate, choose copy or share: **To Copy (create independent block):** ```bash -npx ts-node scripts/copy-block.ts --block-id [--label ] +npx tsx /scripts/copy-block.ts --block-id [--label ] ``` Use `--label` if you already have a block with that label (e.g., `--label project-imported`). **To Share (attach existing block):** ```bash -npx ts-node scripts/attach-block.ts --block-id +npx tsx /scripts/attach-block.ts --block-id ``` Add `--read-only` flag to share to make this agent unable to modify the block. @@ -113,20 +113,20 @@ Scenario: You're a new agent and want to inherit memory from an existing agent " 2. **List its blocks:** ```bash - npx ts-node scripts/get-agent-blocks.ts --agent-id agent-abc123 + npx tsx /scripts/get-agent-blocks.ts --agent-id agent-abc123 # Shows: project (block-def456), human (block-ghi789), persona (block-jkl012) ``` 3. **Copy project knowledge to yourself:** ```bash # If you don't have a 'project' block yet: - npx ts-node scripts/copy-block.ts --block-id block-def456 + npx tsx /scripts/copy-block.ts --block-id block-def456 # If you already have 'project', use --label to rename: - npx ts-node scripts/copy-block.ts --block-id block-def456 --label project-v1 + npx tsx /scripts/copy-block.ts --block-id block-def456 --label project-v1 ``` 4. **Optionally share human preferences (read-only):** ```bash - npx ts-node scripts/attach-block.ts --block-id block-ghi789 --read-only + npx tsx /scripts/attach-block.ts --block-id block-ghi789 --read-only ```