Skip to content

[Bug]: context, capabilities and skill contradict the router on wildcards #585

Closed

Description

@jimhoyd

Runtime revision and environment

main at 645239b; core 0.5.9 packed with npm pack and installed into scratch projects, run as llms.txt instructs (npx --no --package @jimhoyd/urlcode urlcode …); MCP driven over stdio. Node 26, macOS. Found in a hands-on usability audit (agent and human perspectives).

Minimal reproduction

get_context constraints say pathShape: "No greedy captures or general-purpose wildcards" and wildcardMounts: false, and the authoring skill says "no wildcard handlers". But redirect routes accept /** (validated and served), get_context --task redirects says so, and static routes require a terminal /* — which neither the static capability nor its schema entry mentions. This cost a failed validate in a static-site task.

Relevant output

urlcode context --json vs urlcode validate on /legacy/** redirect and a static mount without /*.

Suggested fix

State the actual rule in all three places: /** suffix on redirects, required /* on static mounts, no general wildcards elsewhere.

Activity

  1. added
    bug
    ai-first
    on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-firstbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions