published-consumer-e2e
Skill30 starsChanged 9 days agoMITView on GitHub
Re-run PMX Canvas like an external user by packing the repo, installing the tarball into a clean temp workspace, seeding the SDLC demo, and validating it in a browser. Use when asked to verify the published-package workflow, artifact/json-render coverage, or the full outside-in demo.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- control-session-orchestratorSkill
- data-analysisSkill
- doc-coauthoringSkill
- frontend-designSkill
- json-render-codegenSkill
- json-render-coreSkill
- json-render-inkSkill
- json-render-mcpSkill
- json-render-reactSkill
- json-render-shadcnSkill
- playwright-cliSkill
- pmx-canvas-orchestrationSkill
- pmx-canvasSkill
- pmx-canvas-testingSkill
- tufte-vizSkill
- web-artifacts-builderSkill
- web-design-guidelinesSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when the goal is to test PMX Canvas from the outside instead of the repo dev path.
- Very specific: line 28
run bun pm pack against the real package.json publish surface, including skills, docs, plugins and TypeScript declarations,
- Distinctive: line 30
create a clean temp consumer workspace,
- Distinctive: line 33
start the seeded demo through the package's public SDK,
- Very specific: line 34
run the existing tests/e2e/published-consumer.pw.ts through the Node Playwright runner, headed by default, asserting visible …
- Distinctive: line 51
Default to headed browser validation so the human can watch the run.
- Distinctive: line 52
Prefer the script over manually rebuilding the temp consumer.
- Distinctive: line 53
If you change the example assets or this browser test, rerun the full script instead of repo-only tests.
- Distinctive: line 54
Run on a dedicated port. In Amp orbs the server uses a supervised service.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Published Consumer E2E
Use this skill when the goal is to test PMX Canvas from the outside instead of the repo dev path.
This helper requires a source checkout, Bun, Python 3, curl, and (for browser checks) Node
and the repo's Playwright dependencies/browser. The npm package ships this skill but not
examples/, tests/, or the source test runner. Installing the skill alone is not sufficient.
For an installed-only consumer, verify public CLI/MCP/HTTP/SDK operations in a disposable
workspace instead; do not claim this source helper ran.
Default Path
From the source checkout, install dependencies and build the publishable assets first:
bun install
bun run build
bash skills/published-consumer-e2e/scripts/run-published-consumer-e2e.shThat script will:
- run
bun pm packagainst the realpackage.jsonpublish surface, including skills, docs, plugins and TypeScript declarations, - create a clean temp consumer workspace,
- install the tarball with Bun,
- copy
examples/published-consumer-sdlc/into that workspace, - start the seeded demo through the package's public SDK,
- run the existing
tests/e2e/published-consumer.pw.tsthrough the Node Playwright runner, headed by default, asserting visible artifact/JSON/graph content, context pins, node types and the saved baseline snapshot.
This proves a local packed install, not the identity or integrity of a registry release.
Flags
--port=4600to change the server port--skip-playwrightto stop after pack/install + HTTP smoke--headlessonly when explicitly requested--keep-runningto leave the temp consumer server alive after the script exits--workdir=/tmp/custom-dirto choose an empty temp location (existing files are never replaced)
Notes
- Install the repo's matching browser with
bun run test:install-browsersif needed. - Default to headed browser validation so the human can watch the run.
- Prefer the script over manually rebuilding the temp consumer.
- If you change the example assets or this browser test, rerun the full script instead of repo-only tests.
- Run on a dedicated port. In Amp orbs the server uses a supervised service; otherwise it reports
a process ID. With
--keep-running, stop the printedPMX_SERVER_SERVICEusingamp orb service stop <name>, or terminate the printedPMX_SERVER_PIDoutside an orb. - The browser runner also starts the repo config's separate fixture server. Set
PMX_PLAYWRIGHT_PORTto a free port when running alongside another browser suite. - Logs, tarball and browser failure artifacts remain in the printed temp workspace for inspection.
- On failure, inspect the temp workspace log path printed by the script before changing code.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

