Init project

From linzhe001/Harness-Research · View interactive version

Init project is an AI agent skill from the GitHub repository linzhe001/Harness-Research. `CLAUDE.md` is loaded every session, so keep it compact. Initial output should

How to use this skill

Skill file

Project CLAUDE.md Phased Generator

CLAUDE.md is loaded every session, so keep it compact. Initial output should

be under 40 lines; mature output must stay under 120 lines. Preserve every

existing ## Custom section.

Read First

PROJECT_STATE.json when present.

documentation-evidence-rule.md, and documentation-style.md.

docs/05_intake/Grill_Round_Log.md, docs/05_intake/Execution_Readiness_Packet.md, and

docs/05_intake/Execution_Readiness.json when present.

Modes

`init`

Ask for English project name and optional virtual environment name. Auto-detect

available environment facts with narrow commands such as Python version,

PyTorch/CUDA, GPU, dependency files, and relevant package versions. If no

runnable environment exists, keep placeholders.

Create a minimal CLAUDE.md with:

Do not fill idea, dataset, tech stack, project structure, core artifacts, or

entry scripts in init mode.

`update`

Read PROJECT_STATE.json and existing artifacts, then use precise section

replacement. Do not rewrite the whole file.

Stage fills:

docs/Refined_Idea.md.

keep AGENTS.md as a pointer, not a duplicate source of volatile paths.

docs/Baseline_Report.md.

from project_map.json and roadmap context.

scripts/ train/eval/test utilities.

`deps-changed`

Only re-detect environment facts and refresh ## Environment. This is

equivalent to /env-setup refresh.

`update-from-grill`

Use immediately after explicit operator acceptance of a Grill draft or

grill_draft_ready.

  1. Read Grill handoff artifacts from disk:

docs/05_intake/Research_Intent_Draft.md, docs/05_intake/Grill_Round_Log.md, and

docs/05_intake/Execution_Readiness_Packet.md.

  1. Read docs/05_intake/Execution_Readiness.json only if it exists.
  2. Read current guidance/state files when present. Missing

PROJECT_STATE.json is expected in a fresh target workspace.

  1. Create CLAUDE.md from template if missing; otherwise edit only necessary

sections and preserve unrelated content.

  1. Fill only candidate-clear Grill context: current intent, accepted draft

status, startup artifacts, candidate dataset acquisition needs and local

targets, candidate baselines/negative controls and clone targets,

unresolved questions, falsifiers, claim boundaries, and prepare blockers.

  1. Label all dataset paths and baseline clone targets as candidate until

prepare / WF4-WF5 verify them.

  1. Ensure AGENTS.md exists or points to CLAUDE.md plus Grill artifacts.

Do not duplicate volatile paths in AGENTS.md.

  1. Ensure README.md exists for new target workspaces, or refresh only short

startup pointers when requested.

  1. Do not write .workflow_supervisor/** or .evidence/** by hand. Do not

mark WF1-WF3 complete. Do not create PROJECT_STATE.json, project_map.json, or

iteration_log.json from this mode.

  1. Report Gate Evidence for changed guidance files and NOT_RUN for skipped

workflow-state checks, or absent optional runtime files.

Absence of PROJECT_STATE.json, project_map.json, iteration_log.json,

or docs/05_intake/Execution_Readiness.json is expected unless another tool

already produced them.

Common Update Rules

every ## Custom section.

workflow IDs, metric keys, and placeholder tokens.

Hard Constraints

Durable Docs Render

After stable Markdown outputs are finalized, invoke /docs-site or report

docs_site_boundary_report. Do not render for temporary drafts.

Durable Docs Render

After stable Markdown is finalized, invoke /docs-site or report

docs_site_boundary_report / docs_site_render_or_NOT_RUN. Do not render for

temporary drafts.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.