Skip to content

fix: rename README.md to SKILL.md when copying skill directory #102

@jaehoonkim-x

Description

@jaehoonkim-x

Summary

When copying a skill directory using add-skill, the README.md file is copied as-is into the target directory. However, the agent runtime looks for SKILL.md, not README.md, so the skill metadata is not found correctly.

Changes

In apps/cli/src/commands/add-skill.ts, the copy logic now renames README.mdSKILL.md during the copy operation:

const githubDisplayFilename = "README.md";
const agentSkillFilename = "SKILL.md";
// ...
const targetEntry = entry === githubDisplayFilename ? agentSkillFilename : entry;
fs.cpSync(path.join(sourceDir, entry), path.join(targetDir, targetEntry), { recursive: true });

Fork / Branch

The fix is ready on my fork: https://github.com/jaehoonkim-x/expect/tree/main

Would love to have this merged. Please let me know if you'd like me to open a PR once collaborator access is granted, or if there's another preferred contribution path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions