Skip to content

mission control for agent skills

Show skill description in metadata pane

Alvin Unrealcd77263b1073
diff --git a/internal/tui/state.go b/internal/tui/state.go
index 836b18d..fd8ad1e 100644
--- a/internal/tui/state.go
+++ b/internal/tui/state.go
@@ -520,11 +520,11 @@ func (m appModel) getThreePaneLayout() (listWidth, rightWidth, topHeight, bottom
}
rightWidth = width - listWidth
- // Metadata is a compact, scrollable info pane now, so cap its height and
- // hand the surplus to the skill preview below it.
- topHeight = height * 3 / 10
- if topHeight > 12 {
- topHeight = 12
+ // Metadata carries source, description, visibility, and health details, so
+ // give it a little more room while keeping preview as the larger pane.
+ topHeight = height * 4 / 10
+ if topHeight > 16 {
+ topHeight = 16
}
if topHeight < 5 {
topHeight = 5
diff --git a/internal/tui/tui_test.go b/internal/tui/tui_test.go
index 90eafd9..4842705 100644
--- a/internal/tui/tui_test.go
+++ b/internal/tui/tui_test.go
@@ -1284,6 +1284,15 @@ func TestMarkdownPreviewStripsFrontmatter(t *testing.T) {
}
}
+func TestMetadataShowsSkillDescription(t *testing.T) {
+ m := actionTestModel(t.TempDir())
+ lines := m.metadataLines(80)
+ joined := strings.Join(lines, "\n")
+ if !strings.Contains(joined, "Description:") || !strings.Contains(joined, "desc") {
+ t.Fatalf("expected skill description in metadata, got %q", joined)
+ }
+}
+
func TestDetailScrollKeysMoveViewport(t *testing.T) {
preview := strings.Repeat("- line\n", 80)
m := appModel{width: 100, height: 20, selected: 1, result: model.ScanResult{Skills: []*model.Skill{{Name: "Long", Description: "desc", Scope: model.ScopeProject, Preview: preview}}}}
diff --git a/internal/tui/view.go b/internal/tui/view.go
index 85ee092..ee23767 100644
--- a/internal/tui/view.go
+++ b/internal/tui/view.go
@@ -465,6 +465,9 @@ func (m appModel) metadataLines(width int) []string {
lines := []string{
formatMetaLine("Scope:", styledScopeBadge(string(view.Scope)), width),
}
+ if view.Description != "" {
+ lines = append(lines, formatMetaLine("Description:", dimStyle.Render(view.Description), width))
+ }
if sourceLines := sourceDetailLines(row.skill, width); len(sourceLines) > 0 {
lines = append(lines, sourceLines...)
} else {