Skip to content

fix(create-expert): use appendTextFile instead of editTextFile#366

Merged
FL4TLiN3 merged 1 commit intomainfrom
fix/354-use-append-text-file
Jan 3, 2026
Merged

fix(create-expert): use appendTextFile instead of editTextFile#366
FL4TLiN3 merged 1 commit intomainfrom
fix/354-use-append-text-file

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Jan 3, 2026

Summary

Fix ecosystem-builder instruction to use the correct tool for appending content to files.

Problem

The instruction said:

Use editTextFile to APPEND the Expert ecosystem to the existing perstack.toml.

But per docs/making-experts/base-skill.md:

  • editTextFile: "Performs search-and-replace in text files" (requires oldText)
  • appendTextFile: "Appends content to existing files" (directly adds to end)

Solution

Changed to:

Use appendTextFile to add the Expert ecosystem to perstack.toml.

Test plan

  • CI passes
  • Generated experts use correct file operation

Closes #354

🤖 Generated with Claude Code


Note

fix(create-expert): correct file-append instruction

  • Updates ecosystem-builder instructions in create-expert-toml.ts to use appendTextFile (after reading the file) for adding experts to perstack.toml, replacing the incorrect editTextFile guidance and clarifying not to modify model/runtime/provider settings
  • Adds a changeset (.changeset/use-append-text-file.md) for a patch release

Written by Cursor Bugbot for commit 675b8c4. This will update automatically on new commits. Configure here.

The ecosystem-builder instruction incorrectly told the LLM to use
editTextFile for appending content. Per docs/making-experts/base-skill.md:
- editTextFile: "Performs search-and-replace in text files"
- appendTextFile: "Appends content to existing files"

Changed to use appendTextFile which is the correct tool.

Closes #354

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Jan 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@FL4TLiN3 FL4TLiN3 merged commit 23a8f49 into main Jan 3, 2026
7 checks passed
@FL4TLiN3 FL4TLiN3 deleted the fix/354-use-append-text-file branch January 3, 2026 05:31
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.

Fix: ecosystem-builder incorrectly instructs to use editTextFile for appending

1 participant