Command Palette

Search for a command to run...

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

graphos-factory

БесплатноЗапускает вложенные скриптыНе проверен

Build and iterate on an Apollo Connectors subgraph for a GraphOS supergraph from a REST API, with or without an OpenAPI or Swagger spec, in a dedicated git…

apollographqlот apollographql★ 139 звёзд на GitHub

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

graphos-factory

You turn a REST API into an Apollo Connectors subgraph for the user's GraphOS supergraph, and keep it maintainable. The subgraph is the deliverable: a schema the user composes with their other subgraphs. You are the generator: no tool writes the schema for you. The graphos-factory binary (the shared references write graphos-factory-core <command>; here that is graphos-factory, installed beside it as the same binary) and the shell wrappers under graphos-factory-core/scripts/ do the mechanical work — reading a source into an inventory, rendering placeholders, running rover, checking the invariants — and make no design decisions at all.

Source kinds. workspace.yaml's source_kind names the source. Only rest is built: a REST API wrapped with Apollo Connectors, with or without an OpenAPI document. gRPC / protobuf, databases and existing GraphQL APIs are planned, not built: if a user asks for one, say so plainly and stop — never approximate one with the REST path. The workspace contract is source-agnostic; each kind adds its own intake reference and key grammar.

Everything durable lives in the workspace, a git repo you create per subgraph: inventory.json is what the source offers, selection.yaml is what the user chose, <name>.graphql is the subgraph schema the engineer edits, the decision log (the calls, each with its alternatives: decisions.json, then one file per decision under decisions/, written only via graphos-factory decisions), the findings log (settled facts, likewise, via graphos-factory findings) and memory.md are what you and your predecessors learned. Read workspace-contract.md once for the full layout. The core's references are in graphos-factory-core/references/, this target's in references/.

Never regenerate the schema wholesale after the first commit. Compute the delta and edit only what changed. Losing hand edits to a regeneration is the specific failure this skill exists to avoid — and a hand edit you have not codified (see "Hand edits" below) blocks an apply until you have.

This target's contract is the subgraph's place in the user's supergraph; what the references leave open is listed under their "Open" headings. What holds today, enforced by the binary: {{BASE_URL}} and {{AUTH_EXPR}} are the only placeholders, with the scheme prefix outside the placeholder, and template.yaml gives each a local test value (export renders them with the production values, export-graphos.md); the Federation directives the schema may import are @key, @shareable, @requires, @provides, @external, @inaccessible, @listSize, @cost and @tag (federation-subgraph.md); one @source is the shape the layers model, and a second is a lint warning (unmodelled, not forbidden); a type another subgraph owns keeps its owner's exact name, unprefixed, only once the user's resolved decision declares it (decisions add --foreign-type NAME, federation-subgraph.md § Entities another subgraph owns). @tag is for GraphOS Contracts, and off by default: apply it only when the user's supergraph uses contracts, with the names their contracts already filter on, recorded as a decision. Never invent a tag; this target imposes no tag names, so unknown-tag never fires.

Setup, before the first command. <skill> below is the directory that holds this file. Whatever installed it (npx skills add, gh skill install, a Claude Code plugin, a copied directory) and whatever the agent (Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI or any other), check with bash <skill>/scripts/bootstrap.sh --check, and on exit 127 run bash <skill>/scripts/bootstrap.sh once (about 3 MB into ~/.cache/graphos-factory-core/); a session-start hook that already did it (scripts/session-start.sh, in a clone used as a plugin) makes the check pass. Then run . <skill>/scripts/env.sh in your shell, or at the start of every command when your shell keeps no state between commands: it puts graphos-factory, its graphos-factory-core link and rover on PATH and sets GRAPHOS_FACTORY_CORE_SCRIPTS (the $S below). The toolchain (toolchain.sh) is installed only once the user agrees, whatever the host. First subgraph in a new workspace: follow first-subgraph.md, the steps from init to export in order, each with its commands, its checks and the expected non-zero exits.

Before anything else

  1. If a workspace exists, read the decision log (graphos-factory-core decisions list ., including --open for questions still awaiting the user), the findings (graphos-factory-core findings list .) and .factory/memory.md in full. Do not re-open a resolved decision unless the user asks. When they want to revise an answer to the same questi
Полный SKILL.md на GitHub

Установить graphos-factory в Claude Code и Claude Desktop

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

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

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

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

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

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

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

graphos-factory-core/references/api-discovery.mdgraphos-factory-core/references/connectors-language.mdgraphos-factory-core/references/customer-context.mdgraphos-factory-core/references/lessons.mdgraphos-factory-core/references/mapping-language.mdgraphos-factory-core/references/naming.mdgraphos-factory-core/references/schema-authoring.mdgraphos-factory-core/references/selection-review.mdgraphos-factory-core/references/spec-intake.mdgraphos-factory-core/references/testing.mdgraphos-factory-core/references/workspace-contract.mdgraphos-factory-core/release.envgraphos-factory-core/scripts/bootstrap.shgraphos-factory-core/scripts/cache.shgraphos-factory-core/scripts/compose.shgraphos-factory-core/scripts/e2e.shgraphos-factory-core/scripts/elv2.shgraphos-factory-core/scripts/live-env.shgraphos-factory-core/scripts/live.shgraphos-factory-core/scripts/resolve-bin.shgraphos-factory-core/scripts/toolchain.shgraphos-factory-core/scripts/unit.shreferences/export-graphos.mdreferences/federation-subgraph.mdreferences/first-subgraph.mdreferences/verification.mdscripts/bootstrap.shscripts/env.shscripts/session-start.shscripts/supergraph-check.sh

FAQ

Что делает скилл graphos-factory?

Build and iterate on an Apollo Connectors subgraph for a GraphOS supergraph from a REST API, with or without an OpenAPI or Swagger spec, in a dedicated git workspace that records what the API offers, the user's operation and field selection, every design decision, and the evidence each verification layer produced. Use whenever the user wants to wrap a REST API as a GraphQL subgraph for their supergraph, add or remove operations or fields from an existing connector subgraph, refresh one against a new spec, or record live API traffic as test fixtures, even if they do not say "connector", "subgraph" or "Apollo".

Как установить скилл graphos-factory?

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

Скилл graphos-factory запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить graphos-factory с