Skip to content

[Request]: Add an explicit urlcode.ai-assisted workflow to the authoring skill #806

Closed

Description

@jimhoyd

Problem or use case

Provide an explicit hosted-assisted mode in the existing urlcode-authoring skill so an agent uses the revision-matched authoring kit from urlcode.ai before broad package/docs discovery or writing YAML.

In the reviewed test6 captures, none of six URLCode attempts called the hosted service; one invoked a local urlcode-authoring skill but still made no hosted call. All six initially queried the unscoped npm package. This establishes a workflow/discovery gap, not evidence that hosted assistance improves performance. The current checkout's .claude/skills/urlcode-authoring/SKILL.md leads with local get_context / CLI context and describes URLCode AI as optional; it does not define a task-plan-first hosted-assisted path. Do not infer that the current skill bytes match the historical capture.

Proposed behavior and alternatives

Extend the existing skill rather than creating a competing copy of runtime guidance:

  • Keep local-only authoring supported. Explicit invocation of hosted-assisted mode should call urlcode_task_plan before implementation, using the task requirements and respecting the installed runtime version. Report a version mismatch rather than silently upgrading or mixing references.
  • Prefer a registered hosted MCP connection. Document setup separately: a skill supplies workflow instructions, not automatic MCP registration. Distinguish the hosted server from local project-aware MCP tools and avoid overwriting existing client configuration.
  • When MCP is unavailable and network/tool access permits, document a bounded HTTP fallback to https://api.urlcode.ai/mcp with tested protocol requests, response parsing, error handling and timeouts. Clearly report when hosted guidance was unavailable; do not claim it was used.
  • Follow the returned scoped package installation guidance and focused recipes/schema, prefer declarative features, and retrieve only missing material.
  • Use hosted YAML validation as advisory feedback, then run project-local validation and behavioral fixtures. Preserve independent acceptance tests; generated fixtures and schema validation alone do not establish task correctness.
  • Keep hosted access explicit and send only the material needed for guidance; never upload credentials or entire private projects. Preserve self-hosted/local-only operation and existing project capabilities.
  • Maintain public setup/workflow documentation in this repository and reuse runtime-owned skill exports; coordinate any service-specific work with urlcode-ai.

Acceptance evidence

  • A connected-agent smoke test records an actual hosted urlcode_task_plan call before YAML authoring, follows its version-matched guidance, and runs local validation/tests.
  • A separate test exercises HTTP fallback without registered MCP; unavailable service/network and runtime mismatch produce clear bounded outcomes.
  • Local-only mode remains functional and does not require the hosted service.
  • Assisted benchmark captures record skill provenance, MCP configuration and actual calls, and remain separately labeled from the unaided baseline. Measure improvements rather than assuming them.

Related work

This request concerns the client skill's activation and execution workflow, not a new runtime extension or hosted generation service.

Activity

  1. jimhoyd commented on Sep 27, 2026

    @jimhoyd
    CollaboratorAuthor

    Follow-up local simulation evidence (2026-09-27), relevant to the delivery mechanism for this workflow. This does not test the hosted service or establish a benefit from urlcode.ai.

    Used Claude Sonnet 5 / medium with preinstalled URLCode 0.6.4 and a four-minute ceiling. The task was a three-requirement subset of the static-site benchmark: a home response, a permanent redirect, and a plain-text asset response. Six fresh model contexts compared an initialized empty site plus explicit workspace/project locations against the same setup with runtime-generated respond, redirect, and static capability JSON supplied before the first turn. The packet also included short declarative-first/verification guidance. Order: starter/packet, packet/starter, starter/packet.

    Observation Starter only (3 runs) Starter + contract packet (3 runs)
    Seconds per run 54.1, 76.8, 49.7 37.8, 55.2, 84.9
    Median seconds 54.1 55.2
    All 3 HTTP checks pass from workspace-root npm start 3/3 runs 3/3 runs
    Unsupported route-field guesses observed 2/3 runs 0/3 runs
    Asset path-root correction needed 0/3 runs 2/3 runs
    Persisted request fixtures 0/3 runs 1/3 runs

    Independent HTTP checks passed on all six outputs. The packet trial that wrote request fixtures also passed independent npm test (3 cases). CLI-reported median cost was $0.1805 vs $0.1750; costs are not independently reconciled billing. The packet's early speed advantage did not persist in the medians.

    Earlier single-run probes loaded the full shipped authoring skill and a shorter contract-first skill. The full skill did not induce context/schema retrieval; the short one did, but created a nested site with no workspace-root start script. Those probes are exploratory and should not be pooled with the six-run comparison.

    Direction suggested by this evidence: the assisted workflow should establish a deterministic site/project location and deliver a small revision-matched contract packet before authoring, with explicit path roots and an independently executed completion check. A skill can invoke this workflow, but skill availability or prose instructions alone are not evidence the workflow happened. Preserve a local-only route using the existing runtime capabilities. This supports testing the delivery of an authoring kit, not claiming a speed win or requiring a hosted dependency.

    Limits: tiny single task/model, only three runs per new condition, shared host/cache without enforced filesystem/process isolation, manually selected handlers, and preparation outside measured model time. The task permits different response implementations; one control used respond for the asset path. Most runs used curl rather than persisted fixtures. Raw transcripts/generated apps remain local and are not attached. No benchmark or runtime repository code was modified. Larger-task generalization and automated handler selection remain unverified.

  2. added
    enhancement
    ai-first
    documentation
    on Sep 27, 2026
  3. jimhoyd commented on Sep 27, 2026

    @jimhoyd
    CollaboratorAuthor

    Decision (owner, 2026-09-27): deferred. The local bootstrap in #807 comes first, and the hosted-assisted skill mode waits for the hosted authoring kit (jimhoyd-com/urlcode-ai#85). The issue stays open.


    Generated by Claude Code

  4. added
    needs-decision
    on Sep 27, 2026
  5. jimhoyd commented on Sep 27, 2026

    @jimhoyd
    CollaboratorAuthor

    Decision (owner, 2026-09-27): the blockers have cleared (jimhoyd-com/urlcode-ai#85 closed, and #807 merged in #813), so this is being implemented now in this repository. It adds an opt-in hosted-assisted mode to the urlcode-authoring skill. Local-only stays the default. Tests run against a local mock only; there are no calls to the live service.


    Generated by Claude Code

  6. added
    in-progress
    and removed
    needs-decision
    on Sep 27, 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-firstdocumentationenhancementin-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions