Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agent-marketplace-development

БесплатноБез исполняемых скриптовНе проверен

How to develop on the agent-marketplace codebase itself: architecture tour, testing workflow, TUI (Bubble Tea) and CLI (Cobra) conventions, and the…

Adyenот Adyen★ 100 звёзд на GitHub

Об этом скилле

agent-marketplace-development

How to be productive working on the agent-marketplace Go binary. This is about contributing to the tool itself, not about using it to sync skills (that's the agent-marketplace skill next to this one).

Orient Yourself First

Before touching anything, read these in order:

  1. AGENTS.md — spec authority, build/test/validation gates, command-test isolation, session-completion rules. It owns the Make targets and test selection rules; this skill does not repeat them.
  2. openspec/specs/ — the normative behavior. A behavior change needs an OpenSpec change with a spec delta, and every scenario needs a // spec: <capability>/<scenario> test binding.
  3. CODING_STANDARDS.md — design, security-boundary, testing, and logging requirements.
  4. The agent-marketplace skill next door — the user-facing contract.
  5. For the desktop GUI (gui/, cmd/agent-marketplace-gui/, internal/localapi/): gui.md, before inspecting or changing it. It names the one-command mocked preview and the cheapest loop for each question.

Then skim:

  • cmd/agent-marketplace/main.go — Cobra root, subcommand wiring, TUI launch on bare TTY invocation.
  • internal/config/v4.go — the strict v4 sources/resources model (V4Config) and its runtime adapter into the internal Config/RegistryEntry model the resolver consumes. The adapter is not legacy consumer-format support.
  • internal/config/effective_config.go — LoadEffective loads the four layers (and their includes and locks).
  • internal/config/merge.go — MergeLayers and resolveInheritedList (runtime requirement inheritance; not an on-disk consumer schema).
  • internal/pipeline/pipeline.go — Resolve, ResolveWithExactLockLease, and Sync: the one pipeline both CLI and TUI call.
  • internal/resolver/resolver.go — selects which resources are enabled.
  • internal/harness/roots.go, registry.go, destinations.go — TargetInfo metadata, the Devin/Codex installation adapters, and single-root vs. Codex-partitioned destinations.
  • internal/session/ — the surface-neutral interactive-session core: staged snapshots, rows (Row, BuildRows), generation isolation, mutation gating, progress observation, diagnostics, guarded actions, and init harness-target/first-configuration detection. No Bubble Tea or other charm.land/charmbracelet imports.
  • internal/lifecycle/ — runtime lock/lifecycle wiring shared by CLI and TUI: PrepareRuntimeLocks, RefreshDriftedMarketplaceLocks, ReconcileCommandDependencies.
  • internal/tui/state.go — Model fields used by the TUI; row is a session.Row alias declared in internal/tui/session.go, which adapts the session core into tea.Cmd/tea.Msg.

Build and smoke test

Use the Make targets and scoped TEST_PACKAGES invocations in AGENTS.md. To smoke-test the TUI against the current checkout:

make build && ./agent-marketplace

A smoke launch or Go test run does not exercise the real-terminal journeys. Every TUI change must add or extend one; see Every TUI change ships a TUI QA journey and Local TUI QA below.

Pre-commit (.pre-commit-config.yaml) runs make test, make lint, and make build. make lint rewrites files (go mod tidy, go fmt); re-stage and commit again when it does.

Architecture: Two Entry Points, One Data Flow

Both the CLI subcommands and the TUI drive internal/pipeline:

pipeline.LoadEffective -> config.EffectiveConfig    [four layers + includes + locks;
        |                                            v4 adapted into runtime requirements]
        v
  config.MergeLayers(layers) -> *config.Config      [merge.go]
        |
        v
  catalog.LoadRegistriesWithContext                 [exact Git snapshots, live dirs]
        |
        v
  resolver.Resolve(cfg, catalogs, localCfg,
      WithResources, WithTargetHarnesses, ...)      [resolver]
        |
        v
  pipeline.Sync: backup.Create, materialize.Run     [compile, link/copy, reconcile]
  • CLI (cmd/agent-marketplace/) runs this pipeline once, prints, exits. Mutating commands (install, remove, update) go through pipeline.Install/Remove/Update, which publish config and the layer lock in one dependency transaction (internal/dependencytxn).
  • TUI (internal/tui/) is a Bubble Tea adapter over the internal/session core: the core runs the pipeline as staged snapshots on startup and after every config write, and the TUI keeps a Model of terminal/view state and re-renders from the core's events.

Everything below this line — resource selection rules, symlink targets, name collision behavior — is shared. Fixes at the internal/* layer fix both surfaces at once. Features that only make sense in one surface belong in cmd/agent-marketplace/ or internal/tui/.

Resolver invariants

  • resolver.Resolve
Полный SKILL.md на GitHub

Установить agent-marketplace-development в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

gui.md

FAQ

Что делает скилл agent-marketplace-development?

How to develop on the agent-marketplace codebase itself: architecture tour, testing workflow, TUI (Bubble Tea) and CLI (Cobra) conventions, and the config/resolver/materialization invariants that every change must preserve. Use when adding features, fixing bugs, or reviewing changes to the agent-marketplace Go binary, running local TUI QA, working on or screenshotting the desktop GUI, or maintaining harness compatibility validation. Every TUI change must ship a real-terminal TUI QA journey that proves the changed flow.

Как установить скилл agent-marketplace-development?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-marketplace-development запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить agent-marketplace-development с