harness-prompt
Create and manage the system prompt entity in agent-harness, generating CLAUDE.md, AGENTS.md, and copilot-instructions.md from a single canonical source.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create and manage the system prompt entity in agent-harness, generating CLAUDE.md, AGENTS.md, and copilot-instructions.md from a single canonical source.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create and manage MCP server config entities in the agent-harness workspace.
Create and manage MCP server config entities in the agent-harness workspace.
Create and manage lifecycle hook entities in the agent-harness workspace. Covers canonical event authoring, provider projection (Claude Code, GitHub Copilot, OpenAI Codex CLI, Cursor), mode behavior, handler types, the full event/provider support matrix, copy-paste recipes, and common diagnostics.
Create and manage lifecycle hook entities in the agent-harness workspace. Covers canonical event authoring, provider projection (Claude Code, GitHub Copilot, OpenAI Codex CLI, Cursor), mode behavior, handler types, the full event/provider support matrix, copy-paste recipes, and common diagnostics.
Run a multi-round critical review loop using specialized subagents. Use when the user asks to review changes, harden code, or ensure quality before merge. Spawns parallel review agents across security, core-logic, tests, CLI integration, and API surface, then iterates fix-and-re-review rounds until all agents report clean.
Create and manage skill entities in the agent-harness workspace. Use when the user wants to add a new skill, understand how skills work across providers, or generate provider skill artifacts from a canonical source.
| name | harness-prompt |
| description | Create and manage the system prompt entity in agent-harness, generating CLAUDE.md, AGENTS.md, and copilot-instructions.md from a single canonical source. |
You are helping the user create or manage the system prompt entity in their agent-harness workspace. This skill covers the full workflow: scaffolding, editing, and applying the prompt to generate provider-native instruction files.
prompt entity isThe prompt entity is the single, canonical system prompt for all AI coding providers. There can only be one, and its id is always system. It lives at:
.harness/src/prompts/system.md
The file is plain Markdown with optional YAML frontmatter. When you run npx harness apply, harness renders it into provider-native instruction files for every enabled provider.
| Provider | Output path | Format | Read at |
|---|---|---|---|
| Claude Code | CLAUDE.md | Markdown | Session start (every conversation) |
| OpenAI Codex CLI | AGENTS.md | Markdown | Once per run, before task execution |
| GitHub Copilot | .github/copilot-instructions.md | Markdown | Every relevant request |
CLAUDE.md@path/to/file imports.pnpm test before committing" rather than "test your changes")../CLAUDE.md or ./.claude/CLAUDE.md; harness defaults to CLAUDE.md.AGENTS.md.github/copilot-instructions.md| Concern | Claude Code | Codex CLI | Copilot |
|---|---|---|---|
| Size guidance | Under 200 lines | Under 32 KiB | ~2 pages / ~8 KB |
| Rich markdown | Yes — headers, code blocks, imports | Yes | Yes, but keep concise |
| Structured workflows | Works well | Works well | Stick to reusable context |
| Task-specific steps | OK | OK | Avoid — use .github/instructions/ for that |
Content that works well everywhere: coding standards, project layout, build/test commands, naming conventions, language/framework preferences.
To customize the output path or content for a specific provider without changing the canonical source, create a sidecar override YAML:
.harness/src/prompts/system.overrides.<provider>.yaml
Minimal path override example (.harness/src/prompts/system.overrides.claude.yaml):
version: 1
targetPath: ".claude/CLAUDE.md"
# Scaffold the source file (creates .harness/src/prompts/system.md)
npx harness add prompt
# Preview what will be written (dry run)
npx harness plan
# Generate provider artifacts (CLAUDE.md, AGENTS.md, .github/copilot-instructions.md)
npx harness apply
# Watch for changes and auto-apply
npx harness watch
# Remove the prompt entity and its source file
npx harness remove prompt system
Enable providers before applying if you have not already:
npx harness provider enable claude
npx harness provider enable codex
npx harness provider enable copilot
system.md---
# Optional frontmatter — reserved for future harness use; leave empty or omit
---
# Project instructions
This is a TypeScript monorepo using pnpm workspaces and Turborepo.
## Stack
- Node >= 22, pnpm >= 9
- Biome for linting and formatting (2-space indent, double quotes, semicolons)
- Node built-in test runner via `tsx` for unit tests
## Commands
- `pnpm install` — install dependencies
- `pnpm build` — build all packages (respects Turbo dependency order)
- `pnpm test` — run unit tests (requires build)
- `pnpm check:write` — lint + format with auto-fix
- `pnpm typecheck` — type-check all packages
## Code conventions
- ESM only (`"type": "module"`), NodeNext module resolution
- Strict TypeScript: `noUncheckedIndexedAccess`, full `strict` mode
- Never duplicate logic — extract shared helpers
- Delete dead code; prefer concise expressions over boilerplate
- All public API functions must have explicit return types
## Project layout
- `packages/manifest-schema/` — Zod schemas and types (built first)
- `packages/toolkit/` — CLI and core engine
- `docs/` — documentation; update after any feature changes
## Git workflow
- Commit messages: `type: description` (conventional commits)
- Run `pnpm check:write && pnpm typecheck && pnpm test` before pushing
npx harness add prompt — creates .harness/src/prompts/system.md.harness/src/prompts/system.md with your project instructionsnpx harness apply — writes CLAUDE.md, AGENTS.md, .github/copilot-instructions.mdThe generated files are owned by harness. Edit only the canonical source; re-run apply to propagate changes.