Skip to content

fix: Code Review Standards agent: skill loading and template references fail silently in plugin/extension context #1286

@erikschlegel

Description

@erikschlegel

Component

Custom Agents

Bug Description

Title

Code Review Standards agent: skill loading and template references fail silently in plugin/extension context

Body

When the Code Review Standards agent is installed via the VS Code plugin or extension (i.e., from the coding-standards collection), skill loading and several file references fail silently, producing reviews with no applied coding standards.

Context

The plugin generator strips the .github/ prefix from all artifact paths when building the plugin. An agent at .github/agents/coding-standards/ (3 levels deep in the repo) becomes agents/coding-standards/ (2 levels deep in the plugin). Any path reference that assumes the .github/ depth is wrong in plugin context.

Observed Failures

Relative docs/templates/ links escape the plugin root. The agent references ../../../docs/templates/standards-review-output-format.md and ../../../docs/templates/engineering-fundamentals.md. In plugin context, traversing three levels up escapes the plugin root entirely — the files are never found and the agent has no output template or design principles to apply.

Skill loading fails entirely. Step 3b resolves skill names via .github/skills/coding-standards/{name}/SKILL.md and Step 3c searches under .github/skills/. Neither path exists in the plugin — skills live under skills/ (no .github/ prefix). The agent proceeds with zero loaded skills, so no coding standard findings are ever produced.

pr-reference scripts unavailable. The diff computation protocol relies on scripts from the pr-reference skill, but that skill is not included in coding-standards.collection.yml. Users who install the coding-standards collection cannot run the diff computation step.

Orphaned reference file. foundational-coding-guidelines.md exists under python-foundational/references/ but is not listed in SKILL.md's References table and duplicates the content of design-principles.md.

Labels

bug, agents, skills, packaging, priority-2

Expected Behavior

The agent should load skills, resolve template references, and execute diff computation correctly regardless of whether it is run from the repo or from a plugin/extension install.

Steps to Reproduce

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageRequires triage and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions