Skip to content

Support repo/external skill command metadata #260

@shiny-code-bot

Description

@shiny-code-bot

Current Status

Issue #235 is closed for bundled system skills and repo-local bundled helper skills. The remaining schema gap is command metadata for workflows that intentionally invoke repo-root tools or external commands instead of helper scripts bundled inside a skill directory.

This issue is the focused follow-up for that gap.

Finish Line

Every Code can represent repo-relative and external skill commands in structured skill metadata without weakening strict validation for existing skill-bundled commands[].resource_path helpers.

Scope

In:

  • Add a small schema shape for structured commands that are repo-relative or external/non-bundled.
  • Render these commands clearly in the skills section so agents know they are not skill-bundled helper scripts.
  • Add loader/render regression tests that cover skill-bundled commands and the new repo/external command shape.
  • Migrate the repo-local skills that exposed the gap:
    • .codex/skills/remote-tests/SKILL.md
    • .codex/skills/test-tui/SKILL.md

Out:

  • Migrating the shared /Users/cbusillo/Developer/codex-skills library.
  • Adding per-command option/variant schemas.
  • Adding execution capability/policy fields such as requires_network.
  • Relaxing validation for current skill-bundled resource_path commands.

Starting Evidence

Candidate Design Direction

Prefer a minimal additive field over changing the existing commands[].resource_path semantics. For example, keep bundled helper commands as-is and introduce an explicit command kind/source for non-bundled commands, with validation that prevents ambiguous mixed forms.

Validation

  • Use focused loader/render tests while implementing.
  • Final required gate: ./build-fast.sh from the repo root.

Agent Handoff Notes

A clean agent should inspect:

  • code-rs/core/src/skills/model.rs
  • code-rs/core/src/skills/loader.rs
  • code-rs/core/src/skills/render.rs
  • .codex/skills/remote-tests/SKILL.md
  • .codex/skills/test-tui/SKILL.md

Keep the change narrow. Do not use this issue to solve shared skill-library migration or rich command option metadata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    planDurable planning issueplan:activeCurrent active plan

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions