Skip to content

fix(marko-skills): derive scaffold vendor from project dir, never marko#126

Merged
markshust merged 1 commit into
developfrom
feature/marko-skills-project-vendor
Jun 23, 2026
Merged

fix(marko-skills): derive scaffold vendor from project dir, never marko#126
markshust merged 1 commit into
developfrom
feature/marko-skills-project-vendor

Conversation

@markshust

Copy link
Copy Markdown
Collaborator

Summary

When scaffolding a module/plugin inside an application project, the marko-skills skills suggested the marko/ vendor (e.g. marko/paymentMarko\Payment). That's wrong for an implementation — the marko vendor is reserved for packages contributed to the framework monorepo itself. An app's modules must use the project's own vendor.

Fix

Both skills (create-module, create-plugin) now instruct the agent to:

  • Derive {{vendor}} from the host project's root directory name (a project in ~/Sites/acme → vendor acme, namespace Acme).
  • Never suggest marko as the vendor for an application module/plugin (only valid inside the marko monorepo, whose root contains packages/core/).
  • Not read the vendor from the project's composer.json name — a project scaffolded from marko/skeleton still carries marko/skeleton there, so the directory name is the reliable signal.

Testing

packages/claude-plugins suite green: 71 passed. Examples use the conventional acme placeholder (matching existing test fixtures).

🤖 Generated with Claude Code

The create-module skill led with `marko/payment` as the composer-name
example, so the agent surfaced `marko/` as the default vendor when scaffolding
a module inside an application project. The marko vendor is reserved for
packages contributed to the framework monorepo — an app's own modules/plugins
must use the project's vendor.

Both marko-skills skills now instruct: derive the vendor from the host
project's root directory name (e.g. a project in ~/Sites/acme -> vendor acme,
namespace Acme), never hardcode `marko`, and do NOT read it from composer.json
`name` (a skeleton-derived project still carries `marko/skeleton` there, so the
directory name is the reliable signal).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@markshust markshust merged commit 3793078 into develop Jun 23, 2026
@markshust markshust deleted the feature/marko-skills-project-vendor branch June 23, 2026 20:00
@github-actions github-actions Bot added the bug Something isn't working label Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant