WorkLensDocs
    Studio
    reference

    Resources & prompts

    The 6 guide resources and 3 prompts the server publishes beside its tools, so an agent can read before it drafts.

    Last updated 2026-09-13 · Generated from apps/mcp-server/src/index.mjs (GUIDE_RESOURCES, PROMPTS) · Markdown

    Summary

    Besides tools, the server publishes 6 resources under worklens://guide/ — the drafting core, the advanced constructs, the repo-reading procedure, the scenario playbook, pack authoring and a worked example — and 3 prompts. A client that lists resources sees them; reading one returns the same text get_recipe_schema serves for that section.

    Resources

    • worklens://guide/core — The drafting core: shape, field types, rules, a runnable example. Advanced constructs are named here and documented in their own resource.
    • worklens://guide/advanced_constructs — Syntax for flow, no_overlap, tree, graph, scope, derive, aggregate, rollup, the *_when conditionals and month_weights.
    • worklens://guide/task_discovery — The ordered repo-reading procedure and the engine's honest list of what it cannot do. Read before drafting from an existing codebase.
    • worklens://guide/scenario_playbook — Which KINDS of test data exist, the keys that declare each, and the receipt that proves it ran.
    • worklens://guide/pack_authoring — How to draft a locale or domain pack, its provenance rules, and how register_pack closes the loop.
    • worklens://guide/worked_example — One complete 4-entity recipe that validates clean and generates.
    • worklens://last-run — The most recent run on this machine: the recipe it came from, the files it wrote (names, sizes, hashes), the lock and the receipt verdict — never a row of data. Read it to continue where the last chat left off. (local server only)

    Prompts

    • draft-recipe — Draft a WorkLens recipe from a plain-English description, check it, and show it back before anything is made.
    • draft-from-repo — Read this codebase and draft a WorkLens recipe from what is actually there, not from memory.
    • check-before-generating — Run the full pre-flight on a recipe you already have, in the order that fails cheapest first.

    Read one

    {
      "method": "resources/read",
      "params": {
        "uri": "worklens://guide/core"
      }
    }

    The body is the matching section of the get_recipe_schema payload.