diff --git a/ui/src/pages/CompanySkills.production.tsx b/ui/src/pages/CompanySkills.production.tsx
index cc0ebc79c10..1579df556fc 100644
--- a/ui/src/pages/CompanySkills.production.tsx
+++ b/ui/src/pages/CompanySkills.production.tsx
@@ -2987,7 +2987,7 @@ export function SkillDetailPage({
// Track unsaved edits so we can float a save bar and warn before the page is
// unloaded with a dirty draft (PAP-10907 J).
- const savedFileContent = file?.content ?? "";
+ const savedFileContent = file?.markdown ? splitFrontmatter(file.content).body : file?.content ?? "";
const isDirty = editMode && Boolean(file?.editable) && draft !== savedFileContent;
useEffect(() => {
if (!isDirty) return;
@@ -3086,7 +3086,7 @@ export function SkillDetailPage({
editMode ? (
<>
-