Skip to content

Commit fbfc144

Browse files
committed
fix(setup): align braintrust skill name with install path
Rename the generated skill frontmatter from braintrust-cli to braintrust so installed skills match the parent directory name used by agent integrations. Add a setup regression test to ensure future skill renders keep the expected frontmatter name and avoid skill conflict warnings.
1 parent 3f59754 commit fbfc144

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

skills/shared/skill_frontmatter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: braintrust-cli
2+
name: braintrust
33
version: 1.0.0
44
description: Use the Braintrust `bt` CLI for projects, traces, prompts, and key Braintrust workflows.
55
---

src/setup/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3709,6 +3709,12 @@ mod tests {
37093709
assert!(root.join(".cursor/skills").exists());
37103710
}
37113711

3712+
#[test]
3713+
fn rendered_skill_frontmatter_name_matches_braintrust_directory() {
3714+
let content = render_braintrust_skill();
3715+
assert!(content.starts_with("---\nname: braintrust\n"));
3716+
}
3717+
37123718
#[test]
37133719
fn docs_cache_has_required_files_checks_workflows_and_sql_reference() {
37143720
let unique = SystemTime::now()

0 commit comments

Comments
 (0)