Repository navigation
fix: Quoted skill metadata is recognized consistently - #1613
Conversation
Use one whitespace and quote normalization path for name, toolName, description, and internal values so Unity matches the Go parser for single- and double-quoted frontmatter scalars.
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughAdds a private ChangesFrontmatter normalization
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@Packages/src/Editor/Infrastructure/SkillSetup/SkillSourceFrontmatterReader.cs`:
- Around line 14-16: The NormalizeFrontmatterScalar helper is removing any
leading or trailing quote characters instead of only a matching wrapping pair,
which can mutate legitimate values. Update NormalizeFrontmatterScalar in
SkillSourceFrontmatterReader to first trim whitespace, then only unwrap the
value when it starts and ends with the same quote character (single or double)
before returning it. Keep the fix localized to this helper since its output is
used for name, toolName, description, and internal.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 315a3ffe-b7e7-4701-b2ac-78ab198df46e
⛔ Files ignored due to path filters (1)
Assets/Tests/Editor/SkillSourceFrontmatterReaderTests.cs.metais excluded by none and included by none
📒 Files selected for processing (2)
Assets/Tests/Editor/SkillSourceFrontmatterReaderTests.csPackages/src/Editor/Infrastructure/SkillSetup/SkillSourceFrontmatterReader.cs
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
User Impact
toolName: "compile"now matches thecompiletool instead of retaining quote characters.internal: "true"andinternal: 'true'now correctly exclude internal skills from installation.internalflag behavior is preserved.Changes
name,toolName,description, andinternalfrontmatter fields.skillscan.ParseSkillFrontmatteron the Go side.Verification
SkillSourceFrontmatterReaderTestsfailed 5 of 7 cases before the implementation.dist/darwin-arm64/uloop compile --project-path <PROJECT_ROOT>(0 errors, 0 warnings)SkillSourceFrontmatterReaderTests(7 passed)SkillInstallLayoutTests(10 passed)ToolSkillSynchronizerTests(52 passed)git diff --check