ワンクリックで
preset-creator
Use when creating, reviewing, improving, or installing Coding Agent Harness preset packages for repeatable task families.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when creating, reviewing, improving, or installing Coding Agent Harness preset packages for repeatable task families.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | preset-creator |
| description | Use when creating, reviewing, improving, or installing Coding Agent Harness preset packages for repeatable task families. |
Use this skill when a user wants to create, review, improve, or install a Harness preset.
A good preset is not just a folder template. It is a reusable task method package: it captures when a class of tasks should exist, what inputs the agent must ask for, what task metadata must be visible, what shared references must be read, what evidence must be produced, and how the created task proves it is using the preset correctly.
This skill is standalone. Do not assume the agent already knows Harness task contracts. Before creating a preset for complex tasks, read the included complex task skeleton reference and design the preset as an overlay on that skeleton.
Create a preset when at least two future tasks should share the same method or context. Good examples:
Do not create a preset for a one-off task. Do not use a preset to hide vague requirements. If the task family is not repeatable yet, write a normal task first and extract the preset after the second or third repetition.
Before writing files, answer these in the task notes or your response:
standard or complex?task.kind should downstream scanners see?task_plan.md?status --json and task-index --json?Use the bundled references before writing files:
references/structure-aware-paths.mdreferences/complex-task-skeleton/references/preset-package-skeleton.mdThe structure-aware paths reference is mandatory before writing preset.yaml;
it defines {{paths.*}}, safe write scopes, drift audit, and template refresh.
The complex task skeleton reference contains the base brief.md, task_plan.md,
execution_strategy.md, visual_map.md, findings.md,
lesson_candidates.md, progress.md, review.md, references/INDEX.md, and
artifacts/INDEX.md contracts. The preset package skeleton contains a copyable
package tree, a complete preset.yaml, starter Markdown resources, and the
verification checklist. Keep this SKILL.md focused on method and judgment; use
the references when the task has moved from design to file creation.
Use a simple package:
my-preset/
preset.yaml
templates/
task_plan.append.md
references/
upstream-contract.md
resources/
service-runbook.md
artifacts/
input-packet.md
Preset authors must not hard-code Harness runtime paths such as
coding-agent-harness/planning/tasks/**. Repositories may move the Harness
folder, so every runtime write/read scope must use the target's resolved
{{paths.*}} context.
Before creating or reviewing a preset, read
references/structure-aware-paths.md. For normal task-creating presets, use
{{paths.tasksRoot}}/** in both entrypoints.newTask.writes and
writeScopes.*.path. These values must match exactly; do not rely on partial
overlap.
id: lowercase letters, numbers, and hyphens.version: integer; increment when generated task behavior changes.purpose: one sentence explaining the repeatable method.compatibleBudgets: usually [complex] when the preset creates references or artifacts.task.kind: stable scanner-facing task kind.entrypoints.newTask: always declarative for task creation.inputs: CLI flags when the preset needs user-provided values.templateValues: values used by templates.metadata: first-class Label: value lines in task_plan.md.resources.references: shared task-local reference files, when tasks share context.resources.artifacts: preset-provided fixtures or input packets, when needed.context.requiredReads: reference IDs the agent must read before implementation.evidence.bundleDir: task-local directory for preset audit/evidence files, usually artifacts/preset.evidence.files: optional custom generated files inside the evidence bundle.audit.manifestRequired: must be true.audit.evidenceFiles: built-in audit files to generate, usually preset-audit.json, preset-manifest.json, and write-scope.json.writeScopes: narrow paths the preset may write.Use the Harness manifest subset only: nested mappings, scalar strings/numbers/booleans, and inline arrays such as [standard, complex]. Do not use block strings or dash-list YAML forms.
templateValues and metadata may use literal value, default, or dot-path from references such as inputs.subject or task.title. Do not use expressions or inline code.
Templates and resource index summaries can use {{valueName}} placeholders from templateValues.
Supported input types are text, flag, and json-file. Resource index.type, usedBy, and producedBy are labels for readers; use stable simple words such as code, runbook, doc, fixture, preset, worker, reviewer, and coordinator.
Every value in entrypoints.newTask.writes must exactly match one writeScopes.*.path entry. Do not rely on partial overlap.
For runtime paths in manifests or rendered Markdown, use {{paths.*}}.
For ordinary preset values, use {{valueName}} from templateValues.
Do not mix the two: {{paths.*}} is supplied by Harness from the target
harness.yaml, while {{valueName}} is supplied by the preset manifest.
Use resources.references when the preset should preload common context for a group of tasks.
resources:
references:
upstreamContract:
path: references/upstream-contract.md
template: templates/references/upstream-contract.md
index:
id: REF-001
type: code
summary: Shared upstream {{service}} contract for every task created by this preset.
usedBy: coordinator,worker,reviewer
serviceRunbook:
path: references/service-runbook.md
source: resources/service-runbook.md
index:
id: REF-002
type: runbook
summary: Local verification notes for the shared upstream service.
usedBy: worker
context:
requiredReads: [REF-001, REF-002]
Use template for Markdown that needs substitution. Use source for static files copied from the preset package. The created task should read like this: task_plan.md tells the agent which REF-* entries to read, references/INDEX.md explains why each file matters, and the actual references/*.md files contain the context.
When context.requiredReads is set, Harness appends a ## Preset Required Reads table to task_plan.md. Each row must resolve to the reference ID and exact TARGET:<task-relative-reference-path> that also appears in references/INDEX.md.
Use resources.artifacts for preset-provided support material that is not a source reference:
resources:
artifacts:
inputPacket:
path: artifacts/input-packet.md
source: resources/artifacts/input-packet.md
index:
id: ART-001
type: fixture
summary: Shared fixture packet copied by the preset.
producedBy: preset
Do not confuse artifacts with evidence. Artifacts can be input packets or fixtures. Evidence proves what happened, such as preset-audit.json, preset-manifest.json, command output, or verification results.
writeScopes must be as narrow as possible.{{paths.*}}, usually {{paths.tasksRoot}}/**.new-task.new-task behavior.~/.coding-agent-harness/presets/<preset-id>/.references/complex-task-skeleton/README.md and inspect the base task files the preset will overlay.references/preset-package-skeleton.md and copy only the files the preset actually needs.preset.yaml, templates, and resources.{{paths.tasksRoot}}/** or another supported {{paths.*}} field for every runtime write/read scope; never hard-code coding-agent-harness/....templateValues, metadata, Markdown templates, resources, evidence declarations, and writeScopes.harness preset check <path>.harness preset install <path> --force in a disposable or user-approved environment.harness new-task <id> --budget <budget> --preset <preset-id> ... <target>.harness status --json <target>, harness task-index --json <target>, and harness check --profile target-project <target>.harness preset audit --json or harness preset audit --project --json <target> before replacing installed presets.task_plan.md, references/INDEX.md, and artifacts/INDEX.md manually before declaring success.task_plan.md contains enough context for the next agent to know what to read first.REF-* row.REF-* row explains why that reference matters.ART-* row when artifacts are used.coding-agent-harness/...; scopes use {{paths.*}}.entrypoints.newTask.writes and writeScopes.*.path match exactly.preset check, task creation, status --json, task-index --json, and target check.