Fix discovery guidance for whole-project scaffold templates - #2
Open
TomProkop wants to merge 1 commit into
Open
Conversation
txc component type list --search <term> only indexes Dataverse component-type enum entries; it structurally cannot see whole-project scaffolds (Package, Plugin, PCF, Script Library, Code App, Generative Page, test projects) since those are dotnet new templates from a different namespace of the same template package. Six skills told agents to discover them the wrong way, guaranteeing an empty result and a costly reverse-engineering detour before finding dotnet new list as the real discovery path. Adds TOOLING-BACKLOG T17 for the underlying txc gap, corrects the affected "Ask the CLI first" / intent-mapping lines in init, backend, frontend, and test, and folds the dotnet new list discovery note into each skill's own reference file that already documents the template's create command (plugin-development.md, code-apps.md, generative-pages.md, form-scripts.md, unit.md, ui.md), adding a new references/project-scaffolds.md for init, which had none. data-model and security are untouched — their search terms already resolve correctly against the real component-type registry. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Six
plugins/implement/skills/*/SKILL.mdfiles tell the agent to discover a"component type" with
txc component type list --search <term>beforetxc workspace component create <type>. That works for genuine Dataversesolution-component types (
Entity,Form,SavedQuery,PluginAssembly, …),but it structurally cannot find whole-project scaffolds (
pp-package,pp-plugin,pp-pcf,pp-script-library,pp-app-code,pp-page-generative,pp-plugin-test,pp-test-script,pp-test-ui,pp-test-ui-feature,pp-form-event-handler) — those aredotnet newtemplate short names from adifferent namespace of the same
TALXIS.DevKit.Templates.Dataversepackage,invisible to any
txccommand.txc workspace component create <type>acceptsboth namespaces identically; only discovery was missing for one of them.
Verified against a real
txc1.19.0 install — every search below returns[],while
dotnet new list | grep -i "power platform"finds all of them andtxc workspace component create <shortname> --output <path>works end to end:This wasted real agent time: following
init's literal instruction for--search packagereturns nothing, and without knowing the project-templatenamespace exists at all, the agent has to reverse-engineer the whole
dotnet new/TemplateEngine architecture from scratch to finddotnet new list.Changes
T17for the underlyingtxcgap (nodiscovery command sees its own template package's project-level templates).
init/SKILL.md— step 4's package-project discovery now points atdotnet new list; addsinit/references/project-scaffolds.md(the skillhad no
references/directory at all) explaining the two-namespace split.backend/SKILL.md+references/plugin-development.md— the "C# project"row/CLI line no longer claims
--search pluginfinds the project template(it only returns the registration types); folds the correct discovery
command into the existing reference file's Step 2.
frontend/SKILL.md+references/{code-apps,generative-pages,form-scripts}.md— fixes the generative-page, code-app, and script-library/form-event-handler
rows the same way. (The "event handler types" half of the old script row was
also re-verified as flat wrong —
--search handler/--search "event handler"return
[]too, not a partial match as I'd first guessed.)test/SKILL.md+references/{unit,ui}.md— the whole intent table waswrong (plugin test, script test, UI test + feature all live only in
dotnet new list); fixed all three rows and folded the discovery note intothe two existing reference files.
data-modelandsecurityskills are untouched — their search terms(
Entity/Table,relationship,optionset,role,privilege) resolvecorrectly against the real component-type registry.
Test plan
node scripts/generate-manifests.mjs && node scripts/validate.mjs— passes,no manifest drift.
--searchclaim above against a livetxc1.19.0install and cross-checked with
dotnet new list.txc workspace component create pp-package --output <path>and... pp-entity --output <path>both succeed end-to-end (the createcommand already handles both namespaces fine — only discovery was
broken).
🤖 Generated with Claude Code