openship-config
GitHub用于创建、配置和验证 OpenShip 部署配置文件 openship.json。涵盖仓库检查、字段选择、自我托管设置及错误修复,确保配置符合规范并准备就绪。
触发场景
安装
npx skills add fcakyon/claude-codex-settings --skill openship-config -g -y
SKILL.md
Frontmatter
{
"name": "openship-config",
"description": "This skill should be used when the user asks to \"create openship.json\", \"configure an OpenShip deployment\", \"make a repo deployable on OpenShip\", or fix \"openship config validate\" errors."
}
Design openship.json
Use OpenShip's upstream configuration workflow: inspect the repo, declare only necessary overrides, then validate. Auto-detection supplies omitted fields. Prefer self-hosted deployment unless the user selects cloud.
Design the configuration
- Inspect package scripts, lockfiles, framework settings, Dockerfiles, compose files, workspace layout, and an existing
openship.json. - Choose a single app, compose services, or detected monorepo apps. Do not combine those shapes casually.
monorepo.appsoverrides detected apps by root directory. It does not discover new applications. - Read fields for names and meanings and the bundled JSON schema for editor validation. Use compose guidance for service topology, ports, dependencies, and persistent volumes.
- Start with
openship config initonly when the file is absent. Preserve an existing config and add only values that need to override detection. Keep its$schemaset tohttps://openship.io/openship.schema.json. - Run
openship --json config validateusing the deployment's CLI version. Fix errors and review warnings: unknown keys can be ignored by the runtime even though the editor schema rejects them.
A minimal server config can be:
{
"$schema": "https://openship.io/openship.schema.json",
"port": 3000,
"runtime": "docker",
"domains": ["app.example.com"]
}
Self-hosted details
- Self-hosted defaults to unlimited resources in the bundled release. Declare caps only when intended. Service-level caps override project caps field by field. Check target capacity separately from local config validation.
- Use named persistent volumes for state that must survive an application deploy. Expose only the services intended to receive public traffic.
- Keep actual secret values out of committed JSON.
secret: truecontrols storage handling after ingestion. It does not encrypt a credential in a Git file. Read environment variables for instance-managed values. openship.jsonexpresses desired configuration. It does not prove an existing domain has moved or the running deployment has changed. The companionopenship-deployskill handles deployment and live verification.
Source and version
The workflow and field reference derive from the official upstream config skill. upstream.json records the release and links to its CLI validator, runtime parser, types, parser tests, and deployment preparation code. Consult those sources when docs disagree or a behavior depends on the installed version. The parser and actual deployment implementation decide runtime behavior. The JSON schema serves editor validation.
Read the configuration guide for additional examples. Do not copy example credentials into a repository.
版本历史
- 4632eb3 当前 2026-09-09 11:54


