一键导入
ynh-create-harness
Interactive wizard to create a ynh harness from scratch. Walks through naming, vendor selection, artifact scaffolding, and installation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Interactive wizard to create a ynh harness from scratch. Walks through naming, vendor selection, artifact scaffolding, and installation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Development workflow for the ynh codebase. Build, test, lint, and format in the right order.
Maintain ynh vendor adapters against current vendor plugin specs. Use when updating adapters, checking spec compliance, or adding new vendor support.
Workflow for compressing prompt and instruction files using LLM-powered techniques, with backup management and restore.
Guide graduation from a personal harness to a team setup with delegation. Creates a team harness that delegates to personal harnesses.
Guided walkthrough for using ynd inspect to bootstrap a project's AI skills and agents from its codebase signals.
Project scaffolding skill
| name | ynh-create-harness |
| description | Interactive wizard to create a ynh harness from scratch. Walks through naming, vendor selection, artifact scaffolding, and installation. |
You are guiding a user through creating their first ynh (ynh) harness. Follow this workflow step by step, asking one question at a time.
Read these references to understand the current formats and conventions:
references/harness-format.md for manifest syntax, directory structure, and install/run commandsreferences/artifact-formats.md for skill, agent, rule, and command formatsAlso read the working examples in testdata/sample-harness/ to see realistic artifacts:
testdata/sample-harness/.harness.jsontestdata/sample-harness/skills/hello/SKILL.mdtestdata/sample-harness/agents/code-reviewer.mdtestdata/sample-harness/rules/be-concise.mdtestdata/sample-harness/commands/check.mdAsk the user what they want to name their harness. Explain that this becomes the command they type to launch it (e.g., if they name it david, they'll run david to start a session).
The name should be lowercase, short, and memorable. It becomes a shell command.
Ask where to create the harness directory. Suggest a sensible default like ~/harnesses/<name> or a sibling directory to wherever they're working. Let them choose.
Ask which AI vendor they want as the default. Run ynh vendors (or read the output of internal/vendor/ adapters) to show what's available. Currently: claude, codex, cursor.
Explain they can always override with -v at runtime.
Ask which artifact types they want scaffolded. Offer these options:
They can pick any combination, or start with none and add later.
Create the directory structure based on their choices:
<output-dir>/
├── .harness.json
├── AGENTS.md (optional - read natively by most vendors; ynh shims Claude via @-import)
├── skills/ (if selected)
│ └── <example>/
│ └── SKILL.md
├── agents/ (if selected)
│ └── <example>.md
├── rules/ (if selected)
│ └── <example>.md
└── commands/ (if selected)
└── <example>.md
For .harness.json:
{
"$schema": "https://eyelock.github.io/ynh/schema/harness.schema.json",
"name": "<their-name>",
"version": "0.1.0",
"description": "<their description>",
"default_vendor": "<their-vendor>"
}
For each artifact type selected, generate a starter example with realistic content (not lorem ipsum). Use the testdata examples as reference for format, but make the content relevant to the user's context if they mentioned what they work on.
Important: Follow the exact formats from references/artifact-formats.md:
SKILL.md containing YAML frontmatter (name, description)name, description, tools)Show them how to install:
ynh install <output-dir>
If the harness lives inside a monorepo, use --path:
ynh install <repo-url> --path <subdir>
Offer to run this command for them. Then show how to use it:
<name> # interactive session
<name> "hello, introduce yourself" # quick test
If ynh isn't on their PATH, remind them about the build step (make build) and PATH setup from references/harness-format.md.
After the harness is working, mention:
includes to .harness.json. See references/harness-format.md for the syntax./ynh-team-setup to create a team harness with delegation.git@github.com:...) are recommended. ynh delegates to the local git binary - if git clone works, ynh works.