Harness From Profile
Overview
Use this skill when the target repository should get a full first-pass Harness from a filled profile document instead of from product-specific chat memory.
The skill should keep three layers separate:
- project facts live in
HARNESS_PROFILE.md - reusable operating logic lives in this skill
- stable file roles live in the scaffold template
Required Input
- a filled
HARNESS_PROFILE.mdor equivalent profile document - the target repository path
If the profile is missing key facts, ask only for the smallest useful clarifications. Prefer TODO markers over fabricated certainty.
Workflow
- Read the profile completely.
- Then read
references/harness-profile-schema.mdif the profile needs interpretation help.
- Then read
- Read the output map.
- Use
references/output-map.mdto translate profile sections into generated files.
- Use
- Scaffold the stable structure.
- Preferred: run
python3 scripts/bootstrap_harness_scaffold.py --template monorepo --target <path> --project-name <name>. - If the target already has part of the structure, merge carefully instead of blindly overwriting.
- Preferred: run
- Translate profile facts into repo docs.
- Fill
AGENTS.md,ARCHITECTURE.md,docs/design-docs/,docs/product-specs/, and the top-level principle docs. - Set up
docs/exec-plans/for future work tracking.
- Fill
- Preserve uncertainty honestly.
- If a workflow, boundary, or ownership line is still unclear, write a concrete TODO or question in the generated docs instead of guessing.
- Validate the result.
- Check that every file referenced by
AGENTS.mdactually exists. - Check that the generated structure matches the intended roles in
references/output-map.md.
- Check that every file referenced by
Output Contract
A strong first pass should include at least:
AGENTS.mdARCHITECTURE.mddocs/design-docs/index.mddocs/design-docs/core-beliefs.mddocs/exec-plans/index.mddocs/exec-plans/active/index.mddocs/exec-plans/completed/index.mddocs/exec-plans/tech-debt-tracker.mddocs/generated/harness-profile-template.mddocs/product-specs/index.mddocs/references/index.mdDESIGN.mdPLANS.mdPRODUCT_SENSE.mdQUALITY_SCORE.mdRELIABILITY.mdSECURITY.md
Trigger Examples
Use $harness-from-profile to bootstrap this monorepo from HARNESS_PROFILE.md.Use $harness-from-profile to create AGENTS.md, ARCHITECTURE.md, and docs/ from this project profile.Use $harness-from-profile to turn this project profile into a repo-local Harness system.
Resources
references/harness-profile-schema.md- required profile sections and how to read themreferences/bootstrap-flow.md- the step-by-step build flowreferences/output-map.md- which profile facts go into which generated filesscripts/bootstrap_harness_scaffold.py- deterministic scaffold copierassets/templates/monorepo/- stable file skeleton for the first draft


